Regenerate.
[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 ENABLE_LLVMC_DYNAMIC
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
851 CXX
852 CXXFLAGS
853 ac_ct_CXX
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 OCAMLDOC
890 GAS
891 INSTALL_LTDL_TRUE
892 INSTALL_LTDL_FALSE
893 CONVENIENCE_LTDL_TRUE
894 CONVENIENCE_LTDL_FALSE
895 LIBADD_DL
896 ECHO
897 AR
898 STRIP
899 CXXCPP
900 F77
901 FFLAGS
902 ac_ct_F77
903 LIBTOOL
904 LLVMGCCCOMMAND
905 LLVMGXXCOMMAND
906 LLVMGCC
907 LLVMGXX
908 USE_UDIS86
909 HAVE_PTHREAD
910 HUGE_VAL_SANITY
911 ALLOCA
912 MMAP_FILE
913 LLVMCC1
914 LLVMCC1PLUS
915 LLVMGCCDIR
916 LLVMGCCLIBEXEC
917 LLVMGCC_VERSION
918 LLVMGCC_MAJVERS
919 LLVMGCC_LANGS
920 SHLIBEXT
921 LLVM_PREFIX
922 LLVM_BINDIR
923 LLVM_LIBDIR
924 LLVM_DATADIR
925 LLVM_DOCSDIR
926 LLVM_ETCDIR
927 LLVM_INCLUDEDIR
928 LLVM_INFODIR
929 LLVM_MANDIR
930 LLVM_CONFIGTIME
931 BINDINGS_TO_BUILD
932 ALL_BINDINGS
933 OCAML_LIBDIR
934 ENABLE_VISIBILITY_INLINES_HIDDEN
935 RPATH
936 RDYNAMIC
937 LIBOBJS
938 LTLIBOBJS'
939 ac_subst_files=''
940       ac_precious_vars='build_alias
941 host_alias
942 target_alias
943 CC
944 CFLAGS
945 LDFLAGS
946 CPPFLAGS
947 CPP
948 CXX
949 CXXFLAGS
950 CCC
951 CXXCPP
952 F77
953 FFLAGS'
954 ac_subdirs_all='projects/sample
955 projects/privbracket
956 projects/llvm-stacker
957 projects/llvm-test
958 projects/test-suite
959 projects/llvm-reopt
960 projects/llvm-gcc
961 projects/llvm-java
962 projects/llvm-tv
963 projects/llvm-poolalloc
964 projects/poolalloc
965 projects/llvm-kernel'
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017   # If the previous option needs an argument, assign it.
1018   if test -n "$ac_prev"; then
1019     eval $ac_prev=\$ac_option
1020     ac_prev=
1021     continue
1022   fi
1023
1024   case $ac_option in
1025   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031   case $ac_dashdash$ac_option in
1032   --)
1033     ac_dashdash=yes ;;
1034
1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036     ac_prev=bindir ;;
1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038     bindir=$ac_optarg ;;
1039
1040   -build | --build | --buil | --bui | --bu)
1041     ac_prev=build_alias ;;
1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043     build_alias=$ac_optarg ;;
1044
1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047     ac_prev=cache_file ;;
1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050     cache_file=$ac_optarg ;;
1051
1052   --config-cache | -C)
1053     cache_file=config.cache ;;
1054
1055   -datadir | --datadir | --datadi | --datad)
1056     ac_prev=datadir ;;
1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058     datadir=$ac_optarg ;;
1059
1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061   | --dataroo | --dataro | --datar)
1062     ac_prev=datarootdir ;;
1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065     datarootdir=$ac_optarg ;;
1066
1067   -disable-* | --disable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074     eval enable_$ac_feature=no ;;
1075
1076   -docdir | --docdir | --docdi | --doc | --do)
1077     ac_prev=docdir ;;
1078   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079     docdir=$ac_optarg ;;
1080
1081   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082     ac_prev=dvidir ;;
1083   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084     dvidir=$ac_optarg ;;
1085
1086   -enable-* | --enable-*)
1087     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091    { (exit 1); exit 1; }; }
1092     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1093     eval enable_$ac_feature=\$ac_optarg ;;
1094
1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097   | --exec | --exe | --ex)
1098     ac_prev=exec_prefix ;;
1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101   | --exec=* | --exe=* | --ex=*)
1102     exec_prefix=$ac_optarg ;;
1103
1104   -gas | --gas | --ga | --g)
1105     # Obsolete; use --with-gas.
1106     with_gas=yes ;;
1107
1108   -help | --help | --hel | --he | -h)
1109     ac_init_help=long ;;
1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111     ac_init_help=recursive ;;
1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113     ac_init_help=short ;;
1114
1115   -host | --host | --hos | --ho)
1116     ac_prev=host_alias ;;
1117   -host=* | --host=* | --hos=* | --ho=*)
1118     host_alias=$ac_optarg ;;
1119
1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121     ac_prev=htmldir ;;
1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123   | --ht=*)
1124     htmldir=$ac_optarg ;;
1125
1126   -includedir | --includedir | --includedi | --included | --include \
1127   | --includ | --inclu | --incl | --inc)
1128     ac_prev=includedir ;;
1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
1131     includedir=$ac_optarg ;;
1132
1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
1134     ac_prev=infodir ;;
1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136     infodir=$ac_optarg ;;
1137
1138   -libdir | --libdir | --libdi | --libd)
1139     ac_prev=libdir ;;
1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141     libdir=$ac_optarg ;;
1142
1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144   | --libexe | --libex | --libe)
1145     ac_prev=libexecdir ;;
1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147   | --libexe=* | --libex=* | --libe=*)
1148     libexecdir=$ac_optarg ;;
1149
1150   -localedir | --localedir | --localedi | --localed | --locale)
1151     ac_prev=localedir ;;
1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153     localedir=$ac_optarg ;;
1154
1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
1156   | --localstate | --localstat | --localsta | --localst | --locals)
1157     ac_prev=localstatedir ;;
1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160     localstatedir=$ac_optarg ;;
1161
1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163     ac_prev=mandir ;;
1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165     mandir=$ac_optarg ;;
1166
1167   -nfp | --nfp | --nf)
1168     # Obsolete; use --without-fp.
1169     with_fp=no ;;
1170
1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172   | --no-cr | --no-c | -n)
1173     no_create=yes ;;
1174
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     no_recursion=yes ;;
1178
1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181   | --oldin | --oldi | --old | --ol | --o)
1182     ac_prev=oldincludedir ;;
1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186     oldincludedir=$ac_optarg ;;
1187
1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189     ac_prev=prefix ;;
1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191     prefix=$ac_optarg ;;
1192
1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194   | --program-pre | --program-pr | --program-p)
1195     ac_prev=program_prefix ;;
1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198     program_prefix=$ac_optarg ;;
1199
1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201   | --program-suf | --program-su | --program-s)
1202     ac_prev=program_suffix ;;
1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205     program_suffix=$ac_optarg ;;
1206
1207   -program-transform-name | --program-transform-name \
1208   | --program-transform-nam | --program-transform-na \
1209   | --program-transform-n | --program-transform- \
1210   | --program-transform | --program-transfor \
1211   | --program-transfo | --program-transf \
1212   | --program-trans | --program-tran \
1213   | --progr-tra | --program-tr | --program-t)
1214     ac_prev=program_transform_name ;;
1215   -program-transform-name=* | --program-transform-name=* \
1216   | --program-transform-nam=* | --program-transform-na=* \
1217   | --program-transform-n=* | --program-transform-=* \
1218   | --program-transform=* | --program-transfor=* \
1219   | --program-transfo=* | --program-transf=* \
1220   | --program-trans=* | --program-tran=* \
1221   | --progr-tra=* | --program-tr=* | --program-t=*)
1222     program_transform_name=$ac_optarg ;;
1223
1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225     ac_prev=pdfdir ;;
1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227     pdfdir=$ac_optarg ;;
1228
1229   -psdir | --psdir | --psdi | --psd | --ps)
1230     ac_prev=psdir ;;
1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232     psdir=$ac_optarg ;;
1233
1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235   | -silent | --silent | --silen | --sile | --sil)
1236     silent=yes ;;
1237
1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239     ac_prev=sbindir ;;
1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241   | --sbi=* | --sb=*)
1242     sbindir=$ac_optarg ;;
1243
1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246   | --sharedst | --shareds | --shared | --share | --shar \
1247   | --sha | --sh)
1248     ac_prev=sharedstatedir ;;
1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252   | --sha=* | --sh=*)
1253     sharedstatedir=$ac_optarg ;;
1254
1255   -site | --site | --sit)
1256     ac_prev=site ;;
1257   -site=* | --site=* | --sit=*)
1258     site=$ac_optarg ;;
1259
1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261     ac_prev=srcdir ;;
1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263     srcdir=$ac_optarg ;;
1264
1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266   | --syscon | --sysco | --sysc | --sys | --sy)
1267     ac_prev=sysconfdir ;;
1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270     sysconfdir=$ac_optarg ;;
1271
1272   -target | --target | --targe | --targ | --tar | --ta | --t)
1273     ac_prev=target_alias ;;
1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275     target_alias=$ac_optarg ;;
1276
1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278     verbose=yes ;;
1279
1280   -version | --version | --versio | --versi | --vers | -V)
1281     ac_init_version=: ;;
1282
1283   -with-* | --with-*)
1284     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
1288    { (exit 1); exit 1; }; }
1289     ac_package=`echo $ac_package| sed 's/-/_/g'`
1290     eval with_$ac_package=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_package=`echo $ac_package | sed 's/-/_/g'`
1299     eval with_$ac_package=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321    { (exit 1); exit 1; }; }
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329    { (exit 1); exit 1; }; }
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   { echo "$as_me: error: missing argument to $ac_option" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349
1350 # Be sure to have absolute directory names.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir
1355 do
1356   eval ac_val=\$$ac_var
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362    { (exit 1); exit 1; }; }
1363 done
1364
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1371
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374   if test "x$build_alias" = x; then
1375     cross_compiling=maybe
1376     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377     If a cross compiler is detected then cross compile mode will be used." >&2
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   { echo "$as_me: error: Working directory cannot be determined" >&2
1393    { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395   { echo "$as_me: error: pwd does not report name of working directory" >&2
1396    { (exit 1); exit 1; }; }
1397
1398
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401   ac_srcdir_defaulted=yes
1402   # Try the directory containing this script, then the parent directory.
1403   ac_confdir=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405          X"$0" : 'X\(//\)[^/]' \| \
1406          X"$0" : 'X\(//\)$' \| \
1407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408 echo X"$0" |
1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)[^/].*/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\).*/{
1422             s//\1/
1423             q
1424           }
1425           s/.*/./; q'`
1426   srcdir=$ac_confdir
1427   if test ! -r "$srcdir/$ac_unique_file"; then
1428     srcdir=..
1429   fi
1430 else
1431   ac_srcdir_defaulted=no
1432 fi
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436    { (exit 1); exit 1; }; }
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441    { (exit 1); exit 1; }; }
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR           user executables [EPREFIX/bin]
1502   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR       program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1507   --libdir=DIR           object code libraries [EPREFIX/lib]
1508   --includedir=DIR       C header files [PREFIX/include]
1509   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1510   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1511   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1512   --infodir=DIR          info documentation [DATAROOTDIR/info]
1513   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1514   --mandir=DIR           man documentation [DATAROOTDIR/man]
1515   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1516   --htmldir=DIR          html documentation [DOCDIR]
1517   --dvidir=DIR           dvi documentation [DOCDIR]
1518   --pdfdir=DIR           pdf documentation [DOCDIR]
1519   --psdir=DIR            ps documentation [DOCDIR]
1520 _ACEOF
1521
1522   cat <<\_ACEOF
1523
1524 System types:
1525   --build=BUILD     configure for building on BUILD [guessed]
1526   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527   --target=TARGET   configure for building compilers for TARGET [HOST]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532   case $ac_init_help in
1533      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1534    esac
1535   cat <<\_ACEOF
1536
1537 Optional Features:
1538   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540   --enable-optimized      Compile with optimizations enabled (default is NO)
1541   --enable-profiling      Compile with profiling enabled (default is NO)
1542   --enable-assertions     Compile with assertion checks enabled (default is
1543                           YES)
1544   --enable-expensive-checks
1545                           Compile with expensive debug checks enabled (default
1546                           is NO)
1547   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1548                           NO)
1549   --enable-jit            Enable Just In Time Compiling (default is YES)
1550   --enable-doxygen        Build doxygen documentation (default is NO)
1551   --enable-threads        Use threads if available (default is YES)
1552   --enable-pic            Build LLVM with Position Independent Code (default
1553                           is YES)
1554   --enable-targets        Build specific host targets:
1555                           all,host-only,{target-name} (default=all)
1556   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1557                           %a (default is YES)
1558   --enable-bindings       Build specific language bindings:
1559                           all,auto,none,{binding-name} (default=auto)
1560   --enable-libffi         Check for the presence of libffi (default is YES)
1561   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1562                           Win32)
1563   --enable-llvmc-dynamic-plugins
1564                           Enable dynamic LLVMC plugins (default is YES)
1565   --enable-ltdl-install   install libltdl
1566   --enable-shared[=PKGS]  build shared libraries
1567                           [default=yes]
1568   --enable-static[=PKGS]  build static libraries
1569                           [default=yes]
1570   --enable-fast-install[=PKGS]
1571                           optimize for fast installation
1572                           [default=yes]
1573   --disable-libtool-lock  avoid locking (might break parallel builds)
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1579                           searches PATH)
1580   --with-llvmgcc          Specify location of llvm-gcc driver (default
1581                           searches PATH)
1582   --with-llvmgxx          Specify location of llvm-g++ driver (default
1583                           searches PATH)
1584   --with-extra-options    Specify additional options to compile LLVM with
1585   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1586                           is stdlib)
1587   --with-binutils-include Specify path to binutils/include/ containing
1588                           plugin-api.h file for gold plugin.
1589   --with-tclinclude       directory where tcl headers are
1590   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1591   --with-pic              try to use only PIC/non-PIC objects [default=use
1592                           both]
1593   --with-tags[=TAGS]      include additional configurations [automatic]
1594   --with-udis86=<path>    Use udis86 external x86 disassembler library
1595
1596 Some influential environment variables:
1597   CC          C compiler command
1598   CFLAGS      C compiler flags
1599   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600               nonstandard directory <lib dir>
1601   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   CXX         C++ compiler command
1605   CXXFLAGS    C++ compiler flags
1606   CXXCPP      C++ preprocessor
1607   F77         Fortran 77 compiler command
1608   FFLAGS      Fortran 77 compiler flags
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <llvmbugs@cs.uiuc.edu>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619   # If there are subdirs, report their specific --help.
1620   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621     test -d "$ac_dir" || continue
1622     ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1628   # A ".." for each directory in $ac_dir_suffix.
1629   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1630   case $ac_top_builddir_sub in
1631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633   esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641   .)  # We are building in place.
1642     ac_srcdir=.
1643     ac_top_srcdir=$ac_top_builddir_sub
1644     ac_abs_top_srcdir=$ac_pwd ;;
1645   [\\/]* | ?:[\\/]* )  # Absolute name.
1646     ac_srcdir=$srcdir$ac_dir_suffix;
1647     ac_top_srcdir=$srcdir
1648     ac_abs_top_srcdir=$srcdir ;;
1649   *) # Relative name.
1650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651     ac_top_srcdir=$ac_top_build_prefix$srcdir
1652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656     cd "$ac_dir" || { ac_status=$?; continue; }
1657     # Check for guested configure.
1658     if test -f "$ac_srcdir/configure.gnu"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661     elif test -f "$ac_srcdir/configure"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure" --help=recursive
1664     else
1665       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666     fi || ac_status=$?
1667     cd "$ac_pwd" || { ac_status=$?; break; }
1668   done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673   cat <<\_ACEOF
1674 llvm configure 2.6svn
1675 generated by GNU Autoconf 2.60
1676
1677 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1678 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681
1682 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1683 _ACEOF
1684   exit
1685 fi
1686 cat >config.log <<_ACEOF
1687 This file contains any messages produced by compilers while
1688 running configure, to aid debugging if configure makes a mistake.
1689
1690 It was created by llvm $as_me 2.6svn, which was
1691 generated by GNU Autoconf 2.60.  Invocation command line was
1692
1693   $ $0 $@
1694
1695 _ACEOF
1696 exec 5>>config.log
1697 {
1698 cat <<_ASUNAME
1699 ## --------- ##
1700 ## Platform. ##
1701 ## --------- ##
1702
1703 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1708
1709 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1711
1712 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1713 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1714 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1715 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1716 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1717 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1718 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1719
1720 _ASUNAME
1721
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725   IFS=$as_save_IFS
1726   test -z "$as_dir" && as_dir=.
1727   echo "PATH: $as_dir"
1728 done
1729 IFS=$as_save_IFS
1730
1731 } >&5
1732
1733 cat >&5 <<_ACEOF
1734
1735
1736 ## ----------- ##
1737 ## Core tests. ##
1738 ## ----------- ##
1739
1740 _ACEOF
1741
1742
1743 # Keep a trace of the command line.
1744 # Strip out --no-create and --no-recursion so they do not pile up.
1745 # Strip out --silent because we don't want to record it for future runs.
1746 # Also quote any args containing shell meta-characters.
1747 # Make two passes to allow for proper duplicate-argument suppression.
1748 ac_configure_args=
1749 ac_configure_args0=
1750 ac_configure_args1=
1751 ac_must_keep_next=false
1752 for ac_pass in 1 2
1753 do
1754   for ac_arg
1755   do
1756     case $ac_arg in
1757     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759     | -silent | --silent | --silen | --sile | --sil)
1760       continue ;;
1761     *\'*)
1762       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1763     esac
1764     case $ac_pass in
1765     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1766     2)
1767       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1768       if test $ac_must_keep_next = true; then
1769         ac_must_keep_next=false # Got value, back to normal.
1770       else
1771         case $ac_arg in
1772           *=* | --config-cache | -C | -disable-* | --disable-* \
1773           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775           | -with-* | --with-* | -without-* | --without-* | --x)
1776             case "$ac_configure_args0 " in
1777               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778             esac
1779             ;;
1780           -* ) ac_must_keep_next=true ;;
1781         esac
1782       fi
1783       ac_configure_args="$ac_configure_args '$ac_arg'"
1784       ;;
1785     esac
1786   done
1787 done
1788 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1789 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1790
1791 # When interrupted or exit'd, cleanup temporary files, and complete
1792 # config.log.  We remove comments because anyway the quotes in there
1793 # would cause problems or look ugly.
1794 # WARNING: Use '\'' to represent an apostrophe within the trap.
1795 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1796 trap 'exit_status=$?
1797   # Save into config.log some information that might help in debugging.
1798   {
1799     echo
1800
1801     cat <<\_ASBOX
1802 ## ---------------- ##
1803 ## Cache variables. ##
1804 ## ---------------- ##
1805 _ASBOX
1806     echo
1807     # The following way of writing the cache mishandles newlines in values,
1808 (
1809   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810     eval ac_val=\$$ac_var
1811     case $ac_val in #(
1812     *${as_nl}*)
1813       case $ac_var in #(
1814       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1815 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1816       esac
1817       case $ac_var in #(
1818       _ | IFS | as_nl) ;; #(
1819       *) $as_unset $ac_var ;;
1820       esac ;;
1821     esac
1822   done
1823   (set) 2>&1 |
1824     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825     *${as_nl}ac_space=\ *)
1826       sed -n \
1827         "s/'\''/'\''\\\\'\'''\''/g;
1828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829       ;; #(
1830     *)
1831       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832       ;;
1833     esac |
1834     sort
1835 )
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ----------------- ##
1840 ## Output variables. ##
1841 ## ----------------- ##
1842 _ASBOX
1843     echo
1844     for ac_var in $ac_subst_vars
1845     do
1846       eval ac_val=\$$ac_var
1847       case $ac_val in
1848       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849       esac
1850       echo "$ac_var='\''$ac_val'\''"
1851     done | sort
1852     echo
1853
1854     if test -n "$ac_subst_files"; then
1855       cat <<\_ASBOX
1856 ## ------------------- ##
1857 ## File substitutions. ##
1858 ## ------------------- ##
1859 _ASBOX
1860       echo
1861       for ac_var in $ac_subst_files
1862       do
1863         eval ac_val=\$$ac_var
1864         case $ac_val in
1865         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866         esac
1867         echo "$ac_var='\''$ac_val'\''"
1868       done | sort
1869       echo
1870     fi
1871
1872     if test -s confdefs.h; then
1873       cat <<\_ASBOX
1874 ## ----------- ##
1875 ## confdefs.h. ##
1876 ## ----------- ##
1877 _ASBOX
1878       echo
1879       cat confdefs.h
1880       echo
1881     fi
1882     test "$ac_signal" != 0 &&
1883       echo "$as_me: caught signal $ac_signal"
1884     echo "$as_me: exit $exit_status"
1885   } >&5
1886   rm -f core *.core core.conftest.* &&
1887     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1888     exit $exit_status
1889 ' 0
1890 for ac_signal in 1 2 13 15; do
1891   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892 done
1893 ac_signal=0
1894
1895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1896 rm -f -r conftest* confdefs.h
1897
1898 # Predefined preprocessor variables.
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_STRING "$PACKAGE_STRING"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 _ACEOF
1923
1924
1925 # Let the site file select an alternate cache file if it wants to.
1926 # Prefer explicitly selected file to automatically selected ones.
1927 if test -n "$CONFIG_SITE"; then
1928   set x "$CONFIG_SITE"
1929 elif test "x$prefix" != xNONE; then
1930   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1931 else
1932   set x "$ac_default_prefix/share/config.site" \
1933         "$ac_default_prefix/etc/config.site"
1934 fi
1935 shift
1936 for ac_site_file
1937 do
1938   if test -r "$ac_site_file"; then
1939     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1940 echo "$as_me: loading site script $ac_site_file" >&6;}
1941     sed 's/^/| /' "$ac_site_file" >&5
1942     . "$ac_site_file"
1943   fi
1944 done
1945
1946 if test -r "$cache_file"; then
1947   # Some versions of bash will fail to source /dev/null (special
1948   # files actually), so we avoid doing that.
1949   if test -f "$cache_file"; then
1950     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1951 echo "$as_me: loading cache $cache_file" >&6;}
1952     case $cache_file in
1953       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1954       *)                      . "./$cache_file";;
1955     esac
1956   fi
1957 else
1958   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1959 echo "$as_me: creating cache $cache_file" >&6;}
1960   >$cache_file
1961 fi
1962
1963 # Check that the precious variables saved in the cache have kept the same
1964 # value.
1965 ac_cache_corrupted=false
1966 for ac_var in $ac_precious_vars; do
1967   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968   eval ac_new_set=\$ac_env_${ac_var}_set
1969   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970   eval ac_new_val=\$ac_env_${ac_var}_value
1971   case $ac_old_set,$ac_new_set in
1972     set,)
1973       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975       ac_cache_corrupted=: ;;
1976     ,set)
1977       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979       ac_cache_corrupted=: ;;
1980     ,);;
1981     *)
1982       if test "x$ac_old_val" != "x$ac_new_val"; then
1983         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1984 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1986 echo "$as_me:   former value:  $ac_old_val" >&2;}
1987         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1988 echo "$as_me:   current value: $ac_new_val" >&2;}
1989         ac_cache_corrupted=:
1990       fi;;
1991   esac
1992   # Pass precious variables to config.status.
1993   if test "$ac_new_set" = set; then
1994     case $ac_new_val in
1995     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996     *) ac_arg=$ac_var=$ac_new_val ;;
1997     esac
1998     case " $ac_configure_args " in
1999       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2000       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001     esac
2002   fi
2003 done
2004 if $ac_cache_corrupted; then
2005   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2006 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2007   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2008 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036 ac_ext=c
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041
2042
2043
2044 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2045
2046
2047
2048
2049
2050
2051
2052 ac_aux_dir=
2053 for ac_dir in autoconf "$srcdir"/autoconf; do
2054   if test -f "$ac_dir/install-sh"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/install-sh -c"
2057     break
2058   elif test -f "$ac_dir/install.sh"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/install.sh -c"
2061     break
2062   elif test -f "$ac_dir/shtool"; then
2063     ac_aux_dir=$ac_dir
2064     ac_install_sh="$ac_aux_dir/shtool install -c"
2065     break
2066   fi
2067 done
2068 if test -z "$ac_aux_dir"; then
2069   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2071    { (exit 1); exit 1; }; }
2072 fi
2073
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2079 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2080 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2081
2082
2083
2084 if test ${srcdir} != "." ; then
2085   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2086     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2087 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2088    { (exit 1); exit 1; }; }
2089   fi
2090 fi
2091
2092 for i in `ls ${srcdir}/projects`
2093 do
2094   if test -d ${srcdir}/projects/${i} ; then
2095     case ${i} in
2096       CVS) ;;
2097       sample)       subdirs="$subdirs projects/sample"
2098     ;;
2099       privbracket)  subdirs="$subdirs projects/privbracket"
2100  ;;
2101       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2102  ;;
2103       # llvm-test is the old name of the test-suite, kept here for backwards
2104       # compatibility
2105       llvm-test)    subdirs="$subdirs projects/llvm-test"
2106  ;;
2107       test-suite)   subdirs="$subdirs projects/test-suite"
2108  ;;
2109       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2110 ;;
2111       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2112   ;;
2113       llvm-java)    subdirs="$subdirs projects/llvm-java"
2114  ;;
2115       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2116    ;;
2117       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2118  ;;
2119       poolalloc)    subdirs="$subdirs projects/poolalloc"
2120  ;;
2121       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2122  ;;
2123       *)
2124         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2125 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2126         ;;
2127     esac
2128   fi
2129 done
2130
2131
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149    { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153    { (exit 1); exit 1; }; }
2154
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162    { (exit 1); exit 1; }; };;
2163 esac
2164 build=$ac_cv_build
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_build
2167 shift
2168 build_cpu=$1
2169 build_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 build_os=$*
2174 IFS=$ac_save_IFS
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2176
2177
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test "x$host_alias" = x; then
2184   ac_cv_host=$ac_cv_build
2185 else
2186   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2191
2192 fi
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2195 case $ac_cv_host in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199    { (exit 1); exit 1; }; };;
2200 esac
2201 host=$ac_cv_host
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_host
2204 shift
2205 host_cpu=$1
2206 host_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 host_os=$*
2211 IFS=$ac_save_IFS
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2213
2214
2215 { echo "$as_me:$LINENO: checking target system type" >&5
2216 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2217 if test "${ac_cv_target+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test "x$target_alias" = x; then
2221   ac_cv_target=$ac_cv_host
2222 else
2223   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2226    { (exit 1); exit 1; }; }
2227 fi
2228
2229 fi
2230 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 echo "${ECHO_T}$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2233 *-*-*) ;;
2234 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235 echo "$as_me: error: invalid value of canonical target" >&2;}
2236    { (exit 1); exit 1; }; };;
2237 esac
2238 target=$ac_cv_target
2239 ac_save_IFS=$IFS; IFS='-'
2240 set x $ac_cv_target
2241 shift
2242 target_cpu=$1
2243 target_vendor=$2
2244 shift; shift
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2247 target_os=$*
2248 IFS=$ac_save_IFS
2249 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2250
2251
2252 # The aliases save the names the user supplied, while $host etc.
2253 # will get canonicalized.
2254 test -n "$target_alias" &&
2255   test "$program_prefix$program_suffix$program_transform_name" = \
2256     NONENONEs,x,x, &&
2257   program_prefix=${target_alias}-
2258
2259 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2260 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2261 if test "${llvm_cv_os_type+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   case $host in
2265   *-*-aix*)
2266     llvm_cv_link_all_option="-Wl,--whole-archive"
2267     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268     llvm_cv_os_type="AIX"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-irix*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="IRIX"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-cygwin*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="Cygwin"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-darwin*)
2281     llvm_cv_link_all_option="-Wl,-all_load"
2282     llvm_cv_no_link_all_option="-Wl,-noall_load"
2283     llvm_cv_os_type="Darwin"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-freebsd*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="FreeBSD"
2289     llvm_cv_platform_type="Unix" ;;
2290   *-*-openbsd*)
2291     llvm_cv_link_all_option="-Wl,--whole-archive"
2292     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293     llvm_cv_os_type="OpenBSD"
2294     llvm_cv_platform_type="Unix" ;;
2295   *-*-netbsd*)
2296     llvm_cv_link_all_option="-Wl,--whole-archive"
2297     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298     llvm_cv_os_type="NetBSD"
2299     llvm_cv_platform_type="Unix" ;;
2300   *-*-dragonfly*)
2301     llvm_cv_link_all_option="-Wl,--whole-archive"
2302     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303     llvm_cv_os_type="DragonFly"
2304     llvm_cv_platform_type="Unix" ;;
2305   *-*-hpux*)
2306     llvm_cv_link_all_option="-Wl,--whole-archive"
2307     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308     llvm_cv_os_type="HP-UX"
2309     llvm_cv_platform_type="Unix" ;;
2310   *-*-interix*)
2311     llvm_cv_link_all_option="-Wl,--whole-archive"
2312     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313     llvm_cv_os_type="Interix"
2314     llvm_cv_platform_type="Unix" ;;
2315   *-*-linux*)
2316     llvm_cv_link_all_option="-Wl,--whole-archive"
2317     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318     llvm_cv_os_type="Linux"
2319     llvm_cv_platform_type="Unix" ;;
2320   *-*-solaris*)
2321     llvm_cv_link_all_option="-Wl,-z,allextract"
2322     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2323     llvm_cv_os_type="SunOS"
2324     llvm_cv_platform_type="Unix" ;;
2325   *-*-win32*)
2326     llvm_cv_link_all_option="-Wl,--whole-archive"
2327     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328     llvm_cv_os_type="Win32"
2329     llvm_cv_platform_type="Win32" ;;
2330   *-*-mingw*)
2331     llvm_cv_link_all_option="-Wl,--whole-archive"
2332     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333     llvm_cv_os_type="MingW"
2334     llvm_cv_platform_type="Win32" ;;
2335   *)
2336     llvm_cv_link_all_option=""
2337     llvm_cv_no_link_all_option=""
2338     llvm_cv_os_type="Unknown"
2339     llvm_cv_platform_type="Unknown" ;;
2340 esac
2341 fi
2342 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2343 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2344
2345 if test "$llvm_cv_os_type" = "Unknown" ; then
2346   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2347 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2348    { (exit 1); exit 1; }; }
2349 fi
2350
2351 OS=$llvm_cv_os_type
2352
2353
2354 LINKALL=$llvm_cv_link_all_option
2355
2356 NOLINKALL=$llvm_cv_no_link_all_option
2357
2358
2359 case $llvm_cv_platform_type in
2360   Unix)
2361
2362 cat >>confdefs.h <<\_ACEOF
2363 #define LLVM_ON_UNIX 1
2364 _ACEOF
2365
2366     LLVM_ON_UNIX=1
2367
2368     LLVM_ON_WIN32=0
2369
2370     ;;
2371   Win32)
2372
2373 cat >>confdefs.h <<\_ACEOF
2374 #define LLVM_ON_WIN32 1
2375 _ACEOF
2376
2377     LLVM_ON_UNIX=0
2378
2379     LLVM_ON_WIN32=1
2380
2381     ;;
2382 esac
2383
2384 { echo "$as_me:$LINENO: checking target architecture" >&5
2385 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2386 if test "${llvm_cv_target_arch+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   case $target in
2390   i?86-*)                 llvm_cv_target_arch="x86" ;;
2391   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2392   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2393   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2394   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2395   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2396   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2397   mips-*)                 llvm_cv_target_arch="Mips" ;;
2398   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2399   xcore-*)                llvm_cv_target_arch="XCore" ;;
2400   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2401   *)                      llvm_cv_target_arch="Unknown" ;;
2402 esac
2403 fi
2404 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2405 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2406
2407 if test "$llvm_cv_target_arch" = "Unknown" ; then
2408   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2409 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2410 fi
2411
2412 # Determine the LLVM native architecture for the target
2413 case "$llvm_cv_target_arch" in
2414     x86)     LLVM_NATIVE_ARCH="X86" ;;
2415     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2416     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2417 esac
2418
2419 ARCH=$llvm_cv_target_arch
2420
2421
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$CC"; then
2436   ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457   { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if test -z "$ac_cv_prog_CC"; then
2467   ac_ct_CC=$CC
2468   # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$ac_ct_CC"; then
2476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_ac_ct_CC="gcc"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2499 else
2500   { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2502 fi
2503
2504   if test "x$ac_ct_CC" = x; then
2505     CC=""
2506   else
2507     case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet.  If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet.  If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517     CC=$ac_ct_CC
2518   fi
2519 else
2520   CC="$ac_cv_prog_CC"
2521 fi
2522
2523 if test -z "$CC"; then
2524           if test -n "$ac_tool_prefix"; then
2525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_CC="${ac_tool_prefix}cc"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2556 else
2557   { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2559 fi
2560
2561
2562   fi
2563 fi
2564 if test -z "$CC"; then
2565   # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   if test -n "$CC"; then
2573   ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575   ac_prog_rejected=no
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584        ac_prog_rejected=yes
2585        continue
2586      fi
2587     ac_cv_prog_CC="cc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 if test $ac_prog_rejected = yes; then
2596   # We found a bogon in the path, so make sure we never use it.
2597   set dummy $ac_cv_prog_CC
2598   shift
2599   if test $# != 0; then
2600     # We chose a different compiler from the bogus one.
2601     # However, it has the same basename, so the bogon will be chosen
2602     # first if we set CC to just the basename; use the full file name.
2603     shift
2604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605   fi
2606 fi
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619 fi
2620 if test -z "$CC"; then
2621   if test -n "$ac_tool_prefix"; then
2622   for ac_prog in cl.exe
2623   do
2624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$CC"; then
2632   ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653   { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660
2661     test -n "$CC" && break
2662   done
2663 fi
2664 if test -z "$CC"; then
2665   ac_ct_CC=$CC
2666   for ac_prog in cl.exe
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -n "$ac_ct_CC"; then
2676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_CC="$ac_prog"
2686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2699 else
2700   { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704
2705   test -n "$ac_ct_CC" && break
2706 done
2707
2708   if test "x$ac_ct_CC" = x; then
2709     CC=""
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet.  If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet.  If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721     CC=$ac_ct_CC
2722   fi
2723 fi
2724
2725 fi
2726
2727
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732    { (exit 1); exit 1; }; }
2733
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compiler --version >&5") 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compiler -v >&5") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compiler -V >&5") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }
2767
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2787 # of exeext.
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2791 #
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort.  b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2796 #
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions.  Remove them first so a
2799 # subsequent execution test works.
2800 ac_rmfiles=
2801 for ac_file in $ac_files
2802 do
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2806   esac
2807 done
2808 rm -f $ac_rmfiles
2809
2810 if { (ac_try="$ac_link_default"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_link_default") 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; then
2820   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2824 # Autoconf.
2825 for ac_file in $ac_files
2826 do
2827   test -f "$ac_file" || continue
2828   case $ac_file in
2829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2830         ;;
2831     [ab].out )
2832         # We found the default executable, but exeext='' is most
2833         # certainly right.
2834         break;;
2835     *.* )
2836         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837         then :; else
2838            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839         fi
2840         # We set ac_cv_exeext here because the later test for it is not
2841         # safe: cross compilers may not add the suffix if given an `-o'
2842         # argument, so we may need to know it at that point already.
2843         # Even if this section looks crufty: it has the advantage of
2844         # actually working.
2845         break;;
2846     * )
2847         break;;
2848   esac
2849 done
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: C compiler cannot create executables
2859 See \`config.log' for more details." >&2;}
2860    { (exit 77); exit 77; }; }
2861 fi
2862
2863 ac_exeext=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2866
2867 # Check that the compiler produces executables we can run.  If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2870 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2871 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2872 # If not cross compiling, check that we can run a simple program.
2873 if test "$cross_compiling" != yes; then
2874   if { ac_try='./$ac_file'
2875   { (case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_try") 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; }; then
2884     cross_compiling=no
2885   else
2886     if test "$cross_compiling" = maybe; then
2887         cross_compiling=yes
2888     else
2889         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2890 If you meant to cross compile, use \`--host'.
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: cannot run C compiled programs.
2893 If you meant to cross compile, use \`--host'.
2894 See \`config.log' for more details." >&2;}
2895    { (exit 1); exit 1; }; }
2896     fi
2897   fi
2898 fi
2899 { echo "$as_me:$LINENO: result: yes" >&5
2900 echo "${ECHO_T}yes" >&6; }
2901
2902 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2903 ac_clean_files=$ac_clean_files_save
2904 # Check that the compiler produces executables we can run.  If not, either
2905 # the compiler is broken, or we cross compile.
2906 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2907 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2908 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2909 echo "${ECHO_T}$cross_compiling" >&6; }
2910
2911 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2912 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2913 if { (ac_try="$ac_link"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_link") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; then
2923   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2924 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2925 # work properly (i.e., refer to `conftest.exe'), while it won't with
2926 # `rm'.
2927 for ac_file in conftest.exe conftest conftest.*; do
2928   test -f "$ac_file" || continue
2929   case $ac_file in
2930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2931     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932           break;;
2933     * ) break;;
2934   esac
2935 done
2936 else
2937   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2940 See \`config.log' for more details." >&2;}
2941    { (exit 1); exit 1; }; }
2942 fi
2943
2944 rm -f conftest$ac_cv_exeext
2945 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2946 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2947
2948 rm -f conftest.$ac_ext
2949 EXEEXT=$ac_cv_exeext
2950 ac_exeext=$EXEEXT
2951 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2953 if test "${ac_cv_objext+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962
2963 int
2964 main ()
2965 {
2966
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.o conftest.obj
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; then
2982   for ac_file in conftest.o conftest.obj conftest.*; do
2983   test -f "$ac_file" || continue;
2984   case $ac_file in
2985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987        break;;
2988   esac
2989 done
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2997 See \`config.log' for more details." >&2;}
2998    { (exit 1); exit 1; }; }
2999 fi
3000
3001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3002 fi
3003 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3004 echo "${ECHO_T}$ac_cv_objext" >&6; }
3005 OBJEXT=$ac_cv_objext
3006 ac_objext=$OBJEXT
3007 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022 #ifndef __GNUC__
3023        choke me
3024 #endif
3025
3026   ;
3027   return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compile") 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; } &&
3054          { ac_try='test -s conftest.$ac_objext'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   ac_compiler_gnu=yes
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069         ac_compiler_gnu=no
3070 fi
3071
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074
3075 fi
3076 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3078 GCC=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CFLAGS=${CFLAGS+set}
3080 ac_save_CFLAGS=$CFLAGS
3081 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3082 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_cc_g+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   ac_save_c_werror_flag=$ac_c_werror_flag
3087    ac_c_werror_flag=yes
3088    ac_cv_prog_cc_g=no
3089    CFLAGS="-g"
3090    cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h.  */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h.  */
3096
3097 int
3098 main ()
3099 {
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_compile") 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } &&
3119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; } &&
3129          { ac_try='test -s conftest.$ac_objext'
3130   { (case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_try") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; }; then
3139   ac_cv_prog_cc_g=yes
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144         CFLAGS=""
3145       cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h.  */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h.  */
3151
3152 int
3153 main ()
3154 {
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_compile") 2>conftest.er1
3168   ac_status=$?
3169   grep -v '^ *+' conftest.er1 >conftest.err
3170   rm -f conftest.er1
3171   cat conftest.err >&5
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; } &&
3184          { ac_try='test -s conftest.$ac_objext'
3185   { (case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_try") 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   :
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199         ac_c_werror_flag=$ac_save_c_werror_flag
3200          CFLAGS="-g"
3201          cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207
3208 int
3209 main ()
3210 {
3211
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; } &&
3240          { ac_try='test -s conftest.$ac_objext'
3241   { (case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_try") 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   ac_cv_prog_cc_g=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265    ac_c_werror_flag=$ac_save_c_werror_flag
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3269 if test "$ac_test_CFLAGS" = set; then
3270   CFLAGS=$ac_save_CFLAGS
3271 elif test $ac_cv_prog_cc_g = yes; then
3272   if test "$GCC" = yes; then
3273     CFLAGS="-g -O2"
3274   else
3275     CFLAGS="-g"
3276   fi
3277 else
3278   if test "$GCC" = yes; then
3279     CFLAGS="-O2"
3280   else
3281     CFLAGS=
3282   fi
3283 fi
3284 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3285 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_cc_c89+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   ac_cv_prog_cc_c89=no
3290 ac_save_CC=$CC
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #include <stdarg.h>
3298 #include <stdio.h>
3299 #include <sys/types.h>
3300 #include <sys/stat.h>
3301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3302 struct buf { int x; };
3303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304 static char *e (p, i)
3305      char **p;
3306      int i;
3307 {
3308   return p[i];
3309 }
3310 static char *f (char * (*g) (char **, int), char **p, ...)
3311 {
3312   char *s;
3313   va_list v;
3314   va_start (v,p);
3315   s = g (p, va_arg (v,int));
3316   va_end (v);
3317   return s;
3318 }
3319
3320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3321    function prototypes and stuff, but not '\xHH' hex character constants.
3322    These don't provoke an error unfortunately, instead are silently treated
3323    as 'x'.  The following induces an error, until -std is added to get
3324    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3325    array size at least.  It's necessary to write '\x00'==0 to get something
3326    that's true only with -std.  */
3327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328
3329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330    inside strings and character constants.  */
3331 #define FOO(x) 'x'
3332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3333
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3338 int argc;
3339 char **argv;
3340 int
3341 main ()
3342 {
3343 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3350 do
3351   CC="$ac_save_CC $ac_arg"
3352   rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_compile") 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367   { (case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372   (eval "$ac_try") 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; } &&
3376          { ac_try='test -s conftest.$ac_objext'
3377   { (case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382   (eval "$ac_try") 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; }; then
3386   ac_cv_prog_cc_c89=$ac_arg
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391
3392 fi
3393
3394 rm -f core conftest.err conftest.$ac_objext
3395   test "x$ac_cv_prog_cc_c89" != "xno" && break
3396 done
3397 rm -f conftest.$ac_ext
3398 CC=$ac_save_CC
3399
3400 fi
3401 # AC_CACHE_VAL
3402 case "x$ac_cv_prog_cc_c89" in
3403   x)
3404     { echo "$as_me:$LINENO: result: none needed" >&5
3405 echo "${ECHO_T}none needed" >&6; } ;;
3406   xno)
3407     { echo "$as_me:$LINENO: result: unsupported" >&5
3408 echo "${ECHO_T}unsupported" >&6; } ;;
3409   *)
3410     CC="$CC $ac_cv_prog_cc_c89"
3411     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3413 esac
3414
3415
3416 ac_ext=c
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3429 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3430 # On Suns, sometimes $CPP names a directory.
3431 if test -n "$CPP" && test -d "$CPP"; then
3432   CPP=
3433 fi
3434 if test -z "$CPP"; then
3435   if test "${ac_cv_prog_CPP+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438       # Double quotes because CPP needs to be expanded
3439     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440     do
3441       ac_preproc_ok=false
3442 for ac_c_preproc_warn_flag in '' yes
3443 do
3444   # Use a header file that comes with gcc, so configuring glibc
3445   # with a fresh cross-compiler works.
3446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447   # <limits.h> exists even on freestanding compilers.
3448   # On the NeXT, cc -E runs the code through the compiler's parser,
3449   # not just through cpp. "Syntax error" is here to catch this case.
3450   cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h.  */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h.  */
3456 #ifdef __STDC__
3457 # include <limits.h>
3458 #else
3459 # include <assert.h>
3460 #endif
3461                      Syntax error
3462 _ACEOF
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } >/dev/null; then
3476   if test -s conftest.err; then
3477     ac_cpp_err=$ac_c_preproc_warn_flag
3478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479   else
3480     ac_cpp_err=
3481   fi
3482 else
3483   ac_cpp_err=yes
3484 fi
3485 if test -z "$ac_cpp_err"; then
3486   :
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491   # Broken: fails on valid input.
3492 continue
3493 fi
3494
3495 rm -f conftest.err conftest.$ac_ext
3496
3497   # OK, works on sane cases.  Now check whether nonexistent headers
3498   # can be detected and how.
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <ac_nonexistent.h>
3506 _ACEOF
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } >/dev/null; then
3520   if test -s conftest.err; then
3521     ac_cpp_err=$ac_c_preproc_warn_flag
3522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523   else
3524     ac_cpp_err=
3525   fi
3526 else
3527   ac_cpp_err=yes
3528 fi
3529 if test -z "$ac_cpp_err"; then
3530   # Broken: success on invalid input.
3531 continue
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536   # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540
3541 rm -f conftest.err conftest.$ac_ext
3542
3543 done
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then
3547   break
3548 fi
3549
3550     done
3551     ac_cv_prog_CPP=$CPP
3552
3553 fi
3554   CPP=$ac_cv_prog_CPP
3555 else
3556   ac_cv_prog_CPP=$CPP
3557 fi
3558 { echo "$as_me:$LINENO: result: $CPP" >&5
3559 echo "${ECHO_T}$CPP" >&6; }
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3562 do
3563   # Use a header file that comes with gcc, so configuring glibc
3564   # with a fresh cross-compiler works.
3565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566   # <limits.h> exists even on freestanding compilers.
3567   # On the NeXT, cc -E runs the code through the compiler's parser,
3568   # not just through cpp. "Syntax error" is here to catch this case.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580                      Syntax error
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589   ac_status=$?
3590   grep -v '^ *+' conftest.er1 >conftest.err
3591   rm -f conftest.er1
3592   cat conftest.err >&5
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } >/dev/null; then
3595   if test -s conftest.err; then
3596     ac_cpp_err=$ac_c_preproc_warn_flag
3597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598   else
3599     ac_cpp_err=
3600   fi
3601 else
3602   ac_cpp_err=yes
3603 fi
3604 if test -z "$ac_cpp_err"; then
3605   :
3606 else
3607   echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610   # Broken: fails on valid input.
3611 continue
3612 fi
3613
3614 rm -f conftest.err conftest.$ac_ext
3615
3616   # OK, works on sane cases.  Now check whether nonexistent headers
3617   # can be detected and how.
3618   cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 #include <ac_nonexistent.h>
3625 _ACEOF
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null; then
3639   if test -s conftest.err; then
3640     ac_cpp_err=$ac_c_preproc_warn_flag
3641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642   else
3643     ac_cpp_err=
3644   fi
3645 else
3646   ac_cpp_err=yes
3647 fi
3648 if test -z "$ac_cpp_err"; then
3649   # Broken: success on invalid input.
3650 continue
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3658 fi
3659
3660 rm -f conftest.err conftest.$ac_ext
3661
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3666   :
3667 else
3668   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3683 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   # Extract the first word of "grep ggrep" to use in msg output
3688 if test -z "$GREP"; then
3689 set dummy grep ggrep; ac_prog_name=$2
3690 if test "${ac_cv_path_GREP+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   ac_path_GREP_found=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_prog in grep ggrep; do
3701   for ac_exec_ext in '' $ac_executable_extensions; do
3702     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3703     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3704     # Check for GNU ac_path_GREP and select it if it is found.
3705   # Check for GNU $ac_path_GREP
3706 case `"$ac_path_GREP" --version 2>&1` in
3707 *GNU*)
3708   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3709 *)
3710   ac_count=0
3711   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712   while :
3713   do
3714     cat "conftest.in" "conftest.in" >"conftest.tmp"
3715     mv "conftest.tmp" "conftest.in"
3716     cp "conftest.in" "conftest.nl"
3717     echo 'GREP' >> "conftest.nl"
3718     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720     ac_count=`expr $ac_count + 1`
3721     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3722       # Best one so far, save it but keep looking for a better one
3723       ac_cv_path_GREP="$ac_path_GREP"
3724       ac_path_GREP_max=$ac_count
3725     fi
3726     # 10*(2^10) chars as input seems more than enough
3727     test $ac_count -gt 10 && break
3728   done
3729   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730 esac
3731
3732
3733     $ac_path_GREP_found && break 3
3734   done
3735 done
3736
3737 done
3738 IFS=$as_save_IFS
3739
3740
3741 fi
3742
3743 GREP="$ac_cv_path_GREP"
3744 if test -z "$GREP"; then
3745   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747    { (exit 1); exit 1; }; }
3748 fi
3749
3750 else
3751   ac_cv_path_GREP=$GREP
3752 fi
3753
3754
3755 fi
3756 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3757 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3758  GREP="$ac_cv_path_GREP"
3759
3760
3761 { echo "$as_me:$LINENO: checking for egrep" >&5
3762 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3763 if test "${ac_cv_path_EGREP+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3767    then ac_cv_path_EGREP="$GREP -E"
3768    else
3769      # Extract the first word of "egrep" to use in msg output
3770 if test -z "$EGREP"; then
3771 set dummy egrep; ac_prog_name=$2
3772 if test "${ac_cv_path_EGREP+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   ac_path_EGREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782   for ac_prog in egrep; do
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3785     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3786     # Check for GNU ac_path_EGREP and select it if it is found.
3787   # Check for GNU $ac_path_EGREP
3788 case `"$ac_path_EGREP" --version 2>&1` in
3789 *GNU*)
3790   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3791 *)
3792   ac_count=0
3793   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3794   while :
3795   do
3796     cat "conftest.in" "conftest.in" >"conftest.tmp"
3797     mv "conftest.tmp" "conftest.in"
3798     cp "conftest.in" "conftest.nl"
3799     echo 'EGREP' >> "conftest.nl"
3800     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802     ac_count=`expr $ac_count + 1`
3803     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3804       # Best one so far, save it but keep looking for a better one
3805       ac_cv_path_EGREP="$ac_path_EGREP"
3806       ac_path_EGREP_max=$ac_count
3807     fi
3808     # 10*(2^10) chars as input seems more than enough
3809     test $ac_count -gt 10 && break
3810   done
3811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3813
3814
3815     $ac_path_EGREP_found && break 3
3816   done
3817 done
3818
3819 done
3820 IFS=$as_save_IFS
3821
3822
3823 fi
3824
3825 EGREP="$ac_cv_path_EGREP"
3826 if test -z "$EGREP"; then
3827   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3829    { (exit 1); exit 1; }; }
3830 fi
3831
3832 else
3833   ac_cv_path_EGREP=$EGREP
3834 fi
3835
3836
3837    fi
3838 fi
3839 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3840 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3841  EGREP="$ac_cv_path_EGREP"
3842
3843
3844 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3846 if test "${ac_cv_header_stdc+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <stdlib.h>
3856 #include <stdarg.h>
3857 #include <string.h>
3858 #include <float.h>
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } &&
3882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3883   { (case "(($ac_try" in
3884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885   *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888   (eval "$ac_try") 2>&5
3889   ac_status=$?
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); }; } &&
3892          { ac_try='test -s conftest.$ac_objext'
3893   { (case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898   (eval "$ac_try") 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; }; then
3902   ac_cv_header_stdc=yes
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907         ac_cv_header_stdc=no
3908 fi
3909
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911
3912 if test $ac_cv_header_stdc = yes; then
3913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <string.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924   $EGREP "memchr" >/dev/null 2>&1; then
3925   :
3926 else
3927   ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <stdlib.h>
3942
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945   $EGREP "free" >/dev/null 2>&1; then
3946   :
3947 else
3948   ac_cv_header_stdc=no
3949 fi
3950 rm -f conftest*
3951
3952 fi
3953
3954 if test $ac_cv_header_stdc = yes; then
3955   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956   if test "$cross_compiling" = yes; then
3957   :
3958 else
3959   cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965 #include <ctype.h>
3966 #include <stdlib.h>
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3970 #else
3971 # define ISLOWER(c) \
3972                    (('a' <= (c) && (c) <= 'i') \
3973                      || ('j' <= (c) && (c) <= 'r') \
3974                      || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976 #endif
3977
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979 int
3980 main ()
3981 {
3982   int i;
3983   for (i = 0; i < 256; i++)
3984     if (XOR (islower (i), ISLOWER (i))
3985         || toupper (i) != TOUPPER (i))
3986       return 2;
3987   return 0;
3988 }
3989 _ACEOF
3990 rm -f conftest$ac_exeext
3991 if { (ac_try="$ac_link"
3992 case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997   (eval "$ac_link") 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001   { (case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006   (eval "$ac_try") 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; }; then
4010   :
4011 else
4012   echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 ( exit $ac_status )
4017 ac_cv_header_stdc=no
4018 fi
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4020 fi
4021
4022
4023 fi
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4028
4029 cat >>confdefs.h <<\_ACEOF
4030 #define STDC_HEADERS 1
4031 _ACEOF
4032
4033 fi
4034
4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046                   inttypes.h stdint.h unistd.h
4047 do
4048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 $ac_includes_default
4061
4062 #include <$ac_header>
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071   (eval "$ac_compile") 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079   { (case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; } &&
4088          { ac_try='test -s conftest.$ac_objext'
4089   { (case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_try") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; }; then
4098   eval "$as_ac_Header=yes"
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103         eval "$as_ac_Header=no"
4104 fi
4105
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 fi
4108 ac_res=`eval echo '${'$as_ac_Header'}'`
4109                { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4112   cat >>confdefs.h <<_ACEOF
4113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4114 _ACEOF
4115
4116 fi
4117
4118 done
4119
4120
4121 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4122 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4123 if test "${ac_cv_c_bigendian+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   # See if sys/param.h defines the BYTE_ORDER macro.
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <sys/types.h>
4134 #include <sys/param.h>
4135
4136 int
4137 main ()
4138 {
4139 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4140  bogus endian macros
4141 #endif
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_compile") 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162   { (case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167   (eval "$ac_try") 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; }; then
4181   # It does; now see whether it defined to BIG_ENDIAN or not.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <sys/types.h>
4189 #include <sys/param.h>
4190
4191 int
4192 main ()
4193 {
4194 #if BYTE_ORDER != BIG_ENDIAN
4195  not big endian
4196 #endif
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } &&
4216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217   { (case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_try") 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; } &&
4226          { ac_try='test -s conftest.$ac_objext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   ac_cv_c_bigendian=yes
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241         ac_cv_c_bigendian=no
4242 fi
4243
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         # It does not; compile a test program.
4250 if test "$cross_compiling" = yes; then
4251   # try to guess the endianness by grepping values into an object file
4252   ac_cv_c_bigendian=unknown
4253   cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4260 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4261 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4262 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4263 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4264 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4265 int
4266 main ()
4267 {
4268  _ascii (); _ebcdic ();
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; } &&
4297          { ac_try='test -s conftest.$ac_objext'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4308   ac_cv_c_bigendian=yes
4309 fi
4310 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4311   if test "$ac_cv_c_bigendian" = unknown; then
4312     ac_cv_c_bigendian=no
4313   else
4314     # finding both strings is unlikely to happen, but who knows?
4315     ac_cv_c_bigendian=unknown
4316   fi
4317 fi
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 else
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 $ac_includes_default
4334 int
4335 main ()
4336 {
4337
4338   /* Are we little or big endian?  From Harbison&Steele.  */
4339   union
4340   {
4341     long int l;
4342     char c[sizeof (long int)];
4343   } u;
4344   u.l = 1;
4345   return u.c[sizeof (long int) - 1] == 1;
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest$ac_exeext
4352 if { (ac_try="$ac_link"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_link") 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4362   { (case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367   (eval "$ac_try") 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; }; then
4371   ac_cv_c_bigendian=no
4372 else
4373   echo "$as_me: program exited with status $ac_status" >&5
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377 ( exit $ac_status )
4378 ac_cv_c_bigendian=yes
4379 fi
4380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4381 fi
4382
4383
4384 fi
4385
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 fi
4388 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4389 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4390 case $ac_cv_c_bigendian in
4391   yes)
4392     ENDIAN=big
4393  ;;
4394   no)
4395     ENDIAN=little
4396  ;;
4397   *)
4398     { { echo "$as_me:$LINENO: error: unknown endianness
4399 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4400 echo "$as_me: error: unknown endianness
4401 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4402    { (exit 1); exit 1; }; } ;;
4403 esac
4404
4405
4406 if test "$cross_compiling" = yes; then
4407   LLVM_CROSS_COMPILING=1
4408
4409
4410 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4411 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4412 if test "${ac_cv_build_exeext+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4416   ac_cv_build_exeext=.exe
4417 else
4418   ac_build_prefix=${build_alias}-
4419
4420   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4421 set dummy ${ac_build_prefix}gcc; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test -n "$BUILD_CC"; then
4428   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445 fi
4446 fi
4447 BUILD_CC=$ac_cv_prog_BUILD_CC
4448 if test -n "$BUILD_CC"; then
4449   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450 echo "${ECHO_T}$BUILD_CC" >&6; }
4451 else
4452   { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4454 fi
4455
4456
4457   if test -z "$BUILD_CC"; then
4458      # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$BUILD_CC"; then
4466   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_prog_BUILD_CC="gcc"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 BUILD_CC=$ac_cv_prog_BUILD_CC
4486 if test -n "$BUILD_CC"; then
4487   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4488 echo "${ECHO_T}$BUILD_CC" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494
4495      if test -z "$BUILD_CC"; then
4496        # Extract the first word of "cc", so it can be a program name with args.
4497 set dummy cc; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$BUILD_CC"; then
4504   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4505 else
4506   ac_prog_rejected=no
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4515        ac_prog_rejected=yes
4516        continue
4517      fi
4518     ac_cv_prog_BUILD_CC="cc"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 if test $ac_prog_rejected = yes; then
4527   # We found a bogon in the path, so make sure we never use it.
4528   set dummy $ac_cv_prog_BUILD_CC
4529   shift
4530   if test $# != 0; then
4531     # We chose a different compiler from the bogus one.
4532     # However, it has the same basename, so the bogon will be chosen
4533     # first if we set BUILD_CC to just the basename; use the full file name.
4534     shift
4535     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4536   fi
4537 fi
4538 fi
4539 fi
4540 BUILD_CC=$ac_cv_prog_BUILD_CC
4541 if test -n "$BUILD_CC"; then
4542   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543 echo "${ECHO_T}$BUILD_CC" >&6; }
4544 else
4545   { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548
4549
4550      fi
4551   fi
4552   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4553 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4554    { (exit 1); exit 1; }; }
4555   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4556   rm -f conftest*
4557   echo 'int main () { return 0; }' > conftest.$ac_ext
4558   ac_cv_build_exeext=
4559   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4560   (eval $ac_build_link) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; then
4564     for file in conftest.*; do
4565       case $file in
4566       *.c | *.o | *.obj | *.dSYM) ;;
4567       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4568       esac
4569     done
4570   else
4571     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4572 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4573    { (exit 1); exit 1; }; }
4574   fi
4575   rm -f conftest*
4576   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4577 fi
4578 fi
4579
4580 BUILD_EXEEXT=""
4581 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4582 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4583 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4584 ac_build_exeext=$BUILD_EXEEXT
4585
4586   ac_build_prefix=${build_alias}-
4587   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4588 set dummy ${ac_build_prefix}g++; ac_word=$2
4589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594   if test -n "$BUILD_CXX"; then
4595   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602   for ac_exec_ext in '' $ac_executable_extensions; do
4603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4604     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606     break 2
4607   fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4615 if test -n "$BUILD_CXX"; then
4616   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4617 echo "${ECHO_T}$BUILD_CXX" >&6; }
4618 else
4619   { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4621 fi
4622
4623
4624   if test -z "$BUILD_CXX"; then
4625      # Extract the first word of "g++", so it can be a program name with args.
4626 set dummy g++; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   if test -n "$BUILD_CXX"; then
4633   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_BUILD_CXX="g++"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4653 if test -n "$BUILD_CXX"; then
4654   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4655 echo "${ECHO_T}$BUILD_CXX" >&6; }
4656 else
4657   { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4659 fi
4660
4661
4662      if test -z "$BUILD_CXX"; then
4663        # Extract the first word of "c++", so it can be a program name with args.
4664 set dummy c++; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   if test -n "$BUILD_CXX"; then
4671   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4672 else
4673   ac_prog_rejected=no
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4682        ac_prog_rejected=yes
4683        continue
4684      fi
4685     ac_cv_prog_BUILD_CXX="c++"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 if test $ac_prog_rejected = yes; then
4694   # We found a bogon in the path, so make sure we never use it.
4695   set dummy $ac_cv_prog_BUILD_CXX
4696   shift
4697   if test $# != 0; then
4698     # We chose a different compiler from the bogus one.
4699     # However, it has the same basename, so the bogon will be chosen
4700     # first if we set BUILD_CXX to just the basename; use the full file name.
4701     shift
4702     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4703   fi
4704 fi
4705 fi
4706 fi
4707 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708 if test -n "$BUILD_CXX"; then
4709   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710 echo "${ECHO_T}$BUILD_CXX" >&6; }
4711 else
4712   { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716
4717      fi
4718   fi
4719 else
4720   LLVM_CROSS_COMPILING=0
4721
4722 fi
4723
4724 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4725   cvsbuild="yes"
4726   optimize="no"
4727   CVSBUILD=CVSBUILD=1
4728
4729 else
4730   cvsbuild="no"
4731   optimize="yes"
4732 fi
4733
4734
4735 # Check whether --enable-optimized was given.
4736 if test "${enable_optimized+set}" = set; then
4737   enableval=$enable_optimized;
4738 else
4739   enableval=$optimize
4740 fi
4741
4742 if test ${enableval} = "no" ; then
4743   ENABLE_OPTIMIZED=
4744
4745 else
4746   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4747
4748 fi
4749
4750 # Check whether --enable-profiling was given.
4751 if test "${enable_profiling+set}" = set; then
4752   enableval=$enable_profiling;
4753 else
4754   enableval="no"
4755 fi
4756
4757 if test ${enableval} = "no" ; then
4758   ENABLE_PROFILING=
4759
4760 else
4761   ENABLE_PROFILING=ENABLE_PROFILING=1
4762
4763 fi
4764
4765 # Check whether --enable-assertions was given.
4766 if test "${enable_assertions+set}" = set; then
4767   enableval=$enable_assertions;
4768 else
4769   enableval="yes"
4770 fi
4771
4772 if test ${enableval} = "yes" ; then
4773   DISABLE_ASSERTIONS=
4774
4775 else
4776   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4777
4778 fi
4779
4780 # Check whether --enable-expensive-checks was given.
4781 if test "${enable_expensive_checks+set}" = set; then
4782   enableval=$enable_expensive_checks;
4783 else
4784   enableval="no"
4785 fi
4786
4787 if test ${enableval} = "yes" ; then
4788   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4789
4790   EXPENSIVE_CHECKS=yes
4791
4792 else
4793   ENABLE_EXPENSIVE_CHECKS=
4794
4795   EXPENSIVE_CHECKS=no
4796
4797 fi
4798
4799 # Check whether --enable-debug-runtime was given.
4800 if test "${enable_debug_runtime+set}" = set; then
4801   enableval=$enable_debug_runtime;
4802 else
4803   enableval=no
4804 fi
4805
4806 if test ${enableval} = "no" ; then
4807   DEBUG_RUNTIME=
4808
4809 else
4810   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4811
4812 fi
4813
4814 # Check whether --enable-jit was given.
4815 if test "${enable_jit+set}" = set; then
4816   enableval=$enable_jit;
4817 else
4818   enableval=default
4819 fi
4820
4821 if test ${enableval} = "no"
4822 then
4823   JIT=
4824
4825 else
4826   case "$llvm_cv_target_arch" in
4827     x86)     TARGET_HAS_JIT=1
4828  ;;
4829     Sparc)   TARGET_HAS_JIT=0
4830  ;;
4831     PowerPC) TARGET_HAS_JIT=1
4832  ;;
4833     x86_64)  TARGET_HAS_JIT=1
4834  ;;
4835     Alpha)   TARGET_HAS_JIT=1
4836  ;;
4837     IA64)    TARGET_HAS_JIT=0
4838  ;;
4839     ARM)     TARGET_HAS_JIT=0
4840  ;;
4841     Mips)    TARGET_HAS_JIT=0
4842  ;;
4843     PIC16)   TARGET_HAS_JIT=0
4844  ;;
4845     XCore)   TARGET_HAS_JIT=0
4846  ;;
4847     MSP430)  TARGET_HAS_JIT=0
4848  ;;
4849     *)       TARGET_HAS_JIT=0
4850  ;;
4851   esac
4852 fi
4853
4854 # Check whether --enable-doxygen was given.
4855 if test "${enable_doxygen+set}" = set; then
4856   enableval=$enable_doxygen;
4857 else
4858   enableval=default
4859 fi
4860
4861 case "$enableval" in
4862   yes) ENABLE_DOXYGEN=1
4863  ;;
4864   no)  ENABLE_DOXYGEN=0
4865  ;;
4866   default) ENABLE_DOXYGEN=0
4867  ;;
4868   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4869 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4870    { (exit 1); exit 1; }; } ;;
4871 esac
4872
4873 # Check whether --enable-threads was given.
4874 if test "${enable_threads+set}" = set; then
4875   enableval=$enable_threads;
4876 else
4877   enableval=default
4878 fi
4879
4880 case "$enableval" in
4881   yes) ENABLE_THREADS=1
4882  ;;
4883   no)  ENABLE_THREADS=0
4884  ;;
4885   default) ENABLE_THREADS=1
4886  ;;
4887   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4889    { (exit 1); exit 1; }; } ;;
4890 esac
4891
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_THREADS $ENABLE_THREADS
4894 _ACEOF
4895
4896
4897 # Check whether --enable-pic was given.
4898 if test "${enable_pic+set}" = set; then
4899   enableval=$enable_pic;
4900 else
4901   enableval=default
4902 fi
4903
4904 case "$enableval" in
4905   yes) ENABLE_PIC=1
4906  ;;
4907   no)  ENABLE_PIC=0
4908  ;;
4909   default) ENABLE_PIC=1
4910  ;;
4911   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4913    { (exit 1); exit 1; }; } ;;
4914 esac
4915
4916 cat >>confdefs.h <<_ACEOF
4917 #define ENABLE_PIC $ENABLE_PIC
4918 _ACEOF
4919
4920
4921 TARGETS_TO_BUILD=""
4922 # Check whether --enable-targets was given.
4923 if test "${enable_targets+set}" = set; then
4924   enableval=$enable_targets;
4925 else
4926   enableval=all
4927 fi
4928
4929 case "$enableval" in
4930   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4931   host-only)
4932     case "$llvm_cv_target_arch" in
4933       x86)     TARGETS_TO_BUILD="X86" ;;
4934       x86_64)  TARGETS_TO_BUILD="X86" ;;
4935       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4936       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4937       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4938       IA64)    TARGETS_TO_BUILD="IA64" ;;
4939       ARM)     TARGETS_TO_BUILD="ARM" ;;
4940       Mips)    TARGETS_TO_BUILD="Mips" ;;
4941       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4942       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4943       XCore)   TARGETS_TO_BUILD="XCore" ;;
4944       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4945       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4946 echo "$as_me: error: Can not set target to build" >&2;}
4947    { (exit 1); exit 1; }; } ;;
4948     esac
4949     ;;
4950   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4951       case "$a_target" in
4952         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4953         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4954         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4955         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4956         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4957         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4958         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4959         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4960         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4961         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4962         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4963         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4964         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4965         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4966         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4967         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970       esac
4971   done
4972   ;;
4973 esac
4974 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4975
4976
4977 # Determine whether we are building LLVM support for the native architecture.
4978 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979 for a_target in $TARGETS_TO_BUILD; do
4980   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4981     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4982
4983 cat >>confdefs.h <<_ACEOF
4984 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4985 _ACEOF
4986
4987   fi
4988 done
4989
4990 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4991 # Targets.def and AsmPrinters.def.
4992 LLVM_ENUM_TARGETS=""
4993 LLVM_ENUM_ASM_PRINTERS=""
4994 for target_to_build in $TARGETS_TO_BUILD; do
4995   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4996   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4997     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4998   fi
4999 done
5000
5001
5002
5003 # Check whether --enable-cbe-printf-a was given.
5004 if test "${enable_cbe_printf_a+set}" = set; then
5005   enableval=$enable_cbe_printf_a;
5006 else
5007   enableval=default
5008 fi
5009
5010 case "$enableval" in
5011   yes) ENABLE_CBE_PRINTF_A=1
5012  ;;
5013   no)  ENABLE_CBE_PRINTF_A=0
5014  ;;
5015   default)  ENABLE_CBE_PRINTF_A=1
5016  ;;
5017   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5018 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5019    { (exit 1); exit 1; }; } ;;
5020 esac
5021
5022 cat >>confdefs.h <<_ACEOF
5023 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5024 _ACEOF
5025
5026
5027
5028 # Check whether --with-llvmgccdir was given.
5029 if test "${with_llvmgccdir+set}" = set; then
5030   withval=$with_llvmgccdir;
5031 else
5032   withval=default
5033 fi
5034
5035 case "$withval" in
5036   default) WITH_LLVMGCCDIR=default ;;
5037   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5038   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5039 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5040    { (exit 1); exit 1; }; } ;;
5041 esac
5042
5043
5044 # Check whether --with-llvmgcc was given.
5045 if test "${with_llvmgcc+set}" = set; then
5046   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5047       WITH_LLVMGCCDIR=""
5048 fi
5049
5050
5051
5052 # Check whether --with-llvmgxx was given.
5053 if test "${with_llvmgxx+set}" = set; then
5054   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5055     WITH_LLVMGCCDIR=""
5056 fi
5057
5058
5059 if test -n "$LLVMGCC"; then
5060    LLVMGCCCOMMAND="$LLVMGCC"
5061 fi
5062
5063 if test -n "$LLVMGXX"; then
5064    LLVMGXXCOMMAND="$LLVMGXX"
5065 fi
5066
5067 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5068    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5069 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5070    { (exit 1); exit 1; }; };
5071 fi
5072
5073 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5074    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5075 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5076    { (exit 1); exit 1; }; };
5077 fi
5078
5079
5080 # Check whether --with-extra-options was given.
5081 if test "${with_extra_options+set}" = set; then
5082   withval=$with_extra_options;
5083 else
5084   withval=default
5085 fi
5086
5087 case "$withval" in
5088   default) EXTRA_OPTIONS= ;;
5089   *) EXTRA_OPTIONS=$withval ;;
5090 esac
5091 EXTRA_OPTIONS=$EXTRA_OPTIONS
5092
5093
5094 # Check whether --enable-bindings was given.
5095 if test "${enable_bindings+set}" = set; then
5096   enableval=$enable_bindings;
5097 else
5098   enableval=default
5099 fi
5100
5101 BINDINGS_TO_BUILD=""
5102 case "$enableval" in
5103   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5104   all ) BINDINGS_TO_BUILD="ocaml" ;;
5105   none | no) BINDINGS_TO_BUILD="" ;;
5106   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5107       case "$a_binding" in
5108         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5109         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5110 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5111    { (exit 1); exit 1; }; } ;;
5112       esac
5113   done
5114   ;;
5115 esac
5116
5117
5118 # Check whether --with-ocaml-libdir was given.
5119 if test "${with_ocaml_libdir+set}" = set; then
5120   withval=$with_ocaml_libdir;
5121 else
5122   withval=auto
5123 fi
5124
5125 case "$withval" in
5126   auto) with_ocaml_libdir="$withval" ;;
5127   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5129 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133
5134 # Check whether --with-binutils-include was given.
5135 if test "${with_binutils_include+set}" = set; then
5136   withval=$with_binutils_include;
5137 else
5138   withval=default
5139 fi
5140
5141 case "$withval" in
5142   default) WITH_BINUTILS_INCDIR=default ;;
5143   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5145 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5149   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5150
5151   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5152      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5153      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5154 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5155    { (exit 1); exit 1; }; };
5156   fi
5157 fi
5158
5159 # Check whether --enable-libffi was given.
5160 if test "${enable_libffi+set}" = set; then
5161   enableval=$enable_libffi;
5162 else
5163   enableval=yes
5164 fi
5165
5166 case "$enableval" in
5167   yes) llvm_cv_enable_libffi="yes" ;;
5168   no)  llvm_cv_enable_libffi="no"  ;;
5169   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5171    { (exit 1); exit 1; }; } ;;
5172 esac
5173
5174 if test "$llvm_cv_os_type" = "Win32" ; then
5175    llvmc_dynamic="yes"
5176 else
5177    llvmc_dynamic="no"
5178 fi
5179
5180 # Check whether --enable-llvmc-dynamic was given.
5181 if test "${enable_llvmc_dynamic+set}" = set; then
5182   enableval=$enable_llvmc_dynamic;
5183 else
5184   enableval=$llvmc_dynamic
5185 fi
5186
5187 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5188    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5189
5190 else
5191    ENABLE_LLVMC_DYNAMIC=
5192
5193 fi
5194
5195 # Check whether --enable-llvmc-dynamic-plugins was given.
5196 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5197   enableval=$enable_llvmc_dynamic_plugins;
5198 else
5199   enableval=yes
5200 fi
5201
5202 if test ${enableval} = "yes" ; then
5203    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5204
5205 else
5206    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5207
5208 fi
5209
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5220   CPP=
5221 fi
5222 if test -z "$CPP"; then
5223   if test "${ac_cv_prog_CPP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226       # Double quotes because CPP needs to be expanded
5227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5228     do
5229       ac_preproc_ok=false
5230 for ac_c_preproc_warn_flag in '' yes
5231 do
5232   # Use a header file that comes with gcc, so configuring glibc
5233   # with a fresh cross-compiler works.
5234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235   # <limits.h> exists even on freestanding compilers.
5236   # On the NeXT, cc -E runs the code through the compiler's parser,
5237   # not just through cpp. "Syntax error" is here to catch this case.
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249                      Syntax error
5250 _ACEOF
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } >/dev/null; then
5264   if test -s conftest.err; then
5265     ac_cpp_err=$ac_c_preproc_warn_flag
5266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267   else
5268     ac_cpp_err=
5269   fi
5270 else
5271   ac_cpp_err=yes
5272 fi
5273 if test -z "$ac_cpp_err"; then
5274   :
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279   # Broken: fails on valid input.
5280 continue
5281 fi
5282
5283 rm -f conftest.err conftest.$ac_ext
5284
5285   # OK, works on sane cases.  Now check whether nonexistent headers
5286   # can be detected and how.
5287   cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 #include <ac_nonexistent.h>
5294 _ACEOF
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5296 case "(($ac_try" in
5297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298   *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } >/dev/null; then
5308   if test -s conftest.err; then
5309     ac_cpp_err=$ac_c_preproc_warn_flag
5310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5311   else
5312     ac_cpp_err=
5313   fi
5314 else
5315   ac_cpp_err=yes
5316 fi
5317 if test -z "$ac_cpp_err"; then
5318   # Broken: success on invalid input.
5319 continue
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324   # Passes both tests.
5325 ac_preproc_ok=:
5326 break
5327 fi
5328
5329 rm -f conftest.err conftest.$ac_ext
5330
5331 done
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5335   break
5336 fi
5337
5338     done
5339     ac_cv_prog_CPP=$CPP
5340
5341 fi
5342   CPP=$ac_cv_prog_CPP
5343 else
5344   ac_cv_prog_CPP=$CPP
5345 fi
5346 { echo "$as_me:$LINENO: result: $CPP" >&5
5347 echo "${ECHO_T}$CPP" >&6; }
5348 ac_preproc_ok=false
5349 for ac_c_preproc_warn_flag in '' yes
5350 do
5351   # Use a header file that comes with gcc, so configuring glibc
5352   # with a fresh cross-compiler works.
5353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354   # <limits.h> exists even on freestanding compilers.
5355   # On the NeXT, cc -E runs the code through the compiler's parser,
5356   # not just through cpp. "Syntax error" is here to catch this case.
5357   cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363 #ifdef __STDC__
5364 # include <limits.h>
5365 #else
5366 # include <assert.h>
5367 #endif
5368                      Syntax error
5369 _ACEOF
5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
5371 case "(($ac_try" in
5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373   *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } >/dev/null; then
5383   if test -s conftest.err; then
5384     ac_cpp_err=$ac_c_preproc_warn_flag
5385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386   else
5387     ac_cpp_err=
5388   fi
5389 else
5390   ac_cpp_err=yes
5391 fi
5392 if test -z "$ac_cpp_err"; then
5393   :
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398   # Broken: fails on valid input.
5399 continue
5400 fi
5401
5402 rm -f conftest.err conftest.$ac_ext
5403
5404   # OK, works on sane cases.  Now check whether nonexistent headers
5405   # can be detected and how.
5406   cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412 #include <ac_nonexistent.h>
5413 _ACEOF
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5415 case "(($ac_try" in
5416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417   *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } >/dev/null; then
5427   if test -s conftest.err; then
5428     ac_cpp_err=$ac_c_preproc_warn_flag
5429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430   else
5431     ac_cpp_err=
5432   fi
5433 else
5434   ac_cpp_err=yes
5435 fi
5436 if test -z "$ac_cpp_err"; then
5437   # Broken: success on invalid input.
5438 continue
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5442
5443   # Passes both tests.
5444 ac_preproc_ok=:
5445 break
5446 fi
5447
5448 rm -f conftest.err conftest.$ac_ext
5449
5450 done
5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452 rm -f conftest.err conftest.$ac_ext
5453 if $ac_preproc_ok; then
5454   :
5455 else
5456   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." >&5
5458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5459 See \`config.log' for more details." >&2;}
5460    { (exit 1); exit 1; }; }
5461 fi
5462
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 if test -n "$ac_tool_prefix"; then
5475   for ac_prog in gcc
5476   do
5477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_CC+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   if test -n "$CC"; then
5485   ac_cv_prog_CC="$CC" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492   for ac_exec_ext in '' $ac_executable_extensions; do
5493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5494     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499 done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 CC=$ac_cv_prog_CC
5505 if test -n "$CC"; then
5506   { echo "$as_me:$LINENO: result: $CC" >&5
5507 echo "${ECHO_T}$CC" >&6; }
5508 else
5509   { echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6; }
5511 fi
5512
5513
5514     test -n "$CC" && break
5515   done
5516 fi
5517 if test -z "$CC"; then
5518   ac_ct_CC=$CC
5519   for ac_prog in gcc
5520 do
5521   # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy $ac_prog; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   if test -n "$ac_ct_CC"; then
5529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536   for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_prog_ac_ct_CC="$ac_prog"
5539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549 if test -n "$ac_ct_CC"; then
5550   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5551 echo "${ECHO_T}$ac_ct_CC" >&6; }
5552 else
5553   { echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6; }
5555 fi
5556
5557
5558   test -n "$ac_ct_CC" && break
5559 done
5560
5561   if test "x$ac_ct_CC" = x; then
5562     CC=""
5563   else
5564     case $cross_compiling:$ac_tool_warned in
5565 yes:)
5566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5567 whose name does not start with the host triplet.  If you think this
5568 configuration is useful to you, please write to autoconf@gnu.org." >&5
5569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5570 whose name does not start with the host triplet.  If you think this
5571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574     CC=$ac_ct_CC
5575   fi
5576 fi
5577
5578
5579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5580 See \`config.log' for more details." >&5
5581 echo "$as_me: error: no acceptable C compiler found in \$PATH
5582 See \`config.log' for more details." >&2;}
5583    { (exit 1); exit 1; }; }
5584
5585 # Provide some information about the compiler.
5586 echo "$as_me:$LINENO: checking for C compiler version" >&5
5587 ac_compiler=`set X $ac_compile; echo $2`
5588 { (ac_try="$ac_compiler --version >&5"
5589 case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_compiler --version >&5") 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }
5598 { (ac_try="$ac_compiler -v >&5"
5599 case "(($ac_try" in
5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601   *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604   (eval "$ac_compiler -v >&5") 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }
5608 { (ac_try="$ac_compiler -V >&5"
5609 case "(($ac_try" in
5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611   *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614   (eval "$ac_compiler -V >&5") 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }
5618
5619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630
5631 int
5632 main ()
5633 {
5634 #ifndef __GNUC__
5635        choke me
5636 #endif
5637
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$ac_compile") 2>conftest.er1
5650   ac_status=$?
5651   grep -v '^ *+' conftest.er1 >conftest.err
5652   rm -f conftest.er1
5653   cat conftest.err >&5
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } &&
5656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5657   { (case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_try") 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; } &&
5666          { ac_try='test -s conftest.$ac_objext'
5667   { (case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_try") 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   ac_compiler_gnu=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681         ac_compiler_gnu=no
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5686
5687 fi
5688 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5690 GCC=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_test_CFLAGS=${CFLAGS+set}
5692 ac_save_CFLAGS=$CFLAGS
5693 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5694 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_cc_g+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   ac_save_c_werror_flag=$ac_c_werror_flag
5699    ac_c_werror_flag=yes
5700    ac_cv_prog_cc_g=no
5701    CFLAGS="-g"
5702    cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732   { (case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737   (eval "$ac_try") 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }; } &&
5741          { ac_try='test -s conftest.$ac_objext'
5742   { (case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_try") 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_cv_prog_cc_g=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756         CFLAGS=""
5757       cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763
5764 int
5765 main ()
5766 {
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_compile") 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; } &&
5796          { ac_try='test -s conftest.$ac_objext'
5797   { (case "(($ac_try" in
5798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799   *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802   (eval "$ac_try") 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   :
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811         ac_c_werror_flag=$ac_save_c_werror_flag
5812          CFLAGS="-g"
5813          cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819
5820 int
5821 main ()
5822 {
5823
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5830 case "(($ac_try" in
5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832   *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835   (eval "$ac_compile") 2>conftest.er1
5836   ac_status=$?
5837   grep -v '^ *+' conftest.er1 >conftest.err
5838   rm -f conftest.er1
5839   cat conftest.err >&5
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5843   { (case "(($ac_try" in
5844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845   *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848   (eval "$ac_try") 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_try") 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862   ac_cv_prog_cc_g=yes
5863 else
5864   echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877    ac_c_werror_flag=$ac_save_c_werror_flag
5878 fi
5879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5880 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5881 if test "$ac_test_CFLAGS" = set; then
5882   CFLAGS=$ac_save_CFLAGS
5883 elif test $ac_cv_prog_cc_g = yes; then
5884   if test "$GCC" = yes; then
5885     CFLAGS="-g -O2"
5886   else
5887     CFLAGS="-g"
5888   fi
5889 else
5890   if test "$GCC" = yes; then
5891     CFLAGS="-O2"
5892   else
5893     CFLAGS=
5894   fi
5895 fi
5896 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5897 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_cc_c89+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   ac_cv_prog_cc_c89=no
5902 ac_save_CC=$CC
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 #include <stdarg.h>
5910 #include <stdio.h>
5911 #include <sys/types.h>
5912 #include <sys/stat.h>
5913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5914 struct buf { int x; };
5915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5916 static char *e (p, i)
5917      char **p;
5918      int i;
5919 {
5920   return p[i];
5921 }
5922 static char *f (char * (*g) (char **, int), char **p, ...)
5923 {
5924   char *s;
5925   va_list v;
5926   va_start (v,p);
5927   s = g (p, va_arg (v,int));
5928   va_end (v);
5929   return s;
5930 }
5931
5932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5933    function prototypes and stuff, but not '\xHH' hex character constants.
5934    These don't provoke an error unfortunately, instead are silently treated
5935    as 'x'.  The following induces an error, until -std is added to get
5936    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5937    array size at least.  It's necessary to write '\x00'==0 to get something
5938    that's true only with -std.  */
5939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5940
5941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5942    inside strings and character constants.  */
5943 #define FOO(x) 'x'
5944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5945
5946 int test (int i, double x);
5947 struct s1 {int (*f) (int a);};
5948 struct s2 {int (*f) (double a);};
5949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5950 int argc;
5951 char **argv;
5952 int
5953 main ()
5954 {
5955 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5956   ;
5957   return 0;
5958 }
5959 _ACEOF
5960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5961         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5962 do
5963   CC="$ac_save_CC $ac_arg"
5964   rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971   (eval "$ac_compile") 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } &&
5978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979   { (case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_try") 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; } &&
5988          { ac_try='test -s conftest.$ac_objext'
5989   { (case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_try") 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998   ac_cv_prog_cc_c89=$ac_arg
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003
6004 fi
6005
6006 rm -f core conftest.err conftest.$ac_objext
6007   test "x$ac_cv_prog_cc_c89" != "xno" && break
6008 done
6009 rm -f conftest.$ac_ext
6010 CC=$ac_save_CC
6011
6012 fi
6013 # AC_CACHE_VAL
6014 case "x$ac_cv_prog_cc_c89" in
6015   x)
6016     { echo "$as_me:$LINENO: result: none needed" >&5
6017 echo "${ECHO_T}none needed" >&6; } ;;
6018   xno)
6019     { echo "$as_me:$LINENO: result: unsupported" >&5
6020 echo "${ECHO_T}unsupported" >&6; } ;;
6021   *)
6022     CC="$CC $ac_cv_prog_cc_c89"
6023     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6025 esac
6026
6027
6028 ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
6034 ac_ext=cpp
6035 ac_cpp='$CXXCPP $CPPFLAGS'
6036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039 if test -z "$CXX"; then
6040   if test -n "$CCC"; then
6041     CXX=$CCC
6042   else
6043     if test -n "$ac_tool_prefix"; then
6044   for ac_prog in g++
6045   do
6046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_CXX+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$CXX"; then
6054   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 CXX=$ac_cv_prog_CXX
6074 if test -n "$CXX"; then
6075   { echo "$as_me:$LINENO: result: $CXX" >&5
6076 echo "${ECHO_T}$CXX" >&6; }
6077 else
6078   { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6080 fi
6081
6082
6083     test -n "$CXX" && break
6084   done
6085 fi
6086 if test -z "$CXX"; then
6087   ac_ct_CXX=$CXX
6088   for ac_prog in g++
6089 do
6090   # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$ac_ct_CXX"; then
6098   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_ac_ct_CXX="$ac_prog"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6118 if test -n "$ac_ct_CXX"; then
6119   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6120 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126
6127   test -n "$ac_ct_CXX" && break
6128 done
6129
6130   if test "x$ac_ct_CXX" = x; then
6131     CXX="g++"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet.  If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6142 esac
6143     CXX=$ac_ct_CXX
6144   fi
6145 fi
6146
6147   fi
6148 fi
6149 # Provide some information about the compiler.
6150 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6151 ac_compiler=`set X $ac_compile; echo $2`
6152 { (ac_try="$ac_compiler --version >&5"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_compiler --version >&5") 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }
6162 { (ac_try="$ac_compiler -v >&5"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_compiler -v >&5") 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }
6172 { (ac_try="$ac_compiler -V >&5"
6173 case "(($ac_try" in
6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175   *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178   (eval "$ac_compiler -V >&5") 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }
6182
6183 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194
6195 int
6196 main ()
6197 {
6198 #ifndef __GNUC__
6199        choke me
6200 #endif
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_compile") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6221   { (case "(($ac_try" in
6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223   *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226   (eval "$ac_try") 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; } &&
6230          { ac_try='test -s conftest.$ac_objext'
6231   { (case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_try") 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   ac_compiler_gnu=yes
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         ac_compiler_gnu=no
6246 fi
6247
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6250
6251 fi
6252 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6253 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6254 GXX=`test $ac_compiler_gnu = yes && echo yes`
6255 ac_test_CXXFLAGS=${CXXFLAGS+set}
6256 ac_save_CXXFLAGS=$CXXFLAGS
6257 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6258 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_cxx_g+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6263    ac_cxx_werror_flag=yes
6264    ac_cv_prog_cxx_g=no
6265    CXXFLAGS="-g"
6266    cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272
6273 int
6274 main ()
6275 {
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_compile") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296   { (case "(($ac_try" in
6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298   *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301   (eval "$ac_try") 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); }; } &&
6305          { ac_try='test -s conftest.$ac_objext'
6306   { (case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_try") 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_cv_prog_cxx_g=yes
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320         CXXFLAGS=""
6321       cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327
6328 int
6329 main ()
6330 {
6331
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_compile") 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; } &&
6360          { ac_try='test -s conftest.$ac_objext'
6361   { (case "(($ac_try" in
6362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363   *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366   (eval "$ac_try") 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   :
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6376          CXXFLAGS="-g"
6377          cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h.  */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h.  */
6383
6384 int
6385 main ()
6386 {
6387
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396   *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399   (eval "$ac_compile") 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } &&
6406          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407   { (case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_try") 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest.$ac_objext'
6417   { (case "(($ac_try" in
6418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419   *) ac_try_echo=$ac_try;;
6420 esac
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422   (eval "$ac_try") 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_prog_cxx_g=yes
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431
6432 fi
6433
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6442 fi
6443 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6444 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6445 if test "$ac_test_CXXFLAGS" = set; then
6446   CXXFLAGS=$ac_save_CXXFLAGS
6447 elif test $ac_cv_prog_cxx_g = yes; then
6448   if test "$GXX" = yes; then
6449     CXXFLAGS="-g -O2"
6450   else
6451     CXXFLAGS="-g"
6452   fi
6453 else
6454   if test "$GXX" = yes; then
6455     CXXFLAGS="-O2"
6456   else
6457     CXXFLAGS=
6458   fi
6459 fi
6460 ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465
6466
6467 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6468 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6469 if test "${lt_cv_path_NM+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$NM"; then
6473   # Let the user override the test.
6474   lt_cv_path_NM="$NM"
6475 else
6476   lt_nm_to_check="${ac_tool_prefix}nm"
6477   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6478     lt_nm_to_check="$lt_nm_to_check nm"
6479   fi
6480   for lt_tmp_nm in $lt_nm_to_check; do
6481     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6482     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6483       IFS="$lt_save_ifs"
6484       test -z "$ac_dir" && ac_dir=.
6485       tmp_nm="$ac_dir/$lt_tmp_nm"
6486       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6487         # Check to see if the nm accepts a BSD-compat flag.
6488         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6489         #   nm: unknown option "B" ignored
6490         # Tru64's nm complains that /dev/null is an invalid object file
6491         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6492         */dev/null* | *'Invalid file or object type'*)
6493           lt_cv_path_NM="$tmp_nm -B"
6494           break
6495           ;;
6496         *)
6497           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6498           */dev/null*)
6499             lt_cv_path_NM="$tmp_nm -p"
6500             break
6501             ;;
6502           *)
6503             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6504             continue # so that we can try to find one that supports BSD flags
6505             ;;
6506           esac
6507           ;;
6508         esac
6509       fi
6510     done
6511     IFS="$lt_save_ifs"
6512   done
6513   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6514 fi
6515 fi
6516 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6517 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6518 NM="$lt_cv_path_NM"
6519
6520
6521
6522 { echo "$as_me:$LINENO: checking for GNU make" >&5
6523 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6524 if test "${llvm_cv_gnu_make_command+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   llvm_cv_gnu_make_command=''
6528  for a in "$MAKE" make gmake gnumake ; do
6529   if test -z "$a" ; then continue ; fi ;
6530   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6531   then
6532    llvm_cv_gnu_make_command=$a ;
6533    break;
6534   fi
6535  done
6536 fi
6537 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6538 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6539  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6540    ifGNUmake='' ;
6541  else
6542    ifGNUmake='#' ;
6543    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6544 echo "${ECHO_T}\"Not found\"" >&6; };
6545  fi
6546
6547
6548 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6550 LN_S=$as_ln_s
6551 if test "$LN_S" = "ln -s"; then
6552   { echo "$as_me:$LINENO: result: yes" >&5
6553 echo "${ECHO_T}yes" >&6; }
6554 else
6555   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6556 echo "${ECHO_T}no, using $LN_S" >&6; }
6557 fi
6558
6559 # Extract the first word of "cmp", so it can be a program name with args.
6560 set dummy cmp; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_CMP+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   case $CMP in
6567   [\\/]* | ?:[\\/]*)
6568   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6569   ;;
6570   *)
6571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6587   ;;
6588 esac
6589 fi
6590 CMP=$ac_cv_path_CMP
6591 if test -n "$CMP"; then
6592   { echo "$as_me:$LINENO: result: $CMP" >&5
6593 echo "${ECHO_T}$CMP" >&6; }
6594 else
6595   { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 fi
6598
6599
6600 # Extract the first word of "cp", so it can be a program name with args.
6601 set dummy cp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CP+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   case $CP in
6608   [\\/]* | ?:[\\/]*)
6609   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6610   ;;
6611   *)
6612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617   for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6628   ;;
6629 esac
6630 fi
6631 CP=$ac_cv_path_CP
6632 if test -n "$CP"; then
6633   { echo "$as_me:$LINENO: result: $CP" >&5
6634 echo "${ECHO_T}$CP" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 # Extract the first word of "date", so it can be a program name with args.
6642 set dummy date; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_DATE+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $DATE in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6669   ;;
6670 esac
6671 fi
6672 DATE=$ac_cv_path_DATE
6673 if test -n "$DATE"; then
6674   { echo "$as_me:$LINENO: result: $DATE" >&5
6675 echo "${ECHO_T}$DATE" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 # Extract the first word of "find", so it can be a program name with args.
6683 set dummy find; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_FIND+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $FIND in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6710   ;;
6711 esac
6712 fi
6713 FIND=$ac_cv_path_FIND
6714 if test -n "$FIND"; then
6715   { echo "$as_me:$LINENO: result: $FIND" >&5
6716 echo "${ECHO_T}$FIND" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 # Extract the first word of "grep", so it can be a program name with args.
6724 set dummy grep; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_GREP+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $GREP in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6751   ;;
6752 esac
6753 fi
6754 GREP=$ac_cv_path_GREP
6755 if test -n "$GREP"; then
6756   { echo "$as_me:$LINENO: result: $GREP" >&5
6757 echo "${ECHO_T}$GREP" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 # Extract the first word of "mkdir", so it can be a program name with args.
6765 set dummy mkdir; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_MKDIR+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   case $MKDIR in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6792   ;;
6793 esac
6794 fi
6795 MKDIR=$ac_cv_path_MKDIR
6796 if test -n "$MKDIR"; then
6797   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6798 echo "${ECHO_T}$MKDIR" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 # Extract the first word of "mv", so it can be a program name with args.
6806 set dummy mv; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MV+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   case $MV in
6813   [\\/]* | ?:[\\/]*)
6814   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6815   ;;
6816   *)
6817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822   for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6833   ;;
6834 esac
6835 fi
6836 MV=$ac_cv_path_MV
6837 if test -n "$MV"; then
6838   { echo "$as_me:$LINENO: result: $MV" >&5
6839 echo "${ECHO_T}$MV" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 if test -n "$ac_tool_prefix"; then
6847   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_prog_RANLIB+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   if test -n "$RANLIB"; then
6855   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 RANLIB=$ac_cv_prog_RANLIB
6875 if test -n "$RANLIB"; then
6876   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6877 echo "${ECHO_T}$RANLIB" >&6; }
6878 else
6879   { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_RANLIB"; then
6886   ac_ct_RANLIB=$RANLIB
6887   # Extract the first word of "ranlib", so it can be a program name with args.
6888 set dummy ranlib; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   if test -n "$ac_ct_RANLIB"; then
6895   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902   for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_prog_ac_ct_RANLIB="ranlib"
6905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6915 if test -n "$ac_ct_RANLIB"; then
6916   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6917 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6918 else
6919   { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6921 fi
6922
6923   if test "x$ac_ct_RANLIB" = x; then
6924     RANLIB=":"
6925   else
6926     case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6929 whose name does not start with the host triplet.  If you think this
6930 configuration is useful to you, please write to autoconf@gnu.org." >&5
6931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6932 whose name does not start with the host triplet.  If you think this
6933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936     RANLIB=$ac_ct_RANLIB
6937   fi
6938 else
6939   RANLIB="$ac_cv_prog_RANLIB"
6940 fi
6941
6942 # Extract the first word of "rm", so it can be a program name with args.
6943 set dummy rm; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_RM+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   case $RM in
6950   [\\/]* | ?:[\\/]*)
6951   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6952   ;;
6953   *)
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6970   ;;
6971 esac
6972 fi
6973 RM=$ac_cv_path_RM
6974 if test -n "$RM"; then
6975   { echo "$as_me:$LINENO: result: $RM" >&5
6976 echo "${ECHO_T}$RM" >&6; }
6977 else
6978   { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6980 fi
6981
6982
6983 # Extract the first word of "sed", so it can be a program name with args.
6984 set dummy sed; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_SED+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   case $SED in
6991   [\\/]* | ?:[\\/]*)
6992   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6993   ;;
6994   *)
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7011   ;;
7012 esac
7013 fi
7014 SED=$ac_cv_path_SED
7015 if test -n "$SED"; then
7016   { echo "$as_me:$LINENO: result: $SED" >&5
7017 echo "${ECHO_T}$SED" >&6; }
7018 else
7019   { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023
7024 # Extract the first word of "tar", so it can be a program name with args.
7025 set dummy tar; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_TAR+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $TAR in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7052   ;;
7053 esac
7054 fi
7055 TAR=$ac_cv_path_TAR
7056 if test -n "$TAR"; then
7057   { echo "$as_me:$LINENO: result: $TAR" >&5
7058 echo "${ECHO_T}$TAR" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 # Extract the first word of "pwd", so it can be a program name with args.
7066 set dummy pwd; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_BINPWD+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   case $BINPWD in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7093   ;;
7094 esac
7095 fi
7096 BINPWD=$ac_cv_path_BINPWD
7097 if test -n "$BINPWD"; then
7098   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7099 echo "${ECHO_T}$BINPWD" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105
7106
7107 # Extract the first word of "Graphviz", so it can be a program name with args.
7108 set dummy Graphviz; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   case $GRAPHVIZ in
7115   [\\/]* | ?:[\\/]*)
7116   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7117   ;;
7118   *)
7119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122   IFS=$as_save_IFS
7123   test -z "$as_dir" && as_dir=.
7124   for ac_exec_ext in '' $ac_executable_extensions; do
7125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129   fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7135   ;;
7136 esac
7137 fi
7138 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7139 if test -n "$GRAPHVIZ"; then
7140   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7141 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7142 else
7143   { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7145 fi
7146
7147
7148 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7149
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_GRAPHVIZ 1
7152 _ACEOF
7153
7154     if test "$llvm_cv_os_type" = "MingW" ; then
7155     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7156   fi
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7160 _ACEOF
7161
7162 fi
7163 # Extract the first word of "dot", so it can be a program name with args.
7164 set dummy dot; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_DOT+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $DOT in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7191   ;;
7192 esac
7193 fi
7194 DOT=$ac_cv_path_DOT
7195 if test -n "$DOT"; then
7196   { echo "$as_me:$LINENO: result: $DOT" >&5
7197 echo "${ECHO_T}$DOT" >&6; }
7198 else
7199   { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7202
7203
7204 if test "$DOT" != "echo dot" ; then
7205
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_DOT 1
7208 _ACEOF
7209
7210     if test "$llvm_cv_os_type" = "MingW" ; then
7211     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212   fi
7213
7214 cat >>confdefs.h <<_ACEOF
7215 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7216 _ACEOF
7217
7218 fi
7219 for ac_prog in gv gsview32
7220 do
7221   # Extract the first word of "$ac_prog", so it can be a program name with args.
7222 set dummy $ac_prog; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GV+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $GV in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248   ;;
7249 esac
7250 fi
7251 GV=$ac_cv_path_GV
7252 if test -n "$GV"; then
7253   { echo "$as_me:$LINENO: result: $GV" >&5
7254 echo "${ECHO_T}$GV" >&6; }
7255 else
7256   { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7258 fi
7259
7260
7261   test -n "$GV" && break
7262 done
7263 test -n "$GV" || GV="echo gv"
7264
7265 if test "$GV" != "echo gv" ; then
7266
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_GV 1
7269 _ACEOF
7270
7271     if test "$llvm_cv_os_type" = "MingW" ; then
7272     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7273   fi
7274
7275 cat >>confdefs.h <<_ACEOF
7276 #define LLVM_PATH_GV "$GV${EXEEXT}"
7277 _ACEOF
7278
7279 fi
7280 # Extract the first word of "dotty", so it can be a program name with args.
7281 set dummy dotty; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_DOTTY+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   case $DOTTY in
7288   [\\/]* | ?:[\\/]*)
7289   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7290   ;;
7291   *)
7292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297   for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7308   ;;
7309 esac
7310 fi
7311 DOTTY=$ac_cv_path_DOTTY
7312 if test -n "$DOTTY"; then
7313   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7314 echo "${ECHO_T}$DOTTY" >&6; }
7315 else
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 fi
7319
7320
7321 if test "$DOTTY" != "echo dotty" ; then
7322
7323 cat >>confdefs.h <<\_ACEOF
7324 #define HAVE_DOTTY 1
7325 _ACEOF
7326
7327     if test "$llvm_cv_os_type" = "MingW" ; then
7328     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7329   fi
7330
7331 cat >>confdefs.h <<_ACEOF
7332 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7333 _ACEOF
7334
7335 fi
7336
7337
7338 # Extract the first word of "perl", so it can be a program name with args.
7339 set dummy perl; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_PERL+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   case $PERL in
7346   [\\/]* | ?:[\\/]*)
7347   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7348   ;;
7349   *)
7350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7366   ;;
7367 esac
7368 fi
7369 PERL=$ac_cv_path_PERL
7370 if test -n "$PERL"; then
7371   { echo "$as_me:$LINENO: result: $PERL" >&5
7372 echo "${ECHO_T}$PERL" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379 if test "$PERL" != "none"; then
7380   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7381 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7382   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7383     { echo "$as_me:$LINENO: result: yes" >&5
7384 echo "${ECHO_T}yes" >&6; }
7385   else
7386     PERL=none
7387     { echo "$as_me:$LINENO: result: not found" >&5
7388 echo "${ECHO_T}not found" >&6; }
7389   fi
7390 fi
7391
7392
7393 if test x"$PERL" = xnone; then
7394    HAVE_PERL=0
7395
7396    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7397 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7398    { (exit 1); exit 1; }; }
7399 else
7400    HAVE_PERL=1
7401
7402 fi
7403
7404 # Find a good install program.  We prefer a C program (faster),
7405 # so one script is as good as another.  But avoid the broken or
7406 # incompatible versions:
7407 # SysV /etc/install, /usr/sbin/install
7408 # SunOS /usr/etc/install
7409 # IRIX /sbin/install
7410 # AIX /bin/install
7411 # AmigaOS /C/install, which installs bootblocks on floppy discs
7412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7415 # OS/2's system install, which has a completely different semantic
7416 # ./install, which can be erroneously created by make from ./install.sh.
7417 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7418 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7419 if test -z "$INSTALL"; then
7420 if test "${ac_cv_path_install+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   # Account for people who put trailing slashes in PATH elements.
7429 case $as_dir/ in
7430   ./ | .// | /cC/* | \
7431   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7432   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7433   /usr/ucb/* ) ;;
7434   *)
7435     # OSF1 and SCO ODT 3.0 have their own names for install.
7436     # Don't use installbsd from OSF since it installs stuff as root
7437     # by default.
7438     for ac_prog in ginstall scoinst install; do
7439       for ac_exec_ext in '' $ac_executable_extensions; do
7440         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7441           if test $ac_prog = install &&
7442             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7443             # AIX install.  It has an incompatible calling convention.
7444             :
7445           elif test $ac_prog = install &&
7446             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447             # program-specific install script used by HP pwplus--don't use.
7448             :
7449           else
7450             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7451             break 3
7452           fi
7453         fi
7454       done
7455     done
7456     ;;
7457 esac
7458 done
7459 IFS=$as_save_IFS
7460
7461
7462 fi
7463   if test "${ac_cv_path_install+set}" = set; then
7464     INSTALL=$ac_cv_path_install
7465   else
7466     # As a last resort, use the slow shell script.  Don't cache a
7467     # value for INSTALL within a source directory, because that will
7468     # break other packages using the cache if that directory is
7469     # removed, or if the value is a relative name.
7470     INSTALL=$ac_install_sh
7471   fi
7472 fi
7473 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7474 echo "${ECHO_T}$INSTALL" >&6; }
7475
7476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7477 # It thinks the first close brace ends the variable substitution.
7478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7479
7480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7481
7482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7483
7484
7485 # Extract the first word of "bzip2", so it can be a program name with args.
7486 set dummy bzip2; ac_word=$2
7487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489 if test "${ac_cv_path_BZIP2+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   case $BZIP2 in
7493   [\\/]* | ?:[\\/]*)
7494   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7495   ;;
7496   *)
7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502   for ac_exec_ext in '' $ac_executable_extensions; do
7503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512   ;;
7513 esac
7514 fi
7515 BZIP2=$ac_cv_path_BZIP2
7516 if test -n "$BZIP2"; then
7517   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7518 echo "${ECHO_T}$BZIP2" >&6; }
7519 else
7520   { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7522 fi
7523
7524
7525 # Extract the first word of "doxygen", so it can be a program name with args.
7526 set dummy doxygen; ac_word=$2
7527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   case $DOXYGEN in
7533   [\\/]* | ?:[\\/]*)
7534   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7535   ;;
7536   *)
7537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542   for ac_exec_ext in '' $ac_executable_extensions; do
7543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7544     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552   ;;
7553 esac
7554 fi
7555 DOXYGEN=$ac_cv_path_DOXYGEN
7556 if test -n "$DOXYGEN"; then
7557   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7558 echo "${ECHO_T}$DOXYGEN" >&6; }
7559 else
7560   { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7562 fi
7563
7564
7565 # Extract the first word of "groff", so it can be a program name with args.
7566 set dummy groff; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GROFF+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   case $GROFF in
7573   [\\/]* | ?:[\\/]*)
7574   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7575   ;;
7576   *)
7577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582   for ac_exec_ext in '' $ac_executable_extensions; do
7583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592   ;;
7593 esac
7594 fi
7595 GROFF=$ac_cv_path_GROFF
7596 if test -n "$GROFF"; then
7597   { echo "$as_me:$LINENO: result: $GROFF" >&5
7598 echo "${ECHO_T}$GROFF" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7602 fi
7603
7604
7605 # Extract the first word of "gzip", so it can be a program name with args.
7606 set dummy gzip; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_path_GZIP+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   case $GZIP in
7613   [\\/]* | ?:[\\/]*)
7614   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7615   ;;
7616   *)
7617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622   for ac_exec_ext in '' $ac_executable_extensions; do
7623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7624     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626     break 2
7627   fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632   ;;
7633 esac
7634 fi
7635 GZIP=$ac_cv_path_GZIP
7636 if test -n "$GZIP"; then
7637   { echo "$as_me:$LINENO: result: $GZIP" >&5
7638 echo "${ECHO_T}$GZIP" >&6; }
7639 else
7640   { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7642 fi
7643
7644
7645 # Extract the first word of "pod2html", so it can be a program name with args.
7646 set dummy pod2html; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_POD2HTML+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   case $POD2HTML in
7653   [\\/]* | ?:[\\/]*)
7654   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7655   ;;
7656   *)
7657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672   ;;
7673 esac
7674 fi
7675 POD2HTML=$ac_cv_path_POD2HTML
7676 if test -n "$POD2HTML"; then
7677   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7678 echo "${ECHO_T}$POD2HTML" >&6; }
7679 else
7680   { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 fi
7683
7684
7685 # Extract the first word of "pod2man", so it can be a program name with args.
7686 set dummy pod2man; ac_word=$2
7687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689 if test "${ac_cv_path_POD2MAN+set}" = set; then
7690   echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692   case $POD2MAN in
7693   [\\/]* | ?:[\\/]*)
7694   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7695   ;;
7696   *)
7697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700   IFS=$as_save_IFS
7701   test -z "$as_dir" && as_dir=.
7702   for ac_exec_ext in '' $ac_executable_extensions; do
7703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7704     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712   ;;
7713 esac
7714 fi
7715 POD2MAN=$ac_cv_path_POD2MAN
7716 if test -n "$POD2MAN"; then
7717   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7718 echo "${ECHO_T}$POD2MAN" >&6; }
7719 else
7720   { echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6; }
7722 fi
7723
7724
7725 # Extract the first word of "runtest", so it can be a program name with args.
7726 set dummy runtest; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_RUNTEST+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   case $RUNTEST in
7733   [\\/]* | ?:[\\/]*)
7734   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7735   ;;
7736   *)
7737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752   ;;
7753 esac
7754 fi
7755 RUNTEST=$ac_cv_path_RUNTEST
7756 if test -n "$RUNTEST"; then
7757   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7758 echo "${ECHO_T}$RUNTEST" >&6; }
7759 else
7760   { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7762 fi
7763
7764
7765
7766 no_itcl=true
7767 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7768 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7769
7770 # Check whether --with-tclinclude was given.
7771 if test "${with_tclinclude+set}" = set; then
7772   withval=$with_tclinclude; with_tclinclude=${withval}
7773 else
7774   with_tclinclude=''
7775 fi
7776
7777 if test "${ac_cv_path_tclsh+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780
7781 if test x"${with_tclinclude}" != x ; then
7782   if test -f ${with_tclinclude}/tclsh ; then
7783     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7784   elif test -f ${with_tclinclude}/src/tclsh ; then
7785     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7786   else
7787     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7788 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7789    { (exit 1); exit 1; }; }
7790   fi
7791 fi
7792
7793 if test x"${ac_cv_path_tclsh}" = x ; then
7794   { echo "$as_me:$LINENO: result: none" >&5
7795 echo "${ECHO_T}none" >&6; }
7796   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
7797 do
7798   # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_TCLSH+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   case $TCLSH in
7806   [\\/]* | ?:[\\/]*)
7807   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7808   ;;
7809   *)
7810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825   ;;
7826 esac
7827 fi
7828 TCLSH=$ac_cv_path_TCLSH
7829 if test -n "$TCLSH"; then
7830   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7831 echo "${ECHO_T}$TCLSH" >&6; }
7832 else
7833   { echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6; }
7835 fi
7836
7837
7838   test -n "$TCLSH" && break
7839 done
7840
7841   if test x"${TCLSH}" = x ; then
7842     ac_cv_path_tclsh='';
7843   else
7844     ac_cv_path_tclsh="${TCLSH}";
7845   fi
7846 else
7847   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7848 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7849   TCLSH="${ac_cv_path_tclsh}"
7850
7851 fi
7852
7853 fi
7854
7855 # Extract the first word of "zip", so it can be a program name with args.
7856 set dummy zip; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_path_ZIP+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   case $ZIP in
7863   [\\/]* | ?:[\\/]*)
7864   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7865   ;;
7866   *)
7867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872   for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882   ;;
7883 esac
7884 fi
7885 ZIP=$ac_cv_path_ZIP
7886 if test -n "$ZIP"; then
7887   { echo "$as_me:$LINENO: result: $ZIP" >&5
7888 echo "${ECHO_T}$ZIP" >&6; }
7889 else
7890   { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7892 fi
7893
7894
7895 for ac_prog in ocamlc
7896 do
7897   # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_OCAMLC+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   case $OCAMLC in
7905   [\\/]* | ?:[\\/]*)
7906   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7907   ;;
7908   *)
7909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914   for ac_exec_ext in '' $ac_executable_extensions; do
7915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924   ;;
7925 esac
7926 fi
7927 OCAMLC=$ac_cv_path_OCAMLC
7928 if test -n "$OCAMLC"; then
7929   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7930 echo "${ECHO_T}$OCAMLC" >&6; }
7931 else
7932   { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7934 fi
7935
7936
7937   test -n "$OCAMLC" && break
7938 done
7939
7940 for ac_prog in ocamlopt
7941 do
7942   # Extract the first word of "$ac_prog", so it can be a program name with args.
7943 set dummy $ac_prog; ac_word=$2
7944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7946 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   case $OCAMLOPT in
7950   [\\/]* | ?:[\\/]*)
7951   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7952   ;;
7953   *)
7954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959   for ac_exec_ext in '' $ac_executable_extensions; do
7960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7961     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969   ;;
7970 esac
7971 fi
7972 OCAMLOPT=$ac_cv_path_OCAMLOPT
7973 if test -n "$OCAMLOPT"; then
7974   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7975 echo "${ECHO_T}$OCAMLOPT" >&6; }
7976 else
7977   { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7979 fi
7980
7981
7982   test -n "$OCAMLOPT" && break
7983 done
7984
7985 for ac_prog in ocamldep
7986 do
7987   # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy $ac_prog; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   case $OCAMLDEP in
7995   [\\/]* | ?:[\\/]*)
7996   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7997   ;;
7998   *)
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004   for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014   ;;
8015 esac
8016 fi
8017 OCAMLDEP=$ac_cv_path_OCAMLDEP
8018 if test -n "$OCAMLDEP"; then
8019   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8020 echo "${ECHO_T}$OCAMLDEP" >&6; }
8021 else
8022   { echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6; }
8024 fi
8025
8026
8027   test -n "$OCAMLDEP" && break
8028 done
8029
8030 for ac_prog in ocamldoc
8031 do
8032   # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8036 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   case $OCAMLDOC in
8040   [\\/]* | ?:[\\/]*)
8041   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8042   ;;
8043   *)
8044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047   IFS=$as_save_IFS
8048   test -z "$as_dir" && as_dir=.
8049   for ac_exec_ext in '' $ac_executable_extensions; do
8050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8051     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059   ;;
8060 esac
8061 fi
8062 OCAMLDOC=$ac_cv_path_OCAMLDOC
8063 if test -n "$OCAMLDOC"; then
8064   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8065 echo "${ECHO_T}$OCAMLDOC" >&6; }
8066 else
8067   { echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6; }
8069 fi
8070
8071
8072   test -n "$OCAMLDOC" && break
8073 done
8074
8075 for ac_prog in gas as
8076 do
8077   # Extract the first word of "$ac_prog", so it can be a program name with args.
8078 set dummy $ac_prog; ac_word=$2
8079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081 if test "${ac_cv_path_GAS+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   case $GAS in
8085   [\\/]* | ?:[\\/]*)
8086   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8087   ;;
8088   *)
8089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094   for ac_exec_ext in '' $ac_executable_extensions; do
8095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8096     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104   ;;
8105 esac
8106 fi
8107 GAS=$ac_cv_path_GAS
8108 if test -n "$GAS"; then
8109   { echo "$as_me:$LINENO: result: $GAS" >&5
8110 echo "${ECHO_T}$GAS" >&6; }
8111 else
8112   { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8114 fi
8115
8116
8117   test -n "$GAS" && break
8118 done
8119
8120
8121 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8122 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8123 if test "${llvm_cv_link_use_r+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126    ac_ext=c
8127 ac_cpp='$CPP $CPPFLAGS'
8128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132   oldcflags="$CFLAGS"
8133   CFLAGS="$CFLAGS -Wl,-R."
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140
8141 int
8142 main ()
8143 {
8144 int main() { return 0; }
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext conftest$ac_exeext
8150 if { (ac_try="$ac_link"
8151 case "(($ac_try" in
8152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153   *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156   (eval "$ac_link") 2>conftest.er1
8157   ac_status=$?
8158   grep -v '^ *+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } &&
8163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8164   { (case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169   (eval "$ac_try") 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; } &&
8173          { ac_try='test -s conftest$ac_exeext'
8174   { (case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179   (eval "$ac_try") 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   llvm_cv_link_use_r=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188         llvm_cv_link_use_r=no
8189 fi
8190
8191 rm -f core conftest.err conftest.$ac_objext \
8192       conftest$ac_exeext conftest.$ac_ext
8193   CFLAGS="$oldcflags"
8194   ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200
8201 fi
8202 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8203 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8204 if test "$llvm_cv_link_use_r" = yes ; then
8205
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_LINK_R 1
8208 _ACEOF
8209
8210   fi
8211
8212
8213 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8214 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8215 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218    ac_ext=c
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224   oldcflags="$CFLAGS"
8225   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 int
8234 main ()
8235 {
8236 int main() { return 0; }
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_link") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest$ac_exeext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   llvm_cv_link_use_export_dynamic=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280         llvm_cv_link_use_export_dynamic=no
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext \
8284       conftest$ac_exeext conftest.$ac_ext
8285   CFLAGS="$oldcflags"
8286   ac_ext=c
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291
8292
8293 fi
8294 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8295 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8296 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_LINK_EXPORT_DYNAMIC 1
8300 _ACEOF
8301
8302   fi
8303
8304
8305
8306
8307 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8308 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8309 if test "${ac_cv_c_const+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318
8319 int
8320 main ()
8321 {
8322 /* FIXME: Include the comments suggested by Paul. */
8323 #ifndef __cplusplus
8324   /* Ultrix mips cc rejects this.  */
8325   typedef int charset[2];
8326   const charset x;
8327   /* SunOS 4.1.1 cc rejects this.  */
8328   char const *const *ccp;
8329   char **p;
8330   /* NEC SVR4.0.2 mips cc rejects this.  */
8331   struct point {int x, y;};
8332   static struct point const zero = {0,0};
8333   /* AIX XL C 1.02.0.0 rejects this.
8334      It does not let you subtract one const X* pointer from another in
8335      an arm of an if-expression whose if-part is not a constant
8336      expression */
8337   const char *g = "string";
8338   ccp = &g + (g ? g-g : 0);
8339   /* HPUX 7.0 cc rejects these. */
8340   ++ccp;
8341   p = (char**) ccp;
8342   ccp = (char const *const *) p;
8343   { /* SCO 3.2v4 cc rejects this.  */
8344     char *t;
8345     char const *s = 0 ? (char *) 0 : (char const *) 0;
8346
8347     *t++ = 0;
8348     if (s) return 0;
8349   }
8350   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8351     int x[] = {25, 17};
8352     const int *foo = &x[0];
8353     ++foo;
8354   }
8355   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8356     typedef const int *iptr;
8357     iptr p = 0;
8358     ++p;
8359   }
8360   { /* AIX XL C 1.02.0.0 rejects this saying
8361        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8362     struct s { int j; const int *ap[3]; };
8363     struct s *b; b->j = 5;
8364   }
8365   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8366     const int foo = 10;
8367     if (!foo) return 0;
8368   }
8369   return !x[0] && !zero.x;
8370 #endif
8371
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_compile") 2>conftest.er1
8384   ac_status=$?
8385   grep -v '^ *+' conftest.er1 >conftest.err
8386   rm -f conftest.er1
8387   cat conftest.err >&5
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391   { (case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_try") 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest.$ac_objext'
8401   { (case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_try") 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_c_const=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_c_const=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8421 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8422 if test $ac_cv_c_const = no; then
8423
8424 cat >>confdefs.h <<\_ACEOF
8425 #define const
8426 _ACEOF
8427
8428 fi
8429
8430
8431
8432
8433
8434
8435 ac_header_dirent=no
8436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8437   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8438 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 #include <sys/types.h>
8450 #include <$ac_hdr>
8451
8452 int
8453 main ()
8454 {
8455 if ((DIR *) 0)
8456 return 0;
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_compile") 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476   { (case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_try") 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest.$ac_objext'
8486   { (case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491   (eval "$ac_try") 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   eval "$as_ac_Header=yes"
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500         eval "$as_ac_Header=no"
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 ac_res=`eval echo '${'$as_ac_Header'}'`
8506                { echo "$as_me:$LINENO: result: $ac_res" >&5
8507 echo "${ECHO_T}$ac_res" >&6; }
8508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509   cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8511 _ACEOF
8512
8513 ac_header_dirent=$ac_hdr; break
8514 fi
8515
8516 done
8517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8518 if test $ac_header_dirent = dirent.h; then
8519   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8521 if test "${ac_cv_search_opendir+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_func_search_save_LIBS=$LIBS
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 /* Override any GCC internal prototype to avoid an error.
8533    Use char because int might match the return type of a GCC
8534    builtin and then its argument prototype would still apply.  */
8535 #ifdef __cplusplus
8536 extern "C"
8537 #endif
8538 char opendir ();
8539 int
8540 main ()
8541 {
8542 return opendir ();
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 for ac_lib in '' dir; do
8548   if test -z "$ac_lib"; then
8549     ac_res="none required"
8550   else
8551     ac_res=-l$ac_lib
8552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8553   fi
8554   rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561   (eval "$ac_link") 2>conftest.er1
8562   ac_status=$?
8563   grep -v '^ *+' conftest.er1 >conftest.err
8564   rm -f conftest.er1
8565   cat conftest.err >&5
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } &&
8568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8569   { (case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_try") 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; } &&
8578          { ac_try='test -s conftest$ac_exeext'
8579   { (case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_try") 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; }; then
8588   ac_cv_search_opendir=$ac_res
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593
8594 fi
8595
8596 rm -f core conftest.err conftest.$ac_objext \
8597       conftest$ac_exeext
8598   if test "${ac_cv_search_opendir+set}" = set; then
8599   break
8600 fi
8601 done
8602 if test "${ac_cv_search_opendir+set}" = set; then
8603   :
8604 else
8605   ac_cv_search_opendir=no
8606 fi
8607 rm conftest.$ac_ext
8608 LIBS=$ac_func_search_save_LIBS
8609 fi
8610 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8611 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8612 ac_res=$ac_cv_search_opendir
8613 if test "$ac_res" != no; then
8614   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8615
8616 fi
8617
8618 else
8619   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8621 if test "${ac_cv_search_opendir+set}" = set; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   ac_func_search_save_LIBS=$LIBS
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 /* Override any GCC internal prototype to avoid an error.
8633    Use char because int might match the return type of a GCC
8634    builtin and then its argument prototype would still apply.  */
8635 #ifdef __cplusplus
8636 extern "C"
8637 #endif
8638 char opendir ();
8639 int
8640 main ()
8641 {
8642 return opendir ();
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 for ac_lib in '' x; do
8648   if test -z "$ac_lib"; then
8649     ac_res="none required"
8650   else
8651     ac_res=-l$ac_lib
8652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8653   fi
8654   rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (ac_try="$ac_link"
8656 case "(($ac_try" in
8657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658   *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661   (eval "$ac_link") 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669   { (case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_try") 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; } &&
8678          { ac_try='test -s conftest$ac_exeext'
8679   { (case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_try") 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_cv_search_opendir=$ac_res
8689 else
8690   echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693
8694 fi
8695
8696 rm -f core conftest.err conftest.$ac_objext \
8697       conftest$ac_exeext
8698   if test "${ac_cv_search_opendir+set}" = set; then
8699   break
8700 fi
8701 done
8702 if test "${ac_cv_search_opendir+set}" = set; then
8703   :
8704 else
8705   ac_cv_search_opendir=no
8706 fi
8707 rm conftest.$ac_ext
8708 LIBS=$ac_func_search_save_LIBS
8709 fi
8710 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8711 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8712 ac_res=$ac_cv_search_opendir
8713 if test "$ac_res" != no; then
8714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716 fi
8717
8718 fi
8719
8720
8721 for ac_header in dlfcn.h
8722 do
8723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 fi
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731                { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8733 else
8734   # Is the header compilable?
8735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743 $ac_includes_default
8744 #include <$ac_header>
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753   (eval "$ac_compile") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; } &&
8770          { ac_try='test -s conftest.$ac_objext'
8771   { (case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776   (eval "$ac_try") 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_header_compiler=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785         ac_header_compiler=no
8786 fi
8787
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790 echo "${ECHO_T}$ac_header_compiler" >&6; }
8791
8792 # Is the header present?
8793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801 #include <$ac_header>
8802 _ACEOF
8803 if { (ac_try="$ac_cpp conftest.$ac_ext"
8804 case "(($ac_try" in
8805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806   *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8810   ac_status=$?
8811   grep -v '^ *+' conftest.er1 >conftest.err
8812   rm -f conftest.er1
8813   cat conftest.err >&5
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } >/dev/null; then
8816   if test -s conftest.err; then
8817     ac_cpp_err=$ac_c_preproc_warn_flag
8818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8819   else
8820     ac_cpp_err=
8821   fi
8822 else
8823   ac_cpp_err=yes
8824 fi
8825 if test -z "$ac_cpp_err"; then
8826   ac_header_preproc=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831   ac_header_preproc=no
8832 fi
8833
8834 rm -f conftest.err conftest.$ac_ext
8835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6; }
8837
8838 # So?  What about this header?
8839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840   yes:no: )
8841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845     ac_header_preproc=yes
8846     ;;
8847   no:yes:* )
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8860     ( cat <<\_ASBOX
8861 ## ----------------------------------- ##
8862 ## Report this to llvmbugs@cs.uiuc.edu ##
8863 ## ----------------------------------- ##
8864 _ASBOX
8865      ) | sed "s/^/$as_me: WARNING:     /" >&2
8866     ;;
8867 esac
8868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   eval "$as_ac_Header=\$ac_header_preproc"
8874 fi
8875 ac_res=`eval echo '${'$as_ac_Header'}'`
8876                { echo "$as_me:$LINENO: result: $ac_res" >&5
8877 echo "${ECHO_T}$ac_res" >&6; }
8878
8879 fi
8880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8881   cat >>confdefs.h <<_ACEOF
8882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 _ACEOF
8884
8885 fi
8886
8887 done
8888
8889 # Check whether --enable-ltdl-install was given.
8890 if test "${enable_ltdl_install+set}" = set; then
8891   enableval=$enable_ltdl_install;
8892 fi
8893
8894
8895
8896
8897 if test x"${enable_ltdl_install-no}" != xno; then
8898   INSTALL_LTDL_TRUE=
8899   INSTALL_LTDL_FALSE='#'
8900 else
8901   INSTALL_LTDL_TRUE='#'
8902   INSTALL_LTDL_FALSE=
8903 fi
8904
8905
8906
8907 if test x"${enable_ltdl_convenience-no}" != xno; then
8908   CONVENIENCE_LTDL_TRUE=
8909   CONVENIENCE_LTDL_FALSE='#'
8910 else
8911   CONVENIENCE_LTDL_TRUE='#'
8912   CONVENIENCE_LTDL_FALSE=
8913 fi
8914
8915
8916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8918 library_names_spec=
8919 libname_spec='lib$name'
8920 soname_spec=
8921 shrext_cmds=".so"
8922 postinstall_cmds=
8923 postuninstall_cmds=
8924 finish_cmds=
8925 finish_eval=
8926 shlibpath_var=
8927 shlibpath_overrides_runpath=unknown
8928 version_type=none
8929 dynamic_linker="$host_os ld.so"
8930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8931 if test "$GCC" = yes; then
8932   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8933   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8934     # if the path contains ";" then we assume it to be the separator
8935     # otherwise default to the standard path separator (i.e. ":") - it is
8936     # assumed that no part of a normal pathname contains ";" but that should
8937     # okay in the real world where ";" in dirpaths is itself problematic.
8938     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8939   else
8940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8941   fi
8942 else
8943   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8944 fi
8945 need_lib_prefix=unknown
8946 hardcode_into_libs=no
8947
8948 # when you set need_version to no, make sure it does not cause -set_version
8949 # flags to be left without arguments
8950 need_version=unknown
8951
8952 case $host_os in
8953 aix3*)
8954   version_type=linux
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8956   shlibpath_var=LIBPATH
8957
8958   # AIX 3 has no versioning support, so we append a major version to the name.
8959   soname_spec='${libname}${release}${shared_ext}$major'
8960   ;;
8961
8962 aix4* | aix5*)
8963   version_type=linux
8964   need_lib_prefix=no
8965   need_version=no
8966   hardcode_into_libs=yes
8967   if test "$host_cpu" = ia64; then
8968     # AIX 5 supports IA64
8969     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8970     shlibpath_var=LD_LIBRARY_PATH
8971   else
8972     # With GCC up to 2.95.x, collect2 would create an import file
8973     # for dependence libraries.  The import file would start with
8974     # the line `#! .'.  This would cause the generated library to
8975     # depend on `.', always an invalid library.  This was fixed in
8976     # development snapshots of GCC prior to 3.0.
8977     case $host_os in
8978       aix4 | aix4.[01] | aix4.[01].*)
8979       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8980            echo ' yes '
8981            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8982         :
8983       else
8984         can_build_shared=no
8985       fi
8986       ;;
8987     esac
8988     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8989     # soname into executable. Probably we can add versioning support to
8990     # collect2, so additional links can be useful in future.
8991     if test "$aix_use_runtimelinking" = yes; then
8992       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8993       # instead of lib<name>.a to let people know that these are not
8994       # typical AIX shared libraries.
8995       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996     else
8997       # We preserve .a as extension for shared libraries through AIX4.2
8998       # and later when we are not doing run time linking.
8999       library_names_spec='${libname}${release}.a $libname.a'
9000       soname_spec='${libname}${release}${shared_ext}$major'
9001     fi
9002     shlibpath_var=LIBPATH
9003   fi
9004   ;;
9005
9006 amigaos*)
9007   library_names_spec='$libname.ixlibrary $libname.a'
9008   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9009   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'
9010   ;;
9011
9012 beos*)
9013   library_names_spec='${libname}${shared_ext}'
9014   dynamic_linker="$host_os ld.so"
9015   shlibpath_var=LIBRARY_PATH
9016   ;;
9017
9018 bsdi[45]*)
9019   version_type=linux
9020   need_version=no
9021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022   soname_spec='${libname}${release}${shared_ext}$major'
9023   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9026   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9027   # the default ld.so.conf also contains /usr/contrib/lib and
9028   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9029   # libtool to hard-code these into programs
9030   ;;
9031
9032 cygwin* | mingw* | pw32*)
9033   version_type=windows
9034   shrext_cmds=".dll"
9035   need_version=no
9036   need_lib_prefix=no
9037
9038   case $GCC,$host_os in
9039   yes,cygwin* | yes,mingw* | yes,pw32*)
9040     library_names_spec='$libname.dll.a'
9041     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9042     postinstall_cmds='base_file=`basename \${file}`~
9043       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9044       dldir=$destdir/`dirname \$dlpath`~
9045       test -d \$dldir || mkdir -p \$dldir~
9046       $install_prog $dir/$dlname \$dldir/$dlname~
9047       chmod a+x \$dldir/$dlname'
9048     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9049       dlpath=$dir/\$dldll~
9050        $rm \$dlpath'
9051     shlibpath_overrides_runpath=yes
9052
9053     case $host_os in
9054     cygwin*)
9055       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9056       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9057       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9058       ;;
9059     mingw*)
9060       # MinGW DLLs use traditional 'lib' prefix
9061       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9062       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9063       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9064         # It is most probably a Windows format PATH printed by
9065         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9066         # path with ; separators, and with drive letters. We can handle the
9067         # drive letters (cygwin fileutils understands them), so leave them,
9068         # especially as we might pass files found there to a mingw objdump,
9069         # which wouldn't understand a cygwinified path. Ahh.
9070         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9071       else
9072         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9073       fi
9074       ;;
9075     pw32*)
9076       # pw32 DLLs use 'pw' prefix rather than 'lib'
9077       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9078       ;;
9079     esac
9080     ;;
9081
9082   *)
9083     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9084     ;;
9085   esac
9086   dynamic_linker='Win32 ld.exe'
9087   # FIXME: first we should search . and the directory the executable is in
9088   shlibpath_var=PATH
9089   ;;
9090
9091 darwin* | rhapsody*)
9092   dynamic_linker="$host_os dyld"
9093   version_type=darwin
9094   need_lib_prefix=no
9095   need_version=no
9096   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9097   soname_spec='${libname}${release}${major}$shared_ext'
9098   shlibpath_overrides_runpath=yes
9099   shlibpath_var=DYLD_LIBRARY_PATH
9100   shrext_cmds='.dylib'
9101   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9102   if test "$GCC" = yes; then
9103     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"`
9104   else
9105     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9106   fi
9107   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9108   ;;
9109
9110 dgux*)
9111   version_type=linux
9112   need_lib_prefix=no
9113   need_version=no
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   ;;
9118
9119 freebsd1*)
9120   dynamic_linker=no
9121   ;;
9122
9123 kfreebsd*-gnu)
9124   version_type=linux
9125   need_lib_prefix=no
9126   need_version=no
9127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128   soname_spec='${libname}${release}${shared_ext}$major'
9129   shlibpath_var=LD_LIBRARY_PATH
9130   shlibpath_overrides_runpath=no
9131   hardcode_into_libs=yes
9132   dynamic_linker='GNU ld.so'
9133   ;;
9134
9135 freebsd* | dragonfly*)
9136   # DragonFly does not have aout.  When/if they implement a new
9137   # versioning mechanism, adjust this.
9138   if test -x /usr/bin/objformat; then
9139     objformat=`/usr/bin/objformat`
9140   else
9141     case $host_os in
9142     freebsd[123]*) objformat=aout ;;
9143     *) objformat=elf ;;
9144     esac
9145   fi
9146   version_type=freebsd-$objformat
9147   case $version_type in
9148     freebsd-elf*)
9149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9150       need_version=no
9151       need_lib_prefix=no
9152       ;;
9153     freebsd-*)
9154       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9155       need_version=yes
9156       ;;
9157   esac
9158   shlibpath_var=LD_LIBRARY_PATH
9159   case $host_os in
9160   freebsd2*)
9161     shlibpath_overrides_runpath=yes
9162     ;;
9163   freebsd3.[01]* | freebsdelf3.[01]*)
9164     shlibpath_overrides_runpath=yes
9165     hardcode_into_libs=yes
9166     ;;
9167   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9168   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9169     shlibpath_overrides_runpath=no
9170     hardcode_into_libs=yes
9171     ;;
9172   freebsd*) # from 4.6 on
9173     shlibpath_overrides_runpath=yes
9174     hardcode_into_libs=yes
9175     ;;
9176   esac
9177   ;;
9178
9179 gnu*)
9180   version_type=linux
9181   need_lib_prefix=no
9182   need_version=no
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   shlibpath_var=LD_LIBRARY_PATH
9186   hardcode_into_libs=yes
9187   ;;
9188
9189 hpux9* | hpux10* | hpux11*)
9190   # Give a soname corresponding to the major version so that dld.sl refuses to
9191   # link against other versions.
9192   version_type=sunos
9193   need_lib_prefix=no
9194   need_version=no
9195   case $host_cpu in
9196   ia64*)
9197     shrext_cmds='.so'
9198     hardcode_into_libs=yes
9199     dynamic_linker="$host_os dld.so"
9200     shlibpath_var=LD_LIBRARY_PATH
9201     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203     soname_spec='${libname}${release}${shared_ext}$major'
9204     if test "X$HPUX_IA64_MODE" = X32; then
9205       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9206     else
9207       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9208     fi
9209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9210     ;;
9211    hppa*64*)
9212      shrext_cmds='.sl'
9213      hardcode_into_libs=yes
9214      dynamic_linker="$host_os dld.sl"
9215      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9216      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9217      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218      soname_spec='${libname}${release}${shared_ext}$major'
9219      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9220      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9221      ;;
9222    *)
9223     shrext_cmds='.sl'
9224     dynamic_linker="$host_os dld.sl"
9225     shlibpath_var=SHLIB_PATH
9226     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228     soname_spec='${libname}${release}${shared_ext}$major'
9229     ;;
9230   esac
9231   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9232   postinstall_cmds='chmod 555 $lib'
9233   ;;
9234
9235 interix3*)
9236   version_type=linux
9237   need_lib_prefix=no
9238   need_version=no
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240   soname_spec='${libname}${release}${shared_ext}$major'
9241   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   shlibpath_overrides_runpath=no
9244   hardcode_into_libs=yes
9245   ;;
9246
9247 irix5* | irix6* | nonstopux*)
9248   case $host_os in
9249     nonstopux*) version_type=nonstopux ;;
9250     *)
9251         if test "$lt_cv_prog_gnu_ld" = yes; then
9252                 version_type=linux
9253         else
9254                 version_type=irix
9255         fi ;;
9256   esac
9257   need_lib_prefix=no
9258   need_version=no
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9261   case $host_os in
9262   irix5* | nonstopux*)
9263     libsuff= shlibsuff=
9264     ;;
9265   *)
9266     case $LD in # libtool.m4 will add one of these switches to LD
9267     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9268       libsuff= shlibsuff= libmagic=32-bit;;
9269     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9270       libsuff=32 shlibsuff=N32 libmagic=N32;;
9271     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9272       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9273     *) libsuff= shlibsuff= libmagic=never-match;;
9274     esac
9275     ;;
9276   esac
9277   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9278   shlibpath_overrides_runpath=no
9279   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9280   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9281   hardcode_into_libs=yes
9282   ;;
9283
9284 # No shared lib support for Linux oldld, aout, or coff.
9285 linux*oldld* | linux*aout* | linux*coff*)
9286   dynamic_linker=no
9287   ;;
9288
9289 # This must be Linux ELF.
9290 linux*)
9291   version_type=linux
9292   need_lib_prefix=no
9293   need_version=no
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=no
9299   # This implies no fast_install, which is unacceptable.
9300   # Some rework will be needed to allow for fast_install
9301   # before this can be enabled.
9302   hardcode_into_libs=yes
9303
9304   # Append ld.so.conf contents to the search path
9305   if test -f /etc/ld.so.conf; then
9306     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' ' '`
9307     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9308   fi
9309
9310   # We used to test for /lib/ld.so.1 and disable shared libraries on
9311   # powerpc, because MkLinux only supported shared libraries with the
9312   # GNU dynamic linker.  Since this was broken with cross compilers,
9313   # most powerpc-linux boxes support dynamic linking these days and
9314   # people can always --disable-shared, the test was removed, and we
9315   # assume the GNU/Linux dynamic linker is in use.
9316   dynamic_linker='GNU/Linux ld.so'
9317   ;;
9318
9319 knetbsd*-gnu)
9320   version_type=linux
9321   need_lib_prefix=no
9322   need_version=no
9323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   shlibpath_var=LD_LIBRARY_PATH
9326   shlibpath_overrides_runpath=no
9327   hardcode_into_libs=yes
9328   dynamic_linker='GNU ld.so'
9329   ;;
9330
9331 netbsd*)
9332   version_type=sunos
9333   need_lib_prefix=no
9334   need_version=no
9335   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338     dynamic_linker='NetBSD (a.out) ld.so'
9339   else
9340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341     soname_spec='${libname}${release}${shared_ext}$major'
9342     dynamic_linker='NetBSD ld.elf_so'
9343   fi
9344   shlibpath_var=LD_LIBRARY_PATH
9345   shlibpath_overrides_runpath=yes
9346   hardcode_into_libs=yes
9347   ;;
9348
9349 newsos6)
9350   version_type=linux
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=yes
9354   ;;
9355
9356 nto-qnx*)
9357   version_type=linux
9358   need_lib_prefix=no
9359   need_version=no
9360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   shlibpath_overrides_runpath=yes
9364   ;;
9365
9366 openbsd*)
9367   version_type=sunos
9368   sys_lib_dlsearch_path_spec="/usr/lib"
9369   need_lib_prefix=no
9370   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9371   case $host_os in
9372     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9373     *)                         need_version=no  ;;
9374   esac
9375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9379     case $host_os in
9380       openbsd2.[89] | openbsd2.[89].*)
9381         shlibpath_overrides_runpath=no
9382         ;;
9383       *)
9384         shlibpath_overrides_runpath=yes
9385         ;;
9386       esac
9387   else
9388     shlibpath_overrides_runpath=yes
9389   fi
9390   ;;
9391
9392 os2*)
9393   libname_spec='$name'
9394   shrext_cmds=".dll"
9395   need_lib_prefix=no
9396   library_names_spec='$libname${shared_ext} $libname.a'
9397   dynamic_linker='OS/2 ld.exe'
9398   shlibpath_var=LIBPATH
9399   ;;
9400
9401 osf3* | osf4* | osf5*)
9402   version_type=osf
9403   need_lib_prefix=no
9404   need_version=no
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9409   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9410   ;;
9411
9412 solaris*)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   shlibpath_overrides_runpath=yes
9420   hardcode_into_libs=yes
9421   # ldd complains unless libraries are executable
9422   postinstall_cmds='chmod +x $lib'
9423   ;;
9424
9425 sunos4*)
9426   version_type=sunos
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   shlibpath_overrides_runpath=yes
9431   if test "$with_gnu_ld" = yes; then
9432     need_lib_prefix=no
9433   fi
9434   need_version=yes
9435   ;;
9436
9437 sysv4 | sysv4.3*)
9438   version_type=linux
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   case $host_vendor in
9443     sni)
9444       shlibpath_overrides_runpath=no
9445       need_lib_prefix=no
9446       export_dynamic_flag_spec='${wl}-Blargedynsym'
9447       runpath_var=LD_RUN_PATH
9448       ;;
9449     siemens)
9450       need_lib_prefix=no
9451       ;;
9452     motorola)
9453       need_lib_prefix=no
9454       need_version=no
9455       shlibpath_overrides_runpath=no
9456       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9457       ;;
9458   esac
9459   ;;
9460
9461 sysv4*MP*)
9462   if test -d /usr/nec ;then
9463     version_type=linux
9464     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9465     soname_spec='$libname${shared_ext}.$major'
9466     shlibpath_var=LD_LIBRARY_PATH
9467   fi
9468   ;;
9469
9470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9471   version_type=freebsd-elf
9472   need_lib_prefix=no
9473   need_version=no
9474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   hardcode_into_libs=yes
9478   if test "$with_gnu_ld" = yes; then
9479     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9480     shlibpath_overrides_runpath=no
9481   else
9482     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9483     shlibpath_overrides_runpath=yes
9484     case $host_os in
9485       sco3.2v5*)
9486         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9487         ;;
9488     esac
9489   fi
9490   sys_lib_dlsearch_path_spec='/usr/lib'
9491   ;;
9492
9493 uts4*)
9494   version_type=linux
9495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496   soname_spec='${libname}${release}${shared_ext}$major'
9497   shlibpath_var=LD_LIBRARY_PATH
9498   ;;
9499
9500 *)
9501   dynamic_linker=no
9502   ;;
9503 esac
9504 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505 echo "${ECHO_T}$dynamic_linker" >&6; }
9506 test "$dynamic_linker" = no && can_build_shared=no
9507
9508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509 if test "$GCC" = yes; then
9510   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9511 fi
9512
9513
9514 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9515 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9516 if test "${libltdl_cv_shlibext+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519
9520 module=yes
9521 eval libltdl_cv_shlibext=$shrext_cmds
9522
9523 fi
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9525 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9526 if test -n "$libltdl_cv_shlibext"; then
9527
9528 cat >>confdefs.h <<_ACEOF
9529 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9530 _ACEOF
9531
9532 fi
9533
9534
9535 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9536 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9537 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   libltdl_cv_shlibpath_var="$shlibpath_var"
9541 fi
9542 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9543 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9544 if test -n "$libltdl_cv_shlibpath_var"; then
9545
9546 cat >>confdefs.h <<_ACEOF
9547 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9548 _ACEOF
9549
9550 fi
9551
9552
9553 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9554 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9555 if test "${libltdl_cv_sys_search_path+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9559 fi
9560 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9561 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9562 if test -n "$libltdl_cv_sys_search_path"; then
9563   sys_search_path=
9564   for dir in $libltdl_cv_sys_search_path; do
9565     if test -z "$sys_search_path"; then
9566       sys_search_path="$dir"
9567     else
9568       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9569     fi
9570   done
9571
9572 cat >>confdefs.h <<_ACEOF
9573 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9574 _ACEOF
9575
9576 fi
9577
9578 { echo "$as_me:$LINENO: checking for objdir" >&5
9579 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9580 if test "${libltdl_cv_objdir+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   libltdl_cv_objdir="$objdir"
9584   if test -n "$objdir"; then
9585     :
9586   else
9587     rm -f .libs 2>/dev/null
9588     mkdir .libs 2>/dev/null
9589     if test -d .libs; then
9590       libltdl_cv_objdir=.libs
9591     else
9592       # MS-DOS does not allow filenames that begin with a dot.
9593       libltdl_cv_objdir=_libs
9594     fi
9595   rmdir .libs 2>/dev/null
9596   fi
9597
9598 fi
9599 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9600 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9601
9602 cat >>confdefs.h <<_ACEOF
9603 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9604 _ACEOF
9605
9606
9607
9608
9609
9610
9611 # Check for command to grab the raw symbol name followed by C symbol from nm.
9612 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9613 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9614 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617
9618 # These are sane defaults that work on at least a few old systems.
9619 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9620
9621 # Character class describing NM global symbol codes.
9622 symcode='[BCDEGRST]'
9623
9624 # Regexp to match symbols that can be accessed directly from C.
9625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9626
9627 # Transform an extracted symbol line into a proper C declaration
9628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9629
9630 # Transform an extracted symbol line into symbol name and symbol address
9631 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'"
9632
9633 # Define system-specific variables.
9634 case $host_os in
9635 aix*)
9636   symcode='[BCDT]'
9637   ;;
9638 cygwin* | mingw* | pw32*)
9639   symcode='[ABCDGISTW]'
9640   ;;
9641 hpux*) # Its linker distinguishes data from code symbols
9642   if test "$host_cpu" = ia64; then
9643     symcode='[ABCDEGRST]'
9644   fi
9645   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9646   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'"
9647   ;;
9648 linux*)
9649   if test "$host_cpu" = ia64; then
9650     symcode='[ABCDGIRSTW]'
9651     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9652     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'"
9653   fi
9654   ;;
9655 irix* | nonstopux*)
9656   symcode='[BCDEGRST]'
9657   ;;
9658 osf*)
9659   symcode='[BCDEGQRST]'
9660   ;;
9661 solaris*)
9662   symcode='[BDRT]'
9663   ;;
9664 sco3.2v5*)
9665   symcode='[DT]'
9666   ;;
9667 sysv4.2uw2*)
9668   symcode='[DT]'
9669   ;;
9670 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9671   symcode='[ABDT]'
9672   ;;
9673 sysv4)
9674   symcode='[DFNSTU]'
9675   ;;
9676 esac
9677
9678 # Handle CRLF in mingw tool chain
9679 opt_cr=
9680 case $build_os in
9681 mingw*)
9682   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9683   ;;
9684 esac
9685
9686 # If we're using GNU nm, then use its standard symbol codes.
9687 case `$NM -V 2>&1` in
9688 *GNU* | *'with BFD'*)
9689   symcode='[ABCDGIRSTW]' ;;
9690 esac
9691
9692 # Try without a prefix undercore, then with it.
9693 for ac_symprfx in "" "_"; do
9694
9695   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9696   symxfrm="\\1 $ac_symprfx\\2 \\2"
9697
9698   # Write the raw and C identifiers.
9699   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9700
9701   # Check to see that the pipe works correctly.
9702   pipe_works=no
9703
9704   rm -f conftest*
9705   cat > conftest.$ac_ext <<EOF
9706 #ifdef __cplusplus
9707 extern "C" {
9708 #endif
9709 char nm_test_var;
9710 void nm_test_func(){}
9711 #ifdef __cplusplus
9712 }
9713 #endif
9714 int main(){nm_test_var='a';nm_test_func();return(0);}
9715 EOF
9716
9717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718   (eval $ac_compile) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; then
9722     # Now try to grab the symbols.
9723     nlist=conftest.nm
9724     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9725   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && test -s "$nlist"; then
9729       # Try sorting and uniquifying the output.
9730       if sort "$nlist" | uniq > "$nlist"T; then
9731         mv -f "$nlist"T "$nlist"
9732       else
9733         rm -f "$nlist"T
9734       fi
9735
9736       # Make sure that we snagged all the symbols we need.
9737       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9738         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9739           cat <<EOF > conftest.$ac_ext
9740 #ifdef __cplusplus
9741 extern "C" {
9742 #endif
9743
9744 EOF
9745           # Now generate the symbol file.
9746           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9747
9748           cat <<EOF >> conftest.$ac_ext
9749 #if defined (__STDC__) && __STDC__
9750 # define lt_ptr_t void *
9751 #else
9752 # define lt_ptr_t char *
9753 # define const
9754 #endif
9755
9756 /* The mapping between symbol names and symbols. */
9757 const struct {
9758   const char *name;
9759   lt_ptr_t address;
9760 }
9761 lt_preloaded_symbols[] =
9762 {
9763 EOF
9764           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9765           cat <<\EOF >> conftest.$ac_ext
9766   {0, (lt_ptr_t) 0}
9767 };
9768
9769 #ifdef __cplusplus
9770 }
9771 #endif
9772 EOF
9773           # Now try linking the two files.
9774           mv conftest.$ac_objext conftstm.$ac_objext
9775           lt_save_LIBS="$LIBS"
9776           lt_save_CFLAGS="$CFLAGS"
9777           LIBS="conftstm.$ac_objext"
9778           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9779           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780   (eval $ac_link) 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9784             pipe_works=yes
9785           fi
9786           LIBS="$lt_save_LIBS"
9787           CFLAGS="$lt_save_CFLAGS"
9788         else
9789           echo "cannot find nm_test_func in $nlist" >&5
9790         fi
9791       else
9792         echo "cannot find nm_test_var in $nlist" >&5
9793       fi
9794     else
9795       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9796     fi
9797   else
9798     echo "$progname: failed program was:" >&5
9799     cat conftest.$ac_ext >&5
9800   fi
9801   rm -f conftest* conftst*
9802
9803   # Do not use the global_symbol_pipe unless it works.
9804   if test "$pipe_works" = yes; then
9805     break
9806   else
9807     lt_cv_sys_global_symbol_pipe=
9808   fi
9809 done
9810
9811 fi
9812
9813 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9814   lt_cv_sys_global_symbol_to_cdecl=
9815 fi
9816 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9817   { echo "$as_me:$LINENO: result: failed" >&5
9818 echo "${ECHO_T}failed" >&6; }
9819 else
9820   { echo "$as_me:$LINENO: result: ok" >&5
9821 echo "${ECHO_T}ok" >&6; }
9822 fi
9823
9824
9825 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9826 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9827 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9831     libltdl_cv_preloaded_symbols=yes
9832   else
9833     libltdl_cv_preloaded_symbols=no
9834   fi
9835
9836 fi
9837 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9838 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9839 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9840
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_PRELOADED_SYMBOLS 1
9843 _ACEOF
9844
9845 fi
9846
9847 LIBADD_DL=
9848
9849 ac_ext=c
9850 ac_cpp='$CPP $CPPFLAGS'
9851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9854
9855
9856 { echo "$as_me:$LINENO: checking for shl_load" >&5
9857 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9858 if test "${ac_cv_func_shl_load+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9869 #define shl_load innocuous_shl_load
9870
9871 /* System header to define __stub macros and hopefully few prototypes,
9872     which can conflict with char shl_load (); below.
9873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874     <limits.h> exists even on freestanding compilers.  */
9875
9876 #ifdef __STDC__
9877 # include <limits.h>
9878 #else
9879 # include <assert.h>
9880 #endif
9881
9882 #undef shl_load
9883
9884 /* Override any GCC internal prototype to avoid an error.
9885    Use char because int might match the return type of a GCC
9886    builtin and then its argument prototype would still apply.  */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 char shl_load ();
9891 /* The GNU C library defines this for functions which it implements
9892     to always fail with ENOSYS.  Some functions are actually named
9893     something starting with __ and the normal name is an alias.  */
9894 #if defined __stub_shl_load || defined __stub___shl_load
9895 choke me
9896 #endif
9897
9898 int
9899 main ()
9900 {
9901 return shl_load ();
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_link") 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921   { (case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_try") 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest$ac_exeext'
9931   { (case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_try") 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   ac_cv_func_shl_load=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_cv_func_shl_load=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext \
9949       conftest$ac_exeext conftest.$ac_ext
9950 fi
9951 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9953 if test $ac_cv_func_shl_load = yes; then
9954
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_SHL_LOAD 1
9957 _ACEOF
9958
9959 else
9960   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9961 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-ldld  $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973
9974 /* Override any GCC internal prototype to avoid an error.
9975    Use char because int might match the return type of a GCC
9976    builtin and then its argument prototype would still apply.  */
9977 #ifdef __cplusplus
9978 extern "C"
9979 #endif
9980 char shl_load ();
9981 int
9982 main ()
9983 {
9984 return shl_load ();
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_link") 2>conftest.er1
9997   ac_status=$?
9998   grep -v '^ *+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004   { (case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_try") 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; } &&
10013          { ac_try='test -s conftest$ac_exeext'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   ac_cv_lib_dld_shl_load=yes
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028         ac_cv_lib_dld_shl_load=no
10029 fi
10030
10031 rm -f core conftest.err conftest.$ac_objext \
10032       conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10037 if test $ac_cv_lib_dld_shl_load = yes; then
10038
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_SHL_LOAD 1
10041 _ACEOF
10042
10043         LIBADD_DL="$LIBADD_DL -ldld"
10044 else
10045   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10046 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10048   echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050   ac_check_lib_save_LIBS=$LIBS
10051 LIBS="-ldl  $LIBS"
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058
10059 /* Override any GCC internal prototype to avoid an error.
10060    Use char because int might match the return type of a GCC
10061    builtin and then its argument prototype would still apply.  */
10062 #ifdef __cplusplus
10063 extern "C"
10064 #endif
10065 char dlopen ();
10066 int
10067 main ()
10068 {
10069 return dlopen ();
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 rm -f conftest.$ac_objext conftest$ac_exeext
10075 if { (ac_try="$ac_link"
10076 case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081   (eval "$ac_link") 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } &&
10088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10089   { (case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_try") 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; } &&
10098          { ac_try='test -s conftest$ac_exeext'
10099   { (case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_try") 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_cv_lib_dl_dlopen=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113         ac_cv_lib_dl_dlopen=no
10114 fi
10115
10116 rm -f core conftest.err conftest.$ac_objext \
10117       conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10122 if test $ac_cv_lib_dl_dlopen = yes; then
10123
10124 cat >>confdefs.h <<\_ACEOF
10125 #define HAVE_LIBDL 1
10126 _ACEOF
10127
10128                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 #if HAVE_DLFCN_H
10137 #  include <dlfcn.h>
10138 #endif
10139
10140 int
10141 main ()
10142 {
10143 dlopen(0, 0);
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_link") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } &&
10162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163   { (case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_try") 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_try") 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBDL 1
10185 _ACEOF
10186  libltdl_cv_func_dlopen="yes"
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-lsvld  $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char dlopen ();
10212 int
10213 main ()
10214 {
10215 return dlopen ();
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227   (eval "$ac_link") 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235   { (case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_try") 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; } &&
10244          { ac_try='test -s conftest$ac_exeext'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_lib_svld_dlopen=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259         ac_cv_lib_svld_dlopen=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10268 if test $ac_cv_lib_svld_dlopen = yes; then
10269
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_LIBDL 1
10272 _ACEOF
10273
10274                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10275 else
10276   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10278 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-ldld  $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h.  */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h.  */
10289
10290 /* Override any GCC internal prototype to avoid an error.
10291    Use char because int might match the return type of a GCC
10292    builtin and then its argument prototype would still apply.  */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char dld_link ();
10297 int
10298 main ()
10299 {
10300 return dld_link ();
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309   *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312   (eval "$ac_link") 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320   { (case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_try") 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; } &&
10329          { ac_try='test -s conftest$ac_exeext'
10330   { (case "(($ac_try" in
10331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332   *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335   (eval "$ac_try") 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   ac_cv_lib_dld_dld_link=yes
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344         ac_cv_lib_dld_dld_link=no
10345 fi
10346
10347 rm -f core conftest.err conftest.$ac_objext \
10348       conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10350 fi
10351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10353 if test $ac_cv_lib_dld_dld_link = yes; then
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_DLD 1
10357 _ACEOF
10358
10359                 LIBADD_DL="$LIBADD_DL -ldld"
10360 else
10361   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10362 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10363 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10374 #define _dyld_func_lookup innocuous__dyld_func_lookup
10375
10376 /* System header to define __stub macros and hopefully few prototypes,
10377     which can conflict with char _dyld_func_lookup (); below.
10378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379     <limits.h> exists even on freestanding compilers.  */
10380
10381 #ifdef __STDC__
10382 # include <limits.h>
10383 #else
10384 # include <assert.h>
10385 #endif
10386
10387 #undef _dyld_func_lookup
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390    Use char because int might match the return type of a GCC
10391    builtin and then its argument prototype would still apply.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char _dyld_func_lookup ();
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10400 choke me
10401 #endif
10402
10403 int
10404 main ()
10405 {
10406 return _dyld_func_lookup ();
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_link") 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; } &&
10435          { ac_try='test -s conftest$ac_exeext'
10436   { (case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_try") 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; }; then
10445   ac_cv_func__dyld_func_lookup=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_cv_func__dyld_func_lookup=no
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext \
10454       conftest$ac_exeext conftest.$ac_ext
10455 fi
10456 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10457 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10458 if test $ac_cv_func__dyld_func_lookup = yes; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_DYLD 1
10462 _ACEOF
10463
10464 fi
10465
10466
10467 fi
10468
10469
10470 fi
10471
10472
10473 fi
10474
10475 rm -f core conftest.err conftest.$ac_objext \
10476       conftest$ac_exeext conftest.$ac_ext
10477
10478 fi
10479
10480
10481 fi
10482
10483
10484 fi
10485
10486
10487 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10488 then
10489   lt_save_LIBS="$LIBS"
10490   LIBS="$LIBS $LIBADD_DL"
10491
10492 for ac_func in dlerror
10493 do
10494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500   cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10508 #define $ac_func innocuous_$ac_func
10509
10510 /* System header to define __stub macros and hopefully few prototypes,
10511     which can conflict with char $ac_func (); below.
10512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513     <limits.h> exists even on freestanding compilers.  */
10514
10515 #ifdef __STDC__
10516 # include <limits.h>
10517 #else
10518 # include <assert.h>
10519 #endif
10520
10521 #undef $ac_func
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524    Use char because int might match the return type of a GCC
10525    builtin and then its argument prototype would still apply.  */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char $ac_func ();
10530 /* The GNU C library defines this for functions which it implements
10531     to always fail with ENOSYS.  Some functions are actually named
10532     something starting with __ and the normal name is an alias.  */
10533 #if defined __stub_$ac_func || defined __stub___$ac_func
10534 choke me
10535 #endif
10536
10537 int
10538 main ()
10539 {
10540 return $ac_func ();
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_link") 2>conftest.er1
10553   ac_status=$?
10554   grep -v '^ *+' conftest.er1 >conftest.err
10555   rm -f conftest.er1
10556   cat conftest.err >&5
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; } &&
10569          { ac_try='test -s conftest$ac_exeext'
10570   { (case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_try") 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   eval "$as_ac_var=yes"
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584         eval "$as_ac_var=no"
10585 fi
10586
10587 rm -f core conftest.err conftest.$ac_objext \
10588       conftest$ac_exeext conftest.$ac_ext
10589 fi
10590 ac_res=`eval echo '${'$as_ac_var'}'`
10591                { echo "$as_me:$LINENO: result: $ac_res" >&5
10592 echo "${ECHO_T}$ac_res" >&6; }
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594   cat >>confdefs.h <<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596 _ACEOF
10597
10598 fi
10599 done
10600
10601   LIBS="$lt_save_LIBS"
10602 fi
10603 ac_ext=c
10604 ac_cpp='$CPP $CPPFLAGS'
10605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10608
10609
10610
10611 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10612 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10613 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616   ac_cv_sys_symbol_underscore=no
10617   cat > conftest.$ac_ext <<EOF
10618 void nm_test_func(){}
10619 int main(){nm_test_func;return 0;}
10620 EOF
10621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622   (eval $ac_compile) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; then
10626     # Now try to grab the symbols.
10627     ac_nlist=conftest.nm
10628     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10629   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); } && test -s "$ac_nlist"; then
10633       # See whether the symbols have a leading underscore.
10634       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10635         ac_cv_sys_symbol_underscore=yes
10636       else
10637         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10638           :
10639         else
10640           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10641         fi
10642       fi
10643     else
10644       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10645     fi
10646   else
10647     echo "configure: failed program was:" >&5
10648     cat conftest.c >&5
10649   fi
10650   rm -rf conftest*
10651
10652 fi
10653 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10654 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10655
10656
10657 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10658   if test x"$libltdl_cv_func_dlopen" = xyes ||
10659      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10660         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10661 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10662 if test "${libltdl_cv_need_uscore+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   libltdl_cv_need_uscore=unknown
10666           save_LIBS="$LIBS"
10667           LIBS="$LIBS $LIBADD_DL"
10668           if test "$cross_compiling" = yes; then :
10669   libltdl_cv_need_uscore=cross
10670 else
10671   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10672   lt_status=$lt_dlunknown
10673   cat > conftest.$ac_ext <<EOF
10674 #line 10674 "configure"
10675 #include "confdefs.h"
10676
10677 #if HAVE_DLFCN_H
10678 #include <dlfcn.h>
10679 #endif
10680
10681 #include <stdio.h>
10682
10683 #ifdef RTLD_GLOBAL
10684 #  define LT_DLGLOBAL           RTLD_GLOBAL
10685 #else
10686 #  ifdef DL_GLOBAL
10687 #    define LT_DLGLOBAL         DL_GLOBAL
10688 #  else
10689 #    define LT_DLGLOBAL         0
10690 #  endif
10691 #endif
10692
10693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10694    find out it does not work in some platform. */
10695 #ifndef LT_DLLAZY_OR_NOW
10696 #  ifdef RTLD_LAZY
10697 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10698 #  else
10699 #    ifdef DL_LAZY
10700 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10701 #    else
10702 #      ifdef RTLD_NOW
10703 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10704 #      else
10705 #        ifdef DL_NOW
10706 #          define LT_DLLAZY_OR_NOW      DL_NOW
10707 #        else
10708 #          define LT_DLLAZY_OR_NOW      0
10709 #        endif
10710 #      endif
10711 #    endif
10712 #  endif
10713 #endif
10714
10715 #ifdef __cplusplus
10716 extern "C" void exit (int);
10717 #endif
10718
10719 void fnord() { int i=42;}
10720 int main ()
10721 {
10722   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10723   int status = $lt_dlunknown;
10724
10725   if (self)
10726     {
10727       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10728       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10729       /* dlclose (self); */
10730     }
10731   else
10732     puts (dlerror ());
10733
10734     exit (status);
10735 }
10736 EOF
10737   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738   (eval $ac_link) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10742     (./conftest; exit; ) >&5 2>/dev/null
10743     lt_status=$?
10744     case x$lt_status in
10745       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10746       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10747       x$lt_dlunknown|x*)  ;;
10748     esac
10749   else :
10750     # compilation failed
10751
10752   fi
10753 fi
10754 rm -fr conftest*
10755
10756           LIBS="$save_LIBS"
10757
10758 fi
10759 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10760 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10761   fi
10762 fi
10763
10764 if test x"$libltdl_cv_need_uscore" = xyes; then
10765
10766 cat >>confdefs.h <<\_ACEOF
10767 #define NEED_USCORE 1
10768 _ACEOF
10769
10770 fi
10771
10772
10773 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10774 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10775 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   # PORTME does your system automatically load deplibs for dlopen?
10779   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10780   # For now, we just catch OSes we know something about -- in the
10781   # future, we'll try test this programmatically.
10782   libltdl_cv_sys_dlopen_deplibs=unknown
10783   case "$host_os" in
10784   aix3*|aix4.1.*|aix4.2.*)
10785     # Unknown whether this is true for these versions of AIX, but
10786     # we want this `case' here to explicitly catch those versions.
10787     libltdl_cv_sys_dlopen_deplibs=unknown
10788     ;;
10789   aix[45]*)
10790     libltdl_cv_sys_dlopen_deplibs=yes
10791     ;;
10792   darwin*)
10793     # Assuming the user has installed a libdl from somewhere, this is true
10794     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10795     libltdl_cv_sys_dlopen_deplibs=yes
10796     ;;
10797   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10798     # GNU and its variants, using gnu ld.so (Glibc)
10799     libltdl_cv_sys_dlopen_deplibs=yes
10800     ;;
10801   hpux10*|hpux11*)
10802     libltdl_cv_sys_dlopen_deplibs=yes
10803     ;;
10804   interix*)
10805     libltdl_cv_sys_dlopen_deplibs=yes
10806     ;;
10807   irix[12345]*|irix6.[01]*)
10808     # Catch all versions of IRIX before 6.2, and indicate that we don't
10809     # know how it worked for any of those versions.
10810     libltdl_cv_sys_dlopen_deplibs=unknown
10811     ;;
10812   irix*)
10813     # The case above catches anything before 6.2, and it's known that
10814     # at 6.2 and later dlopen does load deplibs.
10815     libltdl_cv_sys_dlopen_deplibs=yes
10816     ;;
10817   netbsd*)
10818     libltdl_cv_sys_dlopen_deplibs=yes
10819     ;;
10820   openbsd*)
10821     libltdl_cv_sys_dlopen_deplibs=yes
10822     ;;
10823   osf[1234]*)
10824     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10825     # it did *not* use an RPATH in a shared library to find objects the
10826     # library depends on, so we explictly say `no'.
10827     libltdl_cv_sys_dlopen_deplibs=no
10828     ;;
10829   osf5.0|osf5.0a|osf5.1)
10830     # dlopen *does* load deplibs and with the right loader patch applied
10831     # it even uses RPATH in a shared library to search for shared objects
10832     # that the library depends on, but there's no easy way to know if that
10833     # patch is installed.  Since this is the case, all we can really
10834     # say is unknown -- it depends on the patch being installed.  If
10835     # it is, this changes to `yes'.  Without it, it would be `no'.
10836     libltdl_cv_sys_dlopen_deplibs=unknown
10837     ;;
10838   osf*)
10839     # the two cases above should catch all versions of osf <= 5.1.  Read
10840     # the comments above for what we know about them.
10841     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10842     # is used to find them so we can finally say `yes'.
10843     libltdl_cv_sys_dlopen_deplibs=yes
10844     ;;
10845   solaris*)
10846     libltdl_cv_sys_dlopen_deplibs=yes
10847     ;;
10848   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10849     libltdl_cv_sys_dlopen_deplibs=yes
10850     ;;
10851   esac
10852
10853 fi
10854 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10855 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10856 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10857
10858 cat >>confdefs.h <<\_ACEOF
10859 #define LTDL_DLOPEN_DEPLIBS 1
10860 _ACEOF
10861
10862 fi
10863
10864
10865 for ac_header in argz.h
10866 do
10867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 fi
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875                { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10877 else
10878   # Is the header compilable?
10879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 $ac_includes_default
10888 #include <$ac_header>
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897   (eval "$ac_compile") 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } &&
10904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; } &&
10914          { ac_try='test -s conftest.$ac_objext'
10915   { (case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_try") 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_header_compiler=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929         ac_header_compiler=no
10930 fi
10931
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10934 echo "${ECHO_T}$ac_header_compiler" >&6; }
10935
10936 # Is the header present?
10937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945 #include <$ac_header>
10946 _ACEOF
10947 if { (ac_try="$ac_cpp conftest.$ac_ext"
10948 case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } >/dev/null; then
10960   if test -s conftest.err; then
10961     ac_cpp_err=$ac_c_preproc_warn_flag
10962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10963   else
10964     ac_cpp_err=
10965   fi
10966 else
10967   ac_cpp_err=yes
10968 fi
10969 if test -z "$ac_cpp_err"; then
10970   ac_header_preproc=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975   ac_header_preproc=no
10976 fi
10977
10978 rm -f conftest.err conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980 echo "${ECHO_T}$ac_header_preproc" >&6; }
10981
10982 # So?  What about this header?
10983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10984   yes:no: )
10985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10989     ac_header_preproc=yes
10990     ;;
10991   no:yes:* )
10992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11004     ( cat <<\_ASBOX
11005 ## ----------------------------------- ##
11006 ## Report this to llvmbugs@cs.uiuc.edu ##
11007 ## ----------------------------------- ##
11008 _ASBOX
11009      ) | sed "s/^/$as_me: WARNING:     /" >&2
11010     ;;
11011 esac
11012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11015   echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017   eval "$as_ac_Header=\$ac_header_preproc"
11018 fi
11019 ac_res=`eval echo '${'$as_ac_Header'}'`
11020                { echo "$as_me:$LINENO: result: $ac_res" >&5
11021 echo "${ECHO_T}$ac_res" >&6; }
11022
11023 fi
11024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11025   cat >>confdefs.h <<_ACEOF
11026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11027 _ACEOF
11028
11029 fi
11030
11031 done
11032
11033
11034 { echo "$as_me:$LINENO: checking for error_t" >&5
11035 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11036 if test "${ac_cv_type_error_t+set}" = set; then
11037   echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039   cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 #if HAVE_ARGZ_H
11046 #  include <argz.h>
11047 #endif
11048
11049 typedef error_t ac__type_new_;
11050 int
11051 main ()
11052 {
11053 if ((ac__type_new_ *) 0)
11054   return 0;
11055 if (sizeof (ac__type_new_))
11056   return 0;
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (ac_try="$ac_compile"
11063 case "(($ac_try" in
11064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065   *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068   (eval "$ac_compile") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076   { (case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_try") 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest.$ac_objext'
11086   { (case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_try") 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_type_error_t=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100         ac_cv_type_error_t=no
11101 fi
11102
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 fi
11105 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11106 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11107 if test $ac_cv_type_error_t = yes; then
11108
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_ERROR_T 1
11111 _ACEOF
11112
11113
11114 else
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define error_t int
11118 _ACEOF
11119
11120 fi
11121
11122
11123
11124
11125
11126
11127
11128 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11129 do
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11144 #define $ac_func innocuous_$ac_func
11145
11146 /* System header to define __stub macros and hopefully few prototypes,
11147     which can conflict with char $ac_func (); below.
11148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149     <limits.h> exists even on freestanding compilers.  */
11150
11151 #ifdef __STDC__
11152 # include <limits.h>
11153 #else
11154 # include <assert.h>
11155 #endif
11156
11157 #undef $ac_func
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char $ac_func ();
11166 /* The GNU C library defines this for functions which it implements
11167     to always fail with ENOSYS.  Some functions are actually named
11168     something starting with __ and the normal name is an alias.  */
11169 #if defined __stub_$ac_func || defined __stub___$ac_func
11170 choke me
11171 #endif
11172
11173 int
11174 main ()
11175 {
11176 return $ac_func ();
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_link") 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; } &&
11205          { ac_try='test -s conftest$ac_exeext'
11206   { (case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_try") 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; }; then
11215   eval "$as_ac_var=yes"
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220         eval "$as_ac_var=no"
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext \
11224       conftest$ac_exeext conftest.$ac_ext
11225 fi
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227                { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230   cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 _ACEOF
11233
11234 fi
11235 done
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11265                   stdio.h unistd.h
11266 do
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277 else
11278   # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 $ac_includes_default
11288 #include <$ac_header>
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_compile") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; } &&
11314          { ac_try='test -s conftest.$ac_objext'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_header_compiler=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329         ac_header_compiler=no
11330 fi
11331
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6; }
11335
11336 # Is the header present?
11337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 #include <$ac_header>
11346 _ACEOF
11347 if { (ac_try="$ac_cpp conftest.$ac_ext"
11348 case "(($ac_try" in
11349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350   *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11354   ac_status=$?
11355   grep -v '^ *+' conftest.er1 >conftest.err
11356   rm -f conftest.er1
11357   cat conftest.err >&5
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } >/dev/null; then
11360   if test -s conftest.err; then
11361     ac_cpp_err=$ac_c_preproc_warn_flag
11362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363   else
11364     ac_cpp_err=
11365   fi
11366 else
11367   ac_cpp_err=yes
11368 fi
11369 if test -z "$ac_cpp_err"; then
11370   ac_header_preproc=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375   ac_header_preproc=no
11376 fi
11377
11378 rm -f conftest.err conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380 echo "${ECHO_T}$ac_header_preproc" >&6; }
11381
11382 # So?  What about this header?
11383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384   yes:no: )
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389     ac_header_preproc=yes
11390     ;;
11391   no:yes:* )
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11404     ( cat <<\_ASBOX
11405 ## ----------------------------------- ##
11406 ## Report this to llvmbugs@cs.uiuc.edu ##
11407 ## ----------------------------------- ##
11408 _ASBOX
11409      ) | sed "s/^/$as_me: WARNING:     /" >&2
11410     ;;
11411 esac
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   eval "$as_ac_Header=\$ac_header_preproc"
11418 fi
11419 ac_res=`eval echo '${'$as_ac_Header'}'`
11420                { echo "$as_me:$LINENO: result: $ac_res" >&5
11421 echo "${ECHO_T}$ac_res" >&6; }
11422
11423 fi
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425   cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 _ACEOF
11428
11429 fi
11430
11431 done
11432
11433
11434
11435
11436
11437 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11438 do
11439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 fi
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447                { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11449 else
11450   # Is the header compilable?
11451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459 $ac_includes_default
11460 #include <$ac_header>
11461 _ACEOF
11462 rm -f conftest.$ac_objext
11463 if { (ac_try="$ac_compile"
11464 case "(($ac_try" in
11465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466   *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469   (eval "$ac_compile") 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } &&
11476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (case "(($ac_try" in
11488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489   *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492   (eval "$ac_try") 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   ac_header_compiler=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501         ac_header_compiler=no
11502 fi
11503
11504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11506 echo "${ECHO_T}$ac_header_compiler" >&6; }
11507
11508 # Is the header present?
11509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 #include <$ac_header>
11518 _ACEOF
11519 if { (ac_try="$ac_cpp conftest.$ac_ext"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } >/dev/null; then
11532   if test -s conftest.err; then
11533     ac_cpp_err=$ac_c_preproc_warn_flag
11534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11535   else
11536     ac_cpp_err=
11537   fi
11538 else
11539   ac_cpp_err=yes
11540 fi
11541 if test -z "$ac_cpp_err"; then
11542   ac_header_preproc=yes
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547   ac_header_preproc=no
11548 fi
11549
11550 rm -f conftest.err conftest.$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11553
11554 # So?  What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556   yes:no: )
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561     ac_header_preproc=yes
11562     ;;
11563   no:yes:* )
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11576     ( cat <<\_ASBOX
11577 ## ----------------------------------- ##
11578 ## Report this to llvmbugs@cs.uiuc.edu ##
11579 ## ----------------------------------- ##
11580 _ASBOX
11581      ) | sed "s/^/$as_me: WARNING:     /" >&2
11582     ;;
11583 esac
11584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   eval "$as_ac_Header=\$ac_header_preproc"
11590 fi
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592                { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594
11595 fi
11596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11597   cat >>confdefs.h <<_ACEOF
11598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11599 _ACEOF
11600
11601 fi
11602
11603 done
11604
11605
11606
11607 for ac_header in string.h strings.h
11608 do
11609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 fi
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11619 else
11620   # Is the header compilable?
11621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629 $ac_includes_default
11630 #include <$ac_header>
11631 _ACEOF
11632 rm -f conftest.$ac_objext
11633 if { (ac_try="$ac_compile"
11634 case "(($ac_try" in
11635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636   *) ac_try_echo=$ac_try;;
11637 esac
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639   (eval "$ac_compile") 2>conftest.er1
11640   ac_status=$?
11641   grep -v '^ *+' conftest.er1 >conftest.err
11642   rm -f conftest.er1
11643   cat conftest.err >&5
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } &&
11646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; } &&
11656          { ac_try='test -s conftest.$ac_objext'
11657   { (case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_try") 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; }; then
11666   ac_header_compiler=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671         ac_header_compiler=no
11672 fi
11673
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11676 echo "${ECHO_T}$ac_header_compiler" >&6; }
11677
11678 # Is the header present?
11679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 #include <$ac_header>
11688 _ACEOF
11689 if { (ac_try="$ac_cpp conftest.$ac_ext"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } >/dev/null; then
11702   if test -s conftest.err; then
11703     ac_cpp_err=$ac_c_preproc_warn_flag
11704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705   else
11706     ac_cpp_err=
11707   fi
11708 else
11709   ac_cpp_err=yes
11710 fi
11711 if test -z "$ac_cpp_err"; then
11712   ac_header_preproc=yes
11713 else
11714   echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717   ac_header_preproc=no
11718 fi
11719
11720 rm -f conftest.err conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 echo "${ECHO_T}$ac_header_preproc" >&6; }
11723
11724 # So?  What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726   yes:no: )
11727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731     ac_header_preproc=yes
11732     ;;
11733   no:yes:* )
11734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746     ( cat <<\_ASBOX
11747 ## ----------------------------------- ##
11748 ## Report this to llvmbugs@cs.uiuc.edu ##
11749 ## ----------------------------------- ##
11750 _ASBOX
11751      ) | sed "s/^/$as_me: WARNING:     /" >&2
11752     ;;
11753 esac
11754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   eval "$as_ac_Header=\$ac_header_preproc"
11760 fi
11761 ac_res=`eval echo '${'$as_ac_Header'}'`
11762                { echo "$as_me:$LINENO: result: $ac_res" >&5
11763 echo "${ECHO_T}$ac_res" >&6; }
11764
11765 fi
11766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11767   cat >>confdefs.h <<_ACEOF
11768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11769 _ACEOF
11770  break
11771 fi
11772
11773 done
11774
11775
11776
11777
11778 for ac_func in strchr index
11779 do
11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786   cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11794 #define $ac_func innocuous_$ac_func
11795
11796 /* System header to define __stub macros and hopefully few prototypes,
11797     which can conflict with char $ac_func (); below.
11798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799     <limits.h> exists even on freestanding compilers.  */
11800
11801 #ifdef __STDC__
11802 # include <limits.h>
11803 #else
11804 # include <assert.h>
11805 #endif
11806
11807 #undef $ac_func
11808
11809 /* Override any GCC internal prototype to avoid an error.
11810    Use char because int might match the return type of a GCC
11811    builtin and then its argument prototype would still apply.  */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char $ac_func ();
11816 /* The GNU C library defines this for functions which it implements
11817     to always fail with ENOSYS.  Some functions are actually named
11818     something starting with __ and the normal name is an alias.  */
11819 #if defined __stub_$ac_func || defined __stub___$ac_func
11820 choke me
11821 #endif
11822
11823 int
11824 main ()
11825 {
11826 return $ac_func ();
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838   (eval "$ac_link") 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } &&
11845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846   { (case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_try") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; } &&
11855          { ac_try='test -s conftest$ac_exeext'
11856   { (case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_try") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; }; then
11865   eval "$as_ac_var=yes"
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870         eval "$as_ac_var=no"
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext \
11874       conftest$ac_exeext conftest.$ac_ext
11875 fi
11876 ac_res=`eval echo '${'$as_ac_var'}'`
11877                { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 if test `eval echo '${'$as_ac_var'}'` = yes; then
11880   cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 _ACEOF
11883  break
11884 fi
11885 done
11886
11887
11888
11889 for ac_func in strrchr rindex
11890 do
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11905 #define $ac_func innocuous_$ac_func
11906
11907 /* System header to define __stub macros and hopefully few prototypes,
11908     which can conflict with char $ac_func (); below.
11909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910     <limits.h> exists even on freestanding compilers.  */
11911
11912 #ifdef __STDC__
11913 # include <limits.h>
11914 #else
11915 # include <assert.h>
11916 #endif
11917
11918 #undef $ac_func
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char $ac_func ();
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11931 choke me
11932 #endif
11933
11934 int
11935 main ()
11936 {
11937 return $ac_func ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_link") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_try") 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   eval "$as_ac_var=yes"
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981         eval "$as_ac_var=no"
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 fi
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988                { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991   cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993 _ACEOF
11994  break
11995 fi
11996 done
11997
11998
11999
12000 for ac_func in memcpy bcopy
12001 do
12002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12016 #define $ac_func innocuous_$ac_func
12017
12018 /* System header to define __stub macros and hopefully few prototypes,
12019     which can conflict with char $ac_func (); below.
12020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021     <limits.h> exists even on freestanding compilers.  */
12022
12023 #ifdef __STDC__
12024 # include <limits.h>
12025 #else
12026 # include <assert.h>
12027 #endif
12028
12029 #undef $ac_func
12030
12031 /* Override any GCC internal prototype to avoid an error.
12032    Use char because int might match the return type of a GCC
12033    builtin and then its argument prototype would still apply.  */
12034 #ifdef __cplusplus
12035 extern "C"
12036 #endif
12037 char $ac_func ();
12038 /* The GNU C library defines this for functions which it implements
12039     to always fail with ENOSYS.  Some functions are actually named
12040     something starting with __ and the normal name is an alias.  */
12041 #if defined __stub_$ac_func || defined __stub___$ac_func
12042 choke me
12043 #endif
12044
12045 int
12046 main ()
12047 {
12048 return $ac_func ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_link") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   eval "$as_ac_var=yes"
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         eval "$as_ac_var=no"
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext \
12096       conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 ac_res=`eval echo '${'$as_ac_var'}'`
12099                { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104 _ACEOF
12105  break
12106 fi
12107 done
12108
12109
12110
12111 for ac_func in memmove strcmp
12112 do
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12127 #define $ac_func innocuous_$ac_func
12128
12129 /* System header to define __stub macros and hopefully few prototypes,
12130     which can conflict with char $ac_func (); below.
12131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132     <limits.h> exists even on freestanding compilers.  */
12133
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12139
12140 #undef $ac_func
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143    Use char because int might match the return type of a GCC
12144    builtin and then its argument prototype would still apply.  */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150     to always fail with ENOSYS.  Some functions are actually named
12151     something starting with __ and the normal name is an alias.  */
12152 #if defined __stub_$ac_func || defined __stub___$ac_func
12153 choke me
12154 #endif
12155
12156 int
12157 main ()
12158 {
12159 return $ac_func ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179   { (case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_try") 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; } &&
12188          { ac_try='test -s conftest$ac_exeext'
12189   { (case "(($ac_try" in
12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191   *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194   (eval "$ac_try") 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   eval "$as_ac_var=yes"
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203         eval "$as_ac_var=no"
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext \
12207       conftest$ac_exeext conftest.$ac_ext
12208 fi
12209 ac_res=`eval echo '${'$as_ac_var'}'`
12210                { echo "$as_me:$LINENO: result: $ac_res" >&5
12211 echo "${ECHO_T}$ac_res" >&6; }
12212 if test `eval echo '${'$as_ac_var'}'` = yes; then
12213   cat >>confdefs.h <<_ACEOF
12214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 _ACEOF
12216
12217 fi
12218 done
12219
12220
12221
12222
12223 for ac_func in closedir opendir readdir
12224 do
12225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12239 #define $ac_func innocuous_$ac_func
12240
12241 /* System header to define __stub macros and hopefully few prototypes,
12242     which can conflict with char $ac_func (); below.
12243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12244     <limits.h> exists even on freestanding compilers.  */
12245
12246 #ifdef __STDC__
12247 # include <limits.h>
12248 #else
12249 # include <assert.h>
12250 #endif
12251
12252 #undef $ac_func
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255    Use char because int might match the return type of a GCC
12256    builtin and then its argument prototype would still apply.  */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char $ac_func ();
12261 /* The GNU C library defines this for functions which it implements
12262     to always fail with ENOSYS.  Some functions are actually named
12263     something starting with __ and the normal name is an alias.  */
12264 #if defined __stub_$ac_func || defined __stub___$ac_func
12265 choke me
12266 #endif
12267
12268 int
12269 main ()
12270 {
12271 return $ac_func ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280   *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283   (eval "$ac_link") 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } &&
12290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291   { (case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_try") 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; } &&
12300          { ac_try='test -s conftest$ac_exeext'
12301   { (case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_try") 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   eval "$as_ac_var=yes"
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315         eval "$as_ac_var=no"
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext \
12319       conftest$ac_exeext conftest.$ac_ext
12320 fi
12321 ac_res=`eval echo '${'$as_ac_var'}'`
12322                { echo "$as_me:$LINENO: result: $ac_res" >&5
12323 echo "${ECHO_T}$ac_res" >&6; }
12324 if test `eval echo '${'$as_ac_var'}'` = yes; then
12325   cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12327 _ACEOF
12328
12329 fi
12330 done
12331
12332
12333 # Check whether --enable-shared was given.
12334 if test "${enable_shared+set}" = set; then
12335   enableval=$enable_shared; p=${PACKAGE-default}
12336     case $enableval in
12337     yes) enable_shared=yes ;;
12338     no) enable_shared=no ;;
12339     *)
12340       enable_shared=no
12341       # Look at the argument we got.  We use all the common list separators.
12342       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343       for pkg in $enableval; do
12344         IFS="$lt_save_ifs"
12345         if test "X$pkg" = "X$p"; then
12346           enable_shared=yes
12347         fi
12348       done
12349       IFS="$lt_save_ifs"
12350       ;;
12351     esac
12352 else
12353   enable_shared=yes
12354 fi
12355
12356
12357 # Check whether --enable-static was given.
12358 if test "${enable_static+set}" = set; then
12359   enableval=$enable_static; p=${PACKAGE-default}
12360     case $enableval in
12361     yes) enable_static=yes ;;
12362     no) enable_static=no ;;
12363     *)
12364      enable_static=no
12365       # Look at the argument we got.  We use all the common list separators.
12366       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367       for pkg in $enableval; do
12368         IFS="$lt_save_ifs"
12369         if test "X$pkg" = "X$p"; then
12370           enable_static=yes
12371         fi
12372       done
12373       IFS="$lt_save_ifs"
12374       ;;
12375     esac
12376 else
12377   enable_static=yes
12378 fi
12379
12380
12381 # Check whether --enable-fast-install was given.
12382 if test "${enable_fast_install+set}" = set; then
12383   enableval=$enable_fast_install; p=${PACKAGE-default}
12384     case $enableval in
12385     yes) enable_fast_install=yes ;;
12386     no) enable_fast_install=no ;;
12387     *)
12388       enable_fast_install=no
12389       # Look at the argument we got.  We use all the common list separators.
12390       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12391       for pkg in $enableval; do
12392         IFS="$lt_save_ifs"
12393         if test "X$pkg" = "X$p"; then
12394           enable_fast_install=yes
12395         fi
12396       done
12397       IFS="$lt_save_ifs"
12398       ;;
12399     esac
12400 else
12401   enable_fast_install=yes
12402 fi
12403
12404
12405 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12406 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12407 if test "${lt_cv_path_SED+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   # Loop through the user's path and test for sed and gsed.
12411 # Then use that list of sed's as ones to test for truncation.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415   IFS=$as_save_IFS
12416   test -z "$as_dir" && as_dir=.
12417   for lt_ac_prog in sed gsed; do
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12420         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12421       fi
12422     done
12423   done
12424 done
12425 lt_ac_max=0
12426 lt_ac_count=0
12427 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12428 # along with /bin/sed that truncates output.
12429 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12430   test ! -f $lt_ac_sed && continue
12431   cat /dev/null > conftest.in
12432   lt_ac_count=0
12433   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12434   # Check for GNU sed and select it if it is found.
12435   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12436     lt_cv_path_SED=$lt_ac_sed
12437     break
12438   fi
12439   while true; do
12440     cat conftest.in conftest.in >conftest.tmp
12441     mv conftest.tmp conftest.in
12442     cp conftest.in conftest.nl
12443     echo >>conftest.nl
12444     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12445     cmp -s conftest.out conftest.nl || break
12446     # 10000 chars as input seems more than enough
12447     test $lt_ac_count -gt 10 && break
12448     lt_ac_count=`expr $lt_ac_count + 1`
12449     if test $lt_ac_count -gt $lt_ac_max; then
12450       lt_ac_max=$lt_ac_count
12451       lt_cv_path_SED=$lt_ac_sed
12452     fi
12453   done
12454 done
12455
12456 fi
12457
12458 SED=$lt_cv_path_SED
12459 { echo "$as_me:$LINENO: result: $SED" >&5
12460 echo "${ECHO_T}$SED" >&6; }
12461
12462
12463 # Check whether --with-gnu-ld was given.
12464 if test "${with_gnu_ld+set}" = set; then
12465   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12466 else
12467   with_gnu_ld=no
12468 fi
12469
12470 ac_prog=ld
12471 if test "$GCC" = yes; then
12472   # Check if gcc -print-prog-name=ld gives a path.
12473   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12475   case $host in
12476   *-*-mingw*)
12477     # gcc leaves a trailing carriage return which upsets mingw
12478     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12479   *)
12480     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12481   esac
12482   case $ac_prog in
12483     # Accept absolute paths.
12484     [\\/]* | ?:[\\/]*)
12485       re_direlt='/[^/][^/]*/\.\./'
12486       # Canonicalize the pathname of ld
12487       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12488       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12489         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12490       done
12491       test -z "$LD" && LD="$ac_prog"
12492       ;;
12493   "")
12494     # If it fails, then pretend we aren't using GCC.
12495     ac_prog=ld
12496     ;;
12497   *)
12498     # If it is relative, then search for the first ld in PATH.
12499     with_gnu_ld=unknown
12500     ;;
12501   esac
12502 elif test "$with_gnu_ld" = yes; then
12503   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12505 else
12506   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12508 fi
12509 if test "${lt_cv_path_LD+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   if test -z "$LD"; then
12513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12514   for ac_dir in $PATH; do
12515     IFS="$lt_save_ifs"
12516     test -z "$ac_dir" && ac_dir=.
12517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12518       lt_cv_path_LD="$ac_dir/$ac_prog"
12519       # Check to see if the program is GNU ld.  I'd rather use --version,
12520       # but apparently some variants of GNU ld only accept -v.
12521       # Break only if it was the GNU/non-GNU ld that we prefer.
12522       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12523       *GNU* | *'with BFD'*)
12524         test "$with_gnu_ld" != no && break
12525         ;;
12526       *)
12527         test "$with_gnu_ld" != yes && break
12528         ;;
12529       esac
12530     fi
12531   done
12532   IFS="$lt_save_ifs"
12533 else
12534   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12535 fi
12536 fi
12537
12538 LD="$lt_cv_path_LD"
12539 if test -n "$LD"; then
12540   { echo "$as_me:$LINENO: result: $LD" >&5
12541 echo "${ECHO_T}$LD" >&6; }
12542 else
12543   { echo "$as_me:$LINENO: result: no" >&5
12544 echo "${ECHO_T}no" >&6; }
12545 fi
12546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12548    { (exit 1); exit 1; }; }
12549 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12555 case `$LD -v 2>&1 </dev/null` in
12556 *GNU* | *'with BFD'*)
12557   lt_cv_prog_gnu_ld=yes
12558   ;;
12559 *)
12560   lt_cv_prog_gnu_ld=no
12561   ;;
12562 esac
12563 fi
12564 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12566 with_gnu_ld=$lt_cv_prog_gnu_ld
12567
12568
12569 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12570 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12571 if test "${lt_cv_ld_reload_flag+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   lt_cv_ld_reload_flag='-r'
12575 fi
12576 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12577 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12578 reload_flag=$lt_cv_ld_reload_flag
12579 case $reload_flag in
12580 "" | " "*) ;;
12581 *) reload_flag=" $reload_flag" ;;
12582 esac
12583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12584 case $host_os in
12585   darwin*)
12586     if test "$GCC" = yes; then
12587       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12588     else
12589       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12590     fi
12591     ;;
12592 esac
12593
12594 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12595 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12596 if test "${lt_cv_deplibs_check_method+set}" = set; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   lt_cv_file_magic_cmd='$MAGIC_CMD'
12600 lt_cv_file_magic_test_file=
12601 lt_cv_deplibs_check_method='unknown'
12602 # Need to set the preceding variable on all platforms that support
12603 # interlibrary dependencies.
12604 # 'none' -- dependencies not supported.
12605 # `unknown' -- same as none, but documents that we really don't know.
12606 # 'pass_all' -- all dependencies passed with no checks.
12607 # 'test_compile' -- check by making test program.
12608 # 'file_magic [[regex]]' -- check by looking for files in library path
12609 # which responds to the $file_magic_cmd with a given extended regex.
12610 # If you have `file' or equivalent on your system and you're not sure
12611 # whether `pass_all' will *always* work, you probably want this one.
12612
12613 case $host_os in
12614 aix4* | aix5*)
12615   lt_cv_deplibs_check_method=pass_all
12616   ;;
12617
12618 beos*)
12619   lt_cv_deplibs_check_method=pass_all
12620   ;;
12621
12622 bsdi[45]*)
12623   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12624   lt_cv_file_magic_cmd='/usr/bin/file -L'
12625   lt_cv_file_magic_test_file=/shlib/libc.so
12626   ;;
12627
12628 cygwin*)
12629   # func_win32_libid is a shell function defined in ltmain.sh
12630   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12631   lt_cv_file_magic_cmd='func_win32_libid'
12632   ;;
12633
12634 mingw* | pw32*)
12635   # Base MSYS/MinGW do not provide the 'file' command needed by
12636   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12637   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12638   lt_cv_file_magic_cmd='$OBJDUMP -f'
12639   ;;
12640
12641 darwin* | rhapsody*)
12642   lt_cv_deplibs_check_method=pass_all
12643   ;;
12644
12645 freebsd* | kfreebsd*-gnu | dragonfly*)
12646   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12647     case $host_cpu in
12648     i*86 )
12649       # Not sure whether the presence of OpenBSD here was a mistake.
12650       # Let's accept both of them until this is cleared up.
12651       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12652       lt_cv_file_magic_cmd=/usr/bin/file
12653       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12654       ;;
12655     esac
12656   else
12657     lt_cv_deplibs_check_method=pass_all
12658   fi
12659   ;;
12660
12661 gnu*)
12662   lt_cv_deplibs_check_method=pass_all
12663   ;;
12664
12665 hpux10.20* | hpux11*)
12666   lt_cv_file_magic_cmd=/usr/bin/file
12667   case $host_cpu in
12668   ia64*)
12669     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12670     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12671     ;;
12672   hppa*64*)
12673     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]'
12674     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12675     ;;
12676   *)
12677     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12678     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12679     ;;
12680   esac
12681   ;;
12682
12683 interix3*)
12684   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12685   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12686   ;;
12687
12688 irix5* | irix6* | nonstopux*)
12689   case $LD in
12690   *-32|*"-32 ") libmagic=32-bit;;
12691   *-n32|*"-n32 ") libmagic=N32;;
12692   *-64|*"-64 ") libmagic=64-bit;;
12693   *) libmagic=never-match;;
12694   esac
12695   lt_cv_deplibs_check_method=pass_all
12696   ;;
12697
12698 # This must be Linux ELF.
12699 linux*)
12700   lt_cv_deplibs_check_method=pass_all
12701   ;;
12702
12703 netbsd*)
12704   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12705     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12706   else
12707     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12708   fi
12709   ;;
12710
12711 newos6*)
12712   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12713   lt_cv_file_magic_cmd=/usr/bin/file
12714   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12715   ;;
12716
12717 nto-qnx*)
12718   lt_cv_deplibs_check_method=unknown
12719   ;;
12720
12721 openbsd*)
12722   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12723     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12724   else
12725     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12726   fi
12727   ;;
12728
12729 osf3* | osf4* | osf5*)
12730   lt_cv_deplibs_check_method=pass_all
12731   ;;
12732
12733 solaris*)
12734   lt_cv_deplibs_check_method=pass_all
12735   ;;
12736
12737 sysv4 | sysv4.3*)
12738   case $host_vendor in
12739   motorola)
12740     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]'
12741     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12742     ;;
12743   ncr)
12744     lt_cv_deplibs_check_method=pass_all
12745     ;;
12746   sequent)
12747     lt_cv_file_magic_cmd='/bin/file'
12748     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12749     ;;
12750   sni)
12751     lt_cv_file_magic_cmd='/bin/file'
12752     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12753     lt_cv_file_magic_test_file=/lib/libc.so
12754     ;;
12755   siemens)
12756     lt_cv_deplibs_check_method=pass_all
12757     ;;
12758   pc)
12759     lt_cv_deplibs_check_method=pass_all
12760     ;;
12761   esac
12762   ;;
12763
12764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12765   lt_cv_deplibs_check_method=pass_all
12766   ;;
12767 esac
12768
12769 fi
12770 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12771 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12772 file_magic_cmd=$lt_cv_file_magic_cmd
12773 deplibs_check_method=$lt_cv_deplibs_check_method
12774 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12775
12776
12777
12778 # If no C compiler was specified, use CC.
12779 LTCC=${LTCC-"$CC"}
12780
12781 # If no C compiler flags were specified, use CFLAGS.
12782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12783
12784 # Allow CC to be a program name with arguments.
12785 compiler=$CC
12786
12787 # Check whether --enable-libtool-lock was given.
12788 if test "${enable_libtool_lock+set}" = set; then
12789   enableval=$enable_libtool_lock;
12790 fi
12791
12792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12793
12794 # Some flags need to be propagated to the compiler or linker for good
12795 # libtool support.
12796 case $host in
12797 ia64-*-hpux*)
12798   # Find out which ABI we are using.
12799   echo 'int i;' > conftest.$ac_ext
12800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; then
12805     case `/usr/bin/file conftest.$ac_objext` in
12806     *ELF-32*)
12807       HPUX_IA64_MODE="32"
12808       ;;
12809     *ELF-64*)
12810       HPUX_IA64_MODE="64"
12811       ;;
12812     esac
12813   fi
12814   rm -rf conftest*
12815   ;;
12816 *-*-irix6*)
12817   # Find out which ABI we are using.
12818   echo '#line 12818 "configure"' > conftest.$ac_ext
12819   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820   (eval $ac_compile) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; then
12824    if test "$lt_cv_prog_gnu_ld" = yes; then
12825     case `/usr/bin/file conftest.$ac_objext` in
12826     *32-bit*)
12827       LD="${LD-ld} -melf32bsmip"
12828       ;;
12829     *N32*)
12830       LD="${LD-ld} -melf32bmipn32"
12831       ;;
12832     *64-bit*)
12833       LD="${LD-ld} -melf64bmip"
12834       ;;
12835     esac
12836    else
12837     case `/usr/bin/file conftest.$ac_objext` in
12838     *32-bit*)
12839       LD="${LD-ld} -32"
12840       ;;
12841     *N32*)
12842       LD="${LD-ld} -n32"
12843       ;;
12844     *64-bit*)
12845       LD="${LD-ld} -64"
12846       ;;
12847     esac
12848    fi
12849   fi
12850   rm -rf conftest*
12851   ;;
12852
12853 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12854   # Find out which ABI we are using.
12855   echo 'int i;' > conftest.$ac_ext
12856   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857   (eval $ac_compile) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; then
12861     case `/usr/bin/file conftest.o` in
12862     *32-bit*)
12863       case $host in
12864         x86_64-*linux*)
12865           LD="${LD-ld} -m elf_i386"
12866           ;;
12867         ppc64-*linux*|powerpc64-*linux*)
12868           LD="${LD-ld} -m elf32ppclinux"
12869           ;;
12870         s390x-*linux*)
12871           LD="${LD-ld} -m elf_s390"
12872           ;;
12873         sparc64-*linux*)
12874           LD="${LD-ld} -m elf32_sparc"
12875           ;;
12876       esac
12877       ;;
12878     *64-bit*)
12879       case $host in
12880         x86_64-*linux*)
12881           LD="${LD-ld} -m elf_x86_64"
12882           ;;
12883         ppc*-*linux*|powerpc*-*linux*)
12884           LD="${LD-ld} -m elf64ppc"
12885           ;;
12886         s390*-*linux*)
12887           LD="${LD-ld} -m elf64_s390"
12888           ;;
12889         sparc*-*linux*)
12890           LD="${LD-ld} -m elf64_sparc"
12891           ;;
12892       esac
12893       ;;
12894     esac
12895   fi
12896   rm -rf conftest*
12897   ;;
12898
12899 *-*-sco3.2v5*)
12900   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12901   SAVE_CFLAGS="$CFLAGS"
12902   CFLAGS="$CFLAGS -belf"
12903   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12904 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12905 if test "${lt_cv_cc_needs_belf+set}" = set; then
12906   echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908   ac_ext=c
12909 ac_cpp='$CPP $CPPFLAGS'
12910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913
12914      cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h.  */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h.  */
12920
12921 int
12922 main ()
12923 {
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936   (eval "$ac_link") 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944   { (case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_try") 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; } &&
12953          { ac_try='test -s conftest$ac_exeext'
12954   { (case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_try") 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; }; then
12963   lt_cv_cc_needs_belf=yes
12964 else
12965   echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968         lt_cv_cc_needs_belf=no
12969 fi
12970
12971 rm -f core conftest.err conftest.$ac_objext \
12972       conftest$ac_exeext conftest.$ac_ext
12973      ac_ext=c
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979 fi
12980 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12981 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12982   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12983     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12984     CFLAGS="$SAVE_CFLAGS"
12985   fi
12986   ;;
12987 sparc*-*solaris*)
12988   # Find out which ABI we are using.
12989   echo 'int i;' > conftest.$ac_ext
12990   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991   (eval $ac_compile) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; then
12995     case `/usr/bin/file conftest.o` in
12996     *64-bit*)
12997       case $lt_cv_prog_gnu_ld in
12998       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12999       *)    LD="${LD-ld} -64" ;;
13000       esac
13001       ;;
13002     esac
13003   fi
13004   rm -rf conftest*
13005   ;;
13006
13007
13008 esac
13009
13010 need_locks="$enable_libtool_lock"
13011
13012
13013
13014
13015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13016     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13017     (test "X$CXX" != "Xg++"))) ; then
13018   ac_ext=cpp
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13023 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13024 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13025 if test -z "$CXXCPP"; then
13026   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13027   echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029       # Double quotes because CXXCPP needs to be expanded
13030     for CXXCPP in "$CXX -E" "/lib/cpp"
13031     do
13032       ac_preproc_ok=false
13033 for ac_cxx_preproc_warn_flag in '' yes
13034 do
13035   # Use a header file that comes with gcc, so configuring glibc
13036   # with a fresh cross-compiler works.
13037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13038   # <limits.h> exists even on freestanding compilers.
13039   # On the NeXT, cc -E runs the code through the compiler's parser,
13040   # not just through cpp. "Syntax error" is here to catch this case.
13041   cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047 #ifdef __STDC__
13048 # include <limits.h>
13049 #else
13050 # include <assert.h>
13051 #endif
13052                      Syntax error
13053 _ACEOF
13054 if { (ac_try="$ac_cpp conftest.$ac_ext"
13055 case "(($ac_try" in
13056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057   *) ac_try_echo=$ac_try;;
13058 esac
13059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } >/dev/null; then
13067   if test -s conftest.err; then
13068     ac_cpp_err=$ac_cxx_preproc_warn_flag
13069     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13070   else
13071     ac_cpp_err=
13072   fi
13073 else
13074   ac_cpp_err=yes
13075 fi
13076 if test -z "$ac_cpp_err"; then
13077   :
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082   # Broken: fails on valid input.
13083 continue
13084 fi
13085
13086 rm -f conftest.err conftest.$ac_ext
13087
13088   # OK, works on sane cases.  Now check whether nonexistent headers
13089   # can be detected and how.
13090   cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 #include <ac_nonexistent.h>
13097 _ACEOF
13098 if { (ac_try="$ac_cpp conftest.$ac_ext"
13099 case "(($ac_try" in
13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101   *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } >/dev/null; then
13111   if test -s conftest.err; then
13112     ac_cpp_err=$ac_cxx_preproc_warn_flag
13113     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13114   else
13115     ac_cpp_err=
13116   fi
13117 else
13118   ac_cpp_err=yes
13119 fi
13120 if test -z "$ac_cpp_err"; then
13121   # Broken: success on invalid input.
13122 continue
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127   # Passes both tests.
13128 ac_preproc_ok=:
13129 break
13130 fi
13131
13132 rm -f conftest.err conftest.$ac_ext
13133
13134 done
13135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13136 rm -f conftest.err conftest.$ac_ext
13137 if $ac_preproc_ok; then
13138   break
13139 fi
13140
13141     done
13142     ac_cv_prog_CXXCPP=$CXXCPP
13143
13144 fi
13145   CXXCPP=$ac_cv_prog_CXXCPP
13146 else
13147   ac_cv_prog_CXXCPP=$CXXCPP
13148 fi
13149 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13150 echo "${ECHO_T}$CXXCPP" >&6; }
13151 ac_preproc_ok=false
13152 for ac_cxx_preproc_warn_flag in '' yes
13153 do
13154   # Use a header file that comes with gcc, so configuring glibc
13155   # with a fresh cross-compiler works.
13156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157   # <limits.h> exists even on freestanding compilers.
13158   # On the NeXT, cc -E runs the code through the compiler's parser,
13159   # not just through cpp. "Syntax error" is here to catch this case.
13160   cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166 #ifdef __STDC__
13167 # include <limits.h>
13168 #else
13169 # include <assert.h>
13170 #endif
13171                      Syntax error
13172 _ACEOF
13173 if { (ac_try="$ac_cpp conftest.$ac_ext"
13174 case "(($ac_try" in
13175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176   *) ac_try_echo=$ac_try;;
13177 esac
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } >/dev/null; then
13186   if test -s conftest.err; then
13187     ac_cpp_err=$ac_cxx_preproc_warn_flag
13188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13189   else
13190     ac_cpp_err=
13191   fi
13192 else
13193   ac_cpp_err=yes
13194 fi
13195 if test -z "$ac_cpp_err"; then
13196   :
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201   # Broken: fails on valid input.
13202 continue
13203 fi
13204
13205 rm -f conftest.err conftest.$ac_ext
13206
13207   # OK, works on sane cases.  Now check whether nonexistent headers
13208   # can be detected and how.
13209   cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h.  */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h.  */
13215 #include <ac_nonexistent.h>
13216 _ACEOF
13217 if { (ac_try="$ac_cpp conftest.$ac_ext"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } >/dev/null; then
13230   if test -s conftest.err; then
13231     ac_cpp_err=$ac_cxx_preproc_warn_flag
13232     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13233   else
13234     ac_cpp_err=
13235   fi
13236 else
13237   ac_cpp_err=yes
13238 fi
13239 if test -z "$ac_cpp_err"; then
13240   # Broken: success on invalid input.
13241 continue
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246   # Passes both tests.
13247 ac_preproc_ok=:
13248 break
13249 fi
13250
13251 rm -f conftest.err conftest.$ac_ext
13252
13253 done
13254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13255 rm -f conftest.err conftest.$ac_ext
13256 if $ac_preproc_ok; then
13257   :
13258 else
13259   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13260 See \`config.log' for more details." >&5
13261 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13262 See \`config.log' for more details." >&2;}
13263    { (exit 1); exit 1; }; }
13264 fi
13265
13266 ac_ext=cpp
13267 ac_cpp='$CXXCPP $CPPFLAGS'
13268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13271
13272 fi
13273
13274
13275 ac_ext=f
13276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13279 if test -n "$ac_tool_prefix"; then
13280   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
13281   do
13282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13286 if test "${ac_cv_prog_F77+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   if test -n "$F77"; then
13290   ac_cv_prog_F77="$F77" # Let the user override the test.
13291 else
13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293 for as_dir in $PATH
13294 do
13295   IFS=$as_save_IFS
13296   test -z "$as_dir" && as_dir=.
13297   for ac_exec_ext in '' $ac_executable_extensions; do
13298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13299     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13301     break 2
13302   fi
13303 done
13304 done
13305 IFS=$as_save_IFS
13306
13307 fi
13308 fi
13309 F77=$ac_cv_prog_F77
13310 if test -n "$F77"; then
13311   { echo "$as_me:$LINENO: result: $F77" >&5
13312 echo "${ECHO_T}$F77" >&6; }
13313 else
13314   { echo "$as_me:$LINENO: result: no" >&5
13315 echo "${ECHO_T}no" >&6; }
13316 fi
13317
13318
13319     test -n "$F77" && break
13320   done
13321 fi
13322 if test -z "$F77"; then
13323   ac_ct_F77=$F77
13324   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
13325 do
13326   # Extract the first word of "$ac_prog", so it can be a program name with args.
13327 set dummy $ac_prog; ac_word=$2
13328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   if test -n "$ac_ct_F77"; then
13334   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339   IFS=$as_save_IFS
13340   test -z "$as_dir" && as_dir=.
13341   for ac_exec_ext in '' $ac_executable_extensions; do
13342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13343     ac_cv_prog_ac_ct_F77="$ac_prog"
13344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345     break 2
13346   fi
13347 done
13348 done
13349 IFS=$as_save_IFS
13350
13351 fi
13352 fi
13353 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13354 if test -n "$ac_ct_F77"; then
13355   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13356 echo "${ECHO_T}$ac_ct_F77" >&6; }
13357 else
13358   { echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6; }
13360 fi
13361
13362
13363   test -n "$ac_ct_F77" && break
13364 done
13365
13366   if test "x$ac_ct_F77" = x; then
13367     F77=""
13368   else
13369     case $cross_compiling:$ac_tool_warned in
13370 yes:)
13371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13372 whose name does not start with the host triplet.  If you think this
13373 configuration is useful to you, please write to autoconf@gnu.org." >&5
13374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13375 whose name does not start with the host triplet.  If you think this
13376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13377 ac_tool_warned=yes ;;
13378 esac
13379     F77=$ac_ct_F77
13380   fi
13381 fi
13382
13383
13384 # Provide some information about the compiler.
13385 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13386 ac_compiler=`set X $ac_compile; echo $2`
13387 { (ac_try="$ac_compiler --version >&5"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_compiler --version >&5") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }
13397 { (ac_try="$ac_compiler -v >&5"
13398 case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_compiler -v >&5") 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }
13407 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }
13417 rm -f a.out
13418
13419 # If we don't use `.F' as extension, the preprocessor is not run on the
13420 # input file.  (Note that this only needs to work for GNU compilers.)
13421 ac_save_ext=$ac_ext
13422 ac_ext=F
13423 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13424 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13425 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   cat >conftest.$ac_ext <<_ACEOF
13429       program main
13430 #ifndef __GNUC__
13431        choke me
13432 #endif
13433
13434       end
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; } &&
13460          { ac_try='test -s conftest.$ac_objext'
13461   { (case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_try") 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   ac_compiler_gnu=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475         ac_compiler_gnu=no
13476 fi
13477
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13480
13481 fi
13482 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13483 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13484 ac_ext=$ac_save_ext
13485 ac_test_FFLAGS=${FFLAGS+set}
13486 ac_save_FFLAGS=$FFLAGS
13487 FFLAGS=
13488 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13489 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13490 if test "${ac_cv_prog_f77_g+set}" = set; then
13491   echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493   FFLAGS=-g
13494 cat >conftest.$ac_ext <<_ACEOF
13495       program main
13496
13497       end
13498 _ACEOF
13499 rm -f conftest.$ac_objext
13500 if { (ac_try="$ac_compile"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_compile") 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } &&
13513          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13514   { (case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_try") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest.$ac_objext'
13524   { (case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_try") 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_cv_prog_f77_g=yes
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538         ac_cv_prog_f77_g=no
13539 fi
13540
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542
13543 fi
13544 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13545 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13546 if test "$ac_test_FFLAGS" = set; then
13547   FFLAGS=$ac_save_FFLAGS
13548 elif test $ac_cv_prog_f77_g = yes; then
13549   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13550     FFLAGS="-g -O2"
13551   else
13552     FFLAGS="-g"
13553   fi
13554 else
13555   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13556     FFLAGS="-O2"
13557   else
13558     FFLAGS=
13559   fi
13560 fi
13561
13562 G77=`test $ac_compiler_gnu = yes && echo yes`
13563 ac_ext=c
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
13569
13570
13571 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13572
13573 # find the maximum length of command line arguments
13574 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13575 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13576 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579     i=0
13580   teststring="ABCD"
13581
13582   case $build_os in
13583   msdosdjgpp*)
13584     # On DJGPP, this test can blow up pretty badly due to problems in libc
13585     # (any single argument exceeding 2000 bytes causes a buffer overrun
13586     # during glob expansion).  Even if it were fixed, the result of this
13587     # check would be larger than it should be.
13588     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13589     ;;
13590
13591   gnu*)
13592     # Under GNU Hurd, this test is not required because there is
13593     # no limit to the length of command line arguments.
13594     # Libtool will interpret -1 as no limit whatsoever
13595     lt_cv_sys_max_cmd_len=-1;
13596     ;;
13597
13598   cygwin* | mingw*)
13599     # On Win9x/ME, this test blows up -- it succeeds, but takes
13600     # about 5 minutes as the teststring grows exponentially.
13601     # Worse, since 9x/ME are not pre-emptively multitasking,
13602     # you end up with a "frozen" computer, even though with patience
13603     # the test eventually succeeds (with a max line length of 256k).
13604     # Instead, let's just punt: use the minimum linelength reported by
13605     # all of the supported platforms: 8192 (on NT/2K/XP).
13606     lt_cv_sys_max_cmd_len=8192;
13607     ;;
13608
13609   amigaos*)
13610     # On AmigaOS with pdksh, this test takes hours, literally.
13611     # So we just punt and use a minimum line length of 8192.
13612     lt_cv_sys_max_cmd_len=8192;
13613     ;;
13614
13615   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13616     # This has been around since 386BSD, at least.  Likely further.
13617     if test -x /sbin/sysctl; then
13618       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13619     elif test -x /usr/sbin/sysctl; then
13620       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13621     else
13622       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13623     fi
13624     # And add a safety zone
13625     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13626     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13627     ;;
13628
13629   interix*)
13630     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13631     lt_cv_sys_max_cmd_len=196608
13632     ;;
13633
13634   osf*)
13635     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13636     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13637     # nice to cause kernel panics so lets avoid the loop below.
13638     # First set a reasonable default.
13639     lt_cv_sys_max_cmd_len=16384
13640     #
13641     if test -x /sbin/sysconfig; then
13642       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13643         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13644       esac
13645     fi
13646     ;;
13647   sco3.2v5*)
13648     lt_cv_sys_max_cmd_len=102400
13649     ;;
13650   sysv5* | sco5v6* | sysv4.2uw2*)
13651     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13652     if test -n "$kargmax"; then
13653       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13654     else
13655       lt_cv_sys_max_cmd_len=32768
13656     fi
13657     ;;
13658   *)
13659     # If test is not a shell built-in, we'll probably end up computing a
13660     # maximum length that is only half of the actual maximum length, but
13661     # we can't tell.
13662     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13663     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13664                = "XX$teststring") >/dev/null 2>&1 &&
13665             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13666             lt_cv_sys_max_cmd_len=$new_result &&
13667             test $i != 17 # 1/2 MB should be enough
13668     do
13669       i=`expr $i + 1`
13670       teststring=$teststring$teststring
13671     done
13672     teststring=
13673     # Add a significant safety factor because C++ compilers can tack on massive
13674     # amounts of additional arguments before passing them to the linker.
13675     # It appears as though 1/2 is a usable value.
13676     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13677     ;;
13678   esac
13679
13680 fi
13681
13682 if test -n $lt_cv_sys_max_cmd_len ; then
13683   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13684 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13685 else
13686   { echo "$as_me:$LINENO: result: none" >&5
13687 echo "${ECHO_T}none" >&6; }
13688 fi
13689
13690
13691
13692
13693 # Check for command to grab the raw symbol name followed by C symbol from nm.
13694 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13695 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13696 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699
13700 # These are sane defaults that work on at least a few old systems.
13701 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13702
13703 # Character class describing NM global symbol codes.
13704 symcode='[BCDEGRST]'
13705
13706 # Regexp to match symbols that can be accessed directly from C.
13707 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13708
13709 # Transform an extracted symbol line into a proper C declaration
13710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13711
13712 # Transform an extracted symbol line into symbol name and symbol address
13713 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'"
13714
13715 # Define system-specific variables.
13716 case $host_os in
13717 aix*)
13718   symcode='[BCDT]'
13719   ;;
13720 cygwin* | mingw* | pw32*)
13721   symcode='[ABCDGISTW]'
13722   ;;
13723 hpux*) # Its linker distinguishes data from code symbols
13724   if test "$host_cpu" = ia64; then
13725     symcode='[ABCDEGRST]'
13726   fi
13727   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13728   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'"
13729   ;;
13730 linux*)
13731   if test "$host_cpu" = ia64; then
13732     symcode='[ABCDGIRSTW]'
13733     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13734     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'"
13735   fi
13736   ;;
13737 irix* | nonstopux*)
13738   symcode='[BCDEGRST]'
13739   ;;
13740 osf*)
13741   symcode='[BCDEGQRST]'
13742   ;;
13743 solaris*)
13744   symcode='[BDRT]'
13745   ;;
13746 sco3.2v5*)
13747   symcode='[DT]'
13748   ;;
13749 sysv4.2uw2*)
13750   symcode='[DT]'
13751   ;;
13752 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13753   symcode='[ABDT]'
13754   ;;
13755 sysv4)
13756   symcode='[DFNSTU]'
13757   ;;
13758 esac
13759
13760 # Handle CRLF in mingw tool chain
13761 opt_cr=
13762 case $build_os in
13763 mingw*)
13764   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13765   ;;
13766 esac
13767
13768 # If we're using GNU nm, then use its standard symbol codes.
13769 case `$NM -V 2>&1` in
13770 *GNU* | *'with BFD'*)
13771   symcode='[ABCDGIRSTW]' ;;
13772 esac
13773
13774 # Try without a prefix undercore, then with it.
13775 for ac_symprfx in "" "_"; do
13776
13777   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13778   symxfrm="\\1 $ac_symprfx\\2 \\2"
13779
13780   # Write the raw and C identifiers.
13781   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13782
13783   # Check to see that the pipe works correctly.
13784   pipe_works=no
13785
13786   rm -f conftest*
13787   cat > conftest.$ac_ext <<EOF
13788 #ifdef __cplusplus
13789 extern "C" {
13790 #endif
13791 char nm_test_var;
13792 void nm_test_func(){}
13793 #ifdef __cplusplus
13794 }
13795 #endif
13796 int main(){nm_test_var='a';nm_test_func();return(0);}
13797 EOF
13798
13799   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800   (eval $ac_compile) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; then
13804     # Now try to grab the symbols.
13805     nlist=conftest.nm
13806     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13807   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } && test -s "$nlist"; then
13811       # Try sorting and uniquifying the output.
13812       if sort "$nlist" | uniq > "$nlist"T; then
13813         mv -f "$nlist"T "$nlist"
13814       else
13815         rm -f "$nlist"T
13816       fi
13817
13818       # Make sure that we snagged all the symbols we need.
13819       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13820         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13821           cat <<EOF > conftest.$ac_ext
13822 #ifdef __cplusplus
13823 extern "C" {
13824 #endif
13825
13826 EOF
13827           # Now generate the symbol file.
13828           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13829
13830           cat <<EOF >> conftest.$ac_ext
13831 #if defined (__STDC__) && __STDC__
13832 # define lt_ptr_t void *
13833 #else
13834 # define lt_ptr_t char *
13835 # define const
13836 #endif
13837
13838 /* The mapping between symbol names and symbols. */
13839 const struct {
13840   const char *name;
13841   lt_ptr_t address;
13842 }
13843 lt_preloaded_symbols[] =
13844 {
13845 EOF
13846           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13847           cat <<\EOF >> conftest.$ac_ext
13848   {0, (lt_ptr_t) 0}
13849 };
13850
13851 #ifdef __cplusplus
13852 }
13853 #endif
13854 EOF
13855           # Now try linking the two files.
13856           mv conftest.$ac_objext conftstm.$ac_objext
13857           lt_save_LIBS="$LIBS"
13858           lt_save_CFLAGS="$CFLAGS"
13859           LIBS="conftstm.$ac_objext"
13860           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13861           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862   (eval $ac_link) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13866             pipe_works=yes
13867           fi
13868           LIBS="$lt_save_LIBS"
13869           CFLAGS="$lt_save_CFLAGS"
13870         else
13871           echo "cannot find nm_test_func in $nlist" >&5
13872         fi
13873       else
13874         echo "cannot find nm_test_var in $nlist" >&5
13875       fi
13876     else
13877       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13878     fi
13879   else
13880     echo "$progname: failed program was:" >&5
13881     cat conftest.$ac_ext >&5
13882   fi
13883   rm -f conftest* conftst*
13884
13885   # Do not use the global_symbol_pipe unless it works.
13886   if test "$pipe_works" = yes; then
13887     break
13888   else
13889     lt_cv_sys_global_symbol_pipe=
13890   fi
13891 done
13892
13893 fi
13894
13895 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13896   lt_cv_sys_global_symbol_to_cdecl=
13897 fi
13898 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13899   { echo "$as_me:$LINENO: result: failed" >&5
13900 echo "${ECHO_T}failed" >&6; }
13901 else
13902   { echo "$as_me:$LINENO: result: ok" >&5
13903 echo "${ECHO_T}ok" >&6; }
13904 fi
13905
13906 { echo "$as_me:$LINENO: checking for objdir" >&5
13907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13908 if test "${lt_cv_objdir+set}" = set; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911   rm -f .libs 2>/dev/null
13912 mkdir .libs 2>/dev/null
13913 if test -d .libs; then
13914   lt_cv_objdir=.libs
13915 else
13916   # MS-DOS does not allow filenames that begin with a dot.
13917   lt_cv_objdir=_libs
13918 fi
13919 rmdir .libs 2>/dev/null
13920 fi
13921 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13922 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13923 objdir=$lt_cv_objdir
13924
13925
13926
13927
13928
13929 case $host_os in
13930 aix3*)
13931   # AIX sometimes has problems with the GCC collect2 program.  For some
13932   # reason, if we set the COLLECT_NAMES environment variable, the problems
13933   # vanish in a puff of smoke.
13934   if test "X${COLLECT_NAMES+set}" != Xset; then
13935     COLLECT_NAMES=
13936     export COLLECT_NAMES
13937   fi
13938   ;;
13939 esac
13940
13941 # Sed substitution that helps us do robust quoting.  It backslashifies
13942 # metacharacters that are still active within double-quoted strings.
13943 Xsed='sed -e 1s/^X//'
13944 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13945
13946 # Same as above, but do not quote variable references.
13947 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13948
13949 # Sed substitution to delay expansion of an escaped shell variable in a
13950 # double_quote_subst'ed string.
13951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13952
13953 # Sed substitution to avoid accidental globbing in evaled expressions
13954 no_glob_subst='s/\*/\\\*/g'
13955
13956 # Constants:
13957 rm="rm -f"
13958
13959 # Global variables:
13960 default_ofile=mklib
13961 can_build_shared=yes
13962
13963 # All known linkers require a `.a' archive for static linking (except MSVC,
13964 # which needs '.lib').
13965 libext=a
13966 ltmain="$ac_aux_dir/ltmain.sh"
13967 ofile="$default_ofile"
13968 with_gnu_ld="$lt_cv_prog_gnu_ld"
13969
13970 if test -n "$ac_tool_prefix"; then
13971   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13972 set dummy ${ac_tool_prefix}ar; ac_word=$2
13973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975 if test "${ac_cv_prog_AR+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   if test -n "$AR"; then
13979   ac_cv_prog_AR="$AR" # Let the user override the test.
13980 else
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13983 do
13984   IFS=$as_save_IFS
13985   test -z "$as_dir" && as_dir=.
13986   for ac_exec_ext in '' $ac_executable_extensions; do
13987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13988     ac_cv_prog_AR="${ac_tool_prefix}ar"
13989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990     break 2
13991   fi
13992 done
13993 done
13994 IFS=$as_save_IFS
13995
13996 fi
13997 fi
13998 AR=$ac_cv_prog_AR
13999 if test -n "$AR"; then
14000   { echo "$as_me:$LINENO: result: $AR" >&5
14001 echo "${ECHO_T}$AR" >&6; }
14002 else
14003   { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14005 fi
14006
14007
14008 fi
14009 if test -z "$ac_cv_prog_AR"; then
14010   ac_ct_AR=$AR
14011   # Extract the first word of "ar", so it can be a program name with args.
14012 set dummy ar; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   if test -n "$ac_ct_AR"; then
14019   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026   for ac_exec_ext in '' $ac_executable_extensions; do
14027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14028     ac_cv_prog_ac_ct_AR="ar"
14029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030     break 2
14031   fi
14032 done
14033 done
14034 IFS=$as_save_IFS
14035
14036 fi
14037 fi
14038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14039 if test -n "$ac_ct_AR"; then
14040   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14041 echo "${ECHO_T}$ac_ct_AR" >&6; }
14042 else
14043   { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14045 fi
14046
14047   if test "x$ac_ct_AR" = x; then
14048     AR="false"
14049   else
14050     case $cross_compiling:$ac_tool_warned in
14051 yes:)
14052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14053 whose name does not start with the host triplet.  If you think this
14054 configuration is useful to you, please write to autoconf@gnu.org." >&5
14055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14056 whose name does not start with the host triplet.  If you think this
14057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14058 ac_tool_warned=yes ;;
14059 esac
14060     AR=$ac_ct_AR
14061   fi
14062 else
14063   AR="$ac_cv_prog_AR"
14064 fi
14065
14066 if test -n "$ac_tool_prefix"; then
14067   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071 if test "${ac_cv_prog_RANLIB+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   if test -n "$RANLIB"; then
14075   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14076 else
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14079 do
14080   IFS=$as_save_IFS
14081   test -z "$as_dir" && as_dir=.
14082   for ac_exec_ext in '' $ac_executable_extensions; do
14083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14084     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086     break 2
14087   fi
14088 done
14089 done
14090 IFS=$as_save_IFS
14091
14092 fi
14093 fi
14094 RANLIB=$ac_cv_prog_RANLIB
14095 if test -n "$RANLIB"; then
14096   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14097 echo "${ECHO_T}$RANLIB" >&6; }
14098 else
14099   { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14101 fi
14102
14103
14104 fi
14105 if test -z "$ac_cv_prog_RANLIB"; then
14106   ac_ct_RANLIB=$RANLIB
14107   # Extract the first word of "ranlib", so it can be a program name with args.
14108 set dummy ranlib; ac_word=$2
14109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   if test -n "$ac_ct_RANLIB"; then
14115   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14119 do
14120   IFS=$as_save_IFS
14121   test -z "$as_dir" && as_dir=.
14122   for ac_exec_ext in '' $ac_executable_extensions; do
14123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14124     ac_cv_prog_ac_ct_RANLIB="ranlib"
14125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14126     break 2
14127   fi
14128 done
14129 done
14130 IFS=$as_save_IFS
14131
14132 fi
14133 fi
14134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14135 if test -n "$ac_ct_RANLIB"; then
14136   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14138 else
14139   { echo "$as_me:$LINENO: result: no" >&5
14140 echo "${ECHO_T}no" >&6; }
14141 fi
14142
14143   if test "x$ac_ct_RANLIB" = x; then
14144     RANLIB=":"
14145   else
14146     case $cross_compiling:$ac_tool_warned in
14147 yes:)
14148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14149 whose name does not start with the host triplet.  If you think this
14150 configuration is useful to you, please write to autoconf@gnu.org." >&5
14151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14152 whose name does not start with the host triplet.  If you think this
14153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14154 ac_tool_warned=yes ;;
14155 esac
14156     RANLIB=$ac_ct_RANLIB
14157   fi
14158 else
14159   RANLIB="$ac_cv_prog_RANLIB"
14160 fi
14161
14162 if test -n "$ac_tool_prefix"; then
14163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14164 set dummy ${ac_tool_prefix}strip; ac_word=$2
14165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14167 if test "${ac_cv_prog_STRIP+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   if test -n "$STRIP"; then
14171   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14172 else
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14175 do
14176   IFS=$as_save_IFS
14177   test -z "$as_dir" && as_dir=.
14178   for ac_exec_ext in '' $ac_executable_extensions; do
14179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14180     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182     break 2
14183   fi
14184 done
14185 done
14186 IFS=$as_save_IFS
14187
14188 fi
14189 fi
14190 STRIP=$ac_cv_prog_STRIP
14191 if test -n "$STRIP"; then
14192   { echo "$as_me:$LINENO: result: $STRIP" >&5
14193 echo "${ECHO_T}$STRIP" >&6; }
14194 else
14195   { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14197 fi
14198
14199
14200 fi
14201 if test -z "$ac_cv_prog_STRIP"; then
14202   ac_ct_STRIP=$STRIP
14203   # Extract the first word of "strip", so it can be a program name with args.
14204 set dummy strip; ac_word=$2
14205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   if test -n "$ac_ct_STRIP"; then
14211   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14212 else
14213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14215 do
14216   IFS=$as_save_IFS
14217   test -z "$as_dir" && as_dir=.
14218   for ac_exec_ext in '' $ac_executable_extensions; do
14219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14220     ac_cv_prog_ac_ct_STRIP="strip"
14221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14222     break 2
14223   fi
14224 done
14225 done
14226 IFS=$as_save_IFS
14227
14228 fi
14229 fi
14230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14231 if test -n "$ac_ct_STRIP"; then
14232   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14233 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14234 else
14235   { echo "$as_me:$LINENO: result: no" >&5
14236 echo "${ECHO_T}no" >&6; }
14237 fi
14238
14239   if test "x$ac_ct_STRIP" = x; then
14240     STRIP=":"
14241   else
14242     case $cross_compiling:$ac_tool_warned in
14243 yes:)
14244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14245 whose name does not start with the host triplet.  If you think this
14246 configuration is useful to you, please write to autoconf@gnu.org." >&5
14247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14248 whose name does not start with the host triplet.  If you think this
14249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14250 ac_tool_warned=yes ;;
14251 esac
14252     STRIP=$ac_ct_STRIP
14253   fi
14254 else
14255   STRIP="$ac_cv_prog_STRIP"
14256 fi
14257
14258
14259 old_CC="$CC"
14260 old_CFLAGS="$CFLAGS"
14261
14262 # Set sane defaults for various variables
14263 test -z "$AR" && AR=ar
14264 test -z "$AR_FLAGS" && AR_FLAGS=cru
14265 test -z "$AS" && AS=as
14266 test -z "$CC" && CC=cc
14267 test -z "$LTCC" && LTCC=$CC
14268 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14269 test -z "$DLLTOOL" && DLLTOOL=dlltool
14270 test -z "$LD" && LD=ld
14271 test -z "$LN_S" && LN_S="ln -s"
14272 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14273 test -z "$NM" && NM=nm
14274 test -z "$SED" && SED=sed
14275 test -z "$OBJDUMP" && OBJDUMP=objdump
14276 test -z "$RANLIB" && RANLIB=:
14277 test -z "$STRIP" && STRIP=:
14278 test -z "$ac_objext" && ac_objext=o
14279
14280 # Determine commands to create old-style static archives.
14281 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14282 old_postinstall_cmds='chmod 644 $oldlib'
14283 old_postuninstall_cmds=
14284
14285 if test -n "$RANLIB"; then
14286   case $host_os in
14287   openbsd*)
14288     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14289     ;;
14290   *)
14291     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14292     ;;
14293   esac
14294   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14295 fi
14296
14297 for cc_temp in $compiler""; do
14298   case $cc_temp in
14299     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14301     \-*) ;;
14302     *) break;;
14303   esac
14304 done
14305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14306
14307
14308 # Only perform the check for file, if the check method requires it
14309 case $deplibs_check_method in
14310 file_magic*)
14311   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14312     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14313 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   case $MAGIC_CMD in
14318 [\\/*] |  ?:[\\/]*)
14319   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14320   ;;
14321 *)
14322   lt_save_MAGIC_CMD="$MAGIC_CMD"
14323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14324   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14325   for ac_dir in $ac_dummy; do
14326     IFS="$lt_save_ifs"
14327     test -z "$ac_dir" && ac_dir=.
14328     if test -f $ac_dir/${ac_tool_prefix}file; then
14329       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14330       if test -n "$file_magic_test_file"; then
14331         case $deplibs_check_method in
14332         "file_magic "*)
14333           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14334           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14336             $EGREP "$file_magic_regex" > /dev/null; then
14337             :
14338           else
14339             cat <<EOF 1>&2
14340
14341 *** Warning: the command libtool uses to detect shared libraries,
14342 *** $file_magic_cmd, produces output that libtool cannot recognize.
14343 *** The result is that libtool may fail to recognize shared libraries
14344 *** as such.  This will affect the creation of libtool libraries that
14345 *** depend on shared libraries, but programs linked with such libtool
14346 *** libraries will work regardless of this problem.  Nevertheless, you
14347 *** may want to report the problem to your system manager and/or to
14348 *** bug-libtool@gnu.org
14349
14350 EOF
14351           fi ;;
14352         esac
14353       fi
14354       break
14355     fi
14356   done
14357   IFS="$lt_save_ifs"
14358   MAGIC_CMD="$lt_save_MAGIC_CMD"
14359   ;;
14360 esac
14361 fi
14362
14363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364 if test -n "$MAGIC_CMD"; then
14365   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14367 else
14368   { echo "$as_me:$LINENO: result: no" >&5
14369 echo "${ECHO_T}no" >&6; }
14370 fi
14371
14372 if test -z "$lt_cv_path_MAGIC_CMD"; then
14373   if test -n "$ac_tool_prefix"; then
14374     { echo "$as_me:$LINENO: checking for file" >&5
14375 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   case $MAGIC_CMD in
14380 [\\/*] |  ?:[\\/]*)
14381   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14382   ;;
14383 *)
14384   lt_save_MAGIC_CMD="$MAGIC_CMD"
14385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14386   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14387   for ac_dir in $ac_dummy; do
14388     IFS="$lt_save_ifs"
14389     test -z "$ac_dir" && ac_dir=.
14390     if test -f $ac_dir/file; then
14391       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14392       if test -n "$file_magic_test_file"; then
14393         case $deplibs_check_method in
14394         "file_magic "*)
14395           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14396           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14397           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14398             $EGREP "$file_magic_regex" > /dev/null; then
14399             :
14400           else
14401             cat <<EOF 1>&2
14402
14403 *** Warning: the command libtool uses to detect shared libraries,
14404 *** $file_magic_cmd, produces output that libtool cannot recognize.
14405 *** The result is that libtool may fail to recognize shared libraries
14406 *** as such.  This will affect the creation of libtool libraries that
14407 *** depend on shared libraries, but programs linked with such libtool
14408 *** libraries will work regardless of this problem.  Nevertheless, you
14409 *** may want to report the problem to your system manager and/or to
14410 *** bug-libtool@gnu.org
14411
14412 EOF
14413           fi ;;
14414         esac
14415       fi
14416       break
14417     fi
14418   done
14419   IFS="$lt_save_ifs"
14420   MAGIC_CMD="$lt_save_MAGIC_CMD"
14421   ;;
14422 esac
14423 fi
14424
14425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14426 if test -n "$MAGIC_CMD"; then
14427   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14428 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14429 else
14430   { echo "$as_me:$LINENO: result: no" >&5
14431 echo "${ECHO_T}no" >&6; }
14432 fi
14433
14434   else
14435     MAGIC_CMD=:
14436   fi
14437 fi
14438
14439   fi
14440   ;;
14441 esac
14442
14443 enable_dlopen=yes
14444 enable_win32_dll=no
14445
14446 # Check whether --enable-libtool-lock was given.
14447 if test "${enable_libtool_lock+set}" = set; then
14448   enableval=$enable_libtool_lock;
14449 fi
14450
14451 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14452
14453
14454 # Check whether --with-pic was given.
14455 if test "${with_pic+set}" = set; then
14456   withval=$with_pic; pic_mode="$withval"
14457 else
14458   pic_mode=default
14459 fi
14460
14461 test -z "$pic_mode" && pic_mode=default
14462
14463 # Use C for the default configuration in the libtool script
14464 tagname=
14465 lt_save_CC="$CC"
14466 ac_ext=c
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14471
14472
14473 # Source file extension for C test sources.
14474 ac_ext=c
14475
14476 # Object file extension for compiled C test sources.
14477 objext=o
14478 objext=$objext
14479
14480 # Code to be used in simple compile tests
14481 lt_simple_compile_test_code="int some_variable = 0;\n"
14482
14483 # Code to be used in simple link tests
14484 lt_simple_link_test_code='int main(){return(0);}\n'
14485
14486
14487 # If no C compiler was specified, use CC.
14488 LTCC=${LTCC-"$CC"}
14489
14490 # If no C compiler flags were specified, use CFLAGS.
14491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14492
14493 # Allow CC to be a program name with arguments.
14494 compiler=$CC
14495
14496
14497 # save warnings/boilerplate of simple test code
14498 ac_outfile=conftest.$ac_objext
14499 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14500 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14501 _lt_compiler_boilerplate=`cat conftest.err`
14502 $rm conftest*
14503
14504 ac_outfile=conftest.$ac_objext
14505 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14506 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14507 _lt_linker_boilerplate=`cat conftest.err`
14508 $rm conftest*
14509
14510
14511
14512 lt_prog_compiler_no_builtin_flag=
14513
14514 if test "$GCC" = yes; then
14515   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14516
14517
14518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14521   echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523   lt_cv_prog_compiler_rtti_exceptions=no
14524   ac_outfile=conftest.$ac_objext
14525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526    lt_compiler_flag="-fno-rtti -fno-exceptions"
14527    # Insert the option either (1) after the last *FLAGS variable, or
14528    # (2) before a word containing "conftest.", or (3) at the end.
14529    # Note that $ac_compile itself does not contain backslashes and begins
14530    # with a dollar sign (not a hyphen), so the echo should work correctly.
14531    # The option is referenced via a variable to avoid confusing sed.
14532    lt_compile=`echo "$ac_compile" | $SED \
14533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535    -e 's:$: $lt_compiler_flag:'`
14536    (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
14537    (eval "$lt_compile" 2>conftest.err)
14538    ac_status=$?
14539    cat conftest.err >&5
14540    echo "$as_me:14540: \$? = $ac_status" >&5
14541    if (exit $ac_status) && test -s "$ac_outfile"; then
14542      # The compiler can only warn and ignore the option if not recognized
14543      # So say no if there are warnings other than the usual output.
14544      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14545      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14546      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14547        lt_cv_prog_compiler_rtti_exceptions=yes
14548      fi
14549    fi
14550    $rm conftest*
14551
14552 fi
14553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14555
14556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14557     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14558 else
14559     :
14560 fi
14561
14562 fi
14563
14564 lt_prog_compiler_wl=
14565 lt_prog_compiler_pic=
14566 lt_prog_compiler_static=
14567
14568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14570
14571   if test "$GCC" = yes; then
14572     lt_prog_compiler_wl='-Wl,'
14573     lt_prog_compiler_static='-static'
14574
14575     case $host_os in
14576       aix*)
14577       # All AIX code is PIC.
14578       if test "$host_cpu" = ia64; then
14579         # AIX 5 now supports IA64 processor
14580         lt_prog_compiler_static='-Bstatic'
14581       fi
14582       ;;
14583
14584     amigaos*)
14585       # FIXME: we need at least 68020 code to build shared libraries, but
14586       # adding the `-m68020' flag to GCC prevents building anything better,
14587       # like `-m68040'.
14588       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14589       ;;
14590
14591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14592       # PIC is the default for these OSes.
14593       ;;
14594
14595     mingw* | pw32* | os2*)
14596       # This hack is so that the source file can tell whether it is being
14597       # built for inclusion in a dll (and should export symbols for example).
14598       lt_prog_compiler_pic='-DDLL_EXPORT'
14599       ;;
14600
14601     darwin* | rhapsody*)
14602       # PIC is the default on this platform
14603       # Common symbols not allowed in MH_DYLIB files
14604       lt_prog_compiler_pic='-fno-common'
14605       ;;
14606
14607     interix3*)
14608       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14609       # Instead, we relocate shared libraries at runtime.
14610       ;;
14611
14612     msdosdjgpp*)
14613       # Just because we use GCC doesn't mean we suddenly get shared libraries
14614       # on systems that don't support them.
14615       lt_prog_compiler_can_build_shared=no
14616       enable_shared=no
14617       ;;
14618
14619     sysv4*MP*)
14620       if test -d /usr/nec; then
14621         lt_prog_compiler_pic=-Kconform_pic
14622       fi
14623       ;;
14624
14625     hpux*)
14626       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14627       # not for PA HP-UX.
14628       case $host_cpu in
14629       hppa*64*|ia64*)
14630         # +Z the default
14631         ;;
14632       *)
14633         lt_prog_compiler_pic='-fPIC'
14634         ;;
14635       esac
14636       ;;
14637
14638     *)
14639       lt_prog_compiler_pic='-fPIC'
14640       ;;
14641     esac
14642   else
14643     # PORTME Check for flag to pass linker flags through the system compiler.
14644     case $host_os in
14645     aix*)
14646       lt_prog_compiler_wl='-Wl,'
14647       if test "$host_cpu" = ia64; then
14648         # AIX 5 now supports IA64 processor
14649         lt_prog_compiler_static='-Bstatic'
14650       else
14651         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14652       fi
14653       ;;
14654       darwin*)
14655         # PIC is the default on this platform
14656         # Common symbols not allowed in MH_DYLIB files
14657        case $cc_basename in
14658          xlc*)
14659          lt_prog_compiler_pic='-qnocommon'
14660          lt_prog_compiler_wl='-Wl,'
14661          ;;
14662        esac
14663        ;;
14664
14665     mingw* | pw32* | os2*)
14666       # This hack is so that the source file can tell whether it is being
14667       # built for inclusion in a dll (and should export symbols for example).
14668       lt_prog_compiler_pic='-DDLL_EXPORT'
14669       ;;
14670
14671     hpux9* | hpux10* | hpux11*)
14672       lt_prog_compiler_wl='-Wl,'
14673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14674       # not for PA HP-UX.
14675       case $host_cpu in
14676       hppa*64*|ia64*)
14677         # +Z the default
14678         ;;
14679       *)
14680         lt_prog_compiler_pic='+Z'
14681         ;;
14682       esac
14683       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14684       lt_prog_compiler_static='${wl}-a ${wl}archive'
14685       ;;
14686
14687     irix5* | irix6* | nonstopux*)
14688       lt_prog_compiler_wl='-Wl,'
14689       # PIC (with -KPIC) is the default.
14690       lt_prog_compiler_static='-non_shared'
14691       ;;
14692
14693     newsos6)
14694       lt_prog_compiler_pic='-KPIC'
14695       lt_prog_compiler_static='-Bstatic'
14696       ;;
14697
14698     linux*)
14699       case $cc_basename in
14700       icc* | ecc*)
14701         lt_prog_compiler_wl='-Wl,'
14702         lt_prog_compiler_pic='-KPIC'
14703         lt_prog_compiler_static='-static'
14704         ;;
14705       pgcc* | pgf77* | pgf90* | pgf95*)
14706         # Portland Group compilers (*not* the Pentium gcc compiler,
14707         # which looks to be a dead project)
14708         lt_prog_compiler_wl='-Wl,'
14709         lt_prog_compiler_pic='-fpic'
14710         lt_prog_compiler_static='-Bstatic'
14711         ;;
14712       ccc*)
14713         lt_prog_compiler_wl='-Wl,'
14714         # All Alpha code is PIC.
14715         lt_prog_compiler_static='-non_shared'
14716         ;;
14717       esac
14718       ;;
14719
14720     osf3* | osf4* | osf5*)
14721       lt_prog_compiler_wl='-Wl,'
14722       # All OSF/1 code is PIC.
14723       lt_prog_compiler_static='-non_shared'
14724       ;;
14725
14726     solaris*)
14727       lt_prog_compiler_pic='-KPIC'
14728       lt_prog_compiler_static='-Bstatic'
14729       case $cc_basename in
14730       f77* | f90* | f95*)
14731         lt_prog_compiler_wl='-Qoption ld ';;
14732       *)
14733         lt_prog_compiler_wl='-Wl,';;
14734       esac
14735       ;;
14736
14737     sunos4*)
14738       lt_prog_compiler_wl='-Qoption ld '
14739       lt_prog_compiler_pic='-PIC'
14740       lt_prog_compiler_static='-Bstatic'
14741       ;;
14742
14743     sysv4 | sysv4.2uw2* | sysv4.3*)
14744       lt_prog_compiler_wl='-Wl,'
14745       lt_prog_compiler_pic='-KPIC'
14746       lt_prog_compiler_static='-Bstatic'
14747       ;;
14748
14749     sysv4*MP*)
14750       if test -d /usr/nec ;then
14751         lt_prog_compiler_pic='-Kconform_pic'
14752         lt_prog_compiler_static='-Bstatic'
14753       fi
14754       ;;
14755
14756     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14757       lt_prog_compiler_wl='-Wl,'
14758       lt_prog_compiler_pic='-KPIC'
14759       lt_prog_compiler_static='-Bstatic'
14760       ;;
14761
14762     unicos*)
14763       lt_prog_compiler_wl='-Wl,'
14764       lt_prog_compiler_can_build_shared=no
14765       ;;
14766
14767     uts4*)
14768       lt_prog_compiler_pic='-pic'
14769       lt_prog_compiler_static='-Bstatic'
14770       ;;
14771
14772     *)
14773       lt_prog_compiler_can_build_shared=no
14774       ;;
14775     esac
14776   fi
14777
14778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14779 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14780
14781 #
14782 # Check to make sure the PIC flag actually works.
14783 #
14784 if test -n "$lt_prog_compiler_pic"; then
14785
14786 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14788 if test "${lt_prog_compiler_pic_works+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   lt_prog_compiler_pic_works=no
14792   ac_outfile=conftest.$ac_objext
14793    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14794    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14795    # Insert the option either (1) after the last *FLAGS variable, or
14796    # (2) before a word containing "conftest.", or (3) at the end.
14797    # Note that $ac_compile itself does not contain backslashes and begins
14798    # with a dollar sign (not a hyphen), so the echo should work correctly.
14799    # The option is referenced via a variable to avoid confusing sed.
14800    lt_compile=`echo "$ac_compile" | $SED \
14801    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14803    -e 's:$: $lt_compiler_flag:'`
14804    (eval echo "\"\$as_me:14804: $lt_compile\"" >&5)
14805    (eval "$lt_compile" 2>conftest.err)
14806    ac_status=$?
14807    cat conftest.err >&5
14808    echo "$as_me:14808: \$? = $ac_status" >&5
14809    if (exit $ac_status) && test -s "$ac_outfile"; then
14810      # The compiler can only warn and ignore the option if not recognized
14811      # So say no if there are warnings other than the usual output.
14812      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14813      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14814      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14815        lt_prog_compiler_pic_works=yes
14816      fi
14817    fi
14818    $rm conftest*
14819
14820 fi
14821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14822 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14823
14824 if test x"$lt_prog_compiler_pic_works" = xyes; then
14825     case $lt_prog_compiler_pic in
14826      "" | " "*) ;;
14827      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14828      esac
14829 else
14830     lt_prog_compiler_pic=
14831      lt_prog_compiler_can_build_shared=no
14832 fi
14833
14834 fi
14835 case $host_os in
14836   # For platforms which do not support PIC, -DPIC is meaningless:
14837   *djgpp*)
14838     lt_prog_compiler_pic=
14839     ;;
14840   *)
14841     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14842     ;;
14843 esac
14844
14845 #
14846 # Check to make sure the static flag actually works.
14847 #
14848 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14849 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14850 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14851 if test "${lt_prog_compiler_static_works+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   lt_prog_compiler_static_works=no
14855    save_LDFLAGS="$LDFLAGS"
14856    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14857    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14858    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14859      # The linker can only warn and ignore the option if not recognized
14860      # So say no if there are warnings
14861      if test -s conftest.err; then
14862        # Append any errors to the config.log.
14863        cat conftest.err 1>&5
14864        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14865        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14866        if diff conftest.exp conftest.er2 >/dev/null; then
14867          lt_prog_compiler_static_works=yes
14868        fi
14869      else
14870        lt_prog_compiler_static_works=yes
14871      fi
14872    fi
14873    $rm conftest*
14874    LDFLAGS="$save_LDFLAGS"
14875
14876 fi
14877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14878 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14879
14880 if test x"$lt_prog_compiler_static_works" = xyes; then
14881     :
14882 else
14883     lt_prog_compiler_static=
14884 fi
14885
14886
14887 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14888 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892   lt_cv_prog_compiler_c_o=no
14893    $rm -r conftest 2>/dev/null
14894    mkdir conftest
14895    cd conftest
14896    mkdir out
14897    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14898
14899    lt_compiler_flag="-o out/conftest2.$ac_objext"
14900    # Insert the option either (1) after the last *FLAGS variable, or
14901    # (2) before a word containing "conftest.", or (3) at the end.
14902    # Note that $ac_compile itself does not contain backslashes and begins
14903    # with a dollar sign (not a hyphen), so the echo should work correctly.
14904    lt_compile=`echo "$ac_compile" | $SED \
14905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907    -e 's:$: $lt_compiler_flag:'`
14908    (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
14909    (eval "$lt_compile" 2>out/conftest.err)
14910    ac_status=$?
14911    cat out/conftest.err >&5
14912    echo "$as_me:14912: \$? = $ac_status" >&5
14913    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14914    then
14915      # The compiler can only warn and ignore the option if not recognized
14916      # So say no if there are warnings
14917      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14918      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14919      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14920        lt_cv_prog_compiler_c_o=yes
14921      fi
14922    fi
14923    chmod u+w . 2>&5
14924    $rm conftest*
14925    # SGI C++ compiler will create directory out/ii_files/ for
14926    # template instantiation
14927    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14928    $rm out/* && rmdir out
14929    cd ..
14930    rmdir conftest
14931    $rm conftest*
14932
14933 fi
14934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14935 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14936
14937
14938 hard_links="nottested"
14939 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14940   # do not overwrite the value of need_locks provided by the user
14941   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14943   hard_links=yes
14944   $rm conftest*
14945   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14946   touch conftest.a
14947   ln conftest.a conftest.b 2>&5 || hard_links=no
14948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14949   { echo "$as_me:$LINENO: result: $hard_links" >&5
14950 echo "${ECHO_T}$hard_links" >&6; }
14951   if test "$hard_links" = no; then
14952     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14954     need_locks=warn
14955   fi
14956 else
14957   need_locks=no
14958 fi
14959
14960 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14962
14963   runpath_var=
14964   allow_undefined_flag=
14965   enable_shared_with_static_runtimes=no
14966   archive_cmds=
14967   archive_expsym_cmds=
14968   old_archive_From_new_cmds=
14969   old_archive_from_expsyms_cmds=
14970   export_dynamic_flag_spec=
14971   whole_archive_flag_spec=
14972   thread_safe_flag_spec=
14973   hardcode_libdir_flag_spec=
14974   hardcode_libdir_flag_spec_ld=
14975   hardcode_libdir_separator=
14976   hardcode_direct=no
14977   hardcode_minus_L=no
14978   hardcode_shlibpath_var=unsupported
14979   link_all_deplibs=unknown
14980   hardcode_automatic=no
14981   module_cmds=
14982   module_expsym_cmds=
14983   always_export_symbols=no
14984   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14985   # include_expsyms should be a list of space-separated symbols to be *always*
14986   # included in the symbol list
14987   include_expsyms=
14988   # exclude_expsyms can be an extended regexp of symbols to exclude
14989   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14990   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14991   # as well as any symbol that contains `d'.
14992   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14993   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14994   # platforms (ab)use it in PIC code, but their linkers get confused if
14995   # the symbol is explicitly referenced.  Since portable code cannot
14996   # rely on this symbol name, it's probably fine to never include it in
14997   # preloaded symbol tables.
14998   extract_expsyms_cmds=
14999   # Just being paranoid about ensuring that cc_basename is set.
15000   for cc_temp in $compiler""; do
15001   case $cc_temp in
15002     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15003     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15004     \-*) ;;
15005     *) break;;
15006   esac
15007 done
15008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15009
15010   case $host_os in
15011   cygwin* | mingw* | pw32*)
15012     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15013     # When not using gcc, we currently assume that we are using
15014     # Microsoft Visual C++.
15015     if test "$GCC" != yes; then
15016       with_gnu_ld=no
15017     fi
15018     ;;
15019   interix*)
15020     # we just hope/assume this is gcc and not c89 (= MSVC++)
15021     with_gnu_ld=yes
15022     ;;
15023   openbsd*)
15024     with_gnu_ld=no
15025     ;;
15026   esac
15027
15028   ld_shlibs=yes
15029   if test "$with_gnu_ld" = yes; then
15030     # If archive_cmds runs LD, not CC, wlarc should be empty
15031     wlarc='${wl}'
15032
15033     # Set some defaults for GNU ld with shared library support. These
15034     # are reset later if shared libraries are not supported. Putting them
15035     # here allows them to be overridden if necessary.
15036     runpath_var=LD_RUN_PATH
15037     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15038     export_dynamic_flag_spec='${wl}--export-dynamic'
15039     # ancient GNU ld didn't support --whole-archive et. al.
15040     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15041         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15042       else
15043         whole_archive_flag_spec=
15044     fi
15045     supports_anon_versioning=no
15046     case `$LD -v 2>/dev/null` in
15047       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15048       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15049       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15050       *\ 2.11.*) ;; # other 2.11 versions
15051       *) supports_anon_versioning=yes ;;
15052     esac
15053
15054     # See if GNU ld supports shared libraries.
15055     case $host_os in
15056     aix3* | aix4* | aix5*)
15057       # On AIX/PPC, the GNU linker is very broken
15058       if test "$host_cpu" != ia64; then
15059         ld_shlibs=no
15060         cat <<EOF 1>&2
15061
15062 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15063 *** to be unable to reliably create shared libraries on AIX.
15064 *** Therefore, libtool is disabling shared libraries support.  If you
15065 *** really care for shared libraries, you may want to modify your PATH
15066 *** so that a non-GNU linker is found, and then restart.
15067
15068 EOF
15069       fi
15070       ;;
15071
15072     amigaos*)
15073       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)'
15074       hardcode_libdir_flag_spec='-L$libdir'
15075       hardcode_minus_L=yes
15076
15077       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15078       # that the semantics of dynamic libraries on AmigaOS, at least up
15079       # to version 4, is to share data among multiple programs linked
15080       # with the same dynamic library.  Since this doesn't match the
15081       # behavior of shared libraries on other platforms, we can't use
15082       # them.
15083       ld_shlibs=no
15084       ;;
15085
15086     beos*)
15087       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088         allow_undefined_flag=unsupported
15089         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15090         # support --undefined.  This deserves some investigation.  FIXME
15091         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092       else
15093         ld_shlibs=no
15094       fi
15095       ;;
15096
15097     cygwin* | mingw* | pw32*)
15098       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15099       # as there is no search path for DLLs.
15100       hardcode_libdir_flag_spec='-L$libdir'
15101       allow_undefined_flag=unsupported
15102       always_export_symbols=no
15103       enable_shared_with_static_runtimes=yes
15104       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15105
15106       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15107         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15108         # If the export-symbols file already is a .def file (1st line
15109         # is EXPORTS), use it as is; otherwise, prepend...
15110         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15111           cp $export_symbols $output_objdir/$soname.def;
15112         else
15113           echo EXPORTS > $output_objdir/$soname.def;
15114           cat $export_symbols >> $output_objdir/$soname.def;
15115         fi~
15116         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15117       else
15118         ld_shlibs=no
15119       fi
15120       ;;
15121
15122     interix3*)
15123       hardcode_direct=no
15124       hardcode_shlibpath_var=no
15125       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15126       export_dynamic_flag_spec='${wl}-E'
15127       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15128       # Instead, shared libraries are loaded at an image base (0x10000000 by
15129       # default) and relocated if they conflict, which is a slow very memory
15130       # consuming and fragmenting process.  To avoid this, we pick a random,
15131       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15132       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15133       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15134       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'
15135       ;;
15136
15137     linux*)
15138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139         tmp_addflag=
15140         case $cc_basename,$host_cpu in
15141         pgcc*)                          # Portland Group C compiler
15142           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'
15143           tmp_addflag=' $pic_flag'
15144           ;;
15145         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15146           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'
15147           tmp_addflag=' $pic_flag -Mnomain' ;;
15148         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15149           tmp_addflag=' -i_dynamic' ;;
15150         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15151           tmp_addflag=' -i_dynamic -nofor_main' ;;
15152         ifc* | ifort*)                  # Intel Fortran compiler
15153           tmp_addflag=' -nofor_main' ;;
15154         esac
15155         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156
15157         if test $supports_anon_versioning = yes; then
15158           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15159   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15160   $echo "local: *; };" >> $output_objdir/$libname.ver~
15161           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15162         fi
15163       else
15164         ld_shlibs=no
15165       fi
15166       ;;
15167
15168     netbsd*)
15169       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15171         wlarc=
15172       else
15173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175       fi
15176       ;;
15177
15178     solaris*)
15179       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15180         ld_shlibs=no
15181         cat <<EOF 1>&2
15182
15183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15184 *** create shared libraries on Solaris systems.  Therefore, libtool
15185 *** is disabling shared libraries support.  We urge you to upgrade GNU
15186 *** binutils to release 2.9.1 or newer.  Another option is to modify
15187 *** your PATH or compiler configuration so that the native linker is
15188 *** used, and then restart.
15189
15190 EOF
15191       elif $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
15199     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15200       case `$LD -v 2>&1` in
15201         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15202         ld_shlibs=no
15203         cat <<_LT_EOF 1>&2
15204
15205 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15206 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15207 *** is disabling shared libraries support.  We urge you to upgrade GNU
15208 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15209 *** your PATH or compiler configuration so that the native linker is
15210 *** used, and then restart.
15211
15212 _LT_EOF
15213         ;;
15214         *)
15215           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15216             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15217             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15218             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15219           else
15220             ld_shlibs=no
15221           fi
15222         ;;
15223       esac
15224       ;;
15225
15226     sunos4*)
15227       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15228       wlarc=
15229       hardcode_direct=yes
15230       hardcode_shlibpath_var=no
15231       ;;
15232
15233     *)
15234       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15237       else
15238         ld_shlibs=no
15239       fi
15240       ;;
15241     esac
15242
15243     if test "$ld_shlibs" = no; then
15244       runpath_var=
15245       hardcode_libdir_flag_spec=
15246       export_dynamic_flag_spec=
15247       whole_archive_flag_spec=
15248     fi
15249   else
15250     # PORTME fill in a description of your system's linker (not GNU ld)
15251     case $host_os in
15252     aix3*)
15253       allow_undefined_flag=unsupported
15254       always_export_symbols=yes
15255       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'
15256       # Note: this linker hardcodes the directories in LIBPATH if there
15257       # are no directories specified by -L.
15258       hardcode_minus_L=yes
15259       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15260         # Neither direct hardcoding nor static linking is supported with a
15261         # broken collect2.
15262         hardcode_direct=unsupported
15263       fi
15264       ;;
15265
15266     aix4* | aix5*)
15267       if test "$host_cpu" = ia64; then
15268         # On IA64, the linker does run time linking by default, so we don't
15269         # have to do anything special.
15270         aix_use_runtimelinking=no
15271         exp_sym_flag='-Bexport'
15272         no_entry_flag=""
15273       else
15274         # If we're using GNU nm, then we don't want the "-C" option.
15275         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15276         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15277           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'
15278         else
15279           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'
15280         fi
15281         aix_use_runtimelinking=no
15282
15283         # Test if we are trying to use run time linking or normal
15284         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15285         # need to do runtime linking.
15286         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15287           for ld_flag in $LDFLAGS; do
15288           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15289             aix_use_runtimelinking=yes
15290             break
15291           fi
15292           done
15293           ;;
15294         esac
15295
15296         exp_sym_flag='-bexport'
15297         no_entry_flag='-bnoentry'
15298       fi
15299
15300       # When large executables or shared objects are built, AIX ld can
15301       # have problems creating the table of contents.  If linking a library
15302       # or program results in "error TOC overflow" add -mminimal-toc to
15303       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15304       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15305
15306       archive_cmds=''
15307       hardcode_direct=yes
15308       hardcode_libdir_separator=':'
15309       link_all_deplibs=yes
15310
15311       if test "$GCC" = yes; then
15312         case $host_os in aix4.[012]|aix4.[012].*)
15313         # We only want to do this on AIX 4.2 and lower, the check
15314         # below for broken collect2 doesn't work under 4.3+
15315           collect2name=`${CC} -print-prog-name=collect2`
15316           if test -f "$collect2name" && \
15317            strings "$collect2name" | grep resolve_lib_name >/dev/null
15318           then
15319           # We have reworked collect2
15320           hardcode_direct=yes
15321           else
15322           # We have old collect2
15323           hardcode_direct=unsupported
15324           # It fails to find uninstalled libraries when the uninstalled
15325           # path is not listed in the libpath.  Setting hardcode_minus_L
15326           # to unsupported forces relinking
15327           hardcode_minus_L=yes
15328           hardcode_libdir_flag_spec='-L$libdir'
15329           hardcode_libdir_separator=
15330           fi
15331           ;;
15332         esac
15333         shared_flag='-shared'
15334         if test "$aix_use_runtimelinking" = yes; then
15335           shared_flag="$shared_flag "'${wl}-G'
15336         fi
15337       else
15338         # not using gcc
15339         if test "$host_cpu" = ia64; then
15340         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341         # chokes on -Wl,-G. The following line is correct:
15342           shared_flag='-G'
15343         else
15344           if test "$aix_use_runtimelinking" = yes; then
15345             shared_flag='${wl}-G'
15346           else
15347             shared_flag='${wl}-bM:SRE'
15348           fi
15349         fi
15350       fi
15351
15352       # It seems that -bexpall does not export symbols beginning with
15353       # underscore (_), so it is better to generate a list of symbols to export.
15354       always_export_symbols=yes
15355       if test "$aix_use_runtimelinking" = yes; then
15356         # Warning - without using the other runtime loading flags (-brtl),
15357         # -berok will link without error, but may produce a broken library.
15358         allow_undefined_flag='-berok'
15359        # Determine the default libpath from the value encoded in an empty executable.
15360        cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h.  */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h.  */
15366
15367 int
15368 main ()
15369 {
15370
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (ac_try="$ac_link"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382   (eval "$ac_link") 2>conftest.er1
15383   ac_status=$?
15384   grep -v '^ *+' conftest.er1 >conftest.err
15385   rm -f conftest.er1
15386   cat conftest.err >&5
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } &&
15389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390   { (case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_try") 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; } &&
15399          { ac_try='test -s conftest$ac_exeext'
15400   { (case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_try") 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }; then
15409
15410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15411 }'`
15412 # Check for a 64-bit object if we didn't find anything.
15413 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; }
15414 }'`; fi
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419
15420 fi
15421
15422 rm -f core conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15425
15426        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15427         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"
15428        else
15429         if test "$host_cpu" = ia64; then
15430           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15431           allow_undefined_flag="-z nodefs"
15432           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"
15433         else
15434          # Determine the default libpath from the value encoded in an empty executable.
15435          cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441
15442 int
15443 main ()
15444 {
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_link") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465   { (case "(($ac_try" in
15466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467   *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470   (eval "$ac_try") 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; } &&
15474          { ac_try='test -s conftest$ac_exeext'
15475   { (case "(($ac_try" in
15476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477   *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480   (eval "$ac_try") 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); }; }; then
15484
15485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15486 }'`
15487 # Check for a 64-bit object if we didn't find anything.
15488 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; }
15489 }'`; fi
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494
15495 fi
15496
15497 rm -f core conftest.err conftest.$ac_objext \
15498       conftest$ac_exeext conftest.$ac_ext
15499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15500
15501          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15502           # Warning - without using the other run time loading flags,
15503           # -berok will link without error, but may produce a broken library.
15504           no_undefined_flag=' ${wl}-bernotok'
15505           allow_undefined_flag=' ${wl}-berok'
15506           # Exported symbols can be pulled into shared objects from archives
15507           whole_archive_flag_spec='$convenience'
15508           archive_cmds_need_lc=yes
15509           # This is similar to how AIX traditionally builds its shared libraries.
15510           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'
15511         fi
15512       fi
15513       ;;
15514
15515     amigaos*)
15516       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)'
15517       hardcode_libdir_flag_spec='-L$libdir'
15518       hardcode_minus_L=yes
15519       # see comment about different semantics on the GNU ld section
15520       ld_shlibs=no
15521       ;;
15522
15523     bsdi[45]*)
15524       export_dynamic_flag_spec=-rdynamic
15525       ;;
15526
15527     cygwin* | mingw* | pw32*)
15528       # When not using gcc, we currently assume that we are using
15529       # Microsoft Visual C++.
15530       # hardcode_libdir_flag_spec is actually meaningless, as there is
15531       # no search path for DLLs.
15532       hardcode_libdir_flag_spec=' '
15533       allow_undefined_flag=unsupported
15534       # Tell ltmain to make .lib files, not .a files.
15535       libext=lib
15536       # Tell ltmain to make .dll files, not .so files.
15537       shrext_cmds=".dll"
15538       # FIXME: Setting linknames here is a bad hack.
15539       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15540       # The linker will automatically build a .lib file if we build a DLL.
15541       old_archive_From_new_cmds='true'
15542       # FIXME: Should let the user specify the lib program.
15543       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15544       fix_srcfile_path='`cygpath -w "$srcfile"`'
15545       enable_shared_with_static_runtimes=yes
15546       ;;
15547
15548     darwin* | rhapsody*)
15549       case $host_os in
15550         rhapsody* | darwin1.[012])
15551          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15552          ;;
15553        *) # Darwin 1.3 on
15554          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15555            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15556          else
15557            case ${MACOSX_DEPLOYMENT_TARGET} in
15558              10.[012])
15559                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15560                ;;
15561              10.*)
15562                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15563                ;;
15564            esac
15565          fi
15566          ;;
15567       esac
15568       archive_cmds_need_lc=no
15569       hardcode_direct=no
15570       hardcode_automatic=yes
15571       hardcode_shlibpath_var=unsupported
15572       whole_archive_flag_spec=''
15573       link_all_deplibs=yes
15574     if test "$GCC" = yes ; then
15575         output_verbose_link_cmd='echo'
15576         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15577       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15579       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}'
15580       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}'
15581     else
15582       case $cc_basename in
15583         xlc*)
15584          output_verbose_link_cmd='echo'
15585          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15586          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15587           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15588          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}'
15589           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}'
15590           ;;
15591        *)
15592          ld_shlibs=no
15593           ;;
15594       esac
15595     fi
15596       ;;
15597
15598     dgux*)
15599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600       hardcode_libdir_flag_spec='-L$libdir'
15601       hardcode_shlibpath_var=no
15602       ;;
15603
15604     freebsd1*)
15605       ld_shlibs=no
15606       ;;
15607
15608     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15609     # support.  Future versions do this automatically, but an explicit c++rt0.o
15610     # does not break anything, and helps significantly (at the cost of a little
15611     # extra space).
15612     freebsd2.2*)
15613       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15614       hardcode_libdir_flag_spec='-R$libdir'
15615       hardcode_direct=yes
15616       hardcode_shlibpath_var=no
15617       ;;
15618
15619     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15620     freebsd2*)
15621       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622       hardcode_direct=yes
15623       hardcode_minus_L=yes
15624       hardcode_shlibpath_var=no
15625       ;;
15626
15627     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15628     freebsd* | kfreebsd*-gnu | dragonfly*)
15629       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15630       hardcode_libdir_flag_spec='-R$libdir'
15631       hardcode_direct=yes
15632       hardcode_shlibpath_var=no
15633       ;;
15634
15635     hpux9*)
15636       if test "$GCC" = yes; then
15637         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'
15638       else
15639         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'
15640       fi
15641       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15642       hardcode_libdir_separator=:
15643       hardcode_direct=yes
15644
15645       # hardcode_minus_L: Not really in the search PATH,
15646       # but as the default location of the library.
15647       hardcode_minus_L=yes
15648       export_dynamic_flag_spec='${wl}-E'
15649       ;;
15650
15651     hpux10*)
15652       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15653         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654       else
15655         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15656       fi
15657       if test "$with_gnu_ld" = no; then
15658         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15659         hardcode_libdir_separator=:
15660
15661         hardcode_direct=yes
15662         export_dynamic_flag_spec='${wl}-E'
15663
15664         # hardcode_minus_L: Not really in the search PATH,
15665         # but as the default location of the library.
15666         hardcode_minus_L=yes
15667       fi
15668       ;;
15669
15670     hpux11*)
15671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15672         case $host_cpu in
15673         hppa*64*)
15674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675           ;;
15676         ia64*)
15677           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15678           ;;
15679         *)
15680           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15681           ;;
15682         esac
15683       else
15684         case $host_cpu in
15685         hppa*64*)
15686           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687           ;;
15688         ia64*)
15689           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15690           ;;
15691         *)
15692           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15693           ;;
15694         esac
15695       fi
15696       if test "$with_gnu_ld" = no; then
15697         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15698         hardcode_libdir_separator=:
15699
15700         case $host_cpu in
15701         hppa*64*|ia64*)
15702           hardcode_libdir_flag_spec_ld='+b $libdir'
15703           hardcode_direct=no
15704           hardcode_shlibpath_var=no
15705           ;;
15706         *)
15707           hardcode_direct=yes
15708           export_dynamic_flag_spec='${wl}-E'
15709
15710           # hardcode_minus_L: Not really in the search PATH,
15711           # but as the default location of the library.
15712           hardcode_minus_L=yes
15713           ;;
15714         esac
15715       fi
15716       ;;
15717
15718     irix5* | irix6* | nonstopux*)
15719       if test "$GCC" = yes; then
15720         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'
15721       else
15722         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'
15723         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15724       fi
15725       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726       hardcode_libdir_separator=:
15727       link_all_deplibs=yes
15728       ;;
15729
15730     netbsd*)
15731       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15733       else
15734         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15735       fi
15736       hardcode_libdir_flag_spec='-R$libdir'
15737       hardcode_direct=yes
15738       hardcode_shlibpath_var=no
15739       ;;
15740
15741     newsos6)
15742       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743       hardcode_direct=yes
15744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745       hardcode_libdir_separator=:
15746       hardcode_shlibpath_var=no
15747       ;;
15748
15749     openbsd*)
15750       hardcode_direct=yes
15751       hardcode_shlibpath_var=no
15752       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15754         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15755         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15756         export_dynamic_flag_spec='${wl}-E'
15757       else
15758        case $host_os in
15759          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15760            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15761            hardcode_libdir_flag_spec='-R$libdir'
15762            ;;
15763          *)
15764            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15765            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15766            ;;
15767        esac
15768       fi
15769       ;;
15770
15771     os2*)
15772       hardcode_libdir_flag_spec='-L$libdir'
15773       hardcode_minus_L=yes
15774       allow_undefined_flag=unsupported
15775       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'
15776       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15777       ;;
15778
15779     osf3*)
15780       if test "$GCC" = yes; then
15781         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15782         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'
15783       else
15784         allow_undefined_flag=' -expect_unresolved \*'
15785         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'
15786       fi
15787       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15788       hardcode_libdir_separator=:
15789       ;;
15790
15791     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15792       if test "$GCC" = yes; then
15793         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15794         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'
15795         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15796       else
15797         allow_undefined_flag=' -expect_unresolved \*'
15798         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'
15799         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15800         $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'
15801
15802         # Both c and cxx compiler support -rpath directly
15803         hardcode_libdir_flag_spec='-rpath $libdir'
15804       fi
15805       hardcode_libdir_separator=:
15806       ;;
15807
15808     solaris*)
15809       no_undefined_flag=' -z text'
15810       if test "$GCC" = yes; then
15811         wlarc='${wl}'
15812         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15813         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15814           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15815       else
15816         wlarc=''
15817         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15819         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15820       fi
15821       hardcode_libdir_flag_spec='-R$libdir'
15822       hardcode_shlibpath_var=no
15823       case $host_os in
15824       solaris2.[0-5] | solaris2.[0-5].*) ;;
15825       *)
15826         # The compiler driver will combine linker options so we
15827         # cannot just pass the convience library names through
15828         # without $wl, iff we do not link with $LD.
15829         # Luckily, gcc supports the same syntax we need for Sun Studio.
15830         # Supported since Solaris 2.6 (maybe 2.5.1?)
15831         case $wlarc in
15832         '')
15833           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15834         *)
15835           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' ;;
15836         esac ;;
15837       esac
15838       link_all_deplibs=yes
15839       ;;
15840
15841     sunos4*)
15842       if test "x$host_vendor" = xsequent; then
15843         # Use $CC to link under sequent, because it throws in some extra .o
15844         # files that make .init and .fini sections work.
15845         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846       else
15847         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15848       fi
15849       hardcode_libdir_flag_spec='-L$libdir'
15850       hardcode_direct=yes
15851       hardcode_minus_L=yes
15852       hardcode_shlibpath_var=no
15853       ;;
15854
15855     sysv4)
15856       case $host_vendor in
15857         sni)
15858           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859           hardcode_direct=yes # is this really true???
15860         ;;
15861         siemens)
15862           ## LD is ld it makes a PLAMLIB
15863           ## CC just makes a GrossModule.
15864           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15865           reload_cmds='$CC -r -o $output$reload_objs'
15866           hardcode_direct=no
15867         ;;
15868         motorola)
15869           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15871         ;;
15872       esac
15873       runpath_var='LD_RUN_PATH'
15874       hardcode_shlibpath_var=no
15875       ;;
15876
15877     sysv4.3*)
15878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879       hardcode_shlibpath_var=no
15880       export_dynamic_flag_spec='-Bexport'
15881       ;;
15882
15883     sysv4*MP*)
15884       if test -d /usr/nec; then
15885         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886         hardcode_shlibpath_var=no
15887         runpath_var=LD_RUN_PATH
15888         hardcode_runpath_var=yes
15889         ld_shlibs=yes
15890       fi
15891       ;;
15892
15893     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15894       no_undefined_flag='${wl}-z,text'
15895       archive_cmds_need_lc=no
15896       hardcode_shlibpath_var=no
15897       runpath_var='LD_RUN_PATH'
15898
15899       if test "$GCC" = yes; then
15900         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15901         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902       else
15903         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15905       fi
15906       ;;
15907
15908     sysv5* | sco3.2v5* | sco5v6*)
15909       # Note: We can NOT use -z defs as we might desire, because we do not
15910       # link with -lc, and that would cause any symbols used from libc to
15911       # always be unresolved, which means just about no library would
15912       # ever link correctly.  If we're not using GNU ld we use -z text
15913       # though, which does catch some bad symbols but isn't as heavy-handed
15914       # as -z defs.
15915       no_undefined_flag='${wl}-z,text'
15916       allow_undefined_flag='${wl}-z,nodefs'
15917       archive_cmds_need_lc=no
15918       hardcode_shlibpath_var=no
15919       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15920       hardcode_libdir_separator=':'
15921       link_all_deplibs=yes
15922       export_dynamic_flag_spec='${wl}-Bexport'
15923       runpath_var='LD_RUN_PATH'
15924
15925       if test "$GCC" = yes; then
15926         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928       else
15929         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15930         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931       fi
15932       ;;
15933
15934     uts4*)
15935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936       hardcode_libdir_flag_spec='-L$libdir'
15937       hardcode_shlibpath_var=no
15938       ;;
15939
15940     *)
15941       ld_shlibs=no
15942       ;;
15943     esac
15944   fi
15945
15946 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15947 echo "${ECHO_T}$ld_shlibs" >&6; }
15948 test "$ld_shlibs" = no && can_build_shared=no
15949
15950 #
15951 # Do we need to explicitly link libc?
15952 #
15953 case "x$archive_cmds_need_lc" in
15954 x|xyes)
15955   # Assume -lc should be added
15956   archive_cmds_need_lc=yes
15957
15958   if test "$enable_shared" = yes && test "$GCC" = yes; then
15959     case $archive_cmds in
15960     *'~'*)
15961       # FIXME: we may have to deal with multi-command sequences.
15962       ;;
15963     '$CC '*)
15964       # Test whether the compiler implicitly links with -lc since on some
15965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966       # to ld, don't add -lc before -lgcc.
15967       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15969       $rm conftest*
15970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15971
15972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973   (eval $ac_compile) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } 2>conftest.err; then
15977         soname=conftest
15978         lib=conftest
15979         libobjs=conftest.$ac_objext
15980         deplibs=
15981         wl=$lt_prog_compiler_wl
15982         pic_flag=$lt_prog_compiler_pic
15983         compiler_flags=-v
15984         linker_flags=-v
15985         verstring=
15986         output_objdir=.
15987         libname=conftest
15988         lt_save_allow_undefined_flag=$allow_undefined_flag
15989         allow_undefined_flag=
15990         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15991   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }
15995         then
15996           archive_cmds_need_lc=no
15997         else
15998           archive_cmds_need_lc=yes
15999         fi
16000         allow_undefined_flag=$lt_save_allow_undefined_flag
16001       else
16002         cat conftest.err 1>&5
16003       fi
16004       $rm conftest*
16005       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16006 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16007       ;;
16008     esac
16009   fi
16010   ;;
16011 esac
16012
16013 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16015 library_names_spec=
16016 libname_spec='lib$name'
16017 soname_spec=
16018 shrext_cmds=".so"
16019 postinstall_cmds=
16020 postuninstall_cmds=
16021 finish_cmds=
16022 finish_eval=
16023 shlibpath_var=
16024 shlibpath_overrides_runpath=unknown
16025 version_type=none
16026 dynamic_linker="$host_os ld.so"
16027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16028 if test "$GCC" = yes; then
16029   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031     # if the path contains ";" then we assume it to be the separator
16032     # otherwise default to the standard path separator (i.e. ":") - it is
16033     # assumed that no part of a normal pathname contains ";" but that should
16034     # okay in the real world where ";" in dirpaths is itself problematic.
16035     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16036   else
16037     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16038   fi
16039 else
16040   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16041 fi
16042 need_lib_prefix=unknown
16043 hardcode_into_libs=no
16044
16045 # when you set need_version to no, make sure it does not cause -set_version
16046 # flags to be left without arguments
16047 need_version=unknown
16048
16049 case $host_os in
16050 aix3*)
16051   version_type=linux
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16053   shlibpath_var=LIBPATH
16054
16055   # AIX 3 has no versioning support, so we append a major version to the name.
16056   soname_spec='${libname}${release}${shared_ext}$major'
16057   ;;
16058
16059 aix4* | aix5*)
16060   version_type=linux
16061   need_lib_prefix=no
16062   need_version=no
16063   hardcode_into_libs=yes
16064   if test "$host_cpu" = ia64; then
16065     # AIX 5 supports IA64
16066     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16067     shlibpath_var=LD_LIBRARY_PATH
16068   else
16069     # With GCC up to 2.95.x, collect2 would create an import file
16070     # for dependence libraries.  The import file would start with
16071     # the line `#! .'.  This would cause the generated library to
16072     # depend on `.', always an invalid library.  This was fixed in
16073     # development snapshots of GCC prior to 3.0.
16074     case $host_os in
16075       aix4 | aix4.[01] | aix4.[01].*)
16076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16077            echo ' yes '
16078            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16079         :
16080       else
16081         can_build_shared=no
16082       fi
16083       ;;
16084     esac
16085     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086     # soname into executable. Probably we can add versioning support to
16087     # collect2, so additional links can be useful in future.
16088     if test "$aix_use_runtimelinking" = yes; then
16089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090       # instead of lib<name>.a to let people know that these are not
16091       # typical AIX shared libraries.
16092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093     else
16094       # We preserve .a as extension for shared libraries through AIX4.2
16095       # and later when we are not doing run time linking.
16096       library_names_spec='${libname}${release}.a $libname.a'
16097       soname_spec='${libname}${release}${shared_ext}$major'
16098     fi
16099     shlibpath_var=LIBPATH
16100   fi
16101   ;;
16102
16103 amigaos*)
16104   library_names_spec='$libname.ixlibrary $libname.a'
16105   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16106   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'
16107   ;;
16108
16109 beos*)
16110   library_names_spec='${libname}${shared_ext}'
16111   dynamic_linker="$host_os ld.so"
16112   shlibpath_var=LIBRARY_PATH
16113   ;;
16114
16115 bsdi[45]*)
16116   version_type=linux
16117   need_version=no
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119   soname_spec='${libname}${release}${shared_ext}$major'
16120   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121   shlibpath_var=LD_LIBRARY_PATH
16122   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124   # the default ld.so.conf also contains /usr/contrib/lib and
16125   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126   # libtool to hard-code these into programs
16127   ;;
16128
16129 cygwin* | mingw* | pw32*)
16130   version_type=windows
16131   shrext_cmds=".dll"
16132   need_version=no
16133   need_lib_prefix=no
16134
16135   case $GCC,$host_os in
16136   yes,cygwin* | yes,mingw* | yes,pw32*)
16137     library_names_spec='$libname.dll.a'
16138     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139     postinstall_cmds='base_file=`basename \${file}`~
16140       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141       dldir=$destdir/`dirname \$dlpath`~
16142       test -d \$dldir || mkdir -p \$dldir~
16143       $install_prog $dir/$dlname \$dldir/$dlname~
16144       chmod a+x \$dldir/$dlname'
16145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16146       dlpath=$dir/\$dldll~
16147        $rm \$dlpath'
16148     shlibpath_overrides_runpath=yes
16149
16150     case $host_os in
16151     cygwin*)
16152       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16153       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16154       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16155       ;;
16156     mingw*)
16157       # MinGW DLLs use traditional 'lib' prefix
16158       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16159       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16160       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16161         # It is most probably a Windows format PATH printed by
16162         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16163         # path with ; separators, and with drive letters. We can handle the
16164         # drive letters (cygwin fileutils understands them), so leave them,
16165         # especially as we might pass files found there to a mingw objdump,
16166         # which wouldn't understand a cygwinified path. Ahh.
16167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16168       else
16169         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16170       fi
16171       ;;
16172     pw32*)
16173       # pw32 DLLs use 'pw' prefix rather than 'lib'
16174       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16175       ;;
16176     esac
16177     ;;
16178
16179   *)
16180     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16181     ;;
16182   esac
16183   dynamic_linker='Win32 ld.exe'
16184   # FIXME: first we should search . and the directory the executable is in
16185   shlibpath_var=PATH
16186   ;;
16187
16188 darwin* | rhapsody*)
16189   dynamic_linker="$host_os dyld"
16190   version_type=darwin
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16194   soname_spec='${libname}${release}${major}$shared_ext'
16195   shlibpath_overrides_runpath=yes
16196   shlibpath_var=DYLD_LIBRARY_PATH
16197   shrext_cmds='.dylib'
16198   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16199   if test "$GCC" = yes; then
16200     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"`
16201   else
16202     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16203   fi
16204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16205   ;;
16206
16207 dgux*)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   ;;
16215
16216 freebsd1*)
16217   dynamic_linker=no
16218   ;;
16219
16220 kfreebsd*-gnu)
16221   version_type=linux
16222   need_lib_prefix=no
16223   need_version=no
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225   soname_spec='${libname}${release}${shared_ext}$major'
16226   shlibpath_var=LD_LIBRARY_PATH
16227   shlibpath_overrides_runpath=no
16228   hardcode_into_libs=yes
16229   dynamic_linker='GNU ld.so'
16230   ;;
16231
16232 freebsd* | dragonfly*)
16233   # DragonFly does not have aout.  When/if they implement a new
16234   # versioning mechanism, adjust this.
16235   if test -x /usr/bin/objformat; then
16236     objformat=`/usr/bin/objformat`
16237   else
16238     case $host_os in
16239     freebsd[123]*) objformat=aout ;;
16240     *) objformat=elf ;;
16241     esac
16242   fi
16243   version_type=freebsd-$objformat
16244   case $version_type in
16245     freebsd-elf*)
16246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16247       need_version=no
16248       need_lib_prefix=no
16249       ;;
16250     freebsd-*)
16251       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16252       need_version=yes
16253       ;;
16254   esac
16255   shlibpath_var=LD_LIBRARY_PATH
16256   case $host_os in
16257   freebsd2*)
16258     shlibpath_overrides_runpath=yes
16259     ;;
16260   freebsd3.[01]* | freebsdelf3.[01]*)
16261     shlibpath_overrides_runpath=yes
16262     hardcode_into_libs=yes
16263     ;;
16264   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16265   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16266     shlibpath_overrides_runpath=no
16267     hardcode_into_libs=yes
16268     ;;
16269   freebsd*) # from 4.6 on
16270     shlibpath_overrides_runpath=yes
16271     hardcode_into_libs=yes
16272     ;;
16273   esac
16274   ;;
16275
16276 gnu*)
16277   version_type=linux
16278   need_lib_prefix=no
16279   need_version=no
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16281   soname_spec='${libname}${release}${shared_ext}$major'
16282   shlibpath_var=LD_LIBRARY_PATH
16283   hardcode_into_libs=yes
16284   ;;
16285
16286 hpux9* | hpux10* | hpux11*)
16287   # Give a soname corresponding to the major version so that dld.sl refuses to
16288   # link against other versions.
16289   version_type=sunos
16290   need_lib_prefix=no
16291   need_version=no
16292   case $host_cpu in
16293   ia64*)
16294     shrext_cmds='.so'
16295     hardcode_into_libs=yes
16296     dynamic_linker="$host_os dld.so"
16297     shlibpath_var=LD_LIBRARY_PATH
16298     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300     soname_spec='${libname}${release}${shared_ext}$major'
16301     if test "X$HPUX_IA64_MODE" = X32; then
16302       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16303     else
16304       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16305     fi
16306     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16307     ;;
16308    hppa*64*)
16309      shrext_cmds='.sl'
16310      hardcode_into_libs=yes
16311      dynamic_linker="$host_os dld.sl"
16312      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16313      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16314      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315      soname_spec='${libname}${release}${shared_ext}$major'
16316      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16317      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16318      ;;
16319    *)
16320     shrext_cmds='.sl'
16321     dynamic_linker="$host_os dld.sl"
16322     shlibpath_var=SHLIB_PATH
16323     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325     soname_spec='${libname}${release}${shared_ext}$major'
16326     ;;
16327   esac
16328   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16329   postinstall_cmds='chmod 555 $lib'
16330   ;;
16331
16332 interix3*)
16333   version_type=linux
16334   need_lib_prefix=no
16335   need_version=no
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337   soname_spec='${libname}${release}${shared_ext}$major'
16338   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16339   shlibpath_var=LD_LIBRARY_PATH
16340   shlibpath_overrides_runpath=no
16341   hardcode_into_libs=yes
16342   ;;
16343
16344 irix5* | irix6* | nonstopux*)
16345   case $host_os in
16346     nonstopux*) version_type=nonstopux ;;
16347     *)
16348         if test "$lt_cv_prog_gnu_ld" = yes; then
16349                 version_type=linux
16350         else
16351                 version_type=irix
16352         fi ;;
16353   esac
16354   need_lib_prefix=no
16355   need_version=no
16356   soname_spec='${libname}${release}${shared_ext}$major'
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16358   case $host_os in
16359   irix5* | nonstopux*)
16360     libsuff= shlibsuff=
16361     ;;
16362   *)
16363     case $LD in # libtool.m4 will add one of these switches to LD
16364     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16365       libsuff= shlibsuff= libmagic=32-bit;;
16366     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16367       libsuff=32 shlibsuff=N32 libmagic=N32;;
16368     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16369       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16370     *) libsuff= shlibsuff= libmagic=never-match;;
16371     esac
16372     ;;
16373   esac
16374   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16375   shlibpath_overrides_runpath=no
16376   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16377   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16378   hardcode_into_libs=yes
16379   ;;
16380
16381 # No shared lib support for Linux oldld, aout, or coff.
16382 linux*oldld* | linux*aout* | linux*coff*)
16383   dynamic_linker=no
16384   ;;
16385
16386 # This must be Linux ELF.
16387 linux*)
16388   version_type=linux
16389   need_lib_prefix=no
16390   need_version=no
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   shlibpath_overrides_runpath=no
16396   # This implies no fast_install, which is unacceptable.
16397   # Some rework will be needed to allow for fast_install
16398   # before this can be enabled.
16399   hardcode_into_libs=yes
16400
16401   # Append ld.so.conf contents to the search path
16402   if test -f /etc/ld.so.conf; then
16403     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' ' '`
16404     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16405   fi
16406
16407   # We used to test for /lib/ld.so.1 and disable shared libraries on
16408   # powerpc, because MkLinux only supported shared libraries with the
16409   # GNU dynamic linker.  Since this was broken with cross compilers,
16410   # most powerpc-linux boxes support dynamic linking these days and
16411   # people can always --disable-shared, the test was removed, and we
16412   # assume the GNU/Linux dynamic linker is in use.
16413   dynamic_linker='GNU/Linux ld.so'
16414   ;;
16415
16416 knetbsd*-gnu)
16417   version_type=linux
16418   need_lib_prefix=no
16419   need_version=no
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421   soname_spec='${libname}${release}${shared_ext}$major'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   shlibpath_overrides_runpath=no
16424   hardcode_into_libs=yes
16425   dynamic_linker='GNU ld.so'
16426   ;;
16427
16428 netbsd*)
16429   version_type=sunos
16430   need_lib_prefix=no
16431   need_version=no
16432   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435     dynamic_linker='NetBSD (a.out) ld.so'
16436   else
16437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16438     soname_spec='${libname}${release}${shared_ext}$major'
16439     dynamic_linker='NetBSD ld.elf_so'
16440   fi
16441   shlibpath_var=LD_LIBRARY_PATH
16442   shlibpath_overrides_runpath=yes
16443   hardcode_into_libs=yes
16444   ;;
16445
16446 newsos6)
16447   version_type=linux
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   shlibpath_overrides_runpath=yes
16451   ;;
16452
16453 nto-qnx*)
16454   version_type=linux
16455   need_lib_prefix=no
16456   need_version=no
16457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458   soname_spec='${libname}${release}${shared_ext}$major'
16459   shlibpath_var=LD_LIBRARY_PATH
16460   shlibpath_overrides_runpath=yes
16461   ;;
16462
16463 openbsd*)
16464   version_type=sunos
16465   sys_lib_dlsearch_path_spec="/usr/lib"
16466   need_lib_prefix=no
16467   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16468   case $host_os in
16469     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16470     *)                         need_version=no  ;;
16471   esac
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16476     case $host_os in
16477       openbsd2.[89] | openbsd2.[89].*)
16478         shlibpath_overrides_runpath=no
16479         ;;
16480       *)
16481         shlibpath_overrides_runpath=yes
16482         ;;
16483       esac
16484   else
16485     shlibpath_overrides_runpath=yes
16486   fi
16487   ;;
16488
16489 os2*)
16490   libname_spec='$name'
16491   shrext_cmds=".dll"
16492   need_lib_prefix=no
16493   library_names_spec='$libname${shared_ext} $libname.a'
16494   dynamic_linker='OS/2 ld.exe'
16495   shlibpath_var=LIBPATH
16496   ;;
16497
16498 osf3* | osf4* | osf5*)
16499   version_type=osf
16500   need_lib_prefix=no
16501   need_version=no
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504   shlibpath_var=LD_LIBRARY_PATH
16505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16506   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16507   ;;
16508
16509 solaris*)
16510   version_type=linux
16511   need_lib_prefix=no
16512   need_version=no
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   shlibpath_overrides_runpath=yes
16517   hardcode_into_libs=yes
16518   # ldd complains unless libraries are executable
16519   postinstall_cmds='chmod +x $lib'
16520   ;;
16521
16522 sunos4*)
16523   version_type=sunos
16524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   shlibpath_overrides_runpath=yes
16528   if test "$with_gnu_ld" = yes; then
16529     need_lib_prefix=no
16530   fi
16531   need_version=yes
16532   ;;
16533
16534 sysv4 | sysv4.3*)
16535   version_type=linux
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   case $host_vendor in
16540     sni)
16541       shlibpath_overrides_runpath=no
16542       need_lib_prefix=no
16543       export_dynamic_flag_spec='${wl}-Blargedynsym'
16544       runpath_var=LD_RUN_PATH
16545       ;;
16546     siemens)
16547       need_lib_prefix=no
16548       ;;
16549     motorola)
16550       need_lib_prefix=no
16551       need_version=no
16552       shlibpath_overrides_runpath=no
16553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16554       ;;
16555   esac
16556   ;;
16557
16558 sysv4*MP*)
16559   if test -d /usr/nec ;then
16560     version_type=linux
16561     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16562     soname_spec='$libname${shared_ext}.$major'
16563     shlibpath_var=LD_LIBRARY_PATH
16564   fi
16565   ;;
16566
16567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16568   version_type=freebsd-elf
16569   need_lib_prefix=no
16570   need_version=no
16571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16572   soname_spec='${libname}${release}${shared_ext}$major'
16573   shlibpath_var=LD_LIBRARY_PATH
16574   hardcode_into_libs=yes
16575   if test "$with_gnu_ld" = yes; then
16576     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16577     shlibpath_overrides_runpath=no
16578   else
16579     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16580     shlibpath_overrides_runpath=yes
16581     case $host_os in
16582       sco3.2v5*)
16583         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16584         ;;
16585     esac
16586   fi
16587   sys_lib_dlsearch_path_spec='/usr/lib'
16588   ;;
16589
16590 uts4*)
16591   version_type=linux
16592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593   soname_spec='${libname}${release}${shared_ext}$major'
16594   shlibpath_var=LD_LIBRARY_PATH
16595   ;;
16596
16597 *)
16598   dynamic_linker=no
16599   ;;
16600 esac
16601 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16602 echo "${ECHO_T}$dynamic_linker" >&6; }
16603 test "$dynamic_linker" = no && can_build_shared=no
16604
16605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16606 if test "$GCC" = yes; then
16607   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16608 fi
16609
16610 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16612 hardcode_action=
16613 if test -n "$hardcode_libdir_flag_spec" || \
16614    test -n "$runpath_var" || \
16615    test "X$hardcode_automatic" = "Xyes" ; then
16616
16617   # We can hardcode non-existant directories.
16618   if test "$hardcode_direct" != no &&
16619      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16620      # have to relink, otherwise we might link with an installed library
16621      # when we should be linking with a yet-to-be-installed one
16622      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16623      test "$hardcode_minus_L" != no; then
16624     # Linking always hardcodes the temporary library directory.
16625     hardcode_action=relink
16626   else
16627     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16628     hardcode_action=immediate
16629   fi
16630 else
16631   # We cannot hardcode anything, or else we can only hardcode existing
16632   # directories.
16633   hardcode_action=unsupported
16634 fi
16635 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16636 echo "${ECHO_T}$hardcode_action" >&6; }
16637
16638 if test "$hardcode_action" = relink; then
16639   # Fast installation is not supported
16640   enable_fast_install=no
16641 elif test "$shlibpath_overrides_runpath" = yes ||
16642      test "$enable_shared" = no; then
16643   # Fast installation is not necessary
16644   enable_fast_install=needless
16645 fi
16646
16647 striplib=
16648 old_striplib=
16649 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16650 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16651 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16652   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16653   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16654   { echo "$as_me:$LINENO: result: yes" >&5
16655 echo "${ECHO_T}yes" >&6; }
16656 else
16657 # FIXME - insert some real tests, host_os isn't really good enough
16658   case $host_os in
16659    darwin*)
16660        if test -n "$STRIP" ; then
16661          striplib="$STRIP -x"
16662          { echo "$as_me:$LINENO: result: yes" >&5
16663 echo "${ECHO_T}yes" >&6; }
16664        else
16665   { echo "$as_me:$LINENO: result: no" >&5
16666 echo "${ECHO_T}no" >&6; }
16667 fi
16668        ;;
16669    *)
16670   { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16672     ;;
16673   esac
16674 fi
16675
16676 if test "x$enable_dlopen" != xyes; then
16677   enable_dlopen=unknown
16678   enable_dlopen_self=unknown
16679   enable_dlopen_self_static=unknown
16680 else
16681   lt_cv_dlopen=no
16682   lt_cv_dlopen_libs=
16683
16684   case $host_os in
16685   beos*)
16686     lt_cv_dlopen="load_add_on"
16687     lt_cv_dlopen_libs=
16688     lt_cv_dlopen_self=yes
16689     ;;
16690
16691   mingw* | pw32*)
16692     lt_cv_dlopen="LoadLibrary"
16693     lt_cv_dlopen_libs=
16694    ;;
16695
16696   cygwin*)
16697     lt_cv_dlopen="dlopen"
16698     lt_cv_dlopen_libs=
16699    ;;
16700
16701   darwin*)
16702   # if libdl is installed we need to link against it
16703     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   ac_check_lib_save_LIBS=$LIBS
16709 LIBS="-ldl  $LIBS"
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716
16717 /* Override any GCC internal prototype to avoid an error.
16718    Use char because int might match the return type of a GCC
16719    builtin and then its argument prototype would still apply.  */
16720 #ifdef __cplusplus
16721 extern "C"
16722 #endif
16723 char dlopen ();
16724 int
16725 main ()
16726 {
16727 return dlopen ();
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; } &&
16756          { ac_try='test -s conftest$ac_exeext'
16757   { (case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_try") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   ac_cv_lib_dl_dlopen=yes
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771         ac_cv_lib_dl_dlopen=no
16772 fi
16773
16774 rm -f core conftest.err conftest.$ac_objext \
16775       conftest$ac_exeext conftest.$ac_ext
16776 LIBS=$ac_check_lib_save_LIBS
16777 fi
16778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16780 if test $ac_cv_lib_dl_dlopen = yes; then
16781   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16782 else
16783
16784     lt_cv_dlopen="dyld"
16785     lt_cv_dlopen_libs=
16786     lt_cv_dlopen_self=yes
16787
16788 fi
16789
16790    ;;
16791
16792   *)
16793     { echo "$as_me:$LINENO: checking for shl_load" >&5
16794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16795 if test "${ac_cv_func_shl_load+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16806 #define shl_load innocuous_shl_load
16807
16808 /* System header to define __stub macros and hopefully few prototypes,
16809     which can conflict with char shl_load (); below.
16810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811     <limits.h> exists even on freestanding compilers.  */
16812
16813 #ifdef __STDC__
16814 # include <limits.h>
16815 #else
16816 # include <assert.h>
16817 #endif
16818
16819 #undef shl_load
16820
16821 /* Override any GCC internal prototype to avoid an error.
16822    Use char because int might match the return type of a GCC
16823    builtin and then its argument prototype would still apply.  */
16824 #ifdef __cplusplus
16825 extern "C"
16826 #endif
16827 char shl_load ();
16828 /* The GNU C library defines this for functions which it implements
16829     to always fail with ENOSYS.  Some functions are actually named
16830     something starting with __ and the normal name is an alias.  */
16831 #if defined __stub_shl_load || defined __stub___shl_load
16832 choke me
16833 #endif
16834
16835 int
16836 main ()
16837 {
16838 return shl_load ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847   *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850   (eval "$ac_link") 2>conftest.er1
16851   ac_status=$?
16852   grep -v '^ *+' conftest.er1 >conftest.err
16853   rm -f conftest.er1
16854   cat conftest.err >&5
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } &&
16857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16858   { (case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_try") 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); }; } &&
16867          { ac_try='test -s conftest$ac_exeext'
16868   { (case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_try") 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_func_shl_load=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882         ac_cv_func_shl_load=no
16883 fi
16884
16885 rm -f core conftest.err conftest.$ac_objext \
16886       conftest$ac_exeext conftest.$ac_ext
16887 fi
16888 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16889 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16890 if test $ac_cv_func_shl_load = yes; then
16891   lt_cv_dlopen="shl_load"
16892 else
16893   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16894 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16896   echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898   ac_check_lib_save_LIBS=$LIBS
16899 LIBS="-ldld  $LIBS"
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906
16907 /* Override any GCC internal prototype to avoid an error.
16908    Use char because int might match the return type of a GCC
16909    builtin and then its argument prototype would still apply.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char shl_load ();
16914 int
16915 main ()
16916 {
16917 return shl_load ();
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929   (eval "$ac_link") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937   { (case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_try") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest$ac_exeext'
16947   { (case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   ac_cv_lib_dld_shl_load=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ac_cv_lib_dld_shl_load=no
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext \
16965       conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_lib_save_LIBS
16967 fi
16968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16969 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16970 if test $ac_cv_lib_dld_shl_load = yes; then
16971   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16972 else
16973   { echo "$as_me:$LINENO: checking for dlopen" >&5
16974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16975 if test "${ac_cv_func_dlopen+set}" = set; then
16976   echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978   cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h.  */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h.  */
16984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16986 #define dlopen innocuous_dlopen
16987
16988 /* System header to define __stub macros and hopefully few prototypes,
16989     which can conflict with char dlopen (); below.
16990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991     <limits.h> exists even on freestanding compilers.  */
16992
16993 #ifdef __STDC__
16994 # include <limits.h>
16995 #else
16996 # include <assert.h>
16997 #endif
16998
16999 #undef dlopen
17000
17001 /* Override any GCC internal prototype to avoid an error.
17002    Use char because int might match the return type of a GCC
17003    builtin and then its argument prototype would still apply.  */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 char dlopen ();
17008 /* The GNU C library defines this for functions which it implements
17009     to always fail with ENOSYS.  Some functions are actually named
17010     something starting with __ and the normal name is an alias.  */
17011 #if defined __stub_dlopen || defined __stub___dlopen
17012 choke me
17013 #endif
17014
17015 int
17016 main ()
17017 {
17018 return dlopen ();
17019   ;
17020   return 0;
17021 }
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (ac_try="$ac_link"
17025 case "(($ac_try" in
17026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027   *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030   (eval "$ac_link") 2>conftest.er1
17031   ac_status=$?
17032   grep -v '^ *+' conftest.er1 >conftest.err
17033   rm -f conftest.er1
17034   cat conftest.err >&5
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038   { (case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_try") 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (case "(($ac_try" in
17049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050   *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053   (eval "$ac_try") 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; }; then
17057   ac_cv_func_dlopen=yes
17058 else
17059   echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062         ac_cv_func_dlopen=no
17063 fi
17064
17065 rm -f core conftest.err conftest.$ac_objext \
17066       conftest$ac_exeext conftest.$ac_ext
17067 fi
17068 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17069 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17070 if test $ac_cv_func_dlopen = yes; then
17071   lt_cv_dlopen="dlopen"
17072 else
17073   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17074 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078   ac_check_lib_save_LIBS=$LIBS
17079 LIBS="-ldl  $LIBS"
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086
17087 /* Override any GCC internal prototype to avoid an error.
17088    Use char because int might match the return type of a GCC
17089    builtin and then its argument prototype would still apply.  */
17090 #ifdef __cplusplus
17091 extern "C"
17092 #endif
17093 char dlopen ();
17094 int
17095 main ()
17096 {
17097 return dlopen ();
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_link") 2>conftest.er1
17110   ac_status=$?
17111   grep -v '^ *+' conftest.er1 >conftest.err
17112   rm -f conftest.er1
17113   cat conftest.err >&5
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } &&
17116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17117   { (case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_try") 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; } &&
17126          { ac_try='test -s conftest$ac_exeext'
17127   { (case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132   (eval "$ac_try") 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; }; then
17136   ac_cv_lib_dl_dlopen=yes
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141         ac_cv_lib_dl_dlopen=no
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext \
17145       conftest$ac_exeext conftest.$ac_ext
17146 LIBS=$ac_check_lib_save_LIBS
17147 fi
17148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17150 if test $ac_cv_lib_dl_dlopen = yes; then
17151   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17152 else
17153   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17154 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lsvld  $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166
17167 /* Override any GCC internal prototype to avoid an error.
17168    Use char because int might match the return type of a GCC
17169    builtin and then its argument prototype would still apply.  */
17170 #ifdef __cplusplus
17171 extern "C"
17172 #endif
17173 char dlopen ();
17174 int
17175 main ()
17176 {
17177 return dlopen ();
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189   (eval "$ac_link") 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } &&
17196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197   { (case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_try") 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; } &&
17206          { ac_try='test -s conftest$ac_exeext'
17207   { (case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_try") 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; }; then
17216   ac_cv_lib_svld_dlopen=yes
17217 else
17218   echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221         ac_cv_lib_svld_dlopen=no
17222 fi
17223
17224 rm -f core conftest.err conftest.$ac_objext \
17225       conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17227 fi
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17229 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17230 if test $ac_cv_lib_svld_dlopen = yes; then
17231   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17232 else
17233   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17234 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-ldld  $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246
17247 /* Override any GCC internal prototype to avoid an error.
17248    Use char because int might match the return type of a GCC
17249    builtin and then its argument prototype would still apply.  */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char dld_link ();
17254 int
17255 main ()
17256 {
17257 return dld_link ();
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_link") 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } &&
17276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17277   { (case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282   (eval "$ac_try") 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; } &&
17286          { ac_try='test -s conftest$ac_exeext'
17287   { (case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_try") 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); }; }; then
17296   ac_cv_lib_dld_dld_link=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301         ac_cv_lib_dld_dld_link=no
17302 fi
17303
17304 rm -f core conftest.err conftest.$ac_objext \
17305       conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17307 fi
17308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17310 if test $ac_cv_lib_dld_dld_link = yes; then
17311   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17312 fi
17313
17314
17315 fi
17316
17317
17318 fi
17319
17320
17321 fi
17322
17323
17324 fi
17325
17326
17327 fi
17328
17329     ;;
17330   esac
17331
17332   if test "x$lt_cv_dlopen" != xno; then
17333     enable_dlopen=yes
17334   else
17335     enable_dlopen=no
17336   fi
17337
17338   case $lt_cv_dlopen in
17339   dlopen)
17340     save_CPPFLAGS="$CPPFLAGS"
17341     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17342
17343     save_LDFLAGS="$LDFLAGS"
17344     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17345
17346     save_LIBS="$LIBS"
17347     LIBS="$lt_cv_dlopen_libs $LIBS"
17348
17349     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17350 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17351 if test "${lt_cv_dlopen_self+set}" = set; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354           if test "$cross_compiling" = yes; then :
17355   lt_cv_dlopen_self=cross
17356 else
17357   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17358   lt_status=$lt_dlunknown
17359   cat > conftest.$ac_ext <<EOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17362
17363 #if HAVE_DLFCN_H
17364 #include <dlfcn.h>
17365 #endif
17366
17367 #include <stdio.h>
17368
17369 #ifdef RTLD_GLOBAL
17370 #  define LT_DLGLOBAL           RTLD_GLOBAL
17371 #else
17372 #  ifdef DL_GLOBAL
17373 #    define LT_DLGLOBAL         DL_GLOBAL
17374 #  else
17375 #    define LT_DLGLOBAL         0
17376 #  endif
17377 #endif
17378
17379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17380    find out it does not work in some platform. */
17381 #ifndef LT_DLLAZY_OR_NOW
17382 #  ifdef RTLD_LAZY
17383 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17384 #  else
17385 #    ifdef DL_LAZY
17386 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17387 #    else
17388 #      ifdef RTLD_NOW
17389 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17390 #      else
17391 #        ifdef DL_NOW
17392 #          define LT_DLLAZY_OR_NOW      DL_NOW
17393 #        else
17394 #          define LT_DLLAZY_OR_NOW      0
17395 #        endif
17396 #      endif
17397 #    endif
17398 #  endif
17399 #endif
17400
17401 #ifdef __cplusplus
17402 extern "C" void exit (int);
17403 #endif
17404
17405 void fnord() { int i=42;}
17406 int main ()
17407 {
17408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17409   int status = $lt_dlunknown;
17410
17411   if (self)
17412     {
17413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17414       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17415       /* dlclose (self); */
17416     }
17417   else
17418     puts (dlerror ());
17419
17420     exit (status);
17421 }
17422 EOF
17423   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424   (eval $ac_link) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17428     (./conftest; exit; ) >&5 2>/dev/null
17429     lt_status=$?
17430     case x$lt_status in
17431       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17432       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17433       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17434     esac
17435   else :
17436     # compilation failed
17437     lt_cv_dlopen_self=no
17438   fi
17439 fi
17440 rm -fr conftest*
17441
17442
17443 fi
17444 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17445 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17446
17447     if test "x$lt_cv_dlopen_self" = xyes; then
17448       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17449       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17450 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17451 if test "${lt_cv_dlopen_self_static+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454           if test "$cross_compiling" = yes; then :
17455   lt_cv_dlopen_self_static=cross
17456 else
17457   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17458   lt_status=$lt_dlunknown
17459   cat > conftest.$ac_ext <<EOF
17460 #line 17460 "configure"
17461 #include "confdefs.h"
17462
17463 #if HAVE_DLFCN_H
17464 #include <dlfcn.h>
17465 #endif
17466
17467 #include <stdio.h>
17468
17469 #ifdef RTLD_GLOBAL
17470 #  define LT_DLGLOBAL           RTLD_GLOBAL
17471 #else
17472 #  ifdef DL_GLOBAL
17473 #    define LT_DLGLOBAL         DL_GLOBAL
17474 #  else
17475 #    define LT_DLGLOBAL         0
17476 #  endif
17477 #endif
17478
17479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17480    find out it does not work in some platform. */
17481 #ifndef LT_DLLAZY_OR_NOW
17482 #  ifdef RTLD_LAZY
17483 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17484 #  else
17485 #    ifdef DL_LAZY
17486 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17487 #    else
17488 #      ifdef RTLD_NOW
17489 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17490 #      else
17491 #        ifdef DL_NOW
17492 #          define LT_DLLAZY_OR_NOW      DL_NOW
17493 #        else
17494 #          define LT_DLLAZY_OR_NOW      0
17495 #        endif
17496 #      endif
17497 #    endif
17498 #  endif
17499 #endif
17500
17501 #ifdef __cplusplus
17502 extern "C" void exit (int);
17503 #endif
17504
17505 void fnord() { int i=42;}
17506 int main ()
17507 {
17508   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17509   int status = $lt_dlunknown;
17510
17511   if (self)
17512     {
17513       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17514       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17515       /* dlclose (self); */
17516     }
17517   else
17518     puts (dlerror ());
17519
17520     exit (status);
17521 }
17522 EOF
17523   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524   (eval $ac_link) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17528     (./conftest; exit; ) >&5 2>/dev/null
17529     lt_status=$?
17530     case x$lt_status in
17531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17533       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17534     esac
17535   else :
17536     # compilation failed
17537     lt_cv_dlopen_self_static=no
17538   fi
17539 fi
17540 rm -fr conftest*
17541
17542
17543 fi
17544 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17546     fi
17547
17548     CPPFLAGS="$save_CPPFLAGS"
17549     LDFLAGS="$save_LDFLAGS"
17550     LIBS="$save_LIBS"
17551     ;;
17552   esac
17553
17554   case $lt_cv_dlopen_self in
17555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17556   *) enable_dlopen_self=unknown ;;
17557   esac
17558
17559   case $lt_cv_dlopen_self_static in
17560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17561   *) enable_dlopen_self_static=unknown ;;
17562   esac
17563 fi
17564
17565
17566 # Report which library types will actually be built
17567 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17568 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17569 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17570 echo "${ECHO_T}$can_build_shared" >&6; }
17571
17572 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17573 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17574 test "$can_build_shared" = "no" && enable_shared=no
17575
17576 # On AIX, shared libraries and static libraries use the same namespace, and
17577 # are all built from PIC.
17578 case $host_os in
17579 aix3*)
17580   test "$enable_shared" = yes && enable_static=no
17581   if test -n "$RANLIB"; then
17582     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17583     postinstall_cmds='$RANLIB $lib'
17584   fi
17585   ;;
17586
17587 aix4* | aix5*)
17588   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17589     test "$enable_shared" = yes && enable_static=no
17590   fi
17591     ;;
17592 esac
17593 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17594 echo "${ECHO_T}$enable_shared" >&6; }
17595
17596 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17597 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17598 # Make sure either enable_shared or enable_static is yes.
17599 test "$enable_shared" = yes || enable_static=yes
17600 { echo "$as_me:$LINENO: result: $enable_static" >&5
17601 echo "${ECHO_T}$enable_static" >&6; }
17602
17603 # The else clause should only fire when bootstrapping the
17604 # libtool distribution, otherwise you forgot to ship ltmain.sh
17605 # with your package, and you will get complaints that there are
17606 # no rules to generate ltmain.sh.
17607 if test -f "$ltmain"; then
17608   # See if we are running on zsh, and set the options which allow our commands through
17609   # without removal of \ escapes.
17610   if test -n "${ZSH_VERSION+set}" ; then
17611     setopt NO_GLOB_SUBST
17612   fi
17613   # Now quote all the things that may contain metacharacters while being
17614   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17615   # variables and quote the copies for generation of the libtool script.
17616   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17617     SED SHELL STRIP \
17618     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17619     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17620     deplibs_check_method reload_flag reload_cmds need_locks \
17621     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17622     lt_cv_sys_global_symbol_to_c_name_address \
17623     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17624     old_postinstall_cmds old_postuninstall_cmds \
17625     compiler \
17626     CC \
17627     LD \
17628     lt_prog_compiler_wl \
17629     lt_prog_compiler_pic \
17630     lt_prog_compiler_static \
17631     lt_prog_compiler_no_builtin_flag \
17632     export_dynamic_flag_spec \
17633     thread_safe_flag_spec \
17634     whole_archive_flag_spec \
17635     enable_shared_with_static_runtimes \
17636     old_archive_cmds \
17637     old_archive_from_new_cmds \
17638     predep_objects \
17639     postdep_objects \
17640     predeps \
17641     postdeps \
17642     compiler_lib_search_path \
17643     archive_cmds \
17644     archive_expsym_cmds \
17645     postinstall_cmds \
17646     postuninstall_cmds \
17647     old_archive_from_expsyms_cmds \
17648     allow_undefined_flag \
17649     no_undefined_flag \
17650     export_symbols_cmds \
17651     hardcode_libdir_flag_spec \
17652     hardcode_libdir_flag_spec_ld \
17653     hardcode_libdir_separator \
17654     hardcode_automatic \
17655     module_cmds \
17656     module_expsym_cmds \
17657     lt_cv_prog_compiler_c_o \
17658     exclude_expsyms \
17659     include_expsyms; do
17660
17661     case $var in
17662     old_archive_cmds | \
17663     old_archive_from_new_cmds | \
17664     archive_cmds | \
17665     archive_expsym_cmds | \
17666     module_cmds | \
17667     module_expsym_cmds | \
17668     old_archive_from_expsyms_cmds | \
17669     export_symbols_cmds | \
17670     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17671     postinstall_cmds | postuninstall_cmds | \
17672     old_postinstall_cmds | old_postuninstall_cmds | \
17673     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17674       # Double-quote double-evaled strings.
17675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17676       ;;
17677     *)
17678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17679       ;;
17680     esac
17681   done
17682
17683   case $lt_echo in
17684   *'\$0 --fallback-echo"')
17685     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17686     ;;
17687   esac
17688
17689 cfgfile="${ofile}T"
17690   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17691   $rm -f "$cfgfile"
17692   { echo "$as_me:$LINENO: creating $ofile" >&5
17693 echo "$as_me: creating $ofile" >&6;}
17694
17695   cat <<__EOF__ >> "$cfgfile"
17696 #! $SHELL
17697
17698 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17701 #
17702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17703 # Free Software Foundation, Inc.
17704 #
17705 # This file is part of GNU Libtool:
17706 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17707 #
17708 # This program is free software; you can redistribute it and/or modify
17709 # it under the terms of the GNU General Public License as published by
17710 # the Free Software Foundation; either version 2 of the License, or
17711 # (at your option) any later version.
17712 #
17713 # This program is distributed in the hope that it will be useful, but
17714 # WITHOUT ANY WARRANTY; without even the implied warranty of
17715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17716 # General Public License for more details.
17717 #
17718 # You should have received a copy of the GNU General Public License
17719 # along with this program; if not, write to the Free Software
17720 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17721 #
17722 # As a special exception to the GNU General Public License, if you
17723 # distribute this file as part of a program that contains a
17724 # configuration script generated by Autoconf, you may include it under
17725 # the same distribution terms that you use for the rest of that program.
17726
17727 # A sed program that does not truncate output.
17728 SED=$lt_SED
17729
17730 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17731 Xsed="$SED -e 1s/^X//"
17732
17733 # The HP-UX ksh and POSIX shell print the target directory to stdout
17734 # if CDPATH is set.
17735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17736
17737 # The names of the tagged configurations supported by this script.
17738 available_tags=
17739
17740 # ### BEGIN LIBTOOL CONFIG
17741
17742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17743
17744 # Shell to use when invoking shell scripts.
17745 SHELL=$lt_SHELL
17746
17747 # Whether or not to build shared libraries.
17748 build_libtool_libs=$enable_shared
17749
17750 # Whether or not to build static libraries.
17751 build_old_libs=$enable_static
17752
17753 # Whether or not to add -lc for building shared libraries.
17754 build_libtool_need_lc=$archive_cmds_need_lc
17755
17756 # Whether or not to disallow shared libs when runtime libs are static
17757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17758
17759 # Whether or not to optimize for fast installation.
17760 fast_install=$enable_fast_install
17761
17762 # The host system.
17763 host_alias=$host_alias
17764 host=$host
17765 host_os=$host_os
17766
17767 # The build system.
17768 build_alias=$build_alias
17769 build=$build
17770 build_os=$build_os
17771
17772 # An echo program that does not interpret backslashes.
17773 echo=$lt_echo
17774
17775 # The archiver.
17776 AR=$lt_AR
17777 AR_FLAGS=$lt_AR_FLAGS
17778
17779 # A C compiler.
17780 LTCC=$lt_LTCC
17781
17782 # LTCC compiler flags.
17783 LTCFLAGS=$lt_LTCFLAGS
17784
17785 # A language-specific compiler.
17786 CC=$lt_compiler
17787
17788 # Is the compiler the GNU C compiler?
17789 with_gcc=$GCC
17790
17791 # An ERE matcher.
17792 EGREP=$lt_EGREP
17793
17794 # The linker used to build libraries.
17795 LD=$lt_LD
17796
17797 # Whether we need hard or soft links.
17798 LN_S=$lt_LN_S
17799
17800 # A BSD-compatible nm program.
17801 NM=$lt_NM
17802
17803 # A symbol stripping program
17804 STRIP=$lt_STRIP
17805
17806 # Used to examine libraries when file_magic_cmd begins "file"
17807 MAGIC_CMD=$MAGIC_CMD
17808
17809 # Used on cygwin: DLL creation program.
17810 DLLTOOL="$DLLTOOL"
17811
17812 # Used on cygwin: object dumper.
17813 OBJDUMP="$OBJDUMP"
17814
17815 # Used on cygwin: assembler.
17816 AS="$AS"
17817
17818 # The name of the directory that contains temporary libtool files.
17819 objdir=$objdir
17820
17821 # How to create reloadable object files.
17822 reload_flag=$lt_reload_flag
17823 reload_cmds=$lt_reload_cmds
17824
17825 # How to pass a linker flag through the compiler.
17826 wl=$lt_lt_prog_compiler_wl
17827
17828 # Object file suffix (normally "o").
17829 objext="$ac_objext"
17830
17831 # Old archive suffix (normally "a").
17832 libext="$libext"
17833
17834 # Shared library suffix (normally ".so").
17835 shrext_cmds='$shrext_cmds'
17836
17837 # Executable file suffix (normally "").
17838 exeext="$exeext"
17839
17840 # Additional compiler flags for building library objects.
17841 pic_flag=$lt_lt_prog_compiler_pic
17842 pic_mode=$pic_mode
17843
17844 # What is the maximum length of a command?
17845 max_cmd_len=$lt_cv_sys_max_cmd_len
17846
17847 # Does compiler simultaneously support -c and -o options?
17848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17849
17850 # Must we lock files when doing compilation?
17851 need_locks=$lt_need_locks
17852
17853 # Do we need the lib prefix for modules?
17854 need_lib_prefix=$need_lib_prefix
17855
17856 # Do we need a version for libraries?
17857 need_version=$need_version
17858
17859 # Whether dlopen is supported.
17860 dlopen_support=$enable_dlopen
17861
17862 # Whether dlopen of programs is supported.
17863 dlopen_self=$enable_dlopen_self
17864
17865 # Whether dlopen of statically linked programs is supported.
17866 dlopen_self_static=$enable_dlopen_self_static
17867
17868 # Compiler flag to prevent dynamic linking.
17869 link_static_flag=$lt_lt_prog_compiler_static
17870
17871 # Compiler flag to turn off builtin functions.
17872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17873
17874 # Compiler flag to allow reflexive dlopens.
17875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17876
17877 # Compiler flag to generate shared objects directly from archives.
17878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17879
17880 # Compiler flag to generate thread-safe objects.
17881 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17882
17883 # Library versioning type.
17884 version_type=$version_type
17885
17886 # Format of library name prefix.
17887 libname_spec=$lt_libname_spec
17888
17889 # List of archive names.  First name is the real one, the rest are links.
17890 # The last name is the one that the linker finds with -lNAME.
17891 library_names_spec=$lt_library_names_spec
17892
17893 # The coded name of the library, if different from the real name.
17894 soname_spec=$lt_soname_spec
17895
17896 # Commands used to build and install an old-style archive.
17897 RANLIB=$lt_RANLIB
17898 old_archive_cmds=$lt_old_archive_cmds
17899 old_postinstall_cmds=$lt_old_postinstall_cmds
17900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17901
17902 # Create an old-style archive from a shared archive.
17903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17904
17905 # Create a temporary old-style archive to link instead of a shared archive.
17906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17907
17908 # Commands used to build and install a shared archive.
17909 archive_cmds=$lt_archive_cmds
17910 archive_expsym_cmds=$lt_archive_expsym_cmds
17911 postinstall_cmds=$lt_postinstall_cmds
17912 postuninstall_cmds=$lt_postuninstall_cmds
17913
17914 # Commands used to build a loadable module (assumed same as above if empty)
17915 module_cmds=$lt_module_cmds
17916 module_expsym_cmds=$lt_module_expsym_cmds
17917
17918 # Commands to strip libraries.
17919 old_striplib=$lt_old_striplib
17920 striplib=$lt_striplib
17921
17922 # Dependencies to place before the objects being linked to create a
17923 # shared library.
17924 predep_objects=$lt_predep_objects
17925
17926 # Dependencies to place after the objects being linked to create a
17927 # shared library.
17928 postdep_objects=$lt_postdep_objects
17929
17930 # Dependencies to place before the objects being linked to create a
17931 # shared library.
17932 predeps=$lt_predeps
17933
17934 # Dependencies to place after the objects being linked to create a
17935 # shared library.
17936 postdeps=$lt_postdeps
17937
17938 # The library search path used internally by the compiler when linking
17939 # a shared library.
17940 compiler_lib_search_path=$lt_compiler_lib_search_path
17941
17942 # Method to check whether dependent libraries are shared objects.
17943 deplibs_check_method=$lt_deplibs_check_method
17944
17945 # Command to use when deplibs_check_method == file_magic.
17946 file_magic_cmd=$lt_file_magic_cmd
17947
17948 # Flag that allows shared libraries with undefined symbols to be built.
17949 allow_undefined_flag=$lt_allow_undefined_flag
17950
17951 # Flag that forces no undefined symbols.
17952 no_undefined_flag=$lt_no_undefined_flag
17953
17954 # Commands used to finish a libtool library installation in a directory.
17955 finish_cmds=$lt_finish_cmds
17956
17957 # Same as above, but a single script fragment to be evaled but not shown.
17958 finish_eval=$lt_finish_eval
17959
17960 # Take the output of nm and produce a listing of raw symbols and C names.
17961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17962
17963 # Transform the output of nm in a proper C declaration
17964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17965
17966 # Transform the output of nm in a C name address pair
17967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17968
17969 # This is the shared library runtime path variable.
17970 runpath_var=$runpath_var
17971
17972 # This is the shared library path variable.
17973 shlibpath_var=$shlibpath_var
17974
17975 # Is shlibpath searched before the hard-coded library search path?
17976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17977
17978 # How to hardcode a shared library path into an executable.
17979 hardcode_action=$hardcode_action
17980
17981 # Whether we should hardcode library paths into libraries.
17982 hardcode_into_libs=$hardcode_into_libs
17983
17984 # Flag to hardcode \$libdir into a binary during linking.
17985 # This must work even if \$libdir does not exist.
17986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17987
17988 # If ld is used when linking, flag to hardcode \$libdir into
17989 # a binary during linking. This must work even if \$libdir does
17990 # not exist.
17991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17992
17993 # Whether we need a single -rpath flag with a separated argument.
17994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17995
17996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17997 # resulting binary.
17998 hardcode_direct=$hardcode_direct
17999
18000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18001 # resulting binary.
18002 hardcode_minus_L=$hardcode_minus_L
18003
18004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18005 # the resulting binary.
18006 hardcode_shlibpath_var=$hardcode_shlibpath_var
18007
18008 # Set to yes if building a shared library automatically hardcodes DIR into the library
18009 # and all subsequent libraries and executables linked against it.
18010 hardcode_automatic=$hardcode_automatic
18011
18012 # Variables whose values should be saved in libtool wrapper scripts and
18013 # restored at relink time.
18014 variables_saved_for_relink="$variables_saved_for_relink"
18015
18016 # Whether libtool must link a program against all its dependency libraries.
18017 link_all_deplibs=$link_all_deplibs
18018
18019 # Compile-time system search path for libraries
18020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18021
18022 # Run-time system search path for libraries
18023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18024
18025 # Fix the shell variable \$srcfile for the compiler.
18026 fix_srcfile_path="$fix_srcfile_path"
18027
18028 # Set to yes if exported symbols are required.
18029 always_export_symbols=$always_export_symbols
18030
18031 # The commands to list exported symbols.
18032 export_symbols_cmds=$lt_export_symbols_cmds
18033
18034 # The commands to extract the exported symbol list from a shared archive.
18035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18036
18037 # Symbols that should not be listed in the preloaded symbols.
18038 exclude_expsyms=$lt_exclude_expsyms
18039
18040 # Symbols that must always be exported.
18041 include_expsyms=$lt_include_expsyms
18042
18043 # ### END LIBTOOL CONFIG
18044
18045 __EOF__
18046
18047
18048   case $host_os in
18049   aix3*)
18050     cat <<\EOF >> "$cfgfile"
18051
18052 # AIX sometimes has problems with the GCC collect2 program.  For some
18053 # reason, if we set the COLLECT_NAMES environment variable, the problems
18054 # vanish in a puff of smoke.
18055 if test "X${COLLECT_NAMES+set}" != Xset; then
18056   COLLECT_NAMES=
18057   export COLLECT_NAMES
18058 fi
18059 EOF
18060     ;;
18061   esac
18062
18063   # We use sed instead of cat because bash on DJGPP gets confused if
18064   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18065   # text mode, it properly converts lines to CR/LF.  This bash problem
18066   # is reportedly fixed, but why not run on old versions too?
18067   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18068
18069   mv -f "$cfgfile" "$ofile" || \
18070     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18071   chmod +x "$ofile"
18072
18073 else
18074   # If there is no Makefile yet, we rely on a make rule to execute
18075   # `config.status --recheck' to rerun these tests and create the
18076   # libtool script then.
18077   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18078   if test -f "$ltmain_in"; then
18079     test -f Makefile && make "$ltmain"
18080   fi
18081 fi
18082
18083
18084 ac_ext=c
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089
18090 CC="$lt_save_CC"
18091
18092
18093 # Check whether --with-tags was given.
18094 if test "${with_tags+set}" = set; then
18095   withval=$with_tags; tagnames="$withval"
18096 fi
18097
18098
18099 if test -f "$ltmain" && test -n "$tagnames"; then
18100   if test ! -f "${ofile}"; then
18101     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18102 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18103   fi
18104
18105   if test -z "$LTCC"; then
18106     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18107     if test -z "$LTCC"; then
18108       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18109 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18110     else
18111       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18112 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18113     fi
18114   fi
18115   if test -z "$LTCFLAGS"; then
18116     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18117   fi
18118
18119   # Extract list of available tagged configurations in $ofile.
18120   # Note that this assumes the entire list is on one line.
18121   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18122
18123   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18124   for tagname in $tagnames; do
18125     IFS="$lt_save_ifs"
18126     # Check whether tagname contains only valid characters
18127     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18128     "") ;;
18129     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18130 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18131    { (exit 1); exit 1; }; }
18132         ;;
18133     esac
18134
18135     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18136     then
18137       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18138 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18139    { (exit 1); exit 1; }; }
18140     fi
18141
18142     # Update the list of available tags.
18143     if test -n "$tagname"; then
18144       echo appending configuration tag \"$tagname\" to $ofile
18145
18146       case $tagname in
18147       CXX)
18148         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18149             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18150             (test "X$CXX" != "Xg++"))) ; then
18151           ac_ext=cpp
18152 ac_cpp='$CXXCPP $CPPFLAGS'
18153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18156
18157
18158
18159
18160 archive_cmds_need_lc_CXX=no
18161 allow_undefined_flag_CXX=
18162 always_export_symbols_CXX=no
18163 archive_expsym_cmds_CXX=
18164 export_dynamic_flag_spec_CXX=
18165 hardcode_direct_CXX=no
18166 hardcode_libdir_flag_spec_CXX=
18167 hardcode_libdir_flag_spec_ld_CXX=
18168 hardcode_libdir_separator_CXX=
18169 hardcode_minus_L_CXX=no
18170 hardcode_shlibpath_var_CXX=unsupported
18171 hardcode_automatic_CXX=no
18172 module_cmds_CXX=
18173 module_expsym_cmds_CXX=
18174 link_all_deplibs_CXX=unknown
18175 old_archive_cmds_CXX=$old_archive_cmds
18176 no_undefined_flag_CXX=
18177 whole_archive_flag_spec_CXX=
18178 enable_shared_with_static_runtimes_CXX=no
18179
18180 # Dependencies to place before and after the object being linked:
18181 predep_objects_CXX=
18182 postdep_objects_CXX=
18183 predeps_CXX=
18184 postdeps_CXX=
18185 compiler_lib_search_path_CXX=
18186
18187 # Source file extension for C++ test sources.
18188 ac_ext=cpp
18189
18190 # Object file extension for compiled C++ test sources.
18191 objext=o
18192 objext_CXX=$objext
18193
18194 # Code to be used in simple compile tests
18195 lt_simple_compile_test_code="int some_variable = 0;\n"
18196
18197 # Code to be used in simple link tests
18198 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18199
18200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18201
18202 # If no C compiler was specified, use CC.
18203 LTCC=${LTCC-"$CC"}
18204
18205 # If no C compiler flags were specified, use CFLAGS.
18206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18207
18208 # Allow CC to be a program name with arguments.
18209 compiler=$CC
18210
18211
18212 # save warnings/boilerplate of simple test code
18213 ac_outfile=conftest.$ac_objext
18214 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216 _lt_compiler_boilerplate=`cat conftest.err`
18217 $rm conftest*
18218
18219 ac_outfile=conftest.$ac_objext
18220 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18222 _lt_linker_boilerplate=`cat conftest.err`
18223 $rm conftest*
18224
18225
18226 # Allow CC to be a program name with arguments.
18227 lt_save_CC=$CC
18228 lt_save_LD=$LD
18229 lt_save_GCC=$GCC
18230 GCC=$GXX
18231 lt_save_with_gnu_ld=$with_gnu_ld
18232 lt_save_path_LD=$lt_cv_path_LD
18233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18234   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18235 else
18236   $as_unset lt_cv_prog_gnu_ld
18237 fi
18238 if test -n "${lt_cv_path_LDCXX+set}"; then
18239   lt_cv_path_LD=$lt_cv_path_LDCXX
18240 else
18241   $as_unset lt_cv_path_LD
18242 fi
18243 test -z "${LDCXX+set}" || LD=$LDCXX
18244 CC=${CXX-"c++"}
18245 compiler=$CC
18246 compiler_CXX=$CC
18247 for cc_temp in $compiler""; do
18248   case $cc_temp in
18249     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18250     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18251     \-*) ;;
18252     *) break;;
18253   esac
18254 done
18255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18256
18257
18258 # We don't want -fno-exception wen compiling C++ code, so set the
18259 # no_builtin_flag separately
18260 if test "$GXX" = yes; then
18261   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18262 else
18263   lt_prog_compiler_no_builtin_flag_CXX=
18264 fi
18265
18266 if test "$GXX" = yes; then
18267   # Set up default GNU C++ configuration
18268
18269
18270 # Check whether --with-gnu-ld was given.
18271 if test "${with_gnu_ld+set}" = set; then
18272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18273 else
18274   with_gnu_ld=no
18275 fi
18276
18277 ac_prog=ld
18278 if test "$GCC" = yes; then
18279   # Check if gcc -print-prog-name=ld gives a path.
18280   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18282   case $host in
18283   *-*-mingw*)
18284     # gcc leaves a trailing carriage return which upsets mingw
18285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18286   *)
18287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18288   esac
18289   case $ac_prog in
18290     # Accept absolute paths.
18291     [\\/]* | ?:[\\/]*)
18292       re_direlt='/[^/][^/]*/\.\./'
18293       # Canonicalize the pathname of ld
18294       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18295       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18296         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18297       done
18298       test -z "$LD" && LD="$ac_prog"
18299       ;;
18300   "")
18301     # If it fails, then pretend we aren't using GCC.
18302     ac_prog=ld
18303     ;;
18304   *)
18305     # If it is relative, then search for the first ld in PATH.
18306     with_gnu_ld=unknown
18307     ;;
18308   esac
18309 elif test "$with_gnu_ld" = yes; then
18310   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18312 else
18313   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18315 fi
18316 if test "${lt_cv_path_LD+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319   if test -z "$LD"; then
18320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18321   for ac_dir in $PATH; do
18322     IFS="$lt_save_ifs"
18323     test -z "$ac_dir" && ac_dir=.
18324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18325       lt_cv_path_LD="$ac_dir/$ac_prog"
18326       # Check to see if the program is GNU ld.  I'd rather use --version,
18327       # but apparently some variants of GNU ld only accept -v.
18328       # Break only if it was the GNU/non-GNU ld that we prefer.
18329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18330       *GNU* | *'with BFD'*)
18331         test "$with_gnu_ld" != no && break
18332         ;;
18333       *)
18334         test "$with_gnu_ld" != yes && break
18335         ;;
18336       esac
18337     fi
18338   done
18339   IFS="$lt_save_ifs"
18340 else
18341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18342 fi
18343 fi
18344
18345 LD="$lt_cv_path_LD"
18346 if test -n "$LD"; then
18347   { echo "$as_me:$LINENO: result: $LD" >&5
18348 echo "${ECHO_T}$LD" >&6; }
18349 else
18350   { echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6; }
18352 fi
18353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18355    { (exit 1); exit 1; }; }
18356 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18362 case `$LD -v 2>&1 </dev/null` in
18363 *GNU* | *'with BFD'*)
18364   lt_cv_prog_gnu_ld=yes
18365   ;;
18366 *)
18367   lt_cv_prog_gnu_ld=no
18368   ;;
18369 esac
18370 fi
18371 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18373 with_gnu_ld=$lt_cv_prog_gnu_ld
18374
18375
18376
18377   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18378   # archiving commands below assume that GNU ld is being used.
18379   if test "$with_gnu_ld" = yes; then
18380     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381     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'
18382
18383     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18384     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18385
18386     # If archive_cmds runs LD, not CC, wlarc should be empty
18387     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18388     #     investigate it a little bit more. (MM)
18389     wlarc='${wl}'
18390
18391     # ancient GNU ld didn't support --whole-archive et. al.
18392     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18393         grep 'no-whole-archive' > /dev/null; then
18394       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18395     else
18396       whole_archive_flag_spec_CXX=
18397     fi
18398   else
18399     with_gnu_ld=no
18400     wlarc=
18401
18402     # A generic and very simple default shared library creation
18403     # command for GNU C++ for the case where it uses the native
18404     # linker, instead of GNU ld.  If possible, this setting should
18405     # overridden to take advantage of the native linker features on
18406     # the platform it is being used on.
18407     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18408   fi
18409
18410   # Commands to make compiler produce verbose output that lists
18411   # what "hidden" libraries, object files and flags are used when
18412   # linking a shared library.
18413   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18414
18415 else
18416   GXX=no
18417   with_gnu_ld=no
18418   wlarc=
18419 fi
18420
18421 # PORTME: fill in a description of your system's C++ link characteristics
18422 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18423 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18424 ld_shlibs_CXX=yes
18425 case $host_os in
18426   aix3*)
18427     # FIXME: insert proper C++ library support
18428     ld_shlibs_CXX=no
18429     ;;
18430   aix4* | aix5*)
18431     if test "$host_cpu" = ia64; then
18432       # On IA64, the linker does run time linking by default, so we don't
18433       # have to do anything special.
18434       aix_use_runtimelinking=no
18435       exp_sym_flag='-Bexport'
18436       no_entry_flag=""
18437     else
18438       aix_use_runtimelinking=no
18439
18440       # Test if we are trying to use run time linking or normal
18441       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18442       # need to do runtime linking.
18443       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18444         for ld_flag in $LDFLAGS; do
18445           case $ld_flag in
18446           *-brtl*)
18447             aix_use_runtimelinking=yes
18448             break
18449             ;;
18450           esac
18451         done
18452         ;;
18453       esac
18454
18455       exp_sym_flag='-bexport'
18456       no_entry_flag='-bnoentry'
18457     fi
18458
18459     # When large executables or shared objects are built, AIX ld can
18460     # have problems creating the table of contents.  If linking a library
18461     # or program results in "error TOC overflow" add -mminimal-toc to
18462     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18463     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18464
18465     archive_cmds_CXX=''
18466     hardcode_direct_CXX=yes
18467     hardcode_libdir_separator_CXX=':'
18468     link_all_deplibs_CXX=yes
18469
18470     if test "$GXX" = yes; then
18471       case $host_os in aix4.[012]|aix4.[012].*)
18472       # We only want to do this on AIX 4.2 and lower, the check
18473       # below for broken collect2 doesn't work under 4.3+
18474         collect2name=`${CC} -print-prog-name=collect2`
18475         if test -f "$collect2name" && \
18476            strings "$collect2name" | grep resolve_lib_name >/dev/null
18477         then
18478           # We have reworked collect2
18479           hardcode_direct_CXX=yes
18480         else
18481           # We have old collect2
18482           hardcode_direct_CXX=unsupported
18483           # It fails to find uninstalled libraries when the uninstalled
18484           # path is not listed in the libpath.  Setting hardcode_minus_L
18485           # to unsupported forces relinking
18486           hardcode_minus_L_CXX=yes
18487           hardcode_libdir_flag_spec_CXX='-L$libdir'
18488           hardcode_libdir_separator_CXX=
18489         fi
18490         ;;
18491       esac
18492       shared_flag='-shared'
18493       if test "$aix_use_runtimelinking" = yes; then
18494         shared_flag="$shared_flag "'${wl}-G'
18495       fi
18496     else
18497       # not using gcc
18498       if test "$host_cpu" = ia64; then
18499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18500         # chokes on -Wl,-G. The following line is correct:
18501         shared_flag='-G'
18502       else
18503         if test "$aix_use_runtimelinking" = yes; then
18504           shared_flag='${wl}-G'
18505         else
18506           shared_flag='${wl}-bM:SRE'
18507         fi
18508       fi
18509     fi
18510
18511     # It seems that -bexpall does not export symbols beginning with
18512     # underscore (_), so it is better to generate a list of symbols to export.
18513     always_export_symbols_CXX=yes
18514     if test "$aix_use_runtimelinking" = yes; then
18515       # Warning - without using the other runtime loading flags (-brtl),
18516       # -berok will link without error, but may produce a broken library.
18517       allow_undefined_flag_CXX='-berok'
18518       # Determine the default libpath from the value encoded in an empty executable.
18519       cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h.  */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h.  */
18525
18526 int
18527 main ()
18528 {
18529
18530   ;
18531   return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_link") 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18549   { (case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_try") 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; } &&
18558          { ac_try='test -s conftest$ac_exeext'
18559   { (case "(($ac_try" in
18560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561   *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564   (eval "$ac_try") 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); }; }; then
18568
18569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18570 }'`
18571 # Check for a 64-bit object if we didn't find anything.
18572 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; }
18573 }'`; fi
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578
18579 fi
18580
18581 rm -f core conftest.err conftest.$ac_objext \
18582       conftest$ac_exeext conftest.$ac_ext
18583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18584
18585       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18586
18587       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"
18588      else
18589       if test "$host_cpu" = ia64; then
18590         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18591         allow_undefined_flag_CXX="-z nodefs"
18592         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"
18593       else
18594         # Determine the default libpath from the value encoded in an empty executable.
18595         cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601
18602 int
18603 main ()
18604 {
18605
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_link") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } &&
18624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest$ac_exeext'
18635   { (case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_try") 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; }; then
18644
18645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18646 }'`
18647 # Check for a 64-bit object if we didn't find anything.
18648 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; }
18649 }'`; fi
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext \
18658       conftest$ac_exeext conftest.$ac_ext
18659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18660
18661         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18662         # Warning - without using the other run time loading flags,
18663         # -berok will link without error, but may produce a broken library.
18664         no_undefined_flag_CXX=' ${wl}-bernotok'
18665         allow_undefined_flag_CXX=' ${wl}-berok'
18666         # Exported symbols can be pulled into shared objects from archives
18667         whole_archive_flag_spec_CXX='$convenience'
18668         archive_cmds_need_lc_CXX=yes
18669         # This is similar to how AIX traditionally builds its shared libraries.
18670         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'
18671       fi
18672     fi
18673     ;;
18674
18675   beos*)
18676     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18677       allow_undefined_flag_CXX=unsupported
18678       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18679       # support --undefined.  This deserves some investigation.  FIXME
18680       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18681     else
18682       ld_shlibs_CXX=no
18683     fi
18684     ;;
18685
18686   chorus*)
18687     case $cc_basename in
18688       *)
18689         # FIXME: insert proper C++ library support
18690         ld_shlibs_CXX=no
18691         ;;
18692     esac
18693     ;;
18694
18695   cygwin* | mingw* | pw32*)
18696     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18697     # as there is no search path for DLLs.
18698     hardcode_libdir_flag_spec_CXX='-L$libdir'
18699     allow_undefined_flag_CXX=unsupported
18700     always_export_symbols_CXX=no
18701     enable_shared_with_static_runtimes_CXX=yes
18702
18703     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18704       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'
18705       # If the export-symbols file already is a .def file (1st line
18706       # is EXPORTS), use it as is; otherwise, prepend...
18707       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18708         cp $export_symbols $output_objdir/$soname.def;
18709       else
18710         echo EXPORTS > $output_objdir/$soname.def;
18711         cat $export_symbols >> $output_objdir/$soname.def;
18712       fi~
18713       $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'
18714     else
18715       ld_shlibs_CXX=no
18716     fi
18717   ;;
18718       darwin* | rhapsody*)
18719         case $host_os in
18720         rhapsody* | darwin1.[012])
18721          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18722          ;;
18723        *) # Darwin 1.3 on
18724          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18725            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18726          else
18727            case ${MACOSX_DEPLOYMENT_TARGET} in
18728              10.[012])
18729                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18730                ;;
18731              10.*)
18732                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18733                ;;
18734            esac
18735          fi
18736          ;;
18737         esac
18738       archive_cmds_need_lc_CXX=no
18739       hardcode_direct_CXX=no
18740       hardcode_automatic_CXX=yes
18741       hardcode_shlibpath_var_CXX=unsupported
18742       whole_archive_flag_spec_CXX=''
18743       link_all_deplibs_CXX=yes
18744
18745     if test "$GXX" = yes ; then
18746       lt_int_apple_cc_single_mod=no
18747       output_verbose_link_cmd='echo'
18748       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18749        lt_int_apple_cc_single_mod=yes
18750       fi
18751       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18752        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18753       else
18754           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'
18755         fi
18756         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18757         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18758           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18759             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}'
18760           else
18761             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}'
18762           fi
18763             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}'
18764       else
18765       case $cc_basename in
18766         xlc*)
18767          output_verbose_link_cmd='echo'
18768           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'
18769           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18770           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18771           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}'
18772           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}'
18773           ;;
18774        *)
18775          ld_shlibs_CXX=no
18776           ;;
18777       esac
18778       fi
18779         ;;
18780
18781   dgux*)
18782     case $cc_basename in
18783       ec++*)
18784         # FIXME: insert proper C++ library support
18785         ld_shlibs_CXX=no
18786         ;;
18787       ghcx*)
18788         # Green Hills C++ Compiler
18789         # FIXME: insert proper C++ library support
18790         ld_shlibs_CXX=no
18791         ;;
18792       *)
18793         # FIXME: insert proper C++ library support
18794         ld_shlibs_CXX=no
18795         ;;
18796     esac
18797     ;;
18798   freebsd[12]*)
18799     # C++ shared libraries reported to be fairly broken before switch to ELF
18800     ld_shlibs_CXX=no
18801     ;;
18802   freebsd-elf*)
18803     archive_cmds_need_lc_CXX=no
18804     ;;
18805   freebsd* | kfreebsd*-gnu | dragonfly*)
18806     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18807     # conventions
18808     ld_shlibs_CXX=yes
18809     ;;
18810   gnu*)
18811     ;;
18812   hpux9*)
18813     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18814     hardcode_libdir_separator_CXX=:
18815     export_dynamic_flag_spec_CXX='${wl}-E'
18816     hardcode_direct_CXX=yes
18817     hardcode_minus_L_CXX=yes # Not in the search PATH,
18818                                 # but as the default
18819                                 # location of the library.
18820
18821     case $cc_basename in
18822     CC*)
18823       # FIXME: insert proper C++ library support
18824       ld_shlibs_CXX=no
18825       ;;
18826     aCC*)
18827       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'
18828       # Commands to make compiler produce verbose output that lists
18829       # what "hidden" libraries, object files and flags are used when
18830       # linking a shared library.
18831       #
18832       # There doesn't appear to be a way to prevent this compiler from
18833       # explicitly linking system object files so we need to strip them
18834       # from the output so that they don't get included in the library
18835       # dependencies.
18836       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'
18837       ;;
18838     *)
18839       if test "$GXX" = yes; then
18840         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'
18841       else
18842         # FIXME: insert proper C++ library support
18843         ld_shlibs_CXX=no
18844       fi
18845       ;;
18846     esac
18847     ;;
18848   hpux10*|hpux11*)
18849     if test $with_gnu_ld = no; then
18850       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18851       hardcode_libdir_separator_CXX=:
18852
18853       case $host_cpu in
18854       hppa*64*|ia64*)
18855         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18856         ;;
18857       *)
18858         export_dynamic_flag_spec_CXX='${wl}-E'
18859         ;;
18860       esac
18861     fi
18862     case $host_cpu in
18863     hppa*64*|ia64*)
18864       hardcode_direct_CXX=no
18865       hardcode_shlibpath_var_CXX=no
18866       ;;
18867     *)
18868       hardcode_direct_CXX=yes
18869       hardcode_minus_L_CXX=yes # Not in the search PATH,
18870                                               # but as the default
18871                                               # location of the library.
18872       ;;
18873     esac
18874
18875     case $cc_basename in
18876       CC*)
18877         # FIXME: insert proper C++ library support
18878         ld_shlibs_CXX=no
18879         ;;
18880       aCC*)
18881         case $host_cpu in
18882         hppa*64*)
18883           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18884           ;;
18885         ia64*)
18886           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18887           ;;
18888         *)
18889           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18890           ;;
18891         esac
18892         # Commands to make compiler produce verbose output that lists
18893         # what "hidden" libraries, object files and flags are used when
18894         # linking a shared library.
18895         #
18896         # There doesn't appear to be a way to prevent this compiler from
18897         # explicitly linking system object files so we need to strip them
18898         # from the output so that they don't get included in the library
18899         # dependencies.
18900         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'
18901         ;;
18902       *)
18903         if test "$GXX" = yes; then
18904           if test $with_gnu_ld = no; then
18905             case $host_cpu in
18906             hppa*64*)
18907               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18908               ;;
18909             ia64*)
18910               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18911               ;;
18912             *)
18913               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'
18914               ;;
18915             esac
18916           fi
18917         else
18918           # FIXME: insert proper C++ library support
18919           ld_shlibs_CXX=no
18920         fi
18921         ;;
18922     esac
18923     ;;
18924   interix3*)
18925     hardcode_direct_CXX=no
18926     hardcode_shlibpath_var_CXX=no
18927     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18928     export_dynamic_flag_spec_CXX='${wl}-E'
18929     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18930     # Instead, shared libraries are loaded at an image base (0x10000000 by
18931     # default) and relocated if they conflict, which is a slow very memory
18932     # consuming and fragmenting process.  To avoid this, we pick a random,
18933     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18934     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18935     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'
18936     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'
18937     ;;
18938   irix5* | irix6*)
18939     case $cc_basename in
18940       CC*)
18941         # SGI C++
18942         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'
18943
18944         # Archives containing C++ object files must be created using
18945         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18946         # necessary to make sure instantiated templates are included
18947         # in the archive.
18948         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18949         ;;
18950       *)
18951         if test "$GXX" = yes; then
18952           if test "$with_gnu_ld" = no; then
18953             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'
18954           else
18955             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'
18956           fi
18957         fi
18958         link_all_deplibs_CXX=yes
18959         ;;
18960     esac
18961     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18962     hardcode_libdir_separator_CXX=:
18963     ;;
18964   linux*)
18965     case $cc_basename in
18966       KCC*)
18967         # Kuck and Associates, Inc. (KAI) C++ Compiler
18968
18969         # KCC will only create a shared library if the output file
18970         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18971         # to its proper name (with version) after linking.
18972         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'
18973         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'
18974         # Commands to make compiler produce verbose output that lists
18975         # what "hidden" libraries, object files and flags are used when
18976         # linking a shared library.
18977         #
18978         # There doesn't appear to be a way to prevent this compiler from
18979         # explicitly linking system object files so we need to strip them
18980         # from the output so that they don't get included in the library
18981         # dependencies.
18982         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'
18983
18984         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18985         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18986
18987         # Archives containing C++ object files must be created using
18988         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18989         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18990         ;;
18991       icpc*)
18992         # Intel C++
18993         with_gnu_ld=yes
18994         # version 8.0 and above of icpc choke on multiply defined symbols
18995         # if we add $predep_objects and $postdep_objects, however 7.1 and
18996         # earlier do not add the objects themselves.
18997         case `$CC -V 2>&1` in
18998         *"Version 7."*)
18999           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19000           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'
19001           ;;
19002         *)  # Version 8.0 or newer
19003           tmp_idyn=
19004           case $host_cpu in
19005             ia64*) tmp_idyn=' -i_dynamic';;
19006           esac
19007           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19008           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'
19009           ;;
19010         esac
19011         archive_cmds_need_lc_CXX=no
19012         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19013         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19014         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19015         ;;
19016       pgCC*)
19017         # Portland Group C++ compiler
19018         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19019         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'
19020
19021         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19022         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19023         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'
19024         ;;
19025       cxx*)
19026         # Compaq C++
19027         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028         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'
19029
19030         runpath_var=LD_RUN_PATH
19031         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19032         hardcode_libdir_separator_CXX=:
19033
19034         # Commands to make compiler produce verbose output that lists
19035         # what "hidden" libraries, object files and flags are used when
19036         # linking a shared library.
19037         #
19038         # There doesn't appear to be a way to prevent this compiler from
19039         # explicitly linking system object files so we need to strip them
19040         # from the output so that they don't get included in the library
19041         # dependencies.
19042         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'
19043         ;;
19044     esac
19045     ;;
19046   lynxos*)
19047     # FIXME: insert proper C++ library support
19048     ld_shlibs_CXX=no
19049     ;;
19050   m88k*)
19051     # FIXME: insert proper C++ library support
19052     ld_shlibs_CXX=no
19053     ;;
19054   mvs*)
19055     case $cc_basename in
19056       cxx*)
19057         # FIXME: insert proper C++ library support
19058         ld_shlibs_CXX=no
19059         ;;
19060       *)
19061         # FIXME: insert proper C++ library support
19062         ld_shlibs_CXX=no
19063         ;;
19064     esac
19065     ;;
19066   netbsd*)
19067     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19068       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19069       wlarc=
19070       hardcode_libdir_flag_spec_CXX='-R$libdir'
19071       hardcode_direct_CXX=yes
19072       hardcode_shlibpath_var_CXX=no
19073     fi
19074     # Workaround some broken pre-1.5 toolchains
19075     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19076     ;;
19077   openbsd2*)
19078     # C++ shared libraries are fairly broken
19079     ld_shlibs_CXX=no
19080     ;;
19081   openbsd*)
19082     hardcode_direct_CXX=yes
19083     hardcode_shlibpath_var_CXX=no
19084     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19085     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19086     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19087       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19088       export_dynamic_flag_spec_CXX='${wl}-E'
19089       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19090     fi
19091     output_verbose_link_cmd='echo'
19092     ;;
19093   osf3*)
19094     case $cc_basename in
19095       KCC*)
19096         # Kuck and Associates, Inc. (KAI) C++ Compiler
19097
19098         # KCC will only create a shared library if the output file
19099         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19100         # to its proper name (with version) after linking.
19101         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'
19102
19103         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19104         hardcode_libdir_separator_CXX=:
19105
19106         # Archives containing C++ object files must be created using
19107         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19108         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19109
19110         ;;
19111       RCC*)
19112         # Rational C++ 2.4.1
19113         # FIXME: insert proper C++ library support
19114         ld_shlibs_CXX=no
19115         ;;
19116       cxx*)
19117         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19118         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'
19119
19120         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19121         hardcode_libdir_separator_CXX=:
19122
19123         # Commands to make compiler produce verbose output that lists
19124         # what "hidden" libraries, object files and flags are used when
19125         # linking a shared library.
19126         #
19127         # There doesn't appear to be a way to prevent this compiler from
19128         # explicitly linking system object files so we need to strip them
19129         # from the output so that they don't get included in the library
19130         # dependencies.
19131         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'
19132         ;;
19133       *)
19134         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19135           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19136           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'
19137
19138           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19139           hardcode_libdir_separator_CXX=:
19140
19141           # Commands to make compiler produce verbose output that lists
19142           # what "hidden" libraries, object files and flags are used when
19143           # linking a shared library.
19144           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19145
19146         else
19147           # FIXME: insert proper C++ library support
19148           ld_shlibs_CXX=no
19149         fi
19150         ;;
19151     esac
19152     ;;
19153   osf4* | osf5*)
19154     case $cc_basename in
19155       KCC*)
19156         # Kuck and Associates, Inc. (KAI) C++ Compiler
19157
19158         # KCC will only create a shared library if the output file
19159         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19160         # to its proper name (with version) after linking.
19161         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'
19162
19163         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164         hardcode_libdir_separator_CXX=:
19165
19166         # Archives containing C++ object files must be created using
19167         # the KAI C++ compiler.
19168         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19169         ;;
19170       RCC*)
19171         # Rational C++ 2.4.1
19172         # FIXME: insert proper C++ library support
19173         ld_shlibs_CXX=no
19174         ;;
19175       cxx*)
19176         allow_undefined_flag_CXX=' -expect_unresolved \*'
19177         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'
19178         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19179           echo "-hidden">> $lib.exp~
19180           $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~
19181           $rm $lib.exp'
19182
19183         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19184         hardcode_libdir_separator_CXX=:
19185
19186         # Commands to make compiler produce verbose output that lists
19187         # what "hidden" libraries, object files and flags are used when
19188         # linking a shared library.
19189         #
19190         # There doesn't appear to be a way to prevent this compiler from
19191         # explicitly linking system object files so we need to strip them
19192         # from the output so that they don't get included in the library
19193         # dependencies.
19194         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'
19195         ;;
19196       *)
19197         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19198           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19199          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'
19200
19201           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19202           hardcode_libdir_separator_CXX=:
19203
19204           # Commands to make compiler produce verbose output that lists
19205           # what "hidden" libraries, object files and flags are used when
19206           # linking a shared library.
19207           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19208
19209         else
19210           # FIXME: insert proper C++ library support
19211           ld_shlibs_CXX=no
19212         fi
19213         ;;
19214     esac
19215     ;;
19216   psos*)
19217     # FIXME: insert proper C++ library support
19218     ld_shlibs_CXX=no
19219     ;;
19220   sunos4*)
19221     case $cc_basename in
19222       CC*)
19223         # Sun C++ 4.x
19224         # FIXME: insert proper C++ library support
19225         ld_shlibs_CXX=no
19226         ;;
19227       lcc*)
19228         # Lucid
19229         # FIXME: insert proper C++ library support
19230         ld_shlibs_CXX=no
19231         ;;
19232       *)
19233         # FIXME: insert proper C++ library support
19234         ld_shlibs_CXX=no
19235         ;;
19236     esac
19237     ;;
19238   solaris*)
19239     case $cc_basename in
19240       CC*)
19241         # Sun C++ 4.2, 5.x and Centerline C++
19242         archive_cmds_need_lc_CXX=yes
19243         no_undefined_flag_CXX=' -zdefs'
19244         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246         $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'
19247
19248         hardcode_libdir_flag_spec_CXX='-R$libdir'
19249         hardcode_shlibpath_var_CXX=no
19250         case $host_os in
19251           solaris2.[0-5] | solaris2.[0-5].*) ;;
19252           *)
19253             # The C++ compiler is used as linker so we must use $wl
19254             # flag to pass the commands to the underlying system
19255             # linker. We must also pass each convience library through
19256             # to the system linker between allextract/defaultextract.
19257             # The C++ compiler will combine linker options so we
19258             # cannot just pass the convience library names through
19259             # without $wl.
19260             # Supported since Solaris 2.6 (maybe 2.5.1?)
19261             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'
19262             ;;
19263         esac
19264         link_all_deplibs_CXX=yes
19265
19266         output_verbose_link_cmd='echo'
19267
19268         # Archives containing C++ object files must be created using
19269         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19270         # necessary to make sure instantiated templates are included
19271         # in the archive.
19272         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19273         ;;
19274       gcx*)
19275         # Green Hills C++ Compiler
19276         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19277
19278         # The C++ compiler must be used to create the archive.
19279         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19280         ;;
19281       *)
19282         # GNU C++ compiler with Solaris linker
19283         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19284           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19285           if $CC --version | grep -v '^2\.7' > /dev/null; then
19286             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19287             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19288                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19289
19290             # Commands to make compiler produce verbose output that lists
19291             # what "hidden" libraries, object files and flags are used when
19292             # linking a shared library.
19293             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19294           else
19295             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19296             # platform.
19297             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19298             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19299                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19300
19301             # Commands to make compiler produce verbose output that lists
19302             # what "hidden" libraries, object files and flags are used when
19303             # linking a shared library.
19304             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19305           fi
19306
19307           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19308         fi
19309         ;;
19310     esac
19311     ;;
19312   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19313     no_undefined_flag_CXX='${wl}-z,text'
19314     archive_cmds_need_lc_CXX=no
19315     hardcode_shlibpath_var_CXX=no
19316     runpath_var='LD_RUN_PATH'
19317
19318     case $cc_basename in
19319       CC*)
19320         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322         ;;
19323       *)
19324         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19326         ;;
19327     esac
19328     ;;
19329   sysv5* | sco3.2v5* | sco5v6*)
19330     # Note: We can NOT use -z defs as we might desire, because we do not
19331     # link with -lc, and that would cause any symbols used from libc to
19332     # always be unresolved, which means just about no library would
19333     # ever link correctly.  If we're not using GNU ld we use -z text
19334     # though, which does catch some bad symbols but isn't as heavy-handed
19335     # as -z defs.
19336     # For security reasons, it is highly recommended that you always
19337     # use absolute paths for naming shared libraries, and exclude the
19338     # DT_RUNPATH tag from executables and libraries.  But doing so
19339     # requires that you compile everything twice, which is a pain.
19340     # So that behaviour is only enabled if SCOABSPATH is set to a
19341     # non-empty value in the environment.  Most likely only useful for
19342     # creating official distributions of packages.
19343     # This is a hack until libtool officially supports absolute path
19344     # names for shared libraries.
19345     no_undefined_flag_CXX='${wl}-z,text'
19346     allow_undefined_flag_CXX='${wl}-z,nodefs'
19347     archive_cmds_need_lc_CXX=no
19348     hardcode_shlibpath_var_CXX=no
19349     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19350     hardcode_libdir_separator_CXX=':'
19351     link_all_deplibs_CXX=yes
19352     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19353     runpath_var='LD_RUN_PATH'
19354
19355     case $cc_basename in
19356       CC*)
19357         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19358         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359         ;;
19360       *)
19361         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19363         ;;
19364     esac
19365     ;;
19366   tandem*)
19367     case $cc_basename in
19368       NCC*)
19369         # NonStop-UX NCC 3.20
19370         # FIXME: insert proper C++ library support
19371         ld_shlibs_CXX=no
19372         ;;
19373       *)
19374         # FIXME: insert proper C++ library support
19375         ld_shlibs_CXX=no
19376         ;;
19377     esac
19378     ;;
19379   vxworks*)
19380     # FIXME: insert proper C++ library support
19381     ld_shlibs_CXX=no
19382     ;;
19383   *)
19384     # FIXME: insert proper C++ library support
19385     ld_shlibs_CXX=no
19386     ;;
19387 esac
19388 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19389 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19390 test "$ld_shlibs_CXX" = no && can_build_shared=no
19391
19392 GCC_CXX="$GXX"
19393 LD_CXX="$LD"
19394
19395
19396 cat > conftest.$ac_ext <<EOF
19397 class Foo
19398 {
19399 public:
19400   Foo (void) { a = 0; }
19401 private:
19402   int a;
19403 };
19404 EOF
19405
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407   (eval $ac_compile) 2>&5
19408   ac_status=$?
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); }; then
19411   # Parse the compiler output and extract the necessary
19412   # objects, libraries and library flags.
19413
19414   # Sentinel used to keep track of whether or not we are before
19415   # the conftest object file.
19416   pre_test_object_deps_done=no
19417
19418   # The `*' in the case matches for architectures that use `case' in
19419   # $output_verbose_cmd can trigger glob expansion during the loop
19420   # eval without this substitution.
19421   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19422
19423   for p in `eval $output_verbose_link_cmd`; do
19424     case $p in
19425
19426     -L* | -R* | -l*)
19427        # Some compilers place space between "-{L,R}" and the path.
19428        # Remove the space.
19429        if test $p = "-L" \
19430           || test $p = "-R"; then
19431          prev=$p
19432          continue
19433        else
19434          prev=
19435        fi
19436
19437        if test "$pre_test_object_deps_done" = no; then
19438          case $p in
19439          -L* | -R*)
19440            # Internal compiler library paths should come after those
19441            # provided the user.  The postdeps already come after the
19442            # user supplied libs so there is no need to process them.
19443            if test -z "$compiler_lib_search_path_CXX"; then
19444              compiler_lib_search_path_CXX="${prev}${p}"
19445            else
19446              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19447            fi
19448            ;;
19449          # The "-l" case would never come before the object being
19450          # linked, so don't bother handling this case.
19451          esac
19452        else
19453          if test -z "$postdeps_CXX"; then
19454            postdeps_CXX="${prev}${p}"
19455          else
19456            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19457          fi
19458        fi
19459        ;;
19460
19461     *.$objext)
19462        # This assumes that the test object file only shows up
19463        # once in the compiler output.
19464        if test "$p" = "conftest.$objext"; then
19465          pre_test_object_deps_done=yes
19466          continue
19467        fi
19468
19469        if test "$pre_test_object_deps_done" = no; then
19470          if test -z "$predep_objects_CXX"; then
19471            predep_objects_CXX="$p"
19472          else
19473            predep_objects_CXX="$predep_objects_CXX $p"
19474          fi
19475        else
19476          if test -z "$postdep_objects_CXX"; then
19477            postdep_objects_CXX="$p"
19478          else
19479            postdep_objects_CXX="$postdep_objects_CXX $p"
19480          fi
19481        fi
19482        ;;
19483
19484     *) ;; # Ignore the rest.
19485
19486     esac
19487   done
19488
19489   # Clean up.
19490   rm -f a.out a.exe
19491 else
19492   echo "libtool.m4: error: problem compiling CXX test program"
19493 fi
19494
19495 $rm -f confest.$objext
19496
19497 # PORTME: override above test on systems where it is broken
19498 case $host_os in
19499 interix3*)
19500   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19501   # hack all around it, let's just trust "g++" to DTRT.
19502   predep_objects_CXX=
19503   postdep_objects_CXX=
19504   postdeps_CXX=
19505   ;;
19506
19507 solaris*)
19508   case $cc_basename in
19509   CC*)
19510     # Adding this requires a known-good setup of shared libraries for
19511     # Sun compiler versions before 5.6, else PIC objects from an old
19512     # archive will be linked into the output, leading to subtle bugs.
19513     postdeps_CXX='-lCstd -lCrun'
19514     ;;
19515   esac
19516   ;;
19517 esac
19518
19519
19520 case " $postdeps_CXX " in
19521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19522 esac
19523
19524 lt_prog_compiler_wl_CXX=
19525 lt_prog_compiler_pic_CXX=
19526 lt_prog_compiler_static_CXX=
19527
19528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19530
19531   # C++ specific cases for pic, static, wl, etc.
19532   if test "$GXX" = yes; then
19533     lt_prog_compiler_wl_CXX='-Wl,'
19534     lt_prog_compiler_static_CXX='-static'
19535
19536     case $host_os in
19537     aix*)
19538       # All AIX code is PIC.
19539       if test "$host_cpu" = ia64; then
19540         # AIX 5 now supports IA64 processor
19541         lt_prog_compiler_static_CXX='-Bstatic'
19542       fi
19543       ;;
19544     amigaos*)
19545       # FIXME: we need at least 68020 code to build shared libraries, but
19546       # adding the `-m68020' flag to GCC prevents building anything better,
19547       # like `-m68040'.
19548       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19549       ;;
19550     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19551       # PIC is the default for these OSes.
19552       ;;
19553     mingw* | os2* | pw32*)
19554       # This hack is so that the source file can tell whether it is being
19555       # built for inclusion in a dll (and should export symbols for example).
19556       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19557       ;;
19558     darwin* | rhapsody*)
19559       # PIC is the default on this platform
19560       # Common symbols not allowed in MH_DYLIB files
19561       lt_prog_compiler_pic_CXX='-fno-common'
19562       ;;
19563     *djgpp*)
19564       # DJGPP does not support shared libraries at all
19565       lt_prog_compiler_pic_CXX=
19566       ;;
19567     interix3*)
19568       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19569       # Instead, we relocate shared libraries at runtime.
19570       ;;
19571     sysv4*MP*)
19572       if test -d /usr/nec; then
19573         lt_prog_compiler_pic_CXX=-Kconform_pic
19574       fi
19575       ;;
19576     hpux*)
19577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19578       # not for PA HP-UX.
19579       case $host_cpu in
19580       hppa*64*|ia64*)
19581         ;;
19582       *)
19583         lt_prog_compiler_pic_CXX='-fPIC'
19584         ;;
19585       esac
19586       ;;
19587     *)
19588       lt_prog_compiler_pic_CXX='-fPIC'
19589       ;;
19590     esac
19591   else
19592     case $host_os in
19593       aix4* | aix5*)
19594         # All AIX code is PIC.
19595         if test "$host_cpu" = ia64; then
19596           # AIX 5 now supports IA64 processor
19597           lt_prog_compiler_static_CXX='-Bstatic'
19598         else
19599           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19600         fi
19601         ;;
19602       chorus*)
19603         case $cc_basename in
19604         cxch68*)
19605           # Green Hills C++ Compiler
19606           # _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"
19607           ;;
19608         esac
19609         ;;
19610        darwin*)
19611          # PIC is the default on this platform
19612          # Common symbols not allowed in MH_DYLIB files
19613          case $cc_basename in
19614            xlc*)
19615            lt_prog_compiler_pic_CXX='-qnocommon'
19616            lt_prog_compiler_wl_CXX='-Wl,'
19617            ;;
19618          esac
19619        ;;
19620       dgux*)
19621         case $cc_basename in
19622           ec++*)
19623             lt_prog_compiler_pic_CXX='-KPIC'
19624             ;;
19625           ghcx*)
19626             # Green Hills C++ Compiler
19627             lt_prog_compiler_pic_CXX='-pic'
19628             ;;
19629           *)
19630             ;;
19631         esac
19632         ;;
19633       freebsd* | kfreebsd*-gnu | dragonfly*)
19634         # FreeBSD uses GNU C++
19635         ;;
19636       hpux9* | hpux10* | hpux11*)
19637         case $cc_basename in
19638           CC*)
19639             lt_prog_compiler_wl_CXX='-Wl,'
19640             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19641             if test "$host_cpu" != ia64; then
19642               lt_prog_compiler_pic_CXX='+Z'
19643             fi
19644             ;;
19645           aCC*)
19646             lt_prog_compiler_wl_CXX='-Wl,'
19647             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19648             case $host_cpu in
19649             hppa*64*|ia64*)
19650               # +Z the default
19651               ;;
19652             *)
19653               lt_prog_compiler_pic_CXX='+Z'
19654               ;;
19655             esac
19656             ;;
19657           *)
19658             ;;
19659         esac
19660         ;;
19661       interix*)
19662         # This is c89, which is MS Visual C++ (no shared libs)
19663         # Anyone wants to do a port?
19664         ;;
19665       irix5* | irix6* | nonstopux*)
19666         case $cc_basename in
19667           CC*)
19668             lt_prog_compiler_wl_CXX='-Wl,'
19669             lt_prog_compiler_static_CXX='-non_shared'
19670             # CC pic flag -KPIC is the default.
19671             ;;
19672           *)
19673             ;;
19674         esac
19675         ;;
19676       linux*)
19677         case $cc_basename in
19678           KCC*)
19679             # KAI C++ Compiler
19680             lt_prog_compiler_wl_CXX='--backend -Wl,'
19681             lt_prog_compiler_pic_CXX='-fPIC'
19682             ;;
19683           icpc* | ecpc*)
19684             # Intel C++
19685             lt_prog_compiler_wl_CXX='-Wl,'
19686             lt_prog_compiler_pic_CXX='-KPIC'
19687             lt_prog_compiler_static_CXX='-static'
19688             ;;
19689           pgCC*)
19690             # Portland Group C++ compiler.
19691             lt_prog_compiler_wl_CXX='-Wl,'
19692             lt_prog_compiler_pic_CXX='-fpic'
19693             lt_prog_compiler_static_CXX='-Bstatic'
19694             ;;
19695           cxx*)
19696             # Compaq C++
19697             # Make sure the PIC flag is empty.  It appears that all Alpha
19698             # Linux and Compaq Tru64 Unix objects are PIC.
19699             lt_prog_compiler_pic_CXX=
19700             lt_prog_compiler_static_CXX='-non_shared'
19701             ;;
19702           *)
19703             ;;
19704         esac
19705         ;;
19706       lynxos*)
19707         ;;
19708       m88k*)
19709         ;;
19710       mvs*)
19711         case $cc_basename in
19712           cxx*)
19713             lt_prog_compiler_pic_CXX='-W c,exportall'
19714             ;;
19715           *)
19716             ;;
19717         esac
19718         ;;
19719       netbsd*)
19720         ;;
19721       osf3* | osf4* | osf5*)
19722         case $cc_basename in
19723           KCC*)
19724             lt_prog_compiler_wl_CXX='--backend -Wl,'
19725             ;;
19726           RCC*)
19727             # Rational C++ 2.4.1
19728             lt_prog_compiler_pic_CXX='-pic'
19729             ;;
19730           cxx*)
19731             # Digital/Compaq C++
19732             lt_prog_compiler_wl_CXX='-Wl,'
19733             # Make sure the PIC flag is empty.  It appears that all Alpha
19734             # Linux and Compaq Tru64 Unix objects are PIC.
19735             lt_prog_compiler_pic_CXX=
19736             lt_prog_compiler_static_CXX='-non_shared'
19737             ;;
19738           *)
19739             ;;
19740         esac
19741         ;;
19742       psos*)
19743         ;;
19744       solaris*)
19745         case $cc_basename in
19746           CC*)
19747             # Sun C++ 4.2, 5.x and Centerline C++
19748             lt_prog_compiler_pic_CXX='-KPIC'
19749             lt_prog_compiler_static_CXX='-Bstatic'
19750             lt_prog_compiler_wl_CXX='-Qoption ld '
19751             ;;
19752           gcx*)
19753             # Green Hills C++ Compiler
19754             lt_prog_compiler_pic_CXX='-PIC'
19755             ;;
19756           *)
19757             ;;
19758         esac
19759         ;;
19760       sunos4*)
19761         case $cc_basename in
19762           CC*)
19763             # Sun C++ 4.x
19764             lt_prog_compiler_pic_CXX='-pic'
19765             lt_prog_compiler_static_CXX='-Bstatic'
19766             ;;
19767           lcc*)
19768             # Lucid
19769             lt_prog_compiler_pic_CXX='-pic'
19770             ;;
19771           *)
19772             ;;
19773         esac
19774         ;;
19775       tandem*)
19776         case $cc_basename in
19777           NCC*)
19778             # NonStop-UX NCC 3.20
19779             lt_prog_compiler_pic_CXX='-KPIC'
19780             ;;
19781           *)
19782             ;;
19783         esac
19784         ;;
19785       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19786         case $cc_basename in
19787           CC*)
19788             lt_prog_compiler_wl_CXX='-Wl,'
19789             lt_prog_compiler_pic_CXX='-KPIC'
19790             lt_prog_compiler_static_CXX='-Bstatic'
19791             ;;
19792         esac
19793         ;;
19794       vxworks*)
19795         ;;
19796       *)
19797         lt_prog_compiler_can_build_shared_CXX=no
19798         ;;
19799     esac
19800   fi
19801
19802 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19803 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19804
19805 #
19806 # Check to make sure the PIC flag actually works.
19807 #
19808 if test -n "$lt_prog_compiler_pic_CXX"; then
19809
19810 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19812 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   lt_prog_compiler_pic_works_CXX=no
19816   ac_outfile=conftest.$ac_objext
19817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19818    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19819    # Insert the option either (1) after the last *FLAGS variable, or
19820    # (2) before a word containing "conftest.", or (3) at the end.
19821    # Note that $ac_compile itself does not contain backslashes and begins
19822    # with a dollar sign (not a hyphen), so the echo should work correctly.
19823    # The option is referenced via a variable to avoid confusing sed.
19824    lt_compile=`echo "$ac_compile" | $SED \
19825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19827    -e 's:$: $lt_compiler_flag:'`
19828    (eval echo "\"\$as_me:19828: $lt_compile\"" >&5)
19829    (eval "$lt_compile" 2>conftest.err)
19830    ac_status=$?
19831    cat conftest.err >&5
19832    echo "$as_me:19832: \$? = $ac_status" >&5
19833    if (exit $ac_status) && test -s "$ac_outfile"; then
19834      # The compiler can only warn and ignore the option if not recognized
19835      # So say no if there are warnings other than the usual output.
19836      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19837      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19838      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19839        lt_prog_compiler_pic_works_CXX=yes
19840      fi
19841    fi
19842    $rm conftest*
19843
19844 fi
19845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19846 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19847
19848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19849     case $lt_prog_compiler_pic_CXX in
19850      "" | " "*) ;;
19851      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19852      esac
19853 else
19854     lt_prog_compiler_pic_CXX=
19855      lt_prog_compiler_can_build_shared_CXX=no
19856 fi
19857
19858 fi
19859 case $host_os in
19860   # For platforms which do not support PIC, -DPIC is meaningless:
19861   *djgpp*)
19862     lt_prog_compiler_pic_CXX=
19863     ;;
19864   *)
19865     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19866     ;;
19867 esac
19868
19869 #
19870 # Check to make sure the static flag actually works.
19871 #
19872 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19873 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19874 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19875 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   lt_prog_compiler_static_works_CXX=no
19879    save_LDFLAGS="$LDFLAGS"
19880    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19881    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19882    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19883      # The linker can only warn and ignore the option if not recognized
19884      # So say no if there are warnings
19885      if test -s conftest.err; then
19886        # Append any errors to the config.log.
19887        cat conftest.err 1>&5
19888        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19889        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19890        if diff conftest.exp conftest.er2 >/dev/null; then
19891          lt_prog_compiler_static_works_CXX=yes
19892        fi
19893      else
19894        lt_prog_compiler_static_works_CXX=yes
19895      fi
19896    fi
19897    $rm conftest*
19898    LDFLAGS="$save_LDFLAGS"
19899
19900 fi
19901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19902 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19903
19904 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19905     :
19906 else
19907     lt_prog_compiler_static_CXX=
19908 fi
19909
19910
19911 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19913 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   lt_cv_prog_compiler_c_o_CXX=no
19917    $rm -r conftest 2>/dev/null
19918    mkdir conftest
19919    cd conftest
19920    mkdir out
19921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19922
19923    lt_compiler_flag="-o out/conftest2.$ac_objext"
19924    # Insert the option either (1) after the last *FLAGS variable, or
19925    # (2) before a word containing "conftest.", or (3) at the end.
19926    # Note that $ac_compile itself does not contain backslashes and begins
19927    # with a dollar sign (not a hyphen), so the echo should work correctly.
19928    lt_compile=`echo "$ac_compile" | $SED \
19929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19931    -e 's:$: $lt_compiler_flag:'`
19932    (eval echo "\"\$as_me:19932: $lt_compile\"" >&5)
19933    (eval "$lt_compile" 2>out/conftest.err)
19934    ac_status=$?
19935    cat out/conftest.err >&5
19936    echo "$as_me:19936: \$? = $ac_status" >&5
19937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19938    then
19939      # The compiler can only warn and ignore the option if not recognized
19940      # So say no if there are warnings
19941      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19944        lt_cv_prog_compiler_c_o_CXX=yes
19945      fi
19946    fi
19947    chmod u+w . 2>&5
19948    $rm conftest*
19949    # SGI C++ compiler will create directory out/ii_files/ for
19950    # template instantiation
19951    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19952    $rm out/* && rmdir out
19953    cd ..
19954    rmdir conftest
19955    $rm conftest*
19956
19957 fi
19958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19960
19961
19962 hard_links="nottested"
19963 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19964   # do not overwrite the value of need_locks provided by the user
19965   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19967   hard_links=yes
19968   $rm conftest*
19969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19970   touch conftest.a
19971   ln conftest.a conftest.b 2>&5 || hard_links=no
19972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19973   { echo "$as_me:$LINENO: result: $hard_links" >&5
19974 echo "${ECHO_T}$hard_links" >&6; }
19975   if test "$hard_links" = no; then
19976     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19978     need_locks=warn
19979   fi
19980 else
19981   need_locks=no
19982 fi
19983
19984 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19985 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19986
19987   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19988   case $host_os in
19989   aix4* | aix5*)
19990     # If we're using GNU nm, then we don't want the "-C" option.
19991     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19992     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19993       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'
19994     else
19995       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'
19996     fi
19997     ;;
19998   pw32*)
19999     export_symbols_cmds_CXX="$ltdll_cmds"
20000   ;;
20001   cygwin* | mingw*)
20002     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'
20003   ;;
20004   *)
20005     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20006   ;;
20007   esac
20008
20009 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20010 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20011 test "$ld_shlibs_CXX" = no && can_build_shared=no
20012
20013 #
20014 # Do we need to explicitly link libc?
20015 #
20016 case "x$archive_cmds_need_lc_CXX" in
20017 x|xyes)
20018   # Assume -lc should be added
20019   archive_cmds_need_lc_CXX=yes
20020
20021   if test "$enable_shared" = yes && test "$GCC" = yes; then
20022     case $archive_cmds_CXX in
20023     *'~'*)
20024       # FIXME: we may have to deal with multi-command sequences.
20025       ;;
20026     '$CC '*)
20027       # Test whether the compiler implicitly links with -lc since on some
20028       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20029       # to ld, don't add -lc before -lgcc.
20030       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20031 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20032       $rm conftest*
20033       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20034
20035       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036   (eval $ac_compile) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } 2>conftest.err; then
20040         soname=conftest
20041         lib=conftest
20042         libobjs=conftest.$ac_objext
20043         deplibs=
20044         wl=$lt_prog_compiler_wl_CXX
20045         pic_flag=$lt_prog_compiler_pic_CXX
20046         compiler_flags=-v
20047         linker_flags=-v
20048         verstring=
20049         output_objdir=.
20050         libname=conftest
20051         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20052         allow_undefined_flag_CXX=
20053         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20054   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }
20058         then
20059           archive_cmds_need_lc_CXX=no
20060         else
20061           archive_cmds_need_lc_CXX=yes
20062         fi
20063         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20064       else
20065         cat conftest.err 1>&5
20066       fi
20067       $rm conftest*
20068       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20069 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20070       ;;
20071     esac
20072   fi
20073   ;;
20074 esac
20075
20076 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20077 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20078 library_names_spec=
20079 libname_spec='lib$name'
20080 soname_spec=
20081 shrext_cmds=".so"
20082 postinstall_cmds=
20083 postuninstall_cmds=
20084 finish_cmds=
20085 finish_eval=
20086 shlibpath_var=
20087 shlibpath_overrides_runpath=unknown
20088 version_type=none
20089 dynamic_linker="$host_os ld.so"
20090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20091 if test "$GCC" = yes; then
20092   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20093   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20094     # if the path contains ";" then we assume it to be the separator
20095     # otherwise default to the standard path separator (i.e. ":") - it is
20096     # assumed that no part of a normal pathname contains ";" but that should
20097     # okay in the real world where ";" in dirpaths is itself problematic.
20098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20099   else
20100     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20101   fi
20102 else
20103   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20104 fi
20105 need_lib_prefix=unknown
20106 hardcode_into_libs=no
20107
20108 # when you set need_version to no, make sure it does not cause -set_version
20109 # flags to be left without arguments
20110 need_version=unknown
20111
20112 case $host_os in
20113 aix3*)
20114   version_type=linux
20115   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20116   shlibpath_var=LIBPATH
20117
20118   # AIX 3 has no versioning support, so we append a major version to the name.
20119   soname_spec='${libname}${release}${shared_ext}$major'
20120   ;;
20121
20122 aix4* | aix5*)
20123   version_type=linux
20124   need_lib_prefix=no
20125   need_version=no
20126   hardcode_into_libs=yes
20127   if test "$host_cpu" = ia64; then
20128     # AIX 5 supports IA64
20129     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20130     shlibpath_var=LD_LIBRARY_PATH
20131   else
20132     # With GCC up to 2.95.x, collect2 would create an import file
20133     # for dependence libraries.  The import file would start with
20134     # the line `#! .'.  This would cause the generated library to
20135     # depend on `.', always an invalid library.  This was fixed in
20136     # development snapshots of GCC prior to 3.0.
20137     case $host_os in
20138       aix4 | aix4.[01] | aix4.[01].*)
20139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20140            echo ' yes '
20141            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20142         :
20143       else
20144         can_build_shared=no
20145       fi
20146       ;;
20147     esac
20148     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20149     # soname into executable. Probably we can add versioning support to
20150     # collect2, so additional links can be useful in future.
20151     if test "$aix_use_runtimelinking" = yes; then
20152       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20153       # instead of lib<name>.a to let people know that these are not
20154       # typical AIX shared libraries.
20155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156     else
20157       # We preserve .a as extension for shared libraries through AIX4.2
20158       # and later when we are not doing run time linking.
20159       library_names_spec='${libname}${release}.a $libname.a'
20160       soname_spec='${libname}${release}${shared_ext}$major'
20161     fi
20162     shlibpath_var=LIBPATH
20163   fi
20164   ;;
20165
20166 amigaos*)
20167   library_names_spec='$libname.ixlibrary $libname.a'
20168   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20169   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'
20170   ;;
20171
20172 beos*)
20173   library_names_spec='${libname}${shared_ext}'
20174   dynamic_linker="$host_os ld.so"
20175   shlibpath_var=LIBRARY_PATH
20176   ;;
20177
20178 bsdi[45]*)
20179   version_type=linux
20180   need_version=no
20181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182   soname_spec='${libname}${release}${shared_ext}$major'
20183   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20184   shlibpath_var=LD_LIBRARY_PATH
20185   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20186   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20187   # the default ld.so.conf also contains /usr/contrib/lib and
20188   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20189   # libtool to hard-code these into programs
20190   ;;
20191
20192 cygwin* | mingw* | pw32*)
20193   version_type=windows
20194   shrext_cmds=".dll"
20195   need_version=no
20196   need_lib_prefix=no
20197
20198   case $GCC,$host_os in
20199   yes,cygwin* | yes,mingw* | yes,pw32*)
20200     library_names_spec='$libname.dll.a'
20201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20202     postinstall_cmds='base_file=`basename \${file}`~
20203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20204       dldir=$destdir/`dirname \$dlpath`~
20205       test -d \$dldir || mkdir -p \$dldir~
20206       $install_prog $dir/$dlname \$dldir/$dlname~
20207       chmod a+x \$dldir/$dlname'
20208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20209       dlpath=$dir/\$dldll~
20210        $rm \$dlpath'
20211     shlibpath_overrides_runpath=yes
20212
20213     case $host_os in
20214     cygwin*)
20215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20217       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20218       ;;
20219     mingw*)
20220       # MinGW DLLs use traditional 'lib' prefix
20221       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20222       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20223       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20224         # It is most probably a Windows format PATH printed by
20225         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20226         # path with ; separators, and with drive letters. We can handle the
20227         # drive letters (cygwin fileutils understands them), so leave them,
20228         # especially as we might pass files found there to a mingw objdump,
20229         # which wouldn't understand a cygwinified path. Ahh.
20230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20231       else
20232         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20233       fi
20234       ;;
20235     pw32*)
20236       # pw32 DLLs use 'pw' prefix rather than 'lib'
20237       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20238       ;;
20239     esac
20240     ;;
20241
20242   *)
20243     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20244     ;;
20245   esac
20246   dynamic_linker='Win32 ld.exe'
20247   # FIXME: first we should search . and the directory the executable is in
20248   shlibpath_var=PATH
20249   ;;
20250
20251 darwin* | rhapsody*)
20252   dynamic_linker="$host_os dyld"
20253   version_type=darwin
20254   need_lib_prefix=no
20255   need_version=no
20256   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20257   soname_spec='${libname}${release}${major}$shared_ext'
20258   shlibpath_overrides_runpath=yes
20259   shlibpath_var=DYLD_LIBRARY_PATH
20260   shrext_cmds='.dylib'
20261   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20262   if test "$GCC" = yes; then
20263     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"`
20264   else
20265     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20266   fi
20267   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20268   ;;
20269
20270 dgux*)
20271   version_type=linux
20272   need_lib_prefix=no
20273   need_version=no
20274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20275   soname_spec='${libname}${release}${shared_ext}$major'
20276   shlibpath_var=LD_LIBRARY_PATH
20277   ;;
20278
20279 freebsd1*)
20280   dynamic_linker=no
20281   ;;
20282
20283 kfreebsd*-gnu)
20284   version_type=linux
20285   need_lib_prefix=no
20286   need_version=no
20287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288   soname_spec='${libname}${release}${shared_ext}$major'
20289   shlibpath_var=LD_LIBRARY_PATH
20290   shlibpath_overrides_runpath=no
20291   hardcode_into_libs=yes
20292   dynamic_linker='GNU ld.so'
20293   ;;
20294
20295 freebsd* | dragonfly*)
20296   # DragonFly does not have aout.  When/if they implement a new
20297   # versioning mechanism, adjust this.
20298   if test -x /usr/bin/objformat; then
20299     objformat=`/usr/bin/objformat`
20300   else
20301     case $host_os in
20302     freebsd[123]*) objformat=aout ;;
20303     *) objformat=elf ;;
20304     esac
20305   fi
20306   version_type=freebsd-$objformat
20307   case $version_type in
20308     freebsd-elf*)
20309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20310       need_version=no
20311       need_lib_prefix=no
20312       ;;
20313     freebsd-*)
20314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20315       need_version=yes
20316       ;;
20317   esac
20318   shlibpath_var=LD_LIBRARY_PATH
20319   case $host_os in
20320   freebsd2*)
20321     shlibpath_overrides_runpath=yes
20322     ;;
20323   freebsd3.[01]* | freebsdelf3.[01]*)
20324     shlibpath_overrides_runpath=yes
20325     hardcode_into_libs=yes
20326     ;;
20327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20329     shlibpath_overrides_runpath=no
20330     hardcode_into_libs=yes
20331     ;;
20332   freebsd*) # from 4.6 on
20333     shlibpath_overrides_runpath=yes
20334     hardcode_into_libs=yes
20335     ;;
20336   esac
20337   ;;
20338
20339 gnu*)
20340   version_type=linux
20341   need_lib_prefix=no
20342   need_version=no
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20344   soname_spec='${libname}${release}${shared_ext}$major'
20345   shlibpath_var=LD_LIBRARY_PATH
20346   hardcode_into_libs=yes
20347   ;;
20348
20349 hpux9* | hpux10* | hpux11*)
20350   # Give a soname corresponding to the major version so that dld.sl refuses to
20351   # link against other versions.
20352   version_type=sunos
20353   need_lib_prefix=no
20354   need_version=no
20355   case $host_cpu in
20356   ia64*)
20357     shrext_cmds='.so'
20358     hardcode_into_libs=yes
20359     dynamic_linker="$host_os dld.so"
20360     shlibpath_var=LD_LIBRARY_PATH
20361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363     soname_spec='${libname}${release}${shared_ext}$major'
20364     if test "X$HPUX_IA64_MODE" = X32; then
20365       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20366     else
20367       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20368     fi
20369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20370     ;;
20371    hppa*64*)
20372      shrext_cmds='.sl'
20373      hardcode_into_libs=yes
20374      dynamic_linker="$host_os dld.sl"
20375      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20376      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378      soname_spec='${libname}${release}${shared_ext}$major'
20379      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20380      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20381      ;;
20382    *)
20383     shrext_cmds='.sl'
20384     dynamic_linker="$host_os dld.sl"
20385     shlibpath_var=SHLIB_PATH
20386     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388     soname_spec='${libname}${release}${shared_ext}$major'
20389     ;;
20390   esac
20391   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20392   postinstall_cmds='chmod 555 $lib'
20393   ;;
20394
20395 interix3*)
20396   version_type=linux
20397   need_lib_prefix=no
20398   need_version=no
20399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400   soname_spec='${libname}${release}${shared_ext}$major'
20401   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20402   shlibpath_var=LD_LIBRARY_PATH
20403   shlibpath_overrides_runpath=no
20404   hardcode_into_libs=yes
20405   ;;
20406
20407 irix5* | irix6* | nonstopux*)
20408   case $host_os in
20409     nonstopux*) version_type=nonstopux ;;
20410     *)
20411         if test "$lt_cv_prog_gnu_ld" = yes; then
20412                 version_type=linux
20413         else
20414                 version_type=irix
20415         fi ;;
20416   esac
20417   need_lib_prefix=no
20418   need_version=no
20419   soname_spec='${libname}${release}${shared_ext}$major'
20420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20421   case $host_os in
20422   irix5* | nonstopux*)
20423     libsuff= shlibsuff=
20424     ;;
20425   *)
20426     case $LD in # libtool.m4 will add one of these switches to LD
20427     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20428       libsuff= shlibsuff= libmagic=32-bit;;
20429     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20430       libsuff=32 shlibsuff=N32 libmagic=N32;;
20431     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20432       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20433     *) libsuff= shlibsuff= libmagic=never-match;;
20434     esac
20435     ;;
20436   esac
20437   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20438   shlibpath_overrides_runpath=no
20439   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20440   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20441   hardcode_into_libs=yes
20442   ;;
20443
20444 # No shared lib support for Linux oldld, aout, or coff.
20445 linux*oldld* | linux*aout* | linux*coff*)
20446   dynamic_linker=no
20447   ;;
20448
20449 # This must be Linux ELF.
20450 linux*)
20451   version_type=linux
20452   need_lib_prefix=no
20453   need_version=no
20454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20457   shlibpath_var=LD_LIBRARY_PATH
20458   shlibpath_overrides_runpath=no
20459   # This implies no fast_install, which is unacceptable.
20460   # Some rework will be needed to allow for fast_install
20461   # before this can be enabled.
20462   hardcode_into_libs=yes
20463
20464   # Append ld.so.conf contents to the search path
20465   if test -f /etc/ld.so.conf; then
20466     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' ' '`
20467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20468   fi
20469
20470   # We used to test for /lib/ld.so.1 and disable shared libraries on
20471   # powerpc, because MkLinux only supported shared libraries with the
20472   # GNU dynamic linker.  Since this was broken with cross compilers,
20473   # most powerpc-linux boxes support dynamic linking these days and
20474   # people can always --disable-shared, the test was removed, and we
20475   # assume the GNU/Linux dynamic linker is in use.
20476   dynamic_linker='GNU/Linux ld.so'
20477   ;;
20478
20479 knetbsd*-gnu)
20480   version_type=linux
20481   need_lib_prefix=no
20482   need_version=no
20483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20484   soname_spec='${libname}${release}${shared_ext}$major'
20485   shlibpath_var=LD_LIBRARY_PATH
20486   shlibpath_overrides_runpath=no
20487   hardcode_into_libs=yes
20488   dynamic_linker='GNU ld.so'
20489   ;;
20490
20491 netbsd*)
20492   version_type=sunos
20493   need_lib_prefix=no
20494   need_version=no
20495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20498     dynamic_linker='NetBSD (a.out) ld.so'
20499   else
20500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501     soname_spec='${libname}${release}${shared_ext}$major'
20502     dynamic_linker='NetBSD ld.elf_so'
20503   fi
20504   shlibpath_var=LD_LIBRARY_PATH
20505   shlibpath_overrides_runpath=yes
20506   hardcode_into_libs=yes
20507   ;;
20508
20509 newsos6)
20510   version_type=linux
20511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512   shlibpath_var=LD_LIBRARY_PATH
20513   shlibpath_overrides_runpath=yes
20514   ;;
20515
20516 nto-qnx*)
20517   version_type=linux
20518   need_lib_prefix=no
20519   need_version=no
20520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521   soname_spec='${libname}${release}${shared_ext}$major'
20522   shlibpath_var=LD_LIBRARY_PATH
20523   shlibpath_overrides_runpath=yes
20524   ;;
20525
20526 openbsd*)
20527   version_type=sunos
20528   sys_lib_dlsearch_path_spec="/usr/lib"
20529   need_lib_prefix=no
20530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20531   case $host_os in
20532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20533     *)                         need_version=no  ;;
20534   esac
20535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20537   shlibpath_var=LD_LIBRARY_PATH
20538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20539     case $host_os in
20540       openbsd2.[89] | openbsd2.[89].*)
20541         shlibpath_overrides_runpath=no
20542         ;;
20543       *)
20544         shlibpath_overrides_runpath=yes
20545         ;;
20546       esac
20547   else
20548     shlibpath_overrides_runpath=yes
20549   fi
20550   ;;
20551
20552 os2*)
20553   libname_spec='$name'
20554   shrext_cmds=".dll"
20555   need_lib_prefix=no
20556   library_names_spec='$libname${shared_ext} $libname.a'
20557   dynamic_linker='OS/2 ld.exe'
20558   shlibpath_var=LIBPATH
20559   ;;
20560
20561 osf3* | osf4* | osf5*)
20562   version_type=osf
20563   need_lib_prefix=no
20564   need_version=no
20565   soname_spec='${libname}${release}${shared_ext}$major'
20566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567   shlibpath_var=LD_LIBRARY_PATH
20568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20570   ;;
20571
20572 solaris*)
20573   version_type=linux
20574   need_lib_prefix=no
20575   need_version=no
20576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577   soname_spec='${libname}${release}${shared_ext}$major'
20578   shlibpath_var=LD_LIBRARY_PATH
20579   shlibpath_overrides_runpath=yes
20580   hardcode_into_libs=yes
20581   # ldd complains unless libraries are executable
20582   postinstall_cmds='chmod +x $lib'
20583   ;;
20584
20585 sunos4*)
20586   version_type=sunos
20587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20588   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20589   shlibpath_var=LD_LIBRARY_PATH
20590   shlibpath_overrides_runpath=yes
20591   if test "$with_gnu_ld" = yes; then
20592     need_lib_prefix=no
20593   fi
20594   need_version=yes
20595   ;;
20596
20597 sysv4 | sysv4.3*)
20598   version_type=linux
20599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600   soname_spec='${libname}${release}${shared_ext}$major'
20601   shlibpath_var=LD_LIBRARY_PATH
20602   case $host_vendor in
20603     sni)
20604       shlibpath_overrides_runpath=no
20605       need_lib_prefix=no
20606       export_dynamic_flag_spec='${wl}-Blargedynsym'
20607       runpath_var=LD_RUN_PATH
20608       ;;
20609     siemens)
20610       need_lib_prefix=no
20611       ;;
20612     motorola)
20613       need_lib_prefix=no
20614       need_version=no
20615       shlibpath_overrides_runpath=no
20616       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20617       ;;
20618   esac
20619   ;;
20620
20621 sysv4*MP*)
20622   if test -d /usr/nec ;then
20623     version_type=linux
20624     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20625     soname_spec='$libname${shared_ext}.$major'
20626     shlibpath_var=LD_LIBRARY_PATH
20627   fi
20628   ;;
20629
20630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20631   version_type=freebsd-elf
20632   need_lib_prefix=no
20633   need_version=no
20634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20635   soname_spec='${libname}${release}${shared_ext}$major'
20636   shlibpath_var=LD_LIBRARY_PATH
20637   hardcode_into_libs=yes
20638   if test "$with_gnu_ld" = yes; then
20639     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20640     shlibpath_overrides_runpath=no
20641   else
20642     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20643     shlibpath_overrides_runpath=yes
20644     case $host_os in
20645       sco3.2v5*)
20646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20647         ;;
20648     esac
20649   fi
20650   sys_lib_dlsearch_path_spec='/usr/lib'
20651   ;;
20652
20653 uts4*)
20654   version_type=linux
20655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20656   soname_spec='${libname}${release}${shared_ext}$major'
20657   shlibpath_var=LD_LIBRARY_PATH
20658   ;;
20659
20660 *)
20661   dynamic_linker=no
20662   ;;
20663 esac
20664 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20665 echo "${ECHO_T}$dynamic_linker" >&6; }
20666 test "$dynamic_linker" = no && can_build_shared=no
20667
20668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20669 if test "$GCC" = yes; then
20670   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20671 fi
20672
20673 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20675 hardcode_action_CXX=
20676 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20677    test -n "$runpath_var_CXX" || \
20678    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20679
20680   # We can hardcode non-existant directories.
20681   if test "$hardcode_direct_CXX" != no &&
20682      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20683      # have to relink, otherwise we might link with an installed library
20684      # when we should be linking with a yet-to-be-installed one
20685      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20686      test "$hardcode_minus_L_CXX" != no; then
20687     # Linking always hardcodes the temporary library directory.
20688     hardcode_action_CXX=relink
20689   else
20690     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20691     hardcode_action_CXX=immediate
20692   fi
20693 else
20694   # We cannot hardcode anything, or else we can only hardcode existing
20695   # directories.
20696   hardcode_action_CXX=unsupported
20697 fi
20698 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20699 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20700
20701 if test "$hardcode_action_CXX" = relink; then
20702   # Fast installation is not supported
20703   enable_fast_install=no
20704 elif test "$shlibpath_overrides_runpath" = yes ||
20705      test "$enable_shared" = no; then
20706   # Fast installation is not necessary
20707   enable_fast_install=needless
20708 fi
20709
20710
20711 # The else clause should only fire when bootstrapping the
20712 # libtool distribution, otherwise you forgot to ship ltmain.sh
20713 # with your package, and you will get complaints that there are
20714 # no rules to generate ltmain.sh.
20715 if test -f "$ltmain"; then
20716   # See if we are running on zsh, and set the options which allow our commands through
20717   # without removal of \ escapes.
20718   if test -n "${ZSH_VERSION+set}" ; then
20719     setopt NO_GLOB_SUBST
20720   fi
20721   # Now quote all the things that may contain metacharacters while being
20722   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20723   # variables and quote the copies for generation of the libtool script.
20724   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20725     SED SHELL STRIP \
20726     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20727     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20728     deplibs_check_method reload_flag reload_cmds need_locks \
20729     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20730     lt_cv_sys_global_symbol_to_c_name_address \
20731     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20732     old_postinstall_cmds old_postuninstall_cmds \
20733     compiler_CXX \
20734     CC_CXX \
20735     LD_CXX \
20736     lt_prog_compiler_wl_CXX \
20737     lt_prog_compiler_pic_CXX \
20738     lt_prog_compiler_static_CXX \
20739     lt_prog_compiler_no_builtin_flag_CXX \
20740     export_dynamic_flag_spec_CXX \
20741     thread_safe_flag_spec_CXX \
20742     whole_archive_flag_spec_CXX \
20743     enable_shared_with_static_runtimes_CXX \
20744     old_archive_cmds_CXX \
20745     old_archive_from_new_cmds_CXX \
20746     predep_objects_CXX \
20747     postdep_objects_CXX \
20748     predeps_CXX \
20749     postdeps_CXX \
20750     compiler_lib_search_path_CXX \
20751     archive_cmds_CXX \
20752     archive_expsym_cmds_CXX \
20753     postinstall_cmds_CXX \
20754     postuninstall_cmds_CXX \
20755     old_archive_from_expsyms_cmds_CXX \
20756     allow_undefined_flag_CXX \
20757     no_undefined_flag_CXX \
20758     export_symbols_cmds_CXX \
20759     hardcode_libdir_flag_spec_CXX \
20760     hardcode_libdir_flag_spec_ld_CXX \
20761     hardcode_libdir_separator_CXX \
20762     hardcode_automatic_CXX \
20763     module_cmds_CXX \
20764     module_expsym_cmds_CXX \
20765     lt_cv_prog_compiler_c_o_CXX \
20766     exclude_expsyms_CXX \
20767     include_expsyms_CXX; do
20768
20769     case $var in
20770     old_archive_cmds_CXX | \
20771     old_archive_from_new_cmds_CXX | \
20772     archive_cmds_CXX | \
20773     archive_expsym_cmds_CXX | \
20774     module_cmds_CXX | \
20775     module_expsym_cmds_CXX | \
20776     old_archive_from_expsyms_cmds_CXX | \
20777     export_symbols_cmds_CXX | \
20778     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20779     postinstall_cmds | postuninstall_cmds | \
20780     old_postinstall_cmds | old_postuninstall_cmds | \
20781     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20782       # Double-quote double-evaled strings.
20783       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20784       ;;
20785     *)
20786       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20787       ;;
20788     esac
20789   done
20790
20791   case $lt_echo in
20792   *'\$0 --fallback-echo"')
20793     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20794     ;;
20795   esac
20796
20797 cfgfile="$ofile"
20798
20799   cat <<__EOF__ >> "$cfgfile"
20800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20801
20802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20803
20804 # Shell to use when invoking shell scripts.
20805 SHELL=$lt_SHELL
20806
20807 # Whether or not to build shared libraries.
20808 build_libtool_libs=$enable_shared
20809
20810 # Whether or not to build static libraries.
20811 build_old_libs=$enable_static
20812
20813 # Whether or not to add -lc for building shared libraries.
20814 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20815
20816 # Whether or not to disallow shared libs when runtime libs are static
20817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20818
20819 # Whether or not to optimize for fast installation.
20820 fast_install=$enable_fast_install
20821
20822 # The host system.
20823 host_alias=$host_alias
20824 host=$host
20825 host_os=$host_os
20826
20827 # The build system.
20828 build_alias=$build_alias
20829 build=$build
20830 build_os=$build_os
20831
20832 # An echo program that does not interpret backslashes.
20833 echo=$lt_echo
20834
20835 # The archiver.
20836 AR=$lt_AR
20837 AR_FLAGS=$lt_AR_FLAGS
20838
20839 # A C compiler.
20840 LTCC=$lt_LTCC
20841
20842 # LTCC compiler flags.
20843 LTCFLAGS=$lt_LTCFLAGS
20844
20845 # A language-specific compiler.
20846 CC=$lt_compiler_CXX
20847
20848 # Is the compiler the GNU C compiler?
20849 with_gcc=$GCC_CXX
20850
20851 # An ERE matcher.
20852 EGREP=$lt_EGREP
20853
20854 # The linker used to build libraries.
20855 LD=$lt_LD_CXX
20856
20857 # Whether we need hard or soft links.
20858 LN_S=$lt_LN_S
20859
20860 # A BSD-compatible nm program.
20861 NM=$lt_NM
20862
20863 # A symbol stripping program
20864 STRIP=$lt_STRIP
20865
20866 # Used to examine libraries when file_magic_cmd begins "file"
20867 MAGIC_CMD=$MAGIC_CMD
20868
20869 # Used on cygwin: DLL creation program.
20870 DLLTOOL="$DLLTOOL"
20871
20872 # Used on cygwin: object dumper.
20873 OBJDUMP="$OBJDUMP"
20874
20875 # Used on cygwin: assembler.
20876 AS="$AS"
20877
20878 # The name of the directory that contains temporary libtool files.
20879 objdir=$objdir
20880
20881 # How to create reloadable object files.
20882 reload_flag=$lt_reload_flag
20883 reload_cmds=$lt_reload_cmds
20884
20885 # How to pass a linker flag through the compiler.
20886 wl=$lt_lt_prog_compiler_wl_CXX
20887
20888 # Object file suffix (normally "o").
20889 objext="$ac_objext"
20890
20891 # Old archive suffix (normally "a").
20892 libext="$libext"
20893
20894 # Shared library suffix (normally ".so").
20895 shrext_cmds='$shrext_cmds'
20896
20897 # Executable file suffix (normally "").
20898 exeext="$exeext"
20899
20900 # Additional compiler flags for building library objects.
20901 pic_flag=$lt_lt_prog_compiler_pic_CXX
20902 pic_mode=$pic_mode
20903
20904 # What is the maximum length of a command?
20905 max_cmd_len=$lt_cv_sys_max_cmd_len
20906
20907 # Does compiler simultaneously support -c and -o options?
20908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20909
20910 # Must we lock files when doing compilation?
20911 need_locks=$lt_need_locks
20912
20913 # Do we need the lib prefix for modules?
20914 need_lib_prefix=$need_lib_prefix
20915
20916 # Do we need a version for libraries?
20917 need_version=$need_version
20918
20919 # Whether dlopen is supported.
20920 dlopen_support=$enable_dlopen
20921
20922 # Whether dlopen of programs is supported.
20923 dlopen_self=$enable_dlopen_self
20924
20925 # Whether dlopen of statically linked programs is supported.
20926 dlopen_self_static=$enable_dlopen_self_static
20927
20928 # Compiler flag to prevent dynamic linking.
20929 link_static_flag=$lt_lt_prog_compiler_static_CXX
20930
20931 # Compiler flag to turn off builtin functions.
20932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20933
20934 # Compiler flag to allow reflexive dlopens.
20935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20936
20937 # Compiler flag to generate shared objects directly from archives.
20938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20939
20940 # Compiler flag to generate thread-safe objects.
20941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20942
20943 # Library versioning type.
20944 version_type=$version_type
20945
20946 # Format of library name prefix.
20947 libname_spec=$lt_libname_spec
20948
20949 # List of archive names.  First name is the real one, the rest are links.
20950 # The last name is the one that the linker finds with -lNAME.
20951 library_names_spec=$lt_library_names_spec
20952
20953 # The coded name of the library, if different from the real name.
20954 soname_spec=$lt_soname_spec
20955
20956 # Commands used to build and install an old-style archive.
20957 RANLIB=$lt_RANLIB
20958 old_archive_cmds=$lt_old_archive_cmds_CXX
20959 old_postinstall_cmds=$lt_old_postinstall_cmds
20960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20961
20962 # Create an old-style archive from a shared archive.
20963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20964
20965 # Create a temporary old-style archive to link instead of a shared archive.
20966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20967
20968 # Commands used to build and install a shared archive.
20969 archive_cmds=$lt_archive_cmds_CXX
20970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20971 postinstall_cmds=$lt_postinstall_cmds
20972 postuninstall_cmds=$lt_postuninstall_cmds
20973
20974 # Commands used to build a loadable module (assumed same as above if empty)
20975 module_cmds=$lt_module_cmds_CXX
20976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20977
20978 # Commands to strip libraries.
20979 old_striplib=$lt_old_striplib
20980 striplib=$lt_striplib
20981
20982 # Dependencies to place before the objects being linked to create a
20983 # shared library.
20984 predep_objects=$lt_predep_objects_CXX
20985
20986 # Dependencies to place after the objects being linked to create a
20987 # shared library.
20988 postdep_objects=$lt_postdep_objects_CXX
20989
20990 # Dependencies to place before the objects being linked to create a
20991 # shared library.
20992 predeps=$lt_predeps_CXX
20993
20994 # Dependencies to place after the objects being linked to create a
20995 # shared library.
20996 postdeps=$lt_postdeps_CXX
20997
20998 # The library search path used internally by the compiler when linking
20999 # a shared library.
21000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21001
21002 # Method to check whether dependent libraries are shared objects.
21003 deplibs_check_method=$lt_deplibs_check_method
21004
21005 # Command to use when deplibs_check_method == file_magic.
21006 file_magic_cmd=$lt_file_magic_cmd
21007
21008 # Flag that allows shared libraries with undefined symbols to be built.
21009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21010
21011 # Flag that forces no undefined symbols.
21012 no_undefined_flag=$lt_no_undefined_flag_CXX
21013
21014 # Commands used to finish a libtool library installation in a directory.
21015 finish_cmds=$lt_finish_cmds
21016
21017 # Same as above, but a single script fragment to be evaled but not shown.
21018 finish_eval=$lt_finish_eval
21019
21020 # Take the output of nm and produce a listing of raw symbols and C names.
21021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21022
21023 # Transform the output of nm in a proper C declaration
21024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21025
21026 # Transform the output of nm in a C name address pair
21027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21028
21029 # This is the shared library runtime path variable.
21030 runpath_var=$runpath_var
21031
21032 # This is the shared library path variable.
21033 shlibpath_var=$shlibpath_var
21034
21035 # Is shlibpath searched before the hard-coded library search path?
21036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21037
21038 # How to hardcode a shared library path into an executable.
21039 hardcode_action=$hardcode_action_CXX
21040
21041 # Whether we should hardcode library paths into libraries.
21042 hardcode_into_libs=$hardcode_into_libs
21043
21044 # Flag to hardcode \$libdir into a binary during linking.
21045 # This must work even if \$libdir does not exist.
21046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21047
21048 # If ld is used when linking, flag to hardcode \$libdir into
21049 # a binary during linking. This must work even if \$libdir does
21050 # not exist.
21051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21052
21053 # Whether we need a single -rpath flag with a separated argument.
21054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21055
21056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21057 # resulting binary.
21058 hardcode_direct=$hardcode_direct_CXX
21059
21060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21061 # resulting binary.
21062 hardcode_minus_L=$hardcode_minus_L_CXX
21063
21064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21065 # the resulting binary.
21066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21067
21068 # Set to yes if building a shared library automatically hardcodes DIR into the library
21069 # and all subsequent libraries and executables linked against it.
21070 hardcode_automatic=$hardcode_automatic_CXX
21071
21072 # Variables whose values should be saved in libtool wrapper scripts and
21073 # restored at relink time.
21074 variables_saved_for_relink="$variables_saved_for_relink"
21075
21076 # Whether libtool must link a program against all its dependency libraries.
21077 link_all_deplibs=$link_all_deplibs_CXX
21078
21079 # Compile-time system search path for libraries
21080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21081
21082 # Run-time system search path for libraries
21083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21084
21085 # Fix the shell variable \$srcfile for the compiler.
21086 fix_srcfile_path="$fix_srcfile_path_CXX"
21087
21088 # Set to yes if exported symbols are required.
21089 always_export_symbols=$always_export_symbols_CXX
21090
21091 # The commands to list exported symbols.
21092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21093
21094 # The commands to extract the exported symbol list from a shared archive.
21095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21096
21097 # Symbols that should not be listed in the preloaded symbols.
21098 exclude_expsyms=$lt_exclude_expsyms_CXX
21099
21100 # Symbols that must always be exported.
21101 include_expsyms=$lt_include_expsyms_CXX
21102
21103 # ### END LIBTOOL TAG CONFIG: $tagname
21104
21105 __EOF__
21106
21107
21108 else
21109   # If there is no Makefile yet, we rely on a make rule to execute
21110   # `config.status --recheck' to rerun these tests and create the
21111   # libtool script then.
21112   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21113   if test -f "$ltmain_in"; then
21114     test -f Makefile && make "$ltmain"
21115   fi
21116 fi
21117
21118
21119 ac_ext=c
21120 ac_cpp='$CPP $CPPFLAGS'
21121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124
21125 CC=$lt_save_CC
21126 LDCXX=$LD
21127 LD=$lt_save_LD
21128 GCC=$lt_save_GCC
21129 with_gnu_ldcxx=$with_gnu_ld
21130 with_gnu_ld=$lt_save_with_gnu_ld
21131 lt_cv_path_LDCXX=$lt_cv_path_LD
21132 lt_cv_path_LD=$lt_save_path_LD
21133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21135
21136         else
21137           tagname=""
21138         fi
21139         ;;
21140
21141       F77)
21142         if test -n "$F77" && test "X$F77" != "Xno"; then
21143
21144 ac_ext=f
21145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21148
21149
21150 archive_cmds_need_lc_F77=no
21151 allow_undefined_flag_F77=
21152 always_export_symbols_F77=no
21153 archive_expsym_cmds_F77=
21154 export_dynamic_flag_spec_F77=
21155 hardcode_direct_F77=no
21156 hardcode_libdir_flag_spec_F77=
21157 hardcode_libdir_flag_spec_ld_F77=
21158 hardcode_libdir_separator_F77=
21159 hardcode_minus_L_F77=no
21160 hardcode_automatic_F77=no
21161 module_cmds_F77=
21162 module_expsym_cmds_F77=
21163 link_all_deplibs_F77=unknown
21164 old_archive_cmds_F77=$old_archive_cmds
21165 no_undefined_flag_F77=
21166 whole_archive_flag_spec_F77=
21167 enable_shared_with_static_runtimes_F77=no
21168
21169 # Source file extension for f77 test sources.
21170 ac_ext=f
21171
21172 # Object file extension for compiled f77 test sources.
21173 objext=o
21174 objext_F77=$objext
21175
21176 # Code to be used in simple compile tests
21177 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21178
21179 # Code to be used in simple link tests
21180 lt_simple_link_test_code="      program t\n      end\n"
21181
21182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21183
21184 # If no C compiler was specified, use CC.
21185 LTCC=${LTCC-"$CC"}
21186
21187 # If no C compiler flags were specified, use CFLAGS.
21188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21189
21190 # Allow CC to be a program name with arguments.
21191 compiler=$CC
21192
21193
21194 # save warnings/boilerplate of simple test code
21195 ac_outfile=conftest.$ac_objext
21196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21198 _lt_compiler_boilerplate=`cat conftest.err`
21199 $rm conftest*
21200
21201 ac_outfile=conftest.$ac_objext
21202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21204 _lt_linker_boilerplate=`cat conftest.err`
21205 $rm conftest*
21206
21207
21208 # Allow CC to be a program name with arguments.
21209 lt_save_CC="$CC"
21210 CC=${F77-"f77"}
21211 compiler=$CC
21212 compiler_F77=$CC
21213 for cc_temp in $compiler""; do
21214   case $cc_temp in
21215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21217     \-*) ;;
21218     *) break;;
21219   esac
21220 done
21221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21222
21223
21224 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21225 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21226 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21227 echo "${ECHO_T}$can_build_shared" >&6; }
21228
21229 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21230 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21231 test "$can_build_shared" = "no" && enable_shared=no
21232
21233 # On AIX, shared libraries and static libraries use the same namespace, and
21234 # are all built from PIC.
21235 case $host_os in
21236 aix3*)
21237   test "$enable_shared" = yes && enable_static=no
21238   if test -n "$RANLIB"; then
21239     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21240     postinstall_cmds='$RANLIB $lib'
21241   fi
21242   ;;
21243 aix4* | aix5*)
21244   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21245     test "$enable_shared" = yes && enable_static=no
21246   fi
21247   ;;
21248 esac
21249 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21250 echo "${ECHO_T}$enable_shared" >&6; }
21251
21252 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21254 # Make sure either enable_shared or enable_static is yes.
21255 test "$enable_shared" = yes || enable_static=yes
21256 { echo "$as_me:$LINENO: result: $enable_static" >&5
21257 echo "${ECHO_T}$enable_static" >&6; }
21258
21259 GCC_F77="$G77"
21260 LD_F77="$LD"
21261
21262 lt_prog_compiler_wl_F77=
21263 lt_prog_compiler_pic_F77=
21264 lt_prog_compiler_static_F77=
21265
21266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21268
21269   if test "$GCC" = yes; then
21270     lt_prog_compiler_wl_F77='-Wl,'
21271     lt_prog_compiler_static_F77='-static'
21272
21273     case $host_os in
21274       aix*)
21275       # All AIX code is PIC.
21276       if test "$host_cpu" = ia64; then
21277         # AIX 5 now supports IA64 processor
21278         lt_prog_compiler_static_F77='-Bstatic'
21279       fi
21280       ;;
21281
21282     amigaos*)
21283       # FIXME: we need at least 68020 code to build shared libraries, but
21284       # adding the `-m68020' flag to GCC prevents building anything better,
21285       # like `-m68040'.
21286       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21287       ;;
21288
21289     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21290       # PIC is the default for these OSes.
21291       ;;
21292
21293     mingw* | pw32* | os2*)
21294       # This hack is so that the source file can tell whether it is being
21295       # built for inclusion in a dll (and should export symbols for example).
21296       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21297       ;;
21298
21299     darwin* | rhapsody*)
21300       # PIC is the default on this platform
21301       # Common symbols not allowed in MH_DYLIB files
21302       lt_prog_compiler_pic_F77='-fno-common'
21303       ;;
21304
21305     interix3*)
21306       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21307       # Instead, we relocate shared libraries at runtime.
21308       ;;
21309
21310     msdosdjgpp*)
21311       # Just because we use GCC doesn't mean we suddenly get shared libraries
21312       # on systems that don't support them.
21313       lt_prog_compiler_can_build_shared_F77=no
21314       enable_shared=no
21315       ;;
21316
21317     sysv4*MP*)
21318       if test -d /usr/nec; then
21319         lt_prog_compiler_pic_F77=-Kconform_pic
21320       fi
21321       ;;
21322
21323     hpux*)
21324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21325       # not for PA HP-UX.
21326       case $host_cpu in
21327       hppa*64*|ia64*)
21328         # +Z the default
21329         ;;
21330       *)
21331         lt_prog_compiler_pic_F77='-fPIC'
21332         ;;
21333       esac
21334       ;;
21335
21336     *)
21337       lt_prog_compiler_pic_F77='-fPIC'
21338       ;;
21339     esac
21340   else
21341     # PORTME Check for flag to pass linker flags through the system compiler.
21342     case $host_os in
21343     aix*)
21344       lt_prog_compiler_wl_F77='-Wl,'
21345       if test "$host_cpu" = ia64; then
21346         # AIX 5 now supports IA64 processor
21347         lt_prog_compiler_static_F77='-Bstatic'
21348       else
21349         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21350       fi
21351       ;;
21352       darwin*)
21353         # PIC is the default on this platform
21354         # Common symbols not allowed in MH_DYLIB files
21355        case $cc_basename in
21356          xlc*)
21357          lt_prog_compiler_pic_F77='-qnocommon'
21358          lt_prog_compiler_wl_F77='-Wl,'
21359          ;;
21360        esac
21361        ;;
21362
21363     mingw* | pw32* | os2*)
21364       # This hack is so that the source file can tell whether it is being
21365       # built for inclusion in a dll (and should export symbols for example).
21366       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21367       ;;
21368
21369     hpux9* | hpux10* | hpux11*)
21370       lt_prog_compiler_wl_F77='-Wl,'
21371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21372       # not for PA HP-UX.
21373       case $host_cpu in
21374       hppa*64*|ia64*)
21375         # +Z the default
21376         ;;
21377       *)
21378         lt_prog_compiler_pic_F77='+Z'
21379         ;;
21380       esac
21381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21382       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21383       ;;
21384
21385     irix5* | irix6* | nonstopux*)
21386       lt_prog_compiler_wl_F77='-Wl,'
21387       # PIC (with -KPIC) is the default.
21388       lt_prog_compiler_static_F77='-non_shared'
21389       ;;
21390
21391     newsos6)
21392       lt_prog_compiler_pic_F77='-KPIC'
21393       lt_prog_compiler_static_F77='-Bstatic'
21394       ;;
21395
21396     linux*)
21397       case $cc_basename in
21398       icc* | ecc*)
21399         lt_prog_compiler_wl_F77='-Wl,'
21400         lt_prog_compiler_pic_F77='-KPIC'
21401         lt_prog_compiler_static_F77='-static'
21402         ;;
21403       pgcc* | pgf77* | pgf90* | pgf95*)
21404         # Portland Group compilers (*not* the Pentium gcc compiler,
21405         # which looks to be a dead project)
21406         lt_prog_compiler_wl_F77='-Wl,'
21407         lt_prog_compiler_pic_F77='-fpic'
21408         lt_prog_compiler_static_F77='-Bstatic'
21409         ;;
21410       ccc*)
21411         lt_prog_compiler_wl_F77='-Wl,'
21412         # All Alpha code is PIC.
21413         lt_prog_compiler_static_F77='-non_shared'
21414         ;;
21415       esac
21416       ;;
21417
21418     osf3* | osf4* | osf5*)
21419       lt_prog_compiler_wl_F77='-Wl,'
21420       # All OSF/1 code is PIC.
21421       lt_prog_compiler_static_F77='-non_shared'
21422       ;;
21423
21424     solaris*)
21425       lt_prog_compiler_pic_F77='-KPIC'
21426       lt_prog_compiler_static_F77='-Bstatic'
21427       case $cc_basename in
21428       f77* | f90* | f95*)
21429         lt_prog_compiler_wl_F77='-Qoption ld ';;
21430       *)
21431         lt_prog_compiler_wl_F77='-Wl,';;
21432       esac
21433       ;;
21434
21435     sunos4*)
21436       lt_prog_compiler_wl_F77='-Qoption ld '
21437       lt_prog_compiler_pic_F77='-PIC'
21438       lt_prog_compiler_static_F77='-Bstatic'
21439       ;;
21440
21441     sysv4 | sysv4.2uw2* | sysv4.3*)
21442       lt_prog_compiler_wl_F77='-Wl,'
21443       lt_prog_compiler_pic_F77='-KPIC'
21444       lt_prog_compiler_static_F77='-Bstatic'
21445       ;;
21446
21447     sysv4*MP*)
21448       if test -d /usr/nec ;then
21449         lt_prog_compiler_pic_F77='-Kconform_pic'
21450         lt_prog_compiler_static_F77='-Bstatic'
21451       fi
21452       ;;
21453
21454     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21455       lt_prog_compiler_wl_F77='-Wl,'
21456       lt_prog_compiler_pic_F77='-KPIC'
21457       lt_prog_compiler_static_F77='-Bstatic'
21458       ;;
21459
21460     unicos*)
21461       lt_prog_compiler_wl_F77='-Wl,'
21462       lt_prog_compiler_can_build_shared_F77=no
21463       ;;
21464
21465     uts4*)
21466       lt_prog_compiler_pic_F77='-pic'
21467       lt_prog_compiler_static_F77='-Bstatic'
21468       ;;
21469
21470     *)
21471       lt_prog_compiler_can_build_shared_F77=no
21472       ;;
21473     esac
21474   fi
21475
21476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21477 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21478
21479 #
21480 # Check to make sure the PIC flag actually works.
21481 #
21482 if test -n "$lt_prog_compiler_pic_F77"; then
21483
21484 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21486 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21487   echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489   lt_prog_compiler_pic_works_F77=no
21490   ac_outfile=conftest.$ac_objext
21491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21492    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21493    # Insert the option either (1) after the last *FLAGS variable, or
21494    # (2) before a word containing "conftest.", or (3) at the end.
21495    # Note that $ac_compile itself does not contain backslashes and begins
21496    # with a dollar sign (not a hyphen), so the echo should work correctly.
21497    # The option is referenced via a variable to avoid confusing sed.
21498    lt_compile=`echo "$ac_compile" | $SED \
21499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21501    -e 's:$: $lt_compiler_flag:'`
21502    (eval echo "\"\$as_me:21502: $lt_compile\"" >&5)
21503    (eval "$lt_compile" 2>conftest.err)
21504    ac_status=$?
21505    cat conftest.err >&5
21506    echo "$as_me:21506: \$? = $ac_status" >&5
21507    if (exit $ac_status) && test -s "$ac_outfile"; then
21508      # The compiler can only warn and ignore the option if not recognized
21509      # So say no if there are warnings other than the usual output.
21510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21513        lt_prog_compiler_pic_works_F77=yes
21514      fi
21515    fi
21516    $rm conftest*
21517
21518 fi
21519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21520 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21521
21522 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21523     case $lt_prog_compiler_pic_F77 in
21524      "" | " "*) ;;
21525      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21526      esac
21527 else
21528     lt_prog_compiler_pic_F77=
21529      lt_prog_compiler_can_build_shared_F77=no
21530 fi
21531
21532 fi
21533 case $host_os in
21534   # For platforms which do not support PIC, -DPIC is meaningless:
21535   *djgpp*)
21536     lt_prog_compiler_pic_F77=
21537     ;;
21538   *)
21539     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21540     ;;
21541 esac
21542
21543 #
21544 # Check to make sure the static flag actually works.
21545 #
21546 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21547 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21548 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21549 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21550   echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552   lt_prog_compiler_static_works_F77=no
21553    save_LDFLAGS="$LDFLAGS"
21554    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21555    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21556    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21557      # The linker can only warn and ignore the option if not recognized
21558      # So say no if there are warnings
21559      if test -s conftest.err; then
21560        # Append any errors to the config.log.
21561        cat conftest.err 1>&5
21562        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21563        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21564        if diff conftest.exp conftest.er2 >/dev/null; then
21565          lt_prog_compiler_static_works_F77=yes
21566        fi
21567      else
21568        lt_prog_compiler_static_works_F77=yes
21569      fi
21570    fi
21571    $rm conftest*
21572    LDFLAGS="$save_LDFLAGS"
21573
21574 fi
21575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21576 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21577
21578 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21579     :
21580 else
21581     lt_prog_compiler_static_F77=
21582 fi
21583
21584
21585 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21587 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21588   echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590   lt_cv_prog_compiler_c_o_F77=no
21591    $rm -r conftest 2>/dev/null
21592    mkdir conftest
21593    cd conftest
21594    mkdir out
21595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21596
21597    lt_compiler_flag="-o out/conftest2.$ac_objext"
21598    # Insert the option either (1) after the last *FLAGS variable, or
21599    # (2) before a word containing "conftest.", or (3) at the end.
21600    # Note that $ac_compile itself does not contain backslashes and begins
21601    # with a dollar sign (not a hyphen), so the echo should work correctly.
21602    lt_compile=`echo "$ac_compile" | $SED \
21603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21605    -e 's:$: $lt_compiler_flag:'`
21606    (eval echo "\"\$as_me:21606: $lt_compile\"" >&5)
21607    (eval "$lt_compile" 2>out/conftest.err)
21608    ac_status=$?
21609    cat out/conftest.err >&5
21610    echo "$as_me:21610: \$? = $ac_status" >&5
21611    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21612    then
21613      # The compiler can only warn and ignore the option if not recognized
21614      # So say no if there are warnings
21615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21616      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21617      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21618        lt_cv_prog_compiler_c_o_F77=yes
21619      fi
21620    fi
21621    chmod u+w . 2>&5
21622    $rm conftest*
21623    # SGI C++ compiler will create directory out/ii_files/ for
21624    # template instantiation
21625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21626    $rm out/* && rmdir out
21627    cd ..
21628    rmdir conftest
21629    $rm conftest*
21630
21631 fi
21632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21634
21635
21636 hard_links="nottested"
21637 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21638   # do not overwrite the value of need_locks provided by the user
21639   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21641   hard_links=yes
21642   $rm conftest*
21643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21644   touch conftest.a
21645   ln conftest.a conftest.b 2>&5 || hard_links=no
21646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21647   { echo "$as_me:$LINENO: result: $hard_links" >&5
21648 echo "${ECHO_T}$hard_links" >&6; }
21649   if test "$hard_links" = no; then
21650     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21652     need_locks=warn
21653   fi
21654 else
21655   need_locks=no
21656 fi
21657
21658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21660
21661   runpath_var=
21662   allow_undefined_flag_F77=
21663   enable_shared_with_static_runtimes_F77=no
21664   archive_cmds_F77=
21665   archive_expsym_cmds_F77=
21666   old_archive_From_new_cmds_F77=
21667   old_archive_from_expsyms_cmds_F77=
21668   export_dynamic_flag_spec_F77=
21669   whole_archive_flag_spec_F77=
21670   thread_safe_flag_spec_F77=
21671   hardcode_libdir_flag_spec_F77=
21672   hardcode_libdir_flag_spec_ld_F77=
21673   hardcode_libdir_separator_F77=
21674   hardcode_direct_F77=no
21675   hardcode_minus_L_F77=no
21676   hardcode_shlibpath_var_F77=unsupported
21677   link_all_deplibs_F77=unknown
21678   hardcode_automatic_F77=no
21679   module_cmds_F77=
21680   module_expsym_cmds_F77=
21681   always_export_symbols_F77=no
21682   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21683   # include_expsyms should be a list of space-separated symbols to be *always*
21684   # included in the symbol list
21685   include_expsyms_F77=
21686   # exclude_expsyms can be an extended regexp of symbols to exclude
21687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21689   # as well as any symbol that contains `d'.
21690   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21692   # platforms (ab)use it in PIC code, but their linkers get confused if
21693   # the symbol is explicitly referenced.  Since portable code cannot
21694   # rely on this symbol name, it's probably fine to never include it in
21695   # preloaded symbol tables.
21696   extract_expsyms_cmds=
21697   # Just being paranoid about ensuring that cc_basename is set.
21698   for cc_temp in $compiler""; do
21699   case $cc_temp in
21700     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21701     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21702     \-*) ;;
21703     *) break;;
21704   esac
21705 done
21706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21707
21708   case $host_os in
21709   cygwin* | mingw* | pw32*)
21710     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21711     # When not using gcc, we currently assume that we are using
21712     # Microsoft Visual C++.
21713     if test "$GCC" != yes; then
21714       with_gnu_ld=no
21715     fi
21716     ;;
21717   interix*)
21718     # we just hope/assume this is gcc and not c89 (= MSVC++)
21719     with_gnu_ld=yes
21720     ;;
21721   openbsd*)
21722     with_gnu_ld=no
21723     ;;
21724   esac
21725
21726   ld_shlibs_F77=yes
21727   if test "$with_gnu_ld" = yes; then
21728     # If archive_cmds runs LD, not CC, wlarc should be empty
21729     wlarc='${wl}'
21730
21731     # Set some defaults for GNU ld with shared library support. These
21732     # are reset later if shared libraries are not supported. Putting them
21733     # here allows them to be overridden if necessary.
21734     runpath_var=LD_RUN_PATH
21735     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21736     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21737     # ancient GNU ld didn't support --whole-archive et. al.
21738     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21739         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21740       else
21741         whole_archive_flag_spec_F77=
21742     fi
21743     supports_anon_versioning=no
21744     case `$LD -v 2>/dev/null` in
21745       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21746       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21747       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21748       *\ 2.11.*) ;; # other 2.11 versions
21749       *) supports_anon_versioning=yes ;;
21750     esac
21751
21752     # See if GNU ld supports shared libraries.
21753     case $host_os in
21754     aix3* | aix4* | aix5*)
21755       # On AIX/PPC, the GNU linker is very broken
21756       if test "$host_cpu" != ia64; then
21757         ld_shlibs_F77=no
21758         cat <<EOF 1>&2
21759
21760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21761 *** to be unable to reliably create shared libraries on AIX.
21762 *** Therefore, libtool is disabling shared libraries support.  If you
21763 *** really care for shared libraries, you may want to modify your PATH
21764 *** so that a non-GNU linker is found, and then restart.
21765
21766 EOF
21767       fi
21768       ;;
21769
21770     amigaos*)
21771       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)'
21772       hardcode_libdir_flag_spec_F77='-L$libdir'
21773       hardcode_minus_L_F77=yes
21774
21775       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21776       # that the semantics of dynamic libraries on AmigaOS, at least up
21777       # to version 4, is to share data among multiple programs linked
21778       # with the same dynamic library.  Since this doesn't match the
21779       # behavior of shared libraries on other platforms, we can't use
21780       # them.
21781       ld_shlibs_F77=no
21782       ;;
21783
21784     beos*)
21785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786         allow_undefined_flag_F77=unsupported
21787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21788         # support --undefined.  This deserves some investigation.  FIXME
21789         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790       else
21791         ld_shlibs_F77=no
21792       fi
21793       ;;
21794
21795     cygwin* | mingw* | pw32*)
21796       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21797       # as there is no search path for DLLs.
21798       hardcode_libdir_flag_spec_F77='-L$libdir'
21799       allow_undefined_flag_F77=unsupported
21800       always_export_symbols_F77=no
21801       enable_shared_with_static_runtimes_F77=yes
21802       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21803
21804       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21805         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21806         # If the export-symbols file already is a .def file (1st line
21807         # is EXPORTS), use it as is; otherwise, prepend...
21808         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21809           cp $export_symbols $output_objdir/$soname.def;
21810         else
21811           echo EXPORTS > $output_objdir/$soname.def;
21812           cat $export_symbols >> $output_objdir/$soname.def;
21813         fi~
21814         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21815       else
21816         ld_shlibs_F77=no
21817       fi
21818       ;;
21819
21820     interix3*)
21821       hardcode_direct_F77=no
21822       hardcode_shlibpath_var_F77=no
21823       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21824       export_dynamic_flag_spec_F77='${wl}-E'
21825       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21826       # Instead, shared libraries are loaded at an image base (0x10000000 by
21827       # default) and relocated if they conflict, which is a slow very memory
21828       # consuming and fragmenting process.  To avoid this, we pick a random,
21829       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21830       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21831       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'
21832       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'
21833       ;;
21834
21835     linux*)
21836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837         tmp_addflag=
21838         case $cc_basename,$host_cpu in
21839         pgcc*)                          # Portland Group C compiler
21840           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'
21841           tmp_addflag=' $pic_flag'
21842           ;;
21843         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21844           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'
21845           tmp_addflag=' $pic_flag -Mnomain' ;;
21846         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21847           tmp_addflag=' -i_dynamic' ;;
21848         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21849           tmp_addflag=' -i_dynamic -nofor_main' ;;
21850         ifc* | ifort*)                  # Intel Fortran compiler
21851           tmp_addflag=' -nofor_main' ;;
21852         esac
21853         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21854
21855         if test $supports_anon_versioning = yes; then
21856           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21857   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858   $echo "local: *; };" >> $output_objdir/$libname.ver~
21859           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21860         fi
21861       else
21862         ld_shlibs_F77=no
21863       fi
21864       ;;
21865
21866     netbsd*)
21867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21868         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21869         wlarc=
21870       else
21871         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21872         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873       fi
21874       ;;
21875
21876     solaris*)
21877       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21878         ld_shlibs_F77=no
21879         cat <<EOF 1>&2
21880
21881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21882 *** create shared libraries on Solaris systems.  Therefore, libtool
21883 *** is disabling shared libraries support.  We urge you to upgrade GNU
21884 *** binutils to release 2.9.1 or newer.  Another option is to modify
21885 *** your PATH or compiler configuration so that the native linker is
21886 *** used, and then restart.
21887
21888 EOF
21889       elif $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
21897     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21898       case `$LD -v 2>&1` in
21899         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21900         ld_shlibs_F77=no
21901         cat <<_LT_EOF 1>&2
21902
21903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21904 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21905 *** is disabling shared libraries support.  We urge you to upgrade GNU
21906 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21907 *** your PATH or compiler configuration so that the native linker is
21908 *** used, and then restart.
21909
21910 _LT_EOF
21911         ;;
21912         *)
21913           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21914             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21915             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21916             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21917           else
21918             ld_shlibs_F77=no
21919           fi
21920         ;;
21921       esac
21922       ;;
21923
21924     sunos4*)
21925       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21926       wlarc=
21927       hardcode_direct_F77=yes
21928       hardcode_shlibpath_var_F77=no
21929       ;;
21930
21931     *)
21932       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21933         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21934         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21935       else
21936         ld_shlibs_F77=no
21937       fi
21938       ;;
21939     esac
21940
21941     if test "$ld_shlibs_F77" = no; then
21942       runpath_var=
21943       hardcode_libdir_flag_spec_F77=
21944       export_dynamic_flag_spec_F77=
21945       whole_archive_flag_spec_F77=
21946     fi
21947   else
21948     # PORTME fill in a description of your system's linker (not GNU ld)
21949     case $host_os in
21950     aix3*)
21951       allow_undefined_flag_F77=unsupported
21952       always_export_symbols_F77=yes
21953       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'
21954       # Note: this linker hardcodes the directories in LIBPATH if there
21955       # are no directories specified by -L.
21956       hardcode_minus_L_F77=yes
21957       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21958         # Neither direct hardcoding nor static linking is supported with a
21959         # broken collect2.
21960         hardcode_direct_F77=unsupported
21961       fi
21962       ;;
21963
21964     aix4* | aix5*)
21965       if test "$host_cpu" = ia64; then
21966         # On IA64, the linker does run time linking by default, so we don't
21967         # have to do anything special.
21968         aix_use_runtimelinking=no
21969         exp_sym_flag='-Bexport'
21970         no_entry_flag=""
21971       else
21972         # If we're using GNU nm, then we don't want the "-C" option.
21973         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21974         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21975           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'
21976         else
21977           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'
21978         fi
21979         aix_use_runtimelinking=no
21980
21981         # Test if we are trying to use run time linking or normal
21982         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21983         # need to do runtime linking.
21984         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21985           for ld_flag in $LDFLAGS; do
21986           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21987             aix_use_runtimelinking=yes
21988             break
21989           fi
21990           done
21991           ;;
21992         esac
21993
21994         exp_sym_flag='-bexport'
21995         no_entry_flag='-bnoentry'
21996       fi
21997
21998       # When large executables or shared objects are built, AIX ld can
21999       # have problems creating the table of contents.  If linking a library
22000       # or program results in "error TOC overflow" add -mminimal-toc to
22001       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22002       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22003
22004       archive_cmds_F77=''
22005       hardcode_direct_F77=yes
22006       hardcode_libdir_separator_F77=':'
22007       link_all_deplibs_F77=yes
22008
22009       if test "$GCC" = yes; then
22010         case $host_os in aix4.[012]|aix4.[012].*)
22011         # We only want to do this on AIX 4.2 and lower, the check
22012         # below for broken collect2 doesn't work under 4.3+
22013           collect2name=`${CC} -print-prog-name=collect2`
22014           if test -f "$collect2name" && \
22015            strings "$collect2name" | grep resolve_lib_name >/dev/null
22016           then
22017           # We have reworked collect2
22018           hardcode_direct_F77=yes
22019           else
22020           # We have old collect2
22021           hardcode_direct_F77=unsupported
22022           # It fails to find uninstalled libraries when the uninstalled
22023           # path is not listed in the libpath.  Setting hardcode_minus_L
22024           # to unsupported forces relinking
22025           hardcode_minus_L_F77=yes
22026           hardcode_libdir_flag_spec_F77='-L$libdir'
22027           hardcode_libdir_separator_F77=
22028           fi
22029           ;;
22030         esac
22031         shared_flag='-shared'
22032         if test "$aix_use_runtimelinking" = yes; then
22033           shared_flag="$shared_flag "'${wl}-G'
22034         fi
22035       else
22036         # not using gcc
22037         if test "$host_cpu" = ia64; then
22038         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22039         # chokes on -Wl,-G. The following line is correct:
22040           shared_flag='-G'
22041         else
22042           if test "$aix_use_runtimelinking" = yes; then
22043             shared_flag='${wl}-G'
22044           else
22045             shared_flag='${wl}-bM:SRE'
22046           fi
22047         fi
22048       fi
22049
22050       # It seems that -bexpall does not export symbols beginning with
22051       # underscore (_), so it is better to generate a list of symbols to export.
22052       always_export_symbols_F77=yes
22053       if test "$aix_use_runtimelinking" = yes; then
22054         # Warning - without using the other runtime loading flags (-brtl),
22055         # -berok will link without error, but may produce a broken library.
22056         allow_undefined_flag_F77='-berok'
22057        # Determine the default libpath from the value encoded in an empty executable.
22058        cat >conftest.$ac_ext <<_ACEOF
22059       program main
22060
22061       end
22062 _ACEOF
22063 rm -f conftest.$ac_objext conftest$ac_exeext
22064 if { (ac_try="$ac_link"
22065 case "(($ac_try" in
22066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067   *) ac_try_echo=$ac_try;;
22068 esac
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070   (eval "$ac_link") 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } &&
22077          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22078   { (case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083   (eval "$ac_try") 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; } &&
22087          { ac_try='test -s conftest$ac_exeext'
22088   { (case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_try") 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; }; then
22097
22098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22099 }'`
22100 # Check for a 64-bit object if we didn't find anything.
22101 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; }
22102 }'`; fi
22103 else
22104   echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22106
22107
22108 fi
22109
22110 rm -f core conftest.err conftest.$ac_objext \
22111       conftest$ac_exeext conftest.$ac_ext
22112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22113
22114        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22115         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"
22116        else
22117         if test "$host_cpu" = ia64; then
22118           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22119           allow_undefined_flag_F77="-z nodefs"
22120           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"
22121         else
22122          # Determine the default libpath from the value encoded in an empty executable.
22123          cat >conftest.$ac_ext <<_ACEOF
22124       program main
22125
22126       end
22127 _ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135   (eval "$ac_link") 2>conftest.er1
22136   ac_status=$?
22137   grep -v '^ *+' conftest.er1 >conftest.err
22138   rm -f conftest.er1
22139   cat conftest.err >&5
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } &&
22142          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22143   { (case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_try") 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; } &&
22152          { ac_try='test -s conftest$ac_exeext'
22153   { (case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158   (eval "$ac_try") 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; }; then
22162
22163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22164 }'`
22165 # Check for a 64-bit object if we didn't find anything.
22166 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; }
22167 }'`; fi
22168 else
22169   echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172
22173 fi
22174
22175 rm -f core conftest.err conftest.$ac_objext \
22176       conftest$ac_exeext conftest.$ac_ext
22177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22178
22179          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22180           # Warning - without using the other run time loading flags,
22181           # -berok will link without error, but may produce a broken library.
22182           no_undefined_flag_F77=' ${wl}-bernotok'
22183           allow_undefined_flag_F77=' ${wl}-berok'
22184           # Exported symbols can be pulled into shared objects from archives
22185           whole_archive_flag_spec_F77='$convenience'
22186           archive_cmds_need_lc_F77=yes
22187           # This is similar to how AIX traditionally builds its shared libraries.
22188           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'
22189         fi
22190       fi
22191       ;;
22192
22193     amigaos*)
22194       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)'
22195       hardcode_libdir_flag_spec_F77='-L$libdir'
22196       hardcode_minus_L_F77=yes
22197       # see comment about different semantics on the GNU ld section
22198       ld_shlibs_F77=no
22199       ;;
22200
22201     bsdi[45]*)
22202       export_dynamic_flag_spec_F77=-rdynamic
22203       ;;
22204
22205     cygwin* | mingw* | pw32*)
22206       # When not using gcc, we currently assume that we are using
22207       # Microsoft Visual C++.
22208       # hardcode_libdir_flag_spec is actually meaningless, as there is
22209       # no search path for DLLs.
22210       hardcode_libdir_flag_spec_F77=' '
22211       allow_undefined_flag_F77=unsupported
22212       # Tell ltmain to make .lib files, not .a files.
22213       libext=lib
22214       # Tell ltmain to make .dll files, not .so files.
22215       shrext_cmds=".dll"
22216       # FIXME: Setting linknames here is a bad hack.
22217       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22218       # The linker will automatically build a .lib file if we build a DLL.
22219       old_archive_From_new_cmds_F77='true'
22220       # FIXME: Should let the user specify the lib program.
22221       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22222       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22223       enable_shared_with_static_runtimes_F77=yes
22224       ;;
22225
22226     darwin* | rhapsody*)
22227       case $host_os in
22228         rhapsody* | darwin1.[012])
22229          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22230          ;;
22231        *) # Darwin 1.3 on
22232          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22233            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22234          else
22235            case ${MACOSX_DEPLOYMENT_TARGET} in
22236              10.[012])
22237                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22238                ;;
22239              10.*)
22240                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22241                ;;
22242            esac
22243          fi
22244          ;;
22245       esac
22246       archive_cmds_need_lc_F77=no
22247       hardcode_direct_F77=no
22248       hardcode_automatic_F77=yes
22249       hardcode_shlibpath_var_F77=unsupported
22250       whole_archive_flag_spec_F77=''
22251       link_all_deplibs_F77=yes
22252     if test "$GCC" = yes ; then
22253         output_verbose_link_cmd='echo'
22254         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22255       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22256       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22257       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}'
22258       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}'
22259     else
22260       case $cc_basename in
22261         xlc*)
22262          output_verbose_link_cmd='echo'
22263          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22264          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22265           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22266          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}'
22267           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}'
22268           ;;
22269        *)
22270          ld_shlibs_F77=no
22271           ;;
22272       esac
22273     fi
22274       ;;
22275
22276     dgux*)
22277       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22278       hardcode_libdir_flag_spec_F77='-L$libdir'
22279       hardcode_shlibpath_var_F77=no
22280       ;;
22281
22282     freebsd1*)
22283       ld_shlibs_F77=no
22284       ;;
22285
22286     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22287     # support.  Future versions do this automatically, but an explicit c++rt0.o
22288     # does not break anything, and helps significantly (at the cost of a little
22289     # extra space).
22290     freebsd2.2*)
22291       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22292       hardcode_libdir_flag_spec_F77='-R$libdir'
22293       hardcode_direct_F77=yes
22294       hardcode_shlibpath_var_F77=no
22295       ;;
22296
22297     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22298     freebsd2*)
22299       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22300       hardcode_direct_F77=yes
22301       hardcode_minus_L_F77=yes
22302       hardcode_shlibpath_var_F77=no
22303       ;;
22304
22305     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22306     freebsd* | kfreebsd*-gnu | dragonfly*)
22307       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22308       hardcode_libdir_flag_spec_F77='-R$libdir'
22309       hardcode_direct_F77=yes
22310       hardcode_shlibpath_var_F77=no
22311       ;;
22312
22313     hpux9*)
22314       if test "$GCC" = yes; then
22315         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'
22316       else
22317         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'
22318       fi
22319       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22320       hardcode_libdir_separator_F77=:
22321       hardcode_direct_F77=yes
22322
22323       # hardcode_minus_L: Not really in the search PATH,
22324       # but as the default location of the library.
22325       hardcode_minus_L_F77=yes
22326       export_dynamic_flag_spec_F77='${wl}-E'
22327       ;;
22328
22329     hpux10*)
22330       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22331         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22332       else
22333         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22334       fi
22335       if test "$with_gnu_ld" = no; then
22336         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22337         hardcode_libdir_separator_F77=:
22338
22339         hardcode_direct_F77=yes
22340         export_dynamic_flag_spec_F77='${wl}-E'
22341
22342         # hardcode_minus_L: Not really in the search PATH,
22343         # but as the default location of the library.
22344         hardcode_minus_L_F77=yes
22345       fi
22346       ;;
22347
22348     hpux11*)
22349       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22350         case $host_cpu in
22351         hppa*64*)
22352           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22353           ;;
22354         ia64*)
22355           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22356           ;;
22357         *)
22358           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22359           ;;
22360         esac
22361       else
22362         case $host_cpu in
22363         hppa*64*)
22364           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22365           ;;
22366         ia64*)
22367           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22368           ;;
22369         *)
22370           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22371           ;;
22372         esac
22373       fi
22374       if test "$with_gnu_ld" = no; then
22375         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22376         hardcode_libdir_separator_F77=:
22377
22378         case $host_cpu in
22379         hppa*64*|ia64*)
22380           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22381           hardcode_direct_F77=no
22382           hardcode_shlibpath_var_F77=no
22383           ;;
22384         *)
22385           hardcode_direct_F77=yes
22386           export_dynamic_flag_spec_F77='${wl}-E'
22387
22388           # hardcode_minus_L: Not really in the search PATH,
22389           # but as the default location of the library.
22390           hardcode_minus_L_F77=yes
22391           ;;
22392         esac
22393       fi
22394       ;;
22395
22396     irix5* | irix6* | nonstopux*)
22397       if test "$GCC" = yes; then
22398         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'
22399       else
22400         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'
22401         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22402       fi
22403       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404       hardcode_libdir_separator_F77=:
22405       link_all_deplibs_F77=yes
22406       ;;
22407
22408     netbsd*)
22409       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22410         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22411       else
22412         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22413       fi
22414       hardcode_libdir_flag_spec_F77='-R$libdir'
22415       hardcode_direct_F77=yes
22416       hardcode_shlibpath_var_F77=no
22417       ;;
22418
22419     newsos6)
22420       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421       hardcode_direct_F77=yes
22422       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423       hardcode_libdir_separator_F77=:
22424       hardcode_shlibpath_var_F77=no
22425       ;;
22426
22427     openbsd*)
22428       hardcode_direct_F77=yes
22429       hardcode_shlibpath_var_F77=no
22430       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22431         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22432         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22433         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22434         export_dynamic_flag_spec_F77='${wl}-E'
22435       else
22436        case $host_os in
22437          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22438            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22439            hardcode_libdir_flag_spec_F77='-R$libdir'
22440            ;;
22441          *)
22442            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22443            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22444            ;;
22445        esac
22446       fi
22447       ;;
22448
22449     os2*)
22450       hardcode_libdir_flag_spec_F77='-L$libdir'
22451       hardcode_minus_L_F77=yes
22452       allow_undefined_flag_F77=unsupported
22453       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'
22454       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22455       ;;
22456
22457     osf3*)
22458       if test "$GCC" = yes; then
22459         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22460         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'
22461       else
22462         allow_undefined_flag_F77=' -expect_unresolved \*'
22463         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'
22464       fi
22465       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22466       hardcode_libdir_separator_F77=:
22467       ;;
22468
22469     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22470       if test "$GCC" = yes; then
22471         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22472         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'
22473         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22474       else
22475         allow_undefined_flag_F77=' -expect_unresolved \*'
22476         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'
22477         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~
22478         $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'
22479
22480         # Both c and cxx compiler support -rpath directly
22481         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22482       fi
22483       hardcode_libdir_separator_F77=:
22484       ;;
22485
22486     solaris*)
22487       no_undefined_flag_F77=' -z text'
22488       if test "$GCC" = yes; then
22489         wlarc='${wl}'
22490         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22491         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22492           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22493       else
22494         wlarc=''
22495         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22496         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22497         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22498       fi
22499       hardcode_libdir_flag_spec_F77='-R$libdir'
22500       hardcode_shlibpath_var_F77=no
22501       case $host_os in
22502       solaris2.[0-5] | solaris2.[0-5].*) ;;
22503       *)
22504         # The compiler driver will combine linker options so we
22505         # cannot just pass the convience library names through
22506         # without $wl, iff we do not link with $LD.
22507         # Luckily, gcc supports the same syntax we need for Sun Studio.
22508         # Supported since Solaris 2.6 (maybe 2.5.1?)
22509         case $wlarc in
22510         '')
22511           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22512         *)
22513           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' ;;
22514         esac ;;
22515       esac
22516       link_all_deplibs_F77=yes
22517       ;;
22518
22519     sunos4*)
22520       if test "x$host_vendor" = xsequent; then
22521         # Use $CC to link under sequent, because it throws in some extra .o
22522         # files that make .init and .fini sections work.
22523         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22524       else
22525         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22526       fi
22527       hardcode_libdir_flag_spec_F77='-L$libdir'
22528       hardcode_direct_F77=yes
22529       hardcode_minus_L_F77=yes
22530       hardcode_shlibpath_var_F77=no
22531       ;;
22532
22533     sysv4)
22534       case $host_vendor in
22535         sni)
22536           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537           hardcode_direct_F77=yes # is this really true???
22538         ;;
22539         siemens)
22540           ## LD is ld it makes a PLAMLIB
22541           ## CC just makes a GrossModule.
22542           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22543           reload_cmds_F77='$CC -r -o $output$reload_objs'
22544           hardcode_direct_F77=no
22545         ;;
22546         motorola)
22547           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22548           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22549         ;;
22550       esac
22551       runpath_var='LD_RUN_PATH'
22552       hardcode_shlibpath_var_F77=no
22553       ;;
22554
22555     sysv4.3*)
22556       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22557       hardcode_shlibpath_var_F77=no
22558       export_dynamic_flag_spec_F77='-Bexport'
22559       ;;
22560
22561     sysv4*MP*)
22562       if test -d /usr/nec; then
22563         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22564         hardcode_shlibpath_var_F77=no
22565         runpath_var=LD_RUN_PATH
22566         hardcode_runpath_var=yes
22567         ld_shlibs_F77=yes
22568       fi
22569       ;;
22570
22571     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22572       no_undefined_flag_F77='${wl}-z,text'
22573       archive_cmds_need_lc_F77=no
22574       hardcode_shlibpath_var_F77=no
22575       runpath_var='LD_RUN_PATH'
22576
22577       if test "$GCC" = yes; then
22578         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22579         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22580       else
22581         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22582         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22583       fi
22584       ;;
22585
22586     sysv5* | sco3.2v5* | sco5v6*)
22587       # Note: We can NOT use -z defs as we might desire, because we do not
22588       # link with -lc, and that would cause any symbols used from libc to
22589       # always be unresolved, which means just about no library would
22590       # ever link correctly.  If we're not using GNU ld we use -z text
22591       # though, which does catch some bad symbols but isn't as heavy-handed
22592       # as -z defs.
22593       no_undefined_flag_F77='${wl}-z,text'
22594       allow_undefined_flag_F77='${wl}-z,nodefs'
22595       archive_cmds_need_lc_F77=no
22596       hardcode_shlibpath_var_F77=no
22597       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22598       hardcode_libdir_separator_F77=':'
22599       link_all_deplibs_F77=yes
22600       export_dynamic_flag_spec_F77='${wl}-Bexport'
22601       runpath_var='LD_RUN_PATH'
22602
22603       if test "$GCC" = yes; then
22604         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22605         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22606       else
22607         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22609       fi
22610       ;;
22611
22612     uts4*)
22613       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22614       hardcode_libdir_flag_spec_F77='-L$libdir'
22615       hardcode_shlibpath_var_F77=no
22616       ;;
22617
22618     *)
22619       ld_shlibs_F77=no
22620       ;;
22621     esac
22622   fi
22623
22624 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22625 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22626 test "$ld_shlibs_F77" = no && can_build_shared=no
22627
22628 #
22629 # Do we need to explicitly link libc?
22630 #
22631 case "x$archive_cmds_need_lc_F77" in
22632 x|xyes)
22633   # Assume -lc should be added
22634   archive_cmds_need_lc_F77=yes
22635
22636   if test "$enable_shared" = yes && test "$GCC" = yes; then
22637     case $archive_cmds_F77 in
22638     *'~'*)
22639       # FIXME: we may have to deal with multi-command sequences.
22640       ;;
22641     '$CC '*)
22642       # Test whether the compiler implicitly links with -lc since on some
22643       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22644       # to ld, don't add -lc before -lgcc.
22645       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22647       $rm conftest*
22648       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22649
22650       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22651   (eval $ac_compile) 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } 2>conftest.err; then
22655         soname=conftest
22656         lib=conftest
22657         libobjs=conftest.$ac_objext
22658         deplibs=
22659         wl=$lt_prog_compiler_wl_F77
22660         pic_flag=$lt_prog_compiler_pic_F77
22661         compiler_flags=-v
22662         linker_flags=-v
22663         verstring=
22664         output_objdir=.
22665         libname=conftest
22666         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22667         allow_undefined_flag_F77=
22668         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22669   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }
22673         then
22674           archive_cmds_need_lc_F77=no
22675         else
22676           archive_cmds_need_lc_F77=yes
22677         fi
22678         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22679       else
22680         cat conftest.err 1>&5
22681       fi
22682       $rm conftest*
22683       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22685       ;;
22686     esac
22687   fi
22688   ;;
22689 esac
22690
22691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22693 library_names_spec=
22694 libname_spec='lib$name'
22695 soname_spec=
22696 shrext_cmds=".so"
22697 postinstall_cmds=
22698 postuninstall_cmds=
22699 finish_cmds=
22700 finish_eval=
22701 shlibpath_var=
22702 shlibpath_overrides_runpath=unknown
22703 version_type=none
22704 dynamic_linker="$host_os ld.so"
22705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22706 if test "$GCC" = yes; then
22707   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22708   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22709     # if the path contains ";" then we assume it to be the separator
22710     # otherwise default to the standard path separator (i.e. ":") - it is
22711     # assumed that no part of a normal pathname contains ";" but that should
22712     # okay in the real world where ";" in dirpaths is itself problematic.
22713     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22714   else
22715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22716   fi
22717 else
22718   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22719 fi
22720 need_lib_prefix=unknown
22721 hardcode_into_libs=no
22722
22723 # when you set need_version to no, make sure it does not cause -set_version
22724 # flags to be left without arguments
22725 need_version=unknown
22726
22727 case $host_os in
22728 aix3*)
22729   version_type=linux
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22731   shlibpath_var=LIBPATH
22732
22733   # AIX 3 has no versioning support, so we append a major version to the name.
22734   soname_spec='${libname}${release}${shared_ext}$major'
22735   ;;
22736
22737 aix4* | aix5*)
22738   version_type=linux
22739   need_lib_prefix=no
22740   need_version=no
22741   hardcode_into_libs=yes
22742   if test "$host_cpu" = ia64; then
22743     # AIX 5 supports IA64
22744     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22745     shlibpath_var=LD_LIBRARY_PATH
22746   else
22747     # With GCC up to 2.95.x, collect2 would create an import file
22748     # for dependence libraries.  The import file would start with
22749     # the line `#! .'.  This would cause the generated library to
22750     # depend on `.', always an invalid library.  This was fixed in
22751     # development snapshots of GCC prior to 3.0.
22752     case $host_os in
22753       aix4 | aix4.[01] | aix4.[01].*)
22754       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22755            echo ' yes '
22756            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22757         :
22758       else
22759         can_build_shared=no
22760       fi
22761       ;;
22762     esac
22763     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22764     # soname into executable. Probably we can add versioning support to
22765     # collect2, so additional links can be useful in future.
22766     if test "$aix_use_runtimelinking" = yes; then
22767       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22768       # instead of lib<name>.a to let people know that these are not
22769       # typical AIX shared libraries.
22770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771     else
22772       # We preserve .a as extension for shared libraries through AIX4.2
22773       # and later when we are not doing run time linking.
22774       library_names_spec='${libname}${release}.a $libname.a'
22775       soname_spec='${libname}${release}${shared_ext}$major'
22776     fi
22777     shlibpath_var=LIBPATH
22778   fi
22779   ;;
22780
22781 amigaos*)
22782   library_names_spec='$libname.ixlibrary $libname.a'
22783   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22784   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'
22785   ;;
22786
22787 beos*)
22788   library_names_spec='${libname}${shared_ext}'
22789   dynamic_linker="$host_os ld.so"
22790   shlibpath_var=LIBRARY_PATH
22791   ;;
22792
22793 bsdi[45]*)
22794   version_type=linux
22795   need_version=no
22796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22797   soname_spec='${libname}${release}${shared_ext}$major'
22798   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22799   shlibpath_var=LD_LIBRARY_PATH
22800   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22801   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22802   # the default ld.so.conf also contains /usr/contrib/lib and
22803   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22804   # libtool to hard-code these into programs
22805   ;;
22806
22807 cygwin* | mingw* | pw32*)
22808   version_type=windows
22809   shrext_cmds=".dll"
22810   need_version=no
22811   need_lib_prefix=no
22812
22813   case $GCC,$host_os in
22814   yes,cygwin* | yes,mingw* | yes,pw32*)
22815     library_names_spec='$libname.dll.a'
22816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22817     postinstall_cmds='base_file=`basename \${file}`~
22818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22819       dldir=$destdir/`dirname \$dlpath`~
22820       test -d \$dldir || mkdir -p \$dldir~
22821       $install_prog $dir/$dlname \$dldir/$dlname~
22822       chmod a+x \$dldir/$dlname'
22823     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22824       dlpath=$dir/\$dldll~
22825        $rm \$dlpath'
22826     shlibpath_overrides_runpath=yes
22827
22828     case $host_os in
22829     cygwin*)
22830       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22831       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22832       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22833       ;;
22834     mingw*)
22835       # MinGW DLLs use traditional 'lib' prefix
22836       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22837       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22838       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22839         # It is most probably a Windows format PATH printed by
22840         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22841         # path with ; separators, and with drive letters. We can handle the
22842         # drive letters (cygwin fileutils understands them), so leave them,
22843         # especially as we might pass files found there to a mingw objdump,
22844         # which wouldn't understand a cygwinified path. Ahh.
22845         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22846       else
22847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22848       fi
22849       ;;
22850     pw32*)
22851       # pw32 DLLs use 'pw' prefix rather than 'lib'
22852       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22853       ;;
22854     esac
22855     ;;
22856
22857   *)
22858     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22859     ;;
22860   esac
22861   dynamic_linker='Win32 ld.exe'
22862   # FIXME: first we should search . and the directory the executable is in
22863   shlibpath_var=PATH
22864   ;;
22865
22866 darwin* | rhapsody*)
22867   dynamic_linker="$host_os dyld"
22868   version_type=darwin
22869   need_lib_prefix=no
22870   need_version=no
22871   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22872   soname_spec='${libname}${release}${major}$shared_ext'
22873   shlibpath_overrides_runpath=yes
22874   shlibpath_var=DYLD_LIBRARY_PATH
22875   shrext_cmds='.dylib'
22876   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22877   if test "$GCC" = yes; then
22878     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"`
22879   else
22880     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22881   fi
22882   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22883   ;;
22884
22885 dgux*)
22886   version_type=linux
22887   need_lib_prefix=no
22888   need_version=no
22889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22890   soname_spec='${libname}${release}${shared_ext}$major'
22891   shlibpath_var=LD_LIBRARY_PATH
22892   ;;
22893
22894 freebsd1*)
22895   dynamic_linker=no
22896   ;;
22897
22898 kfreebsd*-gnu)
22899   version_type=linux
22900   need_lib_prefix=no
22901   need_version=no
22902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903   soname_spec='${libname}${release}${shared_ext}$major'
22904   shlibpath_var=LD_LIBRARY_PATH
22905   shlibpath_overrides_runpath=no
22906   hardcode_into_libs=yes
22907   dynamic_linker='GNU ld.so'
22908   ;;
22909
22910 freebsd* | dragonfly*)
22911   # DragonFly does not have aout.  When/if they implement a new
22912   # versioning mechanism, adjust this.
22913   if test -x /usr/bin/objformat; then
22914     objformat=`/usr/bin/objformat`
22915   else
22916     case $host_os in
22917     freebsd[123]*) objformat=aout ;;
22918     *) objformat=elf ;;
22919     esac
22920   fi
22921   version_type=freebsd-$objformat
22922   case $version_type in
22923     freebsd-elf*)
22924       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22925       need_version=no
22926       need_lib_prefix=no
22927       ;;
22928     freebsd-*)
22929       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22930       need_version=yes
22931       ;;
22932   esac
22933   shlibpath_var=LD_LIBRARY_PATH
22934   case $host_os in
22935   freebsd2*)
22936     shlibpath_overrides_runpath=yes
22937     ;;
22938   freebsd3.[01]* | freebsdelf3.[01]*)
22939     shlibpath_overrides_runpath=yes
22940     hardcode_into_libs=yes
22941     ;;
22942   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22943   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22944     shlibpath_overrides_runpath=no
22945     hardcode_into_libs=yes
22946     ;;
22947   freebsd*) # from 4.6 on
22948     shlibpath_overrides_runpath=yes
22949     hardcode_into_libs=yes
22950     ;;
22951   esac
22952   ;;
22953
22954 gnu*)
22955   version_type=linux
22956   need_lib_prefix=no
22957   need_version=no
22958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22959   soname_spec='${libname}${release}${shared_ext}$major'
22960   shlibpath_var=LD_LIBRARY_PATH
22961   hardcode_into_libs=yes
22962   ;;
22963
22964 hpux9* | hpux10* | hpux11*)
22965   # Give a soname corresponding to the major version so that dld.sl refuses to
22966   # link against other versions.
22967   version_type=sunos
22968   need_lib_prefix=no
22969   need_version=no
22970   case $host_cpu in
22971   ia64*)
22972     shrext_cmds='.so'
22973     hardcode_into_libs=yes
22974     dynamic_linker="$host_os dld.so"
22975     shlibpath_var=LD_LIBRARY_PATH
22976     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978     soname_spec='${libname}${release}${shared_ext}$major'
22979     if test "X$HPUX_IA64_MODE" = X32; then
22980       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22981     else
22982       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22983     fi
22984     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22985     ;;
22986    hppa*64*)
22987      shrext_cmds='.sl'
22988      hardcode_into_libs=yes
22989      dynamic_linker="$host_os dld.sl"
22990      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22991      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993      soname_spec='${libname}${release}${shared_ext}$major'
22994      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22995      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22996      ;;
22997    *)
22998     shrext_cmds='.sl'
22999     dynamic_linker="$host_os dld.sl"
23000     shlibpath_var=SHLIB_PATH
23001     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003     soname_spec='${libname}${release}${shared_ext}$major'
23004     ;;
23005   esac
23006   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23007   postinstall_cmds='chmod 555 $lib'
23008   ;;
23009
23010 interix3*)
23011   version_type=linux
23012   need_lib_prefix=no
23013   need_version=no
23014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015   soname_spec='${libname}${release}${shared_ext}$major'
23016   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23017   shlibpath_var=LD_LIBRARY_PATH
23018   shlibpath_overrides_runpath=no
23019   hardcode_into_libs=yes
23020   ;;
23021
23022 irix5* | irix6* | nonstopux*)
23023   case $host_os in
23024     nonstopux*) version_type=nonstopux ;;
23025     *)
23026         if test "$lt_cv_prog_gnu_ld" = yes; then
23027                 version_type=linux
23028         else
23029                 version_type=irix
23030         fi ;;
23031   esac
23032   need_lib_prefix=no
23033   need_version=no
23034   soname_spec='${libname}${release}${shared_ext}$major'
23035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23036   case $host_os in
23037   irix5* | nonstopux*)
23038     libsuff= shlibsuff=
23039     ;;
23040   *)
23041     case $LD in # libtool.m4 will add one of these switches to LD
23042     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23043       libsuff= shlibsuff= libmagic=32-bit;;
23044     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23045       libsuff=32 shlibsuff=N32 libmagic=N32;;
23046     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23047       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23048     *) libsuff= shlibsuff= libmagic=never-match;;
23049     esac
23050     ;;
23051   esac
23052   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23053   shlibpath_overrides_runpath=no
23054   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23055   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23056   hardcode_into_libs=yes
23057   ;;
23058
23059 # No shared lib support for Linux oldld, aout, or coff.
23060 linux*oldld* | linux*aout* | linux*coff*)
23061   dynamic_linker=no
23062   ;;
23063
23064 # This must be Linux ELF.
23065 linux*)
23066   version_type=linux
23067   need_lib_prefix=no
23068   need_version=no
23069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070   soname_spec='${libname}${release}${shared_ext}$major'
23071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23072   shlibpath_var=LD_LIBRARY_PATH
23073   shlibpath_overrides_runpath=no
23074   # This implies no fast_install, which is unacceptable.
23075   # Some rework will be needed to allow for fast_install
23076   # before this can be enabled.
23077   hardcode_into_libs=yes
23078
23079   # Append ld.so.conf contents to the search path
23080   if test -f /etc/ld.so.conf; then
23081     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' ' '`
23082     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23083   fi
23084
23085   # We used to test for /lib/ld.so.1 and disable shared libraries on
23086   # powerpc, because MkLinux only supported shared libraries with the
23087   # GNU dynamic linker.  Since this was broken with cross compilers,
23088   # most powerpc-linux boxes support dynamic linking these days and
23089   # people can always --disable-shared, the test was removed, and we
23090   # assume the GNU/Linux dynamic linker is in use.
23091   dynamic_linker='GNU/Linux ld.so'
23092   ;;
23093
23094 knetbsd*-gnu)
23095   version_type=linux
23096   need_lib_prefix=no
23097   need_version=no
23098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23099   soname_spec='${libname}${release}${shared_ext}$major'
23100   shlibpath_var=LD_LIBRARY_PATH
23101   shlibpath_overrides_runpath=no
23102   hardcode_into_libs=yes
23103   dynamic_linker='GNU ld.so'
23104   ;;
23105
23106 netbsd*)
23107   version_type=sunos
23108   need_lib_prefix=no
23109   need_version=no
23110   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23113     dynamic_linker='NetBSD (a.out) ld.so'
23114   else
23115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23116     soname_spec='${libname}${release}${shared_ext}$major'
23117     dynamic_linker='NetBSD ld.elf_so'
23118   fi
23119   shlibpath_var=LD_LIBRARY_PATH
23120   shlibpath_overrides_runpath=yes
23121   hardcode_into_libs=yes
23122   ;;
23123
23124 newsos6)
23125   version_type=linux
23126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127   shlibpath_var=LD_LIBRARY_PATH
23128   shlibpath_overrides_runpath=yes
23129   ;;
23130
23131 nto-qnx*)
23132   version_type=linux
23133   need_lib_prefix=no
23134   need_version=no
23135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136   soname_spec='${libname}${release}${shared_ext}$major'
23137   shlibpath_var=LD_LIBRARY_PATH
23138   shlibpath_overrides_runpath=yes
23139   ;;
23140
23141 openbsd*)
23142   version_type=sunos
23143   sys_lib_dlsearch_path_spec="/usr/lib"
23144   need_lib_prefix=no
23145   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23146   case $host_os in
23147     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23148     *)                         need_version=no  ;;
23149   esac
23150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23152   shlibpath_var=LD_LIBRARY_PATH
23153   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23154     case $host_os in
23155       openbsd2.[89] | openbsd2.[89].*)
23156         shlibpath_overrides_runpath=no
23157         ;;
23158       *)
23159         shlibpath_overrides_runpath=yes
23160         ;;
23161       esac
23162   else
23163     shlibpath_overrides_runpath=yes
23164   fi
23165   ;;
23166
23167 os2*)
23168   libname_spec='$name'
23169   shrext_cmds=".dll"
23170   need_lib_prefix=no
23171   library_names_spec='$libname${shared_ext} $libname.a'
23172   dynamic_linker='OS/2 ld.exe'
23173   shlibpath_var=LIBPATH
23174   ;;
23175
23176 osf3* | osf4* | osf5*)
23177   version_type=osf
23178   need_lib_prefix=no
23179   need_version=no
23180   soname_spec='${libname}${release}${shared_ext}$major'
23181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23182   shlibpath_var=LD_LIBRARY_PATH
23183   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23184   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23185   ;;
23186
23187 solaris*)
23188   version_type=linux
23189   need_lib_prefix=no
23190   need_version=no
23191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23192   soname_spec='${libname}${release}${shared_ext}$major'
23193   shlibpath_var=LD_LIBRARY_PATH
23194   shlibpath_overrides_runpath=yes
23195   hardcode_into_libs=yes
23196   # ldd complains unless libraries are executable
23197   postinstall_cmds='chmod +x $lib'
23198   ;;
23199
23200 sunos4*)
23201   version_type=sunos
23202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23203   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23204   shlibpath_var=LD_LIBRARY_PATH
23205   shlibpath_overrides_runpath=yes
23206   if test "$with_gnu_ld" = yes; then
23207     need_lib_prefix=no
23208   fi
23209   need_version=yes
23210   ;;
23211
23212 sysv4 | sysv4.3*)
23213   version_type=linux
23214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215   soname_spec='${libname}${release}${shared_ext}$major'
23216   shlibpath_var=LD_LIBRARY_PATH
23217   case $host_vendor in
23218     sni)
23219       shlibpath_overrides_runpath=no
23220       need_lib_prefix=no
23221       export_dynamic_flag_spec='${wl}-Blargedynsym'
23222       runpath_var=LD_RUN_PATH
23223       ;;
23224     siemens)
23225       need_lib_prefix=no
23226       ;;
23227     motorola)
23228       need_lib_prefix=no
23229       need_version=no
23230       shlibpath_overrides_runpath=no
23231       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23232       ;;
23233   esac
23234   ;;
23235
23236 sysv4*MP*)
23237   if test -d /usr/nec ;then
23238     version_type=linux
23239     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23240     soname_spec='$libname${shared_ext}.$major'
23241     shlibpath_var=LD_LIBRARY_PATH
23242   fi
23243   ;;
23244
23245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23246   version_type=freebsd-elf
23247   need_lib_prefix=no
23248   need_version=no
23249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23250   soname_spec='${libname}${release}${shared_ext}$major'
23251   shlibpath_var=LD_LIBRARY_PATH
23252   hardcode_into_libs=yes
23253   if test "$with_gnu_ld" = yes; then
23254     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23255     shlibpath_overrides_runpath=no
23256   else
23257     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23258     shlibpath_overrides_runpath=yes
23259     case $host_os in
23260       sco3.2v5*)
23261         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23262         ;;
23263     esac
23264   fi
23265   sys_lib_dlsearch_path_spec='/usr/lib'
23266   ;;
23267
23268 uts4*)
23269   version_type=linux
23270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23271   soname_spec='${libname}${release}${shared_ext}$major'
23272   shlibpath_var=LD_LIBRARY_PATH
23273   ;;
23274
23275 *)
23276   dynamic_linker=no
23277   ;;
23278 esac
23279 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23280 echo "${ECHO_T}$dynamic_linker" >&6; }
23281 test "$dynamic_linker" = no && can_build_shared=no
23282
23283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23284 if test "$GCC" = yes; then
23285   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23286 fi
23287
23288 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23290 hardcode_action_F77=
23291 if test -n "$hardcode_libdir_flag_spec_F77" || \
23292    test -n "$runpath_var_F77" || \
23293    test "X$hardcode_automatic_F77" = "Xyes" ; then
23294
23295   # We can hardcode non-existant directories.
23296   if test "$hardcode_direct_F77" != no &&
23297      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23298      # have to relink, otherwise we might link with an installed library
23299      # when we should be linking with a yet-to-be-installed one
23300      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23301      test "$hardcode_minus_L_F77" != no; then
23302     # Linking always hardcodes the temporary library directory.
23303     hardcode_action_F77=relink
23304   else
23305     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23306     hardcode_action_F77=immediate
23307   fi
23308 else
23309   # We cannot hardcode anything, or else we can only hardcode existing
23310   # directories.
23311   hardcode_action_F77=unsupported
23312 fi
23313 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23314 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23315
23316 if test "$hardcode_action_F77" = relink; then
23317   # Fast installation is not supported
23318   enable_fast_install=no
23319 elif test "$shlibpath_overrides_runpath" = yes ||
23320      test "$enable_shared" = no; then
23321   # Fast installation is not necessary
23322   enable_fast_install=needless
23323 fi
23324
23325
23326 # The else clause should only fire when bootstrapping the
23327 # libtool distribution, otherwise you forgot to ship ltmain.sh
23328 # with your package, and you will get complaints that there are
23329 # no rules to generate ltmain.sh.
23330 if test -f "$ltmain"; then
23331   # See if we are running on zsh, and set the options which allow our commands through
23332   # without removal of \ escapes.
23333   if test -n "${ZSH_VERSION+set}" ; then
23334     setopt NO_GLOB_SUBST
23335   fi
23336   # Now quote all the things that may contain metacharacters while being
23337   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23338   # variables and quote the copies for generation of the libtool script.
23339   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23340     SED SHELL STRIP \
23341     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23342     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23343     deplibs_check_method reload_flag reload_cmds need_locks \
23344     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23345     lt_cv_sys_global_symbol_to_c_name_address \
23346     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23347     old_postinstall_cmds old_postuninstall_cmds \
23348     compiler_F77 \
23349     CC_F77 \
23350     LD_F77 \
23351     lt_prog_compiler_wl_F77 \
23352     lt_prog_compiler_pic_F77 \
23353     lt_prog_compiler_static_F77 \
23354     lt_prog_compiler_no_builtin_flag_F77 \
23355     export_dynamic_flag_spec_F77 \
23356     thread_safe_flag_spec_F77 \
23357     whole_archive_flag_spec_F77 \
23358     enable_shared_with_static_runtimes_F77 \
23359     old_archive_cmds_F77 \
23360     old_archive_from_new_cmds_F77 \
23361     predep_objects_F77 \
23362     postdep_objects_F77 \
23363     predeps_F77 \
23364     postdeps_F77 \
23365     compiler_lib_search_path_F77 \
23366     archive_cmds_F77 \
23367     archive_expsym_cmds_F77 \
23368     postinstall_cmds_F77 \
23369     postuninstall_cmds_F77 \
23370     old_archive_from_expsyms_cmds_F77 \
23371     allow_undefined_flag_F77 \
23372     no_undefined_flag_F77 \
23373     export_symbols_cmds_F77 \
23374     hardcode_libdir_flag_spec_F77 \
23375     hardcode_libdir_flag_spec_ld_F77 \
23376     hardcode_libdir_separator_F77 \
23377     hardcode_automatic_F77 \
23378     module_cmds_F77 \
23379     module_expsym_cmds_F77 \
23380     lt_cv_prog_compiler_c_o_F77 \
23381     exclude_expsyms_F77 \
23382     include_expsyms_F77; do
23383
23384     case $var in
23385     old_archive_cmds_F77 | \
23386     old_archive_from_new_cmds_F77 | \
23387     archive_cmds_F77 | \
23388     archive_expsym_cmds_F77 | \
23389     module_cmds_F77 | \
23390     module_expsym_cmds_F77 | \
23391     old_archive_from_expsyms_cmds_F77 | \
23392     export_symbols_cmds_F77 | \
23393     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23394     postinstall_cmds | postuninstall_cmds | \
23395     old_postinstall_cmds | old_postuninstall_cmds | \
23396     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23397       # Double-quote double-evaled strings.
23398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23399       ;;
23400     *)
23401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23402       ;;
23403     esac
23404   done
23405
23406   case $lt_echo in
23407   *'\$0 --fallback-echo"')
23408     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23409     ;;
23410   esac
23411
23412 cfgfile="$ofile"
23413
23414   cat <<__EOF__ >> "$cfgfile"
23415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23416
23417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23418
23419 # Shell to use when invoking shell scripts.
23420 SHELL=$lt_SHELL
23421
23422 # Whether or not to build shared libraries.
23423 build_libtool_libs=$enable_shared
23424
23425 # Whether or not to build static libraries.
23426 build_old_libs=$enable_static
23427
23428 # Whether or not to add -lc for building shared libraries.
23429 build_libtool_need_lc=$archive_cmds_need_lc_F77
23430
23431 # Whether or not to disallow shared libs when runtime libs are static
23432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23433
23434 # Whether or not to optimize for fast installation.
23435 fast_install=$enable_fast_install
23436
23437 # The host system.
23438 host_alias=$host_alias
23439 host=$host
23440 host_os=$host_os
23441
23442 # The build system.
23443 build_alias=$build_alias
23444 build=$build
23445 build_os=$build_os
23446
23447 # An echo program that does not interpret backslashes.
23448 echo=$lt_echo
23449
23450 # The archiver.
23451 AR=$lt_AR
23452 AR_FLAGS=$lt_AR_FLAGS
23453
23454 # A C compiler.
23455 LTCC=$lt_LTCC
23456
23457 # LTCC compiler flags.
23458 LTCFLAGS=$lt_LTCFLAGS
23459
23460 # A language-specific compiler.
23461 CC=$lt_compiler_F77
23462
23463 # Is the compiler the GNU C compiler?
23464 with_gcc=$GCC_F77
23465
23466 # An ERE matcher.
23467 EGREP=$lt_EGREP
23468
23469 # The linker used to build libraries.
23470 LD=$lt_LD_F77
23471
23472 # Whether we need hard or soft links.
23473 LN_S=$lt_LN_S
23474
23475 # A BSD-compatible nm program.
23476 NM=$lt_NM
23477
23478 # A symbol stripping program
23479 STRIP=$lt_STRIP
23480
23481 # Used to examine libraries when file_magic_cmd begins "file"
23482 MAGIC_CMD=$MAGIC_CMD
23483
23484 # Used on cygwin: DLL creation program.
23485 DLLTOOL="$DLLTOOL"
23486
23487 # Used on cygwin: object dumper.
23488 OBJDUMP="$OBJDUMP"
23489
23490 # Used on cygwin: assembler.
23491 AS="$AS"
23492
23493 # The name of the directory that contains temporary libtool files.
23494 objdir=$objdir
23495
23496 # How to create reloadable object files.
23497 reload_flag=$lt_reload_flag
23498 reload_cmds=$lt_reload_cmds
23499
23500 # How to pass a linker flag through the compiler.
23501 wl=$lt_lt_prog_compiler_wl_F77
23502
23503 # Object file suffix (normally "o").
23504 objext="$ac_objext"
23505
23506 # Old archive suffix (normally "a").
23507 libext="$libext"
23508
23509 # Shared library suffix (normally ".so").
23510 shrext_cmds='$shrext_cmds'
23511
23512 # Executable file suffix (normally "").
23513 exeext="$exeext"
23514
23515 # Additional compiler flags for building library objects.
23516 pic_flag=$lt_lt_prog_compiler_pic_F77
23517 pic_mode=$pic_mode
23518
23519 # What is the maximum length of a command?
23520 max_cmd_len=$lt_cv_sys_max_cmd_len
23521
23522 # Does compiler simultaneously support -c and -o options?
23523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23524
23525 # Must we lock files when doing compilation?
23526 need_locks=$lt_need_locks
23527
23528 # Do we need the lib prefix for modules?
23529 need_lib_prefix=$need_lib_prefix
23530
23531 # Do we need a version for libraries?
23532 need_version=$need_version
23533
23534 # Whether dlopen is supported.
23535 dlopen_support=$enable_dlopen
23536
23537 # Whether dlopen of programs is supported.
23538 dlopen_self=$enable_dlopen_self
23539
23540 # Whether dlopen of statically linked programs is supported.
23541 dlopen_self_static=$enable_dlopen_self_static
23542
23543 # Compiler flag to prevent dynamic linking.
23544 link_static_flag=$lt_lt_prog_compiler_static_F77
23545
23546 # Compiler flag to turn off builtin functions.
23547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23548
23549 # Compiler flag to allow reflexive dlopens.
23550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23551
23552 # Compiler flag to generate shared objects directly from archives.
23553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23554
23555 # Compiler flag to generate thread-safe objects.
23556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23557
23558 # Library versioning type.
23559 version_type=$version_type
23560
23561 # Format of library name prefix.
23562 libname_spec=$lt_libname_spec
23563
23564 # List of archive names.  First name is the real one, the rest are links.
23565 # The last name is the one that the linker finds with -lNAME.
23566 library_names_spec=$lt_library_names_spec
23567
23568 # The coded name of the library, if different from the real name.
23569 soname_spec=$lt_soname_spec
23570
23571 # Commands used to build and install an old-style archive.
23572 RANLIB=$lt_RANLIB
23573 old_archive_cmds=$lt_old_archive_cmds_F77
23574 old_postinstall_cmds=$lt_old_postinstall_cmds
23575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23576
23577 # Create an old-style archive from a shared archive.
23578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23579
23580 # Create a temporary old-style archive to link instead of a shared archive.
23581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23582
23583 # Commands used to build and install a shared archive.
23584 archive_cmds=$lt_archive_cmds_F77
23585 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23586 postinstall_cmds=$lt_postinstall_cmds
23587 postuninstall_cmds=$lt_postuninstall_cmds
23588
23589 # Commands used to build a loadable module (assumed same as above if empty)
23590 module_cmds=$lt_module_cmds_F77
23591 module_expsym_cmds=$lt_module_expsym_cmds_F77
23592
23593 # Commands to strip libraries.
23594 old_striplib=$lt_old_striplib
23595 striplib=$lt_striplib
23596
23597 # Dependencies to place before the objects being linked to create a
23598 # shared library.
23599 predep_objects=$lt_predep_objects_F77
23600
23601 # Dependencies to place after the objects being linked to create a
23602 # shared library.
23603 postdep_objects=$lt_postdep_objects_F77
23604
23605 # Dependencies to place before the objects being linked to create a
23606 # shared library.
23607 predeps=$lt_predeps_F77
23608
23609 # Dependencies to place after the objects being linked to create a
23610 # shared library.
23611 postdeps=$lt_postdeps_F77
23612
23613 # The library search path used internally by the compiler when linking
23614 # a shared library.
23615 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23616
23617 # Method to check whether dependent libraries are shared objects.
23618 deplibs_check_method=$lt_deplibs_check_method
23619
23620 # Command to use when deplibs_check_method == file_magic.
23621 file_magic_cmd=$lt_file_magic_cmd
23622
23623 # Flag that allows shared libraries with undefined symbols to be built.
23624 allow_undefined_flag=$lt_allow_undefined_flag_F77
23625
23626 # Flag that forces no undefined symbols.
23627 no_undefined_flag=$lt_no_undefined_flag_F77
23628
23629 # Commands used to finish a libtool library installation in a directory.
23630 finish_cmds=$lt_finish_cmds
23631
23632 # Same as above, but a single script fragment to be evaled but not shown.
23633 finish_eval=$lt_finish_eval
23634
23635 # Take the output of nm and produce a listing of raw symbols and C names.
23636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23637
23638 # Transform the output of nm in a proper C declaration
23639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23640
23641 # Transform the output of nm in a C name address pair
23642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23643
23644 # This is the shared library runtime path variable.
23645 runpath_var=$runpath_var
23646
23647 # This is the shared library path variable.
23648 shlibpath_var=$shlibpath_var
23649
23650 # Is shlibpath searched before the hard-coded library search path?
23651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23652
23653 # How to hardcode a shared library path into an executable.
23654 hardcode_action=$hardcode_action_F77
23655
23656 # Whether we should hardcode library paths into libraries.
23657 hardcode_into_libs=$hardcode_into_libs
23658
23659 # Flag to hardcode \$libdir into a binary during linking.
23660 # This must work even if \$libdir does not exist.
23661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23662
23663 # If ld is used when linking, flag to hardcode \$libdir into
23664 # a binary during linking. This must work even if \$libdir does
23665 # not exist.
23666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23667
23668 # Whether we need a single -rpath flag with a separated argument.
23669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23670
23671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23672 # resulting binary.
23673 hardcode_direct=$hardcode_direct_F77
23674
23675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23676 # resulting binary.
23677 hardcode_minus_L=$hardcode_minus_L_F77
23678
23679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23680 # the resulting binary.
23681 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23682
23683 # Set to yes if building a shared library automatically hardcodes DIR into the library
23684 # and all subsequent libraries and executables linked against it.
23685 hardcode_automatic=$hardcode_automatic_F77
23686
23687 # Variables whose values should be saved in libtool wrapper scripts and
23688 # restored at relink time.
23689 variables_saved_for_relink="$variables_saved_for_relink"
23690
23691 # Whether libtool must link a program against all its dependency libraries.
23692 link_all_deplibs=$link_all_deplibs_F77
23693
23694 # Compile-time system search path for libraries
23695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23696
23697 # Run-time system search path for libraries
23698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23699
23700 # Fix the shell variable \$srcfile for the compiler.
23701 fix_srcfile_path="$fix_srcfile_path_F77"
23702
23703 # Set to yes if exported symbols are required.
23704 always_export_symbols=$always_export_symbols_F77
23705
23706 # The commands to list exported symbols.
23707 export_symbols_cmds=$lt_export_symbols_cmds_F77
23708
23709 # The commands to extract the exported symbol list from a shared archive.
23710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23711
23712 # Symbols that should not be listed in the preloaded symbols.
23713 exclude_expsyms=$lt_exclude_expsyms_F77
23714
23715 # Symbols that must always be exported.
23716 include_expsyms=$lt_include_expsyms_F77
23717
23718 # ### END LIBTOOL TAG CONFIG: $tagname
23719
23720 __EOF__
23721
23722
23723 else
23724   # If there is no Makefile yet, we rely on a make rule to execute
23725   # `config.status --recheck' to rerun these tests and create the
23726   # libtool script then.
23727   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23728   if test -f "$ltmain_in"; then
23729     test -f Makefile && make "$ltmain"
23730   fi
23731 fi
23732
23733
23734 ac_ext=c
23735 ac_cpp='$CPP $CPPFLAGS'
23736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23739
23740 CC="$lt_save_CC"
23741
23742         else
23743           tagname=""
23744         fi
23745         ;;
23746
23747       GCJ)
23748         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23749           ac_ext=c
23750 ac_cpp='$CPP $CPPFLAGS'
23751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23754
23755
23756 # Source file extension for Java test sources.
23757 ac_ext=java
23758
23759 # Object file extension for compiled Java test sources.
23760 objext=o
23761 objext_GCJ=$objext
23762
23763 # Code to be used in simple compile tests
23764 lt_simple_compile_test_code="class foo {}\n"
23765
23766 # Code to be used in simple link tests
23767 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23768
23769 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23770
23771 # If no C compiler was specified, use CC.
23772 LTCC=${LTCC-"$CC"}
23773
23774 # If no C compiler flags were specified, use CFLAGS.
23775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23776
23777 # Allow CC to be a program name with arguments.
23778 compiler=$CC
23779
23780
23781 # save warnings/boilerplate of simple test code
23782 ac_outfile=conftest.$ac_objext
23783 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23785 _lt_compiler_boilerplate=`cat conftest.err`
23786 $rm conftest*
23787
23788 ac_outfile=conftest.$ac_objext
23789 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23791 _lt_linker_boilerplate=`cat conftest.err`
23792 $rm conftest*
23793
23794
23795 # Allow CC to be a program name with arguments.
23796 lt_save_CC="$CC"
23797 CC=${GCJ-"gcj"}
23798 compiler=$CC
23799 compiler_GCJ=$CC
23800 for cc_temp in $compiler""; do
23801   case $cc_temp in
23802     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23803     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23804     \-*) ;;
23805     *) break;;
23806   esac
23807 done
23808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23809
23810
23811 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23812 archive_cmds_need_lc_GCJ=no
23813
23814 old_archive_cmds_GCJ=$old_archive_cmds
23815
23816
23817 lt_prog_compiler_no_builtin_flag_GCJ=
23818
23819 if test "$GCC" = yes; then
23820   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23821
23822
23823 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23824 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   lt_cv_prog_compiler_rtti_exceptions=no
23829   ac_outfile=conftest.$ac_objext
23830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831    lt_compiler_flag="-fno-rtti -fno-exceptions"
23832    # Insert the option either (1) after the last *FLAGS variable, or
23833    # (2) before a word containing "conftest.", or (3) at the end.
23834    # Note that $ac_compile itself does not contain backslashes and begins
23835    # with a dollar sign (not a hyphen), so the echo should work correctly.
23836    # The option is referenced via a variable to avoid confusing sed.
23837    lt_compile=`echo "$ac_compile" | $SED \
23838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840    -e 's:$: $lt_compiler_flag:'`
23841    (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
23842    (eval "$lt_compile" 2>conftest.err)
23843    ac_status=$?
23844    cat conftest.err >&5
23845    echo "$as_me:23845: \$? = $ac_status" >&5
23846    if (exit $ac_status) && test -s "$ac_outfile"; then
23847      # The compiler can only warn and ignore the option if not recognized
23848      # So say no if there are warnings other than the usual output.
23849      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23850      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23851      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23852        lt_cv_prog_compiler_rtti_exceptions=yes
23853      fi
23854    fi
23855    $rm conftest*
23856
23857 fi
23858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23859 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23860
23861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23862     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23863 else
23864     :
23865 fi
23866
23867 fi
23868
23869 lt_prog_compiler_wl_GCJ=
23870 lt_prog_compiler_pic_GCJ=
23871 lt_prog_compiler_static_GCJ=
23872
23873 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23874 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23875
23876   if test "$GCC" = yes; then
23877     lt_prog_compiler_wl_GCJ='-Wl,'
23878     lt_prog_compiler_static_GCJ='-static'
23879
23880     case $host_os in
23881       aix*)
23882       # All AIX code is PIC.
23883       if test "$host_cpu" = ia64; then
23884         # AIX 5 now supports IA64 processor
23885         lt_prog_compiler_static_GCJ='-Bstatic'
23886       fi
23887       ;;
23888
23889     amigaos*)
23890       # FIXME: we need at least 68020 code to build shared libraries, but
23891       # adding the `-m68020' flag to GCC prevents building anything better,
23892       # like `-m68040'.
23893       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23894       ;;
23895
23896     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23897       # PIC is the default for these OSes.
23898       ;;
23899
23900     mingw* | pw32* | os2*)
23901       # This hack is so that the source file can tell whether it is being
23902       # built for inclusion in a dll (and should export symbols for example).
23903       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23904       ;;
23905
23906     darwin* | rhapsody*)
23907       # PIC is the default on this platform
23908       # Common symbols not allowed in MH_DYLIB files
23909       lt_prog_compiler_pic_GCJ='-fno-common'
23910       ;;
23911
23912     interix3*)
23913       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23914       # Instead, we relocate shared libraries at runtime.
23915       ;;
23916
23917     msdosdjgpp*)
23918       # Just because we use GCC doesn't mean we suddenly get shared libraries
23919       # on systems that don't support them.
23920       lt_prog_compiler_can_build_shared_GCJ=no
23921       enable_shared=no
23922       ;;
23923
23924     sysv4*MP*)
23925       if test -d /usr/nec; then
23926         lt_prog_compiler_pic_GCJ=-Kconform_pic
23927       fi
23928       ;;
23929
23930     hpux*)
23931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23932       # not for PA HP-UX.
23933       case $host_cpu in
23934       hppa*64*|ia64*)
23935         # +Z the default
23936         ;;
23937       *)
23938         lt_prog_compiler_pic_GCJ='-fPIC'
23939         ;;
23940       esac
23941       ;;
23942
23943     *)
23944       lt_prog_compiler_pic_GCJ='-fPIC'
23945       ;;
23946     esac
23947   else
23948     # PORTME Check for flag to pass linker flags through the system compiler.
23949     case $host_os in
23950     aix*)
23951       lt_prog_compiler_wl_GCJ='-Wl,'
23952       if test "$host_cpu" = ia64; then
23953         # AIX 5 now supports IA64 processor
23954         lt_prog_compiler_static_GCJ='-Bstatic'
23955       else
23956         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23957       fi
23958       ;;
23959       darwin*)
23960         # PIC is the default on this platform
23961         # Common symbols not allowed in MH_DYLIB files
23962        case $cc_basename in
23963          xlc*)
23964          lt_prog_compiler_pic_GCJ='-qnocommon'
23965          lt_prog_compiler_wl_GCJ='-Wl,'
23966          ;;
23967        esac
23968        ;;
23969
23970     mingw* | pw32* | os2*)
23971       # This hack is so that the source file can tell whether it is being
23972       # built for inclusion in a dll (and should export symbols for example).
23973       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23974       ;;
23975
23976     hpux9* | hpux10* | hpux11*)
23977       lt_prog_compiler_wl_GCJ='-Wl,'
23978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23979       # not for PA HP-UX.
23980       case $host_cpu in
23981       hppa*64*|ia64*)
23982         # +Z the default
23983         ;;
23984       *)
23985         lt_prog_compiler_pic_GCJ='+Z'
23986         ;;
23987       esac
23988       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23989       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23990       ;;
23991
23992     irix5* | irix6* | nonstopux*)
23993       lt_prog_compiler_wl_GCJ='-Wl,'
23994       # PIC (with -KPIC) is the default.
23995       lt_prog_compiler_static_GCJ='-non_shared'
23996       ;;
23997
23998     newsos6)
23999       lt_prog_compiler_pic_GCJ='-KPIC'
24000       lt_prog_compiler_static_GCJ='-Bstatic'
24001       ;;
24002
24003     linux*)
24004       case $cc_basename in
24005       icc* | ecc*)
24006         lt_prog_compiler_wl_GCJ='-Wl,'
24007         lt_prog_compiler_pic_GCJ='-KPIC'
24008         lt_prog_compiler_static_GCJ='-static'
24009         ;;
24010       pgcc* | pgf77* | pgf90* | pgf95*)
24011         # Portland Group compilers (*not* the Pentium gcc compiler,
24012         # which looks to be a dead project)
24013         lt_prog_compiler_wl_GCJ='-Wl,'
24014         lt_prog_compiler_pic_GCJ='-fpic'
24015         lt_prog_compiler_static_GCJ='-Bstatic'
24016         ;;
24017       ccc*)
24018         lt_prog_compiler_wl_GCJ='-Wl,'
24019         # All Alpha code is PIC.
24020         lt_prog_compiler_static_GCJ='-non_shared'
24021         ;;
24022       esac
24023       ;;
24024
24025     osf3* | osf4* | osf5*)
24026       lt_prog_compiler_wl_GCJ='-Wl,'
24027       # All OSF/1 code is PIC.
24028       lt_prog_compiler_static_GCJ='-non_shared'
24029       ;;
24030
24031     solaris*)
24032       lt_prog_compiler_pic_GCJ='-KPIC'
24033       lt_prog_compiler_static_GCJ='-Bstatic'
24034       case $cc_basename in
24035       f77* | f90* | f95*)
24036         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24037       *)
24038         lt_prog_compiler_wl_GCJ='-Wl,';;
24039       esac
24040       ;;
24041
24042     sunos4*)
24043       lt_prog_compiler_wl_GCJ='-Qoption ld '
24044       lt_prog_compiler_pic_GCJ='-PIC'
24045       lt_prog_compiler_static_GCJ='-Bstatic'
24046       ;;
24047
24048     sysv4 | sysv4.2uw2* | sysv4.3*)
24049       lt_prog_compiler_wl_GCJ='-Wl,'
24050       lt_prog_compiler_pic_GCJ='-KPIC'
24051       lt_prog_compiler_static_GCJ='-Bstatic'
24052       ;;
24053
24054     sysv4*MP*)
24055       if test -d /usr/nec ;then
24056         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24057         lt_prog_compiler_static_GCJ='-Bstatic'
24058       fi
24059       ;;
24060
24061     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24062       lt_prog_compiler_wl_GCJ='-Wl,'
24063       lt_prog_compiler_pic_GCJ='-KPIC'
24064       lt_prog_compiler_static_GCJ='-Bstatic'
24065       ;;
24066
24067     unicos*)
24068       lt_prog_compiler_wl_GCJ='-Wl,'
24069       lt_prog_compiler_can_build_shared_GCJ=no
24070       ;;
24071
24072     uts4*)
24073       lt_prog_compiler_pic_GCJ='-pic'
24074       lt_prog_compiler_static_GCJ='-Bstatic'
24075       ;;
24076
24077     *)
24078       lt_prog_compiler_can_build_shared_GCJ=no
24079       ;;
24080     esac
24081   fi
24082
24083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24084 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24085
24086 #
24087 # Check to make sure the PIC flag actually works.
24088 #
24089 if test -n "$lt_prog_compiler_pic_GCJ"; then
24090
24091 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24093 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24094   echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096   lt_prog_compiler_pic_works_GCJ=no
24097   ac_outfile=conftest.$ac_objext
24098    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24099    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24100    # Insert the option either (1) after the last *FLAGS variable, or
24101    # (2) before a word containing "conftest.", or (3) at the end.
24102    # Note that $ac_compile itself does not contain backslashes and begins
24103    # with a dollar sign (not a hyphen), so the echo should work correctly.
24104    # The option is referenced via a variable to avoid confusing sed.
24105    lt_compile=`echo "$ac_compile" | $SED \
24106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24108    -e 's:$: $lt_compiler_flag:'`
24109    (eval echo "\"\$as_me:24109: $lt_compile\"" >&5)
24110    (eval "$lt_compile" 2>conftest.err)
24111    ac_status=$?
24112    cat conftest.err >&5
24113    echo "$as_me:24113: \$? = $ac_status" >&5
24114    if (exit $ac_status) && test -s "$ac_outfile"; then
24115      # The compiler can only warn and ignore the option if not recognized
24116      # So say no if there are warnings other than the usual output.
24117      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24118      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24119      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24120        lt_prog_compiler_pic_works_GCJ=yes
24121      fi
24122    fi
24123    $rm conftest*
24124
24125 fi
24126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24127 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24128
24129 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24130     case $lt_prog_compiler_pic_GCJ in
24131      "" | " "*) ;;
24132      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24133      esac
24134 else
24135     lt_prog_compiler_pic_GCJ=
24136      lt_prog_compiler_can_build_shared_GCJ=no
24137 fi
24138
24139 fi
24140 case $host_os in
24141   # For platforms which do not support PIC, -DPIC is meaningless:
24142   *djgpp*)
24143     lt_prog_compiler_pic_GCJ=
24144     ;;
24145   *)
24146     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24147     ;;
24148 esac
24149
24150 #
24151 # Check to make sure the static flag actually works.
24152 #
24153 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24154 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24155 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24156 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24157   echo $ECHO_N "(cached) $ECHO_C" >&6
24158 else
24159   lt_prog_compiler_static_works_GCJ=no
24160    save_LDFLAGS="$LDFLAGS"
24161    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24162    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24163    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24164      # The linker can only warn and ignore the option if not recognized
24165      # So say no if there are warnings
24166      if test -s conftest.err; then
24167        # Append any errors to the config.log.
24168        cat conftest.err 1>&5
24169        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24170        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24171        if diff conftest.exp conftest.er2 >/dev/null; then
24172          lt_prog_compiler_static_works_GCJ=yes
24173        fi
24174      else
24175        lt_prog_compiler_static_works_GCJ=yes
24176      fi
24177    fi
24178    $rm conftest*
24179    LDFLAGS="$save_LDFLAGS"
24180
24181 fi
24182 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24183 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24184
24185 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24186     :
24187 else
24188     lt_prog_compiler_static_GCJ=
24189 fi
24190
24191
24192 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24193 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24194 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24195   echo $ECHO_N "(cached) $ECHO_C" >&6
24196 else
24197   lt_cv_prog_compiler_c_o_GCJ=no
24198    $rm -r conftest 2>/dev/null
24199    mkdir conftest
24200    cd conftest
24201    mkdir out
24202    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24203
24204    lt_compiler_flag="-o out/conftest2.$ac_objext"
24205    # Insert the option either (1) after the last *FLAGS variable, or
24206    # (2) before a word containing "conftest.", or (3) at the end.
24207    # Note that $ac_compile itself does not contain backslashes and begins
24208    # with a dollar sign (not a hyphen), so the echo should work correctly.
24209    lt_compile=`echo "$ac_compile" | $SED \
24210    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24212    -e 's:$: $lt_compiler_flag:'`
24213    (eval echo "\"\$as_me:24213: $lt_compile\"" >&5)
24214    (eval "$lt_compile" 2>out/conftest.err)
24215    ac_status=$?
24216    cat out/conftest.err >&5
24217    echo "$as_me:24217: \$? = $ac_status" >&5
24218    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24219    then
24220      # The compiler can only warn and ignore the option if not recognized
24221      # So say no if there are warnings
24222      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24223      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24224      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24225        lt_cv_prog_compiler_c_o_GCJ=yes
24226      fi
24227    fi
24228    chmod u+w . 2>&5
24229    $rm conftest*
24230    # SGI C++ compiler will create directory out/ii_files/ for
24231    # template instantiation
24232    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24233    $rm out/* && rmdir out
24234    cd ..
24235    rmdir conftest
24236    $rm conftest*
24237
24238 fi
24239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24241
24242
24243 hard_links="nottested"
24244 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24245   # do not overwrite the value of need_locks provided by the user
24246   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24248   hard_links=yes
24249   $rm conftest*
24250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24251   touch conftest.a
24252   ln conftest.a conftest.b 2>&5 || hard_links=no
24253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24254   { echo "$as_me:$LINENO: result: $hard_links" >&5
24255 echo "${ECHO_T}$hard_links" >&6; }
24256   if test "$hard_links" = no; then
24257     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24259     need_locks=warn
24260   fi
24261 else
24262   need_locks=no
24263 fi
24264
24265 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24267
24268   runpath_var=
24269   allow_undefined_flag_GCJ=
24270   enable_shared_with_static_runtimes_GCJ=no
24271   archive_cmds_GCJ=
24272   archive_expsym_cmds_GCJ=
24273   old_archive_From_new_cmds_GCJ=
24274   old_archive_from_expsyms_cmds_GCJ=
24275   export_dynamic_flag_spec_GCJ=
24276   whole_archive_flag_spec_GCJ=
24277   thread_safe_flag_spec_GCJ=
24278   hardcode_libdir_flag_spec_GCJ=
24279   hardcode_libdir_flag_spec_ld_GCJ=
24280   hardcode_libdir_separator_GCJ=
24281   hardcode_direct_GCJ=no
24282   hardcode_minus_L_GCJ=no
24283   hardcode_shlibpath_var_GCJ=unsupported
24284   link_all_deplibs_GCJ=unknown
24285   hardcode_automatic_GCJ=no
24286   module_cmds_GCJ=
24287   module_expsym_cmds_GCJ=
24288   always_export_symbols_GCJ=no
24289   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24290   # include_expsyms should be a list of space-separated symbols to be *always*
24291   # included in the symbol list
24292   include_expsyms_GCJ=
24293   # exclude_expsyms can be an extended regexp of symbols to exclude
24294   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24295   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24296   # as well as any symbol that contains `d'.
24297   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24298   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24299   # platforms (ab)use it in PIC code, but their linkers get confused if
24300   # the symbol is explicitly referenced.  Since portable code cannot
24301   # rely on this symbol name, it's probably fine to never include it in
24302   # preloaded symbol tables.
24303   extract_expsyms_cmds=
24304   # Just being paranoid about ensuring that cc_basename is set.
24305   for cc_temp in $compiler""; do
24306   case $cc_temp in
24307     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24308     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24309     \-*) ;;
24310     *) break;;
24311   esac
24312 done
24313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24314
24315   case $host_os in
24316   cygwin* | mingw* | pw32*)
24317     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24318     # When not using gcc, we currently assume that we are using
24319     # Microsoft Visual C++.
24320     if test "$GCC" != yes; then
24321       with_gnu_ld=no
24322     fi
24323     ;;
24324   interix*)
24325     # we just hope/assume this is gcc and not c89 (= MSVC++)
24326     with_gnu_ld=yes
24327     ;;
24328   openbsd*)
24329     with_gnu_ld=no
24330     ;;
24331   esac
24332
24333   ld_shlibs_GCJ=yes
24334   if test "$with_gnu_ld" = yes; then
24335     # If archive_cmds runs LD, not CC, wlarc should be empty
24336     wlarc='${wl}'
24337
24338     # Set some defaults for GNU ld with shared library support. These
24339     # are reset later if shared libraries are not supported. Putting them
24340     # here allows them to be overridden if necessary.
24341     runpath_var=LD_RUN_PATH
24342     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24343     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24344     # ancient GNU ld didn't support --whole-archive et. al.
24345     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24346         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24347       else
24348         whole_archive_flag_spec_GCJ=
24349     fi
24350     supports_anon_versioning=no
24351     case `$LD -v 2>/dev/null` in
24352       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24353       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24354       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24355       *\ 2.11.*) ;; # other 2.11 versions
24356       *) supports_anon_versioning=yes ;;
24357     esac
24358
24359     # See if GNU ld supports shared libraries.
24360     case $host_os in
24361     aix3* | aix4* | aix5*)
24362       # On AIX/PPC, the GNU linker is very broken
24363       if test "$host_cpu" != ia64; then
24364         ld_shlibs_GCJ=no
24365         cat <<EOF 1>&2
24366
24367 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24368 *** to be unable to reliably create shared libraries on AIX.
24369 *** Therefore, libtool is disabling shared libraries support.  If you
24370 *** really care for shared libraries, you may want to modify your PATH
24371 *** so that a non-GNU linker is found, and then restart.
24372
24373 EOF
24374       fi
24375       ;;
24376
24377     amigaos*)
24378       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)'
24379       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24380       hardcode_minus_L_GCJ=yes
24381
24382       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24383       # that the semantics of dynamic libraries on AmigaOS, at least up
24384       # to version 4, is to share data among multiple programs linked
24385       # with the same dynamic library.  Since this doesn't match the
24386       # behavior of shared libraries on other platforms, we can't use
24387       # them.
24388       ld_shlibs_GCJ=no
24389       ;;
24390
24391     beos*)
24392       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393         allow_undefined_flag_GCJ=unsupported
24394         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24395         # support --undefined.  This deserves some investigation.  FIXME
24396         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397       else
24398         ld_shlibs_GCJ=no
24399       fi
24400       ;;
24401
24402     cygwin* | mingw* | pw32*)
24403       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24404       # as there is no search path for DLLs.
24405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24406       allow_undefined_flag_GCJ=unsupported
24407       always_export_symbols_GCJ=no
24408       enable_shared_with_static_runtimes_GCJ=yes
24409       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24410
24411       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24412         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24413         # If the export-symbols file already is a .def file (1st line
24414         # is EXPORTS), use it as is; otherwise, prepend...
24415         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24416           cp $export_symbols $output_objdir/$soname.def;
24417         else
24418           echo EXPORTS > $output_objdir/$soname.def;
24419           cat $export_symbols >> $output_objdir/$soname.def;
24420         fi~
24421         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24422       else
24423         ld_shlibs_GCJ=no
24424       fi
24425       ;;
24426
24427     interix3*)
24428       hardcode_direct_GCJ=no
24429       hardcode_shlibpath_var_GCJ=no
24430       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24431       export_dynamic_flag_spec_GCJ='${wl}-E'
24432       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24433       # Instead, shared libraries are loaded at an image base (0x10000000 by
24434       # default) and relocated if they conflict, which is a slow very memory
24435       # consuming and fragmenting process.  To avoid this, we pick a random,
24436       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24437       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24438       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'
24439       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'
24440       ;;
24441
24442     linux*)
24443       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444         tmp_addflag=
24445         case $cc_basename,$host_cpu in
24446         pgcc*)                          # Portland Group C compiler
24447           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'
24448           tmp_addflag=' $pic_flag'
24449           ;;
24450         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24451           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'
24452           tmp_addflag=' $pic_flag -Mnomain' ;;
24453         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24454           tmp_addflag=' -i_dynamic' ;;
24455         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24456           tmp_addflag=' -i_dynamic -nofor_main' ;;
24457         ifc* | ifort*)                  # Intel Fortran compiler
24458           tmp_addflag=' -nofor_main' ;;
24459         esac
24460         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24461
24462         if test $supports_anon_versioning = yes; then
24463           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24464   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24465   $echo "local: *; };" >> $output_objdir/$libname.ver~
24466           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24467         fi
24468       else
24469         ld_shlibs_GCJ=no
24470       fi
24471       ;;
24472
24473     netbsd*)
24474       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24475         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24476         wlarc=
24477       else
24478         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24480       fi
24481       ;;
24482
24483     solaris*)
24484       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24485         ld_shlibs_GCJ=no
24486         cat <<EOF 1>&2
24487
24488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24489 *** create shared libraries on Solaris systems.  Therefore, libtool
24490 *** is disabling shared libraries support.  We urge you to upgrade GNU
24491 *** binutils to release 2.9.1 or newer.  Another option is to modify
24492 *** your PATH or compiler configuration so that the native linker is
24493 *** used, and then restart.
24494
24495 EOF
24496       elif $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
24504     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24505       case `$LD -v 2>&1` in
24506         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24507         ld_shlibs_GCJ=no
24508         cat <<_LT_EOF 1>&2
24509
24510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24511 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24512 *** is disabling shared libraries support.  We urge you to upgrade GNU
24513 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24514 *** your PATH or compiler configuration so that the native linker is
24515 *** used, and then restart.
24516
24517 _LT_EOF
24518         ;;
24519         *)
24520           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24521             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24522             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24523             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24524           else
24525             ld_shlibs_GCJ=no
24526           fi
24527         ;;
24528       esac
24529       ;;
24530
24531     sunos4*)
24532       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24533       wlarc=
24534       hardcode_direct_GCJ=yes
24535       hardcode_shlibpath_var_GCJ=no
24536       ;;
24537
24538     *)
24539       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24540         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24541         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24542       else
24543         ld_shlibs_GCJ=no
24544       fi
24545       ;;
24546     esac
24547
24548     if test "$ld_shlibs_GCJ" = no; then
24549       runpath_var=
24550       hardcode_libdir_flag_spec_GCJ=
24551       export_dynamic_flag_spec_GCJ=
24552       whole_archive_flag_spec_GCJ=
24553     fi
24554   else
24555     # PORTME fill in a description of your system's linker (not GNU ld)
24556     case $host_os in
24557     aix3*)
24558       allow_undefined_flag_GCJ=unsupported
24559       always_export_symbols_GCJ=yes
24560       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'
24561       # Note: this linker hardcodes the directories in LIBPATH if there
24562       # are no directories specified by -L.
24563       hardcode_minus_L_GCJ=yes
24564       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24565         # Neither direct hardcoding nor static linking is supported with a
24566         # broken collect2.
24567         hardcode_direct_GCJ=unsupported
24568       fi
24569       ;;
24570
24571     aix4* | aix5*)
24572       if test "$host_cpu" = ia64; then
24573         # On IA64, the linker does run time linking by default, so we don't
24574         # have to do anything special.
24575         aix_use_runtimelinking=no
24576         exp_sym_flag='-Bexport'
24577         no_entry_flag=""
24578       else
24579         # If we're using GNU nm, then we don't want the "-C" option.
24580         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24581         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24582           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'
24583         else
24584           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'
24585         fi
24586         aix_use_runtimelinking=no
24587
24588         # Test if we are trying to use run time linking or normal
24589         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24590         # need to do runtime linking.
24591         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24592           for ld_flag in $LDFLAGS; do
24593           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24594             aix_use_runtimelinking=yes
24595             break
24596           fi
24597           done
24598           ;;
24599         esac
24600
24601         exp_sym_flag='-bexport'
24602         no_entry_flag='-bnoentry'
24603       fi
24604
24605       # When large executables or shared objects are built, AIX ld can
24606       # have problems creating the table of contents.  If linking a library
24607       # or program results in "error TOC overflow" add -mminimal-toc to
24608       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24609       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24610
24611       archive_cmds_GCJ=''
24612       hardcode_direct_GCJ=yes
24613       hardcode_libdir_separator_GCJ=':'
24614       link_all_deplibs_GCJ=yes
24615
24616       if test "$GCC" = yes; then
24617         case $host_os in aix4.[012]|aix4.[012].*)
24618         # We only want to do this on AIX 4.2 and lower, the check
24619         # below for broken collect2 doesn't work under 4.3+
24620           collect2name=`${CC} -print-prog-name=collect2`
24621           if test -f "$collect2name" && \
24622            strings "$collect2name" | grep resolve_lib_name >/dev/null
24623           then
24624           # We have reworked collect2
24625           hardcode_direct_GCJ=yes
24626           else
24627           # We have old collect2
24628           hardcode_direct_GCJ=unsupported
24629           # It fails to find uninstalled libraries when the uninstalled
24630           # path is not listed in the libpath.  Setting hardcode_minus_L
24631           # to unsupported forces relinking
24632           hardcode_minus_L_GCJ=yes
24633           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634           hardcode_libdir_separator_GCJ=
24635           fi
24636           ;;
24637         esac
24638         shared_flag='-shared'
24639         if test "$aix_use_runtimelinking" = yes; then
24640           shared_flag="$shared_flag "'${wl}-G'
24641         fi
24642       else
24643         # not using gcc
24644         if test "$host_cpu" = ia64; then
24645         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24646         # chokes on -Wl,-G. The following line is correct:
24647           shared_flag='-G'
24648         else
24649           if test "$aix_use_runtimelinking" = yes; then
24650             shared_flag='${wl}-G'
24651           else
24652             shared_flag='${wl}-bM:SRE'
24653           fi
24654         fi
24655       fi
24656
24657       # It seems that -bexpall does not export symbols beginning with
24658       # underscore (_), so it is better to generate a list of symbols to export.
24659       always_export_symbols_GCJ=yes
24660       if test "$aix_use_runtimelinking" = yes; then
24661         # Warning - without using the other runtime loading flags (-brtl),
24662         # -berok will link without error, but may produce a broken library.
24663         allow_undefined_flag_GCJ='-berok'
24664        # Determine the default libpath from the value encoded in an empty executable.
24665        cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h.  */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h.  */
24671
24672 int
24673 main ()
24674 {
24675
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 rm -f conftest.$ac_objext conftest$ac_exeext
24681 if { (ac_try="$ac_link"
24682 case "(($ac_try" in
24683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684   *) ac_try_echo=$ac_try;;
24685 esac
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687   (eval "$ac_link") 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } &&
24694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24695   { (case "(($ac_try" in
24696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697   *) ac_try_echo=$ac_try;;
24698 esac
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700   (eval "$ac_try") 2>&5
24701   ac_status=$?
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); }; } &&
24704          { ac_try='test -s conftest$ac_exeext'
24705   { (case "(($ac_try" in
24706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707   *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710   (eval "$ac_try") 2>&5
24711   ac_status=$?
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); }; }; then
24714
24715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24716 }'`
24717 # Check for a 64-bit object if we didn't find anything.
24718 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; }
24719 }'`; fi
24720 else
24721   echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24723
24724
24725 fi
24726
24727 rm -f core conftest.err conftest.$ac_objext \
24728       conftest$ac_exeext conftest.$ac_ext
24729 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24730
24731        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24732         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"
24733        else
24734         if test "$host_cpu" = ia64; then
24735           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24736           allow_undefined_flag_GCJ="-z nodefs"
24737           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"
24738         else
24739          # Determine the default libpath from the value encoded in an empty executable.
24740          cat >conftest.$ac_ext <<_ACEOF
24741 /* confdefs.h.  */
24742 _ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h.  */
24746
24747 int
24748 main ()
24749 {
24750
24751   ;
24752   return 0;
24753 }
24754 _ACEOF
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (ac_try="$ac_link"
24757 case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_link") 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } &&
24769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24770   { (case "(($ac_try" in
24771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772   *) ac_try_echo=$ac_try;;
24773 esac
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775   (eval "$ac_try") 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; } &&
24779          { ac_try='test -s conftest$ac_exeext'
24780   { (case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_try") 2>&5
24786   ac_status=$?
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); }; }; then
24789
24790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24791 }'`
24792 # Check for a 64-bit object if we didn't find anything.
24793 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; }
24794 }'`; fi
24795 else
24796   echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext \
24803       conftest$ac_exeext conftest.$ac_ext
24804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24805
24806          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24807           # Warning - without using the other run time loading flags,
24808           # -berok will link without error, but may produce a broken library.
24809           no_undefined_flag_GCJ=' ${wl}-bernotok'
24810           allow_undefined_flag_GCJ=' ${wl}-berok'
24811           # Exported symbols can be pulled into shared objects from archives
24812           whole_archive_flag_spec_GCJ='$convenience'
24813           archive_cmds_need_lc_GCJ=yes
24814           # This is similar to how AIX traditionally builds its shared libraries.
24815           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'
24816         fi
24817       fi
24818       ;;
24819
24820     amigaos*)
24821       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)'
24822       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823       hardcode_minus_L_GCJ=yes
24824       # see comment about different semantics on the GNU ld section
24825       ld_shlibs_GCJ=no
24826       ;;
24827
24828     bsdi[45]*)
24829       export_dynamic_flag_spec_GCJ=-rdynamic
24830       ;;
24831
24832     cygwin* | mingw* | pw32*)
24833       # When not using gcc, we currently assume that we are using
24834       # Microsoft Visual C++.
24835       # hardcode_libdir_flag_spec is actually meaningless, as there is
24836       # no search path for DLLs.
24837       hardcode_libdir_flag_spec_GCJ=' '
24838       allow_undefined_flag_GCJ=unsupported
24839       # Tell ltmain to make .lib files, not .a files.
24840       libext=lib
24841       # Tell ltmain to make .dll files, not .so files.
24842       shrext_cmds=".dll"
24843       # FIXME: Setting linknames here is a bad hack.
24844       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24845       # The linker will automatically build a .lib file if we build a DLL.
24846       old_archive_From_new_cmds_GCJ='true'
24847       # FIXME: Should let the user specify the lib program.
24848       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24849       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24850       enable_shared_with_static_runtimes_GCJ=yes
24851       ;;
24852
24853     darwin* | rhapsody*)
24854       case $host_os in
24855         rhapsody* | darwin1.[012])
24856          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24857          ;;
24858        *) # Darwin 1.3 on
24859          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24860            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24861          else
24862            case ${MACOSX_DEPLOYMENT_TARGET} in
24863              10.[012])
24864                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24865                ;;
24866              10.*)
24867                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24868                ;;
24869            esac
24870          fi
24871          ;;
24872       esac
24873       archive_cmds_need_lc_GCJ=no
24874       hardcode_direct_GCJ=no
24875       hardcode_automatic_GCJ=yes
24876       hardcode_shlibpath_var_GCJ=unsupported
24877       whole_archive_flag_spec_GCJ=''
24878       link_all_deplibs_GCJ=yes
24879     if test "$GCC" = yes ; then
24880         output_verbose_link_cmd='echo'
24881         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24882       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24883       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24884       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}'
24885       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}'
24886     else
24887       case $cc_basename in
24888         xlc*)
24889          output_verbose_link_cmd='echo'
24890          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24891          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24892           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24893          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}'
24894           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}'
24895           ;;
24896        *)
24897          ld_shlibs_GCJ=no
24898           ;;
24899       esac
24900     fi
24901       ;;
24902
24903     dgux*)
24904       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24905       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906       hardcode_shlibpath_var_GCJ=no
24907       ;;
24908
24909     freebsd1*)
24910       ld_shlibs_GCJ=no
24911       ;;
24912
24913     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24914     # support.  Future versions do this automatically, but an explicit c++rt0.o
24915     # does not break anything, and helps significantly (at the cost of a little
24916     # extra space).
24917     freebsd2.2*)
24918       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24919       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24920       hardcode_direct_GCJ=yes
24921       hardcode_shlibpath_var_GCJ=no
24922       ;;
24923
24924     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24925     freebsd2*)
24926       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24927       hardcode_direct_GCJ=yes
24928       hardcode_minus_L_GCJ=yes
24929       hardcode_shlibpath_var_GCJ=no
24930       ;;
24931
24932     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24933     freebsd* | kfreebsd*-gnu | dragonfly*)
24934       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24935       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24936       hardcode_direct_GCJ=yes
24937       hardcode_shlibpath_var_GCJ=no
24938       ;;
24939
24940     hpux9*)
24941       if test "$GCC" = yes; then
24942         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'
24943       else
24944         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'
24945       fi
24946       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24947       hardcode_libdir_separator_GCJ=:
24948       hardcode_direct_GCJ=yes
24949
24950       # hardcode_minus_L: Not really in the search PATH,
24951       # but as the default location of the library.
24952       hardcode_minus_L_GCJ=yes
24953       export_dynamic_flag_spec_GCJ='${wl}-E'
24954       ;;
24955
24956     hpux10*)
24957       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24958         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24959       else
24960         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24961       fi
24962       if test "$with_gnu_ld" = no; then
24963         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24964         hardcode_libdir_separator_GCJ=:
24965
24966         hardcode_direct_GCJ=yes
24967         export_dynamic_flag_spec_GCJ='${wl}-E'
24968
24969         # hardcode_minus_L: Not really in the search PATH,
24970         # but as the default location of the library.
24971         hardcode_minus_L_GCJ=yes
24972       fi
24973       ;;
24974
24975     hpux11*)
24976       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24977         case $host_cpu in
24978         hppa*64*)
24979           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24980           ;;
24981         ia64*)
24982           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24983           ;;
24984         *)
24985           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24986           ;;
24987         esac
24988       else
24989         case $host_cpu in
24990         hppa*64*)
24991           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24992           ;;
24993         ia64*)
24994           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24995           ;;
24996         *)
24997           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24998           ;;
24999         esac
25000       fi
25001       if test "$with_gnu_ld" = no; then
25002         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25003         hardcode_libdir_separator_GCJ=:
25004
25005         case $host_cpu in
25006         hppa*64*|ia64*)
25007           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25008           hardcode_direct_GCJ=no
25009           hardcode_shlibpath_var_GCJ=no
25010           ;;
25011         *)
25012           hardcode_direct_GCJ=yes
25013           export_dynamic_flag_spec_GCJ='${wl}-E'
25014
25015           # hardcode_minus_L: Not really in the search PATH,
25016           # but as the default location of the library.
25017           hardcode_minus_L_GCJ=yes
25018           ;;
25019         esac
25020       fi
25021       ;;
25022
25023     irix5* | irix6* | nonstopux*)
25024       if test "$GCC" = yes; then
25025         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'
25026       else
25027         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'
25028         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25029       fi
25030       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031       hardcode_libdir_separator_GCJ=:
25032       link_all_deplibs_GCJ=yes
25033       ;;
25034
25035     netbsd*)
25036       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25037         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25038       else
25039         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25040       fi
25041       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042       hardcode_direct_GCJ=yes
25043       hardcode_shlibpath_var_GCJ=no
25044       ;;
25045
25046     newsos6)
25047       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048       hardcode_direct_GCJ=yes
25049       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050       hardcode_libdir_separator_GCJ=:
25051       hardcode_shlibpath_var_GCJ=no
25052       ;;
25053
25054     openbsd*)
25055       hardcode_direct_GCJ=yes
25056       hardcode_shlibpath_var_GCJ=no
25057       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25058         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25059         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25060         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25061         export_dynamic_flag_spec_GCJ='${wl}-E'
25062       else
25063        case $host_os in
25064          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25065            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25066            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25067            ;;
25068          *)
25069            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25070            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25071            ;;
25072        esac
25073       fi
25074       ;;
25075
25076     os2*)
25077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078       hardcode_minus_L_GCJ=yes
25079       allow_undefined_flag_GCJ=unsupported
25080       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'
25081       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25082       ;;
25083
25084     osf3*)
25085       if test "$GCC" = yes; then
25086         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25087         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'
25088       else
25089         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25090         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'
25091       fi
25092       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25093       hardcode_libdir_separator_GCJ=:
25094       ;;
25095
25096     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25097       if test "$GCC" = yes; then
25098         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25099         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'
25100         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25101       else
25102         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25103         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'
25104         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~
25105         $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'
25106
25107         # Both c and cxx compiler support -rpath directly
25108         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25109       fi
25110       hardcode_libdir_separator_GCJ=:
25111       ;;
25112
25113     solaris*)
25114       no_undefined_flag_GCJ=' -z text'
25115       if test "$GCC" = yes; then
25116         wlarc='${wl}'
25117         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25118         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25119           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25120       else
25121         wlarc=''
25122         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25123         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25124         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25125       fi
25126       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127       hardcode_shlibpath_var_GCJ=no
25128       case $host_os in
25129       solaris2.[0-5] | solaris2.[0-5].*) ;;
25130       *)
25131         # The compiler driver will combine linker options so we
25132         # cannot just pass the convience library names through
25133         # without $wl, iff we do not link with $LD.
25134         # Luckily, gcc supports the same syntax we need for Sun Studio.
25135         # Supported since Solaris 2.6 (maybe 2.5.1?)
25136         case $wlarc in
25137         '')
25138           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25139         *)
25140           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' ;;
25141         esac ;;
25142       esac
25143       link_all_deplibs_GCJ=yes
25144       ;;
25145
25146     sunos4*)
25147       if test "x$host_vendor" = xsequent; then
25148         # Use $CC to link under sequent, because it throws in some extra .o
25149         # files that make .init and .fini sections work.
25150         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25151       else
25152         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25153       fi
25154       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155       hardcode_direct_GCJ=yes
25156       hardcode_minus_L_GCJ=yes
25157       hardcode_shlibpath_var_GCJ=no
25158       ;;
25159
25160     sysv4)
25161       case $host_vendor in
25162         sni)
25163           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164           hardcode_direct_GCJ=yes # is this really true???
25165         ;;
25166         siemens)
25167           ## LD is ld it makes a PLAMLIB
25168           ## CC just makes a GrossModule.
25169           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25170           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25171           hardcode_direct_GCJ=no
25172         ;;
25173         motorola)
25174           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25175           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25176         ;;
25177       esac
25178       runpath_var='LD_RUN_PATH'
25179       hardcode_shlibpath_var_GCJ=no
25180       ;;
25181
25182     sysv4.3*)
25183       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25184       hardcode_shlibpath_var_GCJ=no
25185       export_dynamic_flag_spec_GCJ='-Bexport'
25186       ;;
25187
25188     sysv4*MP*)
25189       if test -d /usr/nec; then
25190         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25191         hardcode_shlibpath_var_GCJ=no
25192         runpath_var=LD_RUN_PATH
25193         hardcode_runpath_var=yes
25194         ld_shlibs_GCJ=yes
25195       fi
25196       ;;
25197
25198     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25199       no_undefined_flag_GCJ='${wl}-z,text'
25200       archive_cmds_need_lc_GCJ=no
25201       hardcode_shlibpath_var_GCJ=no
25202       runpath_var='LD_RUN_PATH'
25203
25204       if test "$GCC" = yes; then
25205         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25206         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25207       else
25208         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25209         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25210       fi
25211       ;;
25212
25213     sysv5* | sco3.2v5* | sco5v6*)
25214       # Note: We can NOT use -z defs as we might desire, because we do not
25215       # link with -lc, and that would cause any symbols used from libc to
25216       # always be unresolved, which means just about no library would
25217       # ever link correctly.  If we're not using GNU ld we use -z text
25218       # though, which does catch some bad symbols but isn't as heavy-handed
25219       # as -z defs.
25220       no_undefined_flag_GCJ='${wl}-z,text'
25221       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25222       archive_cmds_need_lc_GCJ=no
25223       hardcode_shlibpath_var_GCJ=no
25224       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25225       hardcode_libdir_separator_GCJ=':'
25226       link_all_deplibs_GCJ=yes
25227       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25228       runpath_var='LD_RUN_PATH'
25229
25230       if test "$GCC" = yes; then
25231         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25232         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25233       else
25234         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25235         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25236       fi
25237       ;;
25238
25239     uts4*)
25240       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25241       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25242       hardcode_shlibpath_var_GCJ=no
25243       ;;
25244
25245     *)
25246       ld_shlibs_GCJ=no
25247       ;;
25248     esac
25249   fi
25250
25251 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25252 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25253 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25254
25255 #
25256 # Do we need to explicitly link libc?
25257 #
25258 case "x$archive_cmds_need_lc_GCJ" in
25259 x|xyes)
25260   # Assume -lc should be added
25261   archive_cmds_need_lc_GCJ=yes
25262
25263   if test "$enable_shared" = yes && test "$GCC" = yes; then
25264     case $archive_cmds_GCJ in
25265     *'~'*)
25266       # FIXME: we may have to deal with multi-command sequences.
25267       ;;
25268     '$CC '*)
25269       # Test whether the compiler implicitly links with -lc since on some
25270       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25271       # to ld, don't add -lc before -lgcc.
25272       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25274       $rm conftest*
25275       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25276
25277       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278   (eval $ac_compile) 2>&5
25279   ac_status=$?
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } 2>conftest.err; then
25282         soname=conftest
25283         lib=conftest
25284         libobjs=conftest.$ac_objext
25285         deplibs=
25286         wl=$lt_prog_compiler_wl_GCJ
25287         pic_flag=$lt_prog_compiler_pic_GCJ
25288         compiler_flags=-v
25289         linker_flags=-v
25290         verstring=
25291         output_objdir=.
25292         libname=conftest
25293         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25294         allow_undefined_flag_GCJ=
25295         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25296   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }
25300         then
25301           archive_cmds_need_lc_GCJ=no
25302         else
25303           archive_cmds_need_lc_GCJ=yes
25304         fi
25305         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25306       else
25307         cat conftest.err 1>&5
25308       fi
25309       $rm conftest*
25310       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25311 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25312       ;;
25313     esac
25314   fi
25315   ;;
25316 esac
25317
25318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25320 library_names_spec=
25321 libname_spec='lib$name'
25322 soname_spec=
25323 shrext_cmds=".so"
25324 postinstall_cmds=
25325 postuninstall_cmds=
25326 finish_cmds=
25327 finish_eval=
25328 shlibpath_var=
25329 shlibpath_overrides_runpath=unknown
25330 version_type=none
25331 dynamic_linker="$host_os ld.so"
25332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25333 if test "$GCC" = yes; then
25334   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25335   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25336     # if the path contains ";" then we assume it to be the separator
25337     # otherwise default to the standard path separator (i.e. ":") - it is
25338     # assumed that no part of a normal pathname contains ";" but that should
25339     # okay in the real world where ";" in dirpaths is itself problematic.
25340     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25341   else
25342     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25343   fi
25344 else
25345   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25346 fi
25347 need_lib_prefix=unknown
25348 hardcode_into_libs=no
25349
25350 # when you set need_version to no, make sure it does not cause -set_version
25351 # flags to be left without arguments
25352 need_version=unknown
25353
25354 case $host_os in
25355 aix3*)
25356   version_type=linux
25357   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25358   shlibpath_var=LIBPATH
25359
25360   # AIX 3 has no versioning support, so we append a major version to the name.
25361   soname_spec='${libname}${release}${shared_ext}$major'
25362   ;;
25363
25364 aix4* | aix5*)
25365   version_type=linux
25366   need_lib_prefix=no
25367   need_version=no
25368   hardcode_into_libs=yes
25369   if test "$host_cpu" = ia64; then
25370     # AIX 5 supports IA64
25371     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25372     shlibpath_var=LD_LIBRARY_PATH
25373   else
25374     # With GCC up to 2.95.x, collect2 would create an import file
25375     # for dependence libraries.  The import file would start with
25376     # the line `#! .'.  This would cause the generated library to
25377     # depend on `.', always an invalid library.  This was fixed in
25378     # development snapshots of GCC prior to 3.0.
25379     case $host_os in
25380       aix4 | aix4.[01] | aix4.[01].*)
25381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25382            echo ' yes '
25383            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25384         :
25385       else
25386         can_build_shared=no
25387       fi
25388       ;;
25389     esac
25390     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25391     # soname into executable. Probably we can add versioning support to
25392     # collect2, so additional links can be useful in future.
25393     if test "$aix_use_runtimelinking" = yes; then
25394       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25395       # instead of lib<name>.a to let people know that these are not
25396       # typical AIX shared libraries.
25397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25398     else
25399       # We preserve .a as extension for shared libraries through AIX4.2
25400       # and later when we are not doing run time linking.
25401       library_names_spec='${libname}${release}.a $libname.a'
25402       soname_spec='${libname}${release}${shared_ext}$major'
25403     fi
25404     shlibpath_var=LIBPATH
25405   fi
25406   ;;
25407
25408 amigaos*)
25409   library_names_spec='$libname.ixlibrary $libname.a'
25410   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25411   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'
25412   ;;
25413
25414 beos*)
25415   library_names_spec='${libname}${shared_ext}'
25416   dynamic_linker="$host_os ld.so"
25417   shlibpath_var=LIBRARY_PATH
25418   ;;
25419
25420 bsdi[45]*)
25421   version_type=linux
25422   need_version=no
25423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25424   soname_spec='${libname}${release}${shared_ext}$major'
25425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25426   shlibpath_var=LD_LIBRARY_PATH
25427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25429   # the default ld.so.conf also contains /usr/contrib/lib and
25430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25431   # libtool to hard-code these into programs
25432   ;;
25433
25434 cygwin* | mingw* | pw32*)
25435   version_type=windows
25436   shrext_cmds=".dll"
25437   need_version=no
25438   need_lib_prefix=no
25439
25440   case $GCC,$host_os in
25441   yes,cygwin* | yes,mingw* | yes,pw32*)
25442     library_names_spec='$libname.dll.a'
25443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25444     postinstall_cmds='base_file=`basename \${file}`~
25445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25446       dldir=$destdir/`dirname \$dlpath`~
25447       test -d \$dldir || mkdir -p \$dldir~
25448       $install_prog $dir/$dlname \$dldir/$dlname~
25449       chmod a+x \$dldir/$dlname'
25450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25451       dlpath=$dir/\$dldll~
25452        $rm \$dlpath'
25453     shlibpath_overrides_runpath=yes
25454
25455     case $host_os in
25456     cygwin*)
25457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25459       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25460       ;;
25461     mingw*)
25462       # MinGW DLLs use traditional 'lib' prefix
25463       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25464       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25465       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25466         # It is most probably a Windows format PATH printed by
25467         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25468         # path with ; separators, and with drive letters. We can handle the
25469         # drive letters (cygwin fileutils understands them), so leave them,
25470         # especially as we might pass files found there to a mingw objdump,
25471         # which wouldn't understand a cygwinified path. Ahh.
25472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25473       else
25474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25475       fi
25476       ;;
25477     pw32*)
25478       # pw32 DLLs use 'pw' prefix rather than 'lib'
25479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25480       ;;
25481     esac
25482     ;;
25483
25484   *)
25485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25486     ;;
25487   esac
25488   dynamic_linker='Win32 ld.exe'
25489   # FIXME: first we should search . and the directory the executable is in
25490   shlibpath_var=PATH
25491   ;;
25492
25493 darwin* | rhapsody*)
25494   dynamic_linker="$host_os dyld"
25495   version_type=darwin
25496   need_lib_prefix=no
25497   need_version=no
25498   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25499   soname_spec='${libname}${release}${major}$shared_ext'
25500   shlibpath_overrides_runpath=yes
25501   shlibpath_var=DYLD_LIBRARY_PATH
25502   shrext_cmds='.dylib'
25503   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25504   if test "$GCC" = yes; then
25505     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"`
25506   else
25507     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25508   fi
25509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25510   ;;
25511
25512 dgux*)
25513   version_type=linux
25514   need_lib_prefix=no
25515   need_version=no
25516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25517   soname_spec='${libname}${release}${shared_ext}$major'
25518   shlibpath_var=LD_LIBRARY_PATH
25519   ;;
25520
25521 freebsd1*)
25522   dynamic_linker=no
25523   ;;
25524
25525 kfreebsd*-gnu)
25526   version_type=linux
25527   need_lib_prefix=no
25528   need_version=no
25529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530   soname_spec='${libname}${release}${shared_ext}$major'
25531   shlibpath_var=LD_LIBRARY_PATH
25532   shlibpath_overrides_runpath=no
25533   hardcode_into_libs=yes
25534   dynamic_linker='GNU ld.so'
25535   ;;
25536
25537 freebsd* | dragonfly*)
25538   # DragonFly does not have aout.  When/if they implement a new
25539   # versioning mechanism, adjust this.
25540   if test -x /usr/bin/objformat; then
25541     objformat=`/usr/bin/objformat`
25542   else
25543     case $host_os in
25544     freebsd[123]*) objformat=aout ;;
25545     *) objformat=elf ;;
25546     esac
25547   fi
25548   version_type=freebsd-$objformat
25549   case $version_type in
25550     freebsd-elf*)
25551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25552       need_version=no
25553       need_lib_prefix=no
25554       ;;
25555     freebsd-*)
25556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25557       need_version=yes
25558       ;;
25559   esac
25560   shlibpath_var=LD_LIBRARY_PATH
25561   case $host_os in
25562   freebsd2*)
25563     shlibpath_overrides_runpath=yes
25564     ;;
25565   freebsd3.[01]* | freebsdelf3.[01]*)
25566     shlibpath_overrides_runpath=yes
25567     hardcode_into_libs=yes
25568     ;;
25569   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25570   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25571     shlibpath_overrides_runpath=no
25572     hardcode_into_libs=yes
25573     ;;
25574   freebsd*) # from 4.6 on
25575     shlibpath_overrides_runpath=yes
25576     hardcode_into_libs=yes
25577     ;;
25578   esac
25579   ;;
25580
25581 gnu*)
25582   version_type=linux
25583   need_lib_prefix=no
25584   need_version=no
25585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25586   soname_spec='${libname}${release}${shared_ext}$major'
25587   shlibpath_var=LD_LIBRARY_PATH
25588   hardcode_into_libs=yes
25589   ;;
25590
25591 hpux9* | hpux10* | hpux11*)
25592   # Give a soname corresponding to the major version so that dld.sl refuses to
25593   # link against other versions.
25594   version_type=sunos
25595   need_lib_prefix=no
25596   need_version=no
25597   case $host_cpu in
25598   ia64*)
25599     shrext_cmds='.so'
25600     hardcode_into_libs=yes
25601     dynamic_linker="$host_os dld.so"
25602     shlibpath_var=LD_LIBRARY_PATH
25603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25605     soname_spec='${libname}${release}${shared_ext}$major'
25606     if test "X$HPUX_IA64_MODE" = X32; then
25607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25608     else
25609       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25610     fi
25611     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25612     ;;
25613    hppa*64*)
25614      shrext_cmds='.sl'
25615      hardcode_into_libs=yes
25616      dynamic_linker="$host_os dld.sl"
25617      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25618      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620      soname_spec='${libname}${release}${shared_ext}$major'
25621      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25622      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25623      ;;
25624    *)
25625     shrext_cmds='.sl'
25626     dynamic_linker="$host_os dld.sl"
25627     shlibpath_var=SHLIB_PATH
25628     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25630     soname_spec='${libname}${release}${shared_ext}$major'
25631     ;;
25632   esac
25633   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25634   postinstall_cmds='chmod 555 $lib'
25635   ;;
25636
25637 interix3*)
25638   version_type=linux
25639   need_lib_prefix=no
25640   need_version=no
25641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642   soname_spec='${libname}${release}${shared_ext}$major'
25643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25644   shlibpath_var=LD_LIBRARY_PATH
25645   shlibpath_overrides_runpath=no
25646   hardcode_into_libs=yes
25647   ;;
25648
25649 irix5* | irix6* | nonstopux*)
25650   case $host_os in
25651     nonstopux*) version_type=nonstopux ;;
25652     *)
25653         if test "$lt_cv_prog_gnu_ld" = yes; then
25654                 version_type=linux
25655         else
25656                 version_type=irix
25657         fi ;;
25658   esac
25659   need_lib_prefix=no
25660   need_version=no
25661   soname_spec='${libname}${release}${shared_ext}$major'
25662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25663   case $host_os in
25664   irix5* | nonstopux*)
25665     libsuff= shlibsuff=
25666     ;;
25667   *)
25668     case $LD in # libtool.m4 will add one of these switches to LD
25669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25670       libsuff= shlibsuff= libmagic=32-bit;;
25671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25672       libsuff=32 shlibsuff=N32 libmagic=N32;;
25673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25675     *) libsuff= shlibsuff= libmagic=never-match;;
25676     esac
25677     ;;
25678   esac
25679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25680   shlibpath_overrides_runpath=no
25681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25683   hardcode_into_libs=yes
25684   ;;
25685
25686 # No shared lib support for Linux oldld, aout, or coff.
25687 linux*oldld* | linux*aout* | linux*coff*)
25688   dynamic_linker=no
25689   ;;
25690
25691 # This must be Linux ELF.
25692 linux*)
25693   version_type=linux
25694   need_lib_prefix=no
25695   need_version=no
25696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697   soname_spec='${libname}${release}${shared_ext}$major'
25698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25699   shlibpath_var=LD_LIBRARY_PATH
25700   shlibpath_overrides_runpath=no
25701   # This implies no fast_install, which is unacceptable.
25702   # Some rework will be needed to allow for fast_install
25703   # before this can be enabled.
25704   hardcode_into_libs=yes
25705
25706   # Append ld.so.conf contents to the search path
25707   if test -f /etc/ld.so.conf; then
25708     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' ' '`
25709     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25710   fi
25711
25712   # We used to test for /lib/ld.so.1 and disable shared libraries on
25713   # powerpc, because MkLinux only supported shared libraries with the
25714   # GNU dynamic linker.  Since this was broken with cross compilers,
25715   # most powerpc-linux boxes support dynamic linking these days and
25716   # people can always --disable-shared, the test was removed, and we
25717   # assume the GNU/Linux dynamic linker is in use.
25718   dynamic_linker='GNU/Linux ld.so'
25719   ;;
25720
25721 knetbsd*-gnu)
25722   version_type=linux
25723   need_lib_prefix=no
25724   need_version=no
25725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25726   soname_spec='${libname}${release}${shared_ext}$major'
25727   shlibpath_var=LD_LIBRARY_PATH
25728   shlibpath_overrides_runpath=no
25729   hardcode_into_libs=yes
25730   dynamic_linker='GNU ld.so'
25731   ;;
25732
25733 netbsd*)
25734   version_type=sunos
25735   need_lib_prefix=no
25736   need_version=no
25737   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25739     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25740     dynamic_linker='NetBSD (a.out) ld.so'
25741   else
25742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25743     soname_spec='${libname}${release}${shared_ext}$major'
25744     dynamic_linker='NetBSD ld.elf_so'
25745   fi
25746   shlibpath_var=LD_LIBRARY_PATH
25747   shlibpath_overrides_runpath=yes
25748   hardcode_into_libs=yes
25749   ;;
25750
25751 newsos6)
25752   version_type=linux
25753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754   shlibpath_var=LD_LIBRARY_PATH
25755   shlibpath_overrides_runpath=yes
25756   ;;
25757
25758 nto-qnx*)
25759   version_type=linux
25760   need_lib_prefix=no
25761   need_version=no
25762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763   soname_spec='${libname}${release}${shared_ext}$major'
25764   shlibpath_var=LD_LIBRARY_PATH
25765   shlibpath_overrides_runpath=yes
25766   ;;
25767
25768 openbsd*)
25769   version_type=sunos
25770   sys_lib_dlsearch_path_spec="/usr/lib"
25771   need_lib_prefix=no
25772   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25773   case $host_os in
25774     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25775     *)                         need_version=no  ;;
25776   esac
25777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25779   shlibpath_var=LD_LIBRARY_PATH
25780   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25781     case $host_os in
25782       openbsd2.[89] | openbsd2.[89].*)
25783         shlibpath_overrides_runpath=no
25784         ;;
25785       *)
25786         shlibpath_overrides_runpath=yes
25787         ;;
25788       esac
25789   else
25790     shlibpath_overrides_runpath=yes
25791   fi
25792   ;;
25793
25794 os2*)
25795   libname_spec='$name'
25796   shrext_cmds=".dll"
25797   need_lib_prefix=no
25798   library_names_spec='$libname${shared_ext} $libname.a'
25799   dynamic_linker='OS/2 ld.exe'
25800   shlibpath_var=LIBPATH
25801   ;;
25802
25803 osf3* | osf4* | osf5*)
25804   version_type=osf
25805   need_lib_prefix=no
25806   need_version=no
25807   soname_spec='${libname}${release}${shared_ext}$major'
25808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25809   shlibpath_var=LD_LIBRARY_PATH
25810   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25811   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25812   ;;
25813
25814 solaris*)
25815   version_type=linux
25816   need_lib_prefix=no
25817   need_version=no
25818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25819   soname_spec='${libname}${release}${shared_ext}$major'
25820   shlibpath_var=LD_LIBRARY_PATH
25821   shlibpath_overrides_runpath=yes
25822   hardcode_into_libs=yes
25823   # ldd complains unless libraries are executable
25824   postinstall_cmds='chmod +x $lib'
25825   ;;
25826
25827 sunos4*)
25828   version_type=sunos
25829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25830   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25831   shlibpath_var=LD_LIBRARY_PATH
25832   shlibpath_overrides_runpath=yes
25833   if test "$with_gnu_ld" = yes; then
25834     need_lib_prefix=no
25835   fi
25836   need_version=yes
25837   ;;
25838
25839 sysv4 | sysv4.3*)
25840   version_type=linux
25841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842   soname_spec='${libname}${release}${shared_ext}$major'
25843   shlibpath_var=LD_LIBRARY_PATH
25844   case $host_vendor in
25845     sni)
25846       shlibpath_overrides_runpath=no
25847       need_lib_prefix=no
25848       export_dynamic_flag_spec='${wl}-Blargedynsym'
25849       runpath_var=LD_RUN_PATH
25850       ;;
25851     siemens)
25852       need_lib_prefix=no
25853       ;;
25854     motorola)
25855       need_lib_prefix=no
25856       need_version=no
25857       shlibpath_overrides_runpath=no
25858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25859       ;;
25860   esac
25861   ;;
25862
25863 sysv4*MP*)
25864   if test -d /usr/nec ;then
25865     version_type=linux
25866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25867     soname_spec='$libname${shared_ext}.$major'
25868     shlibpath_var=LD_LIBRARY_PATH
25869   fi
25870   ;;
25871
25872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25873   version_type=freebsd-elf
25874   need_lib_prefix=no
25875   need_version=no
25876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25877   soname_spec='${libname}${release}${shared_ext}$major'
25878   shlibpath_var=LD_LIBRARY_PATH
25879   hardcode_into_libs=yes
25880   if test "$with_gnu_ld" = yes; then
25881     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25882     shlibpath_overrides_runpath=no
25883   else
25884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25885     shlibpath_overrides_runpath=yes
25886     case $host_os in
25887       sco3.2v5*)
25888         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25889         ;;
25890     esac
25891   fi
25892   sys_lib_dlsearch_path_spec='/usr/lib'
25893   ;;
25894
25895 uts4*)
25896   version_type=linux
25897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25898   soname_spec='${libname}${release}${shared_ext}$major'
25899   shlibpath_var=LD_LIBRARY_PATH
25900   ;;
25901
25902 *)
25903   dynamic_linker=no
25904   ;;
25905 esac
25906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25907 echo "${ECHO_T}$dynamic_linker" >&6; }
25908 test "$dynamic_linker" = no && can_build_shared=no
25909
25910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25911 if test "$GCC" = yes; then
25912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25913 fi
25914
25915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25917 hardcode_action_GCJ=
25918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25919    test -n "$runpath_var_GCJ" || \
25920    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25921
25922   # We can hardcode non-existant directories.
25923   if test "$hardcode_direct_GCJ" != no &&
25924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25925      # have to relink, otherwise we might link with an installed library
25926      # when we should be linking with a yet-to-be-installed one
25927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25928      test "$hardcode_minus_L_GCJ" != no; then
25929     # Linking always hardcodes the temporary library directory.
25930     hardcode_action_GCJ=relink
25931   else
25932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25933     hardcode_action_GCJ=immediate
25934   fi
25935 else
25936   # We cannot hardcode anything, or else we can only hardcode existing
25937   # directories.
25938   hardcode_action_GCJ=unsupported
25939 fi
25940 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25941 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25942
25943 if test "$hardcode_action_GCJ" = relink; then
25944   # Fast installation is not supported
25945   enable_fast_install=no
25946 elif test "$shlibpath_overrides_runpath" = yes ||
25947      test "$enable_shared" = no; then
25948   # Fast installation is not necessary
25949   enable_fast_install=needless
25950 fi
25951
25952
25953 # The else clause should only fire when bootstrapping the
25954 # libtool distribution, otherwise you forgot to ship ltmain.sh
25955 # with your package, and you will get complaints that there are
25956 # no rules to generate ltmain.sh.
25957 if test -f "$ltmain"; then
25958   # See if we are running on zsh, and set the options which allow our commands through
25959   # without removal of \ escapes.
25960   if test -n "${ZSH_VERSION+set}" ; then
25961     setopt NO_GLOB_SUBST
25962   fi
25963   # Now quote all the things that may contain metacharacters while being
25964   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25965   # variables and quote the copies for generation of the libtool script.
25966   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25967     SED SHELL STRIP \
25968     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25969     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25970     deplibs_check_method reload_flag reload_cmds need_locks \
25971     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25972     lt_cv_sys_global_symbol_to_c_name_address \
25973     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25974     old_postinstall_cmds old_postuninstall_cmds \
25975     compiler_GCJ \
25976     CC_GCJ \
25977     LD_GCJ \
25978     lt_prog_compiler_wl_GCJ \
25979     lt_prog_compiler_pic_GCJ \
25980     lt_prog_compiler_static_GCJ \
25981     lt_prog_compiler_no_builtin_flag_GCJ \
25982     export_dynamic_flag_spec_GCJ \
25983     thread_safe_flag_spec_GCJ \
25984     whole_archive_flag_spec_GCJ \
25985     enable_shared_with_static_runtimes_GCJ \
25986     old_archive_cmds_GCJ \
25987     old_archive_from_new_cmds_GCJ \
25988     predep_objects_GCJ \
25989     postdep_objects_GCJ \
25990     predeps_GCJ \
25991     postdeps_GCJ \
25992     compiler_lib_search_path_GCJ \
25993     archive_cmds_GCJ \
25994     archive_expsym_cmds_GCJ \
25995     postinstall_cmds_GCJ \
25996     postuninstall_cmds_GCJ \
25997     old_archive_from_expsyms_cmds_GCJ \
25998     allow_undefined_flag_GCJ \
25999     no_undefined_flag_GCJ \
26000     export_symbols_cmds_GCJ \
26001     hardcode_libdir_flag_spec_GCJ \
26002     hardcode_libdir_flag_spec_ld_GCJ \
26003     hardcode_libdir_separator_GCJ \
26004     hardcode_automatic_GCJ \
26005     module_cmds_GCJ \
26006     module_expsym_cmds_GCJ \
26007     lt_cv_prog_compiler_c_o_GCJ \
26008     exclude_expsyms_GCJ \
26009     include_expsyms_GCJ; do
26010
26011     case $var in
26012     old_archive_cmds_GCJ | \
26013     old_archive_from_new_cmds_GCJ | \
26014     archive_cmds_GCJ | \
26015     archive_expsym_cmds_GCJ | \
26016     module_cmds_GCJ | \
26017     module_expsym_cmds_GCJ | \
26018     old_archive_from_expsyms_cmds_GCJ | \
26019     export_symbols_cmds_GCJ | \
26020     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26021     postinstall_cmds | postuninstall_cmds | \
26022     old_postinstall_cmds | old_postuninstall_cmds | \
26023     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26024       # Double-quote double-evaled strings.
26025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26026       ;;
26027     *)
26028       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26029       ;;
26030     esac
26031   done
26032
26033   case $lt_echo in
26034   *'\$0 --fallback-echo"')
26035     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26036     ;;
26037   esac
26038
26039 cfgfile="$ofile"
26040
26041   cat <<__EOF__ >> "$cfgfile"
26042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26043
26044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26045
26046 # Shell to use when invoking shell scripts.
26047 SHELL=$lt_SHELL
26048
26049 # Whether or not to build shared libraries.
26050 build_libtool_libs=$enable_shared
26051
26052 # Whether or not to build static libraries.
26053 build_old_libs=$enable_static
26054
26055 # Whether or not to add -lc for building shared libraries.
26056 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26057
26058 # Whether or not to disallow shared libs when runtime libs are static
26059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26060
26061 # Whether or not to optimize for fast installation.
26062 fast_install=$enable_fast_install
26063
26064 # The host system.
26065 host_alias=$host_alias
26066 host=$host
26067 host_os=$host_os
26068
26069 # The build system.
26070 build_alias=$build_alias
26071 build=$build
26072 build_os=$build_os
26073
26074 # An echo program that does not interpret backslashes.
26075 echo=$lt_echo
26076
26077 # The archiver.
26078 AR=$lt_AR
26079 AR_FLAGS=$lt_AR_FLAGS
26080
26081 # A C compiler.
26082 LTCC=$lt_LTCC
26083
26084 # LTCC compiler flags.
26085 LTCFLAGS=$lt_LTCFLAGS
26086
26087 # A language-specific compiler.
26088 CC=$lt_compiler_GCJ
26089
26090 # Is the compiler the GNU C compiler?
26091 with_gcc=$GCC_GCJ
26092
26093 # An ERE matcher.
26094 EGREP=$lt_EGREP
26095
26096 # The linker used to build libraries.
26097 LD=$lt_LD_GCJ
26098
26099 # Whether we need hard or soft links.
26100 LN_S=$lt_LN_S
26101
26102 # A BSD-compatible nm program.
26103 NM=$lt_NM
26104
26105 # A symbol stripping program
26106 STRIP=$lt_STRIP
26107
26108 # Used to examine libraries when file_magic_cmd begins "file"
26109 MAGIC_CMD=$MAGIC_CMD
26110
26111 # Used on cygwin: DLL creation program.
26112 DLLTOOL="$DLLTOOL"
26113
26114 # Used on cygwin: object dumper.
26115 OBJDUMP="$OBJDUMP"
26116
26117 # Used on cygwin: assembler.
26118 AS="$AS"
26119
26120 # The name of the directory that contains temporary libtool files.
26121 objdir=$objdir
26122
26123 # How to create reloadable object files.
26124 reload_flag=$lt_reload_flag
26125 reload_cmds=$lt_reload_cmds
26126
26127 # How to pass a linker flag through the compiler.
26128 wl=$lt_lt_prog_compiler_wl_GCJ
26129
26130 # Object file suffix (normally "o").
26131 objext="$ac_objext"
26132
26133 # Old archive suffix (normally "a").
26134 libext="$libext"
26135
26136 # Shared library suffix (normally ".so").
26137 shrext_cmds='$shrext_cmds'
26138
26139 # Executable file suffix (normally "").
26140 exeext="$exeext"
26141
26142 # Additional compiler flags for building library objects.
26143 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26144 pic_mode=$pic_mode
26145
26146 # What is the maximum length of a command?
26147 max_cmd_len=$lt_cv_sys_max_cmd_len
26148
26149 # Does compiler simultaneously support -c and -o options?
26150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26151
26152 # Must we lock files when doing compilation?
26153 need_locks=$lt_need_locks
26154
26155 # Do we need the lib prefix for modules?
26156 need_lib_prefix=$need_lib_prefix
26157
26158 # Do we need a version for libraries?
26159 need_version=$need_version
26160
26161 # Whether dlopen is supported.
26162 dlopen_support=$enable_dlopen
26163
26164 # Whether dlopen of programs is supported.
26165 dlopen_self=$enable_dlopen_self
26166
26167 # Whether dlopen of statically linked programs is supported.
26168 dlopen_self_static=$enable_dlopen_self_static
26169
26170 # Compiler flag to prevent dynamic linking.
26171 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26172
26173 # Compiler flag to turn off builtin functions.
26174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26175
26176 # Compiler flag to allow reflexive dlopens.
26177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26178
26179 # Compiler flag to generate shared objects directly from archives.
26180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26181
26182 # Compiler flag to generate thread-safe objects.
26183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26184
26185 # Library versioning type.
26186 version_type=$version_type
26187
26188 # Format of library name prefix.
26189 libname_spec=$lt_libname_spec
26190
26191 # List of archive names.  First name is the real one, the rest are links.
26192 # The last name is the one that the linker finds with -lNAME.
26193 library_names_spec=$lt_library_names_spec
26194
26195 # The coded name of the library, if different from the real name.
26196 soname_spec=$lt_soname_spec
26197
26198 # Commands used to build and install an old-style archive.
26199 RANLIB=$lt_RANLIB
26200 old_archive_cmds=$lt_old_archive_cmds_GCJ
26201 old_postinstall_cmds=$lt_old_postinstall_cmds
26202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26203
26204 # Create an old-style archive from a shared archive.
26205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26206
26207 # Create a temporary old-style archive to link instead of a shared archive.
26208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26209
26210 # Commands used to build and install a shared archive.
26211 archive_cmds=$lt_archive_cmds_GCJ
26212 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26213 postinstall_cmds=$lt_postinstall_cmds
26214 postuninstall_cmds=$lt_postuninstall_cmds
26215
26216 # Commands used to build a loadable module (assumed same as above if empty)
26217 module_cmds=$lt_module_cmds_GCJ
26218 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26219
26220 # Commands to strip libraries.
26221 old_striplib=$lt_old_striplib
26222 striplib=$lt_striplib
26223
26224 # Dependencies to place before the objects being linked to create a
26225 # shared library.
26226 predep_objects=$lt_predep_objects_GCJ
26227
26228 # Dependencies to place after the objects being linked to create a
26229 # shared library.
26230 postdep_objects=$lt_postdep_objects_GCJ
26231
26232 # Dependencies to place before the objects being linked to create a
26233 # shared library.
26234 predeps=$lt_predeps_GCJ
26235
26236 # Dependencies to place after the objects being linked to create a
26237 # shared library.
26238 postdeps=$lt_postdeps_GCJ
26239
26240 # The library search path used internally by the compiler when linking
26241 # a shared library.
26242 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26243
26244 # Method to check whether dependent libraries are shared objects.
26245 deplibs_check_method=$lt_deplibs_check_method
26246
26247 # Command to use when deplibs_check_method == file_magic.
26248 file_magic_cmd=$lt_file_magic_cmd
26249
26250 # Flag that allows shared libraries with undefined symbols to be built.
26251 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26252
26253 # Flag that forces no undefined symbols.
26254 no_undefined_flag=$lt_no_undefined_flag_GCJ
26255
26256 # Commands used to finish a libtool library installation in a directory.
26257 finish_cmds=$lt_finish_cmds
26258
26259 # Same as above, but a single script fragment to be evaled but not shown.
26260 finish_eval=$lt_finish_eval
26261
26262 # Take the output of nm and produce a listing of raw symbols and C names.
26263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26264
26265 # Transform the output of nm in a proper C declaration
26266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26267
26268 # Transform the output of nm in a C name address pair
26269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26270
26271 # This is the shared library runtime path variable.
26272 runpath_var=$runpath_var
26273
26274 # This is the shared library path variable.
26275 shlibpath_var=$shlibpath_var
26276
26277 # Is shlibpath searched before the hard-coded library search path?
26278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26279
26280 # How to hardcode a shared library path into an executable.
26281 hardcode_action=$hardcode_action_GCJ
26282
26283 # Whether we should hardcode library paths into libraries.
26284 hardcode_into_libs=$hardcode_into_libs
26285
26286 # Flag to hardcode \$libdir into a binary during linking.
26287 # This must work even if \$libdir does not exist.
26288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26289
26290 # If ld is used when linking, flag to hardcode \$libdir into
26291 # a binary during linking. This must work even if \$libdir does
26292 # not exist.
26293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26294
26295 # Whether we need a single -rpath flag with a separated argument.
26296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26297
26298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26299 # resulting binary.
26300 hardcode_direct=$hardcode_direct_GCJ
26301
26302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26303 # resulting binary.
26304 hardcode_minus_L=$hardcode_minus_L_GCJ
26305
26306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26307 # the resulting binary.
26308 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26309
26310 # Set to yes if building a shared library automatically hardcodes DIR into the library
26311 # and all subsequent libraries and executables linked against it.
26312 hardcode_automatic=$hardcode_automatic_GCJ
26313
26314 # Variables whose values should be saved in libtool wrapper scripts and
26315 # restored at relink time.
26316 variables_saved_for_relink="$variables_saved_for_relink"
26317
26318 # Whether libtool must link a program against all its dependency libraries.
26319 link_all_deplibs=$link_all_deplibs_GCJ
26320
26321 # Compile-time system search path for libraries
26322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26323
26324 # Run-time system search path for libraries
26325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26326
26327 # Fix the shell variable \$srcfile for the compiler.
26328 fix_srcfile_path="$fix_srcfile_path_GCJ"
26329
26330 # Set to yes if exported symbols are required.
26331 always_export_symbols=$always_export_symbols_GCJ
26332
26333 # The commands to list exported symbols.
26334 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26335
26336 # The commands to extract the exported symbol list from a shared archive.
26337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26338
26339 # Symbols that should not be listed in the preloaded symbols.
26340 exclude_expsyms=$lt_exclude_expsyms_GCJ
26341
26342 # Symbols that must always be exported.
26343 include_expsyms=$lt_include_expsyms_GCJ
26344
26345 # ### END LIBTOOL TAG CONFIG: $tagname
26346
26347 __EOF__
26348
26349
26350 else
26351   # If there is no Makefile yet, we rely on a make rule to execute
26352   # `config.status --recheck' to rerun these tests and create the
26353   # libtool script then.
26354   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26355   if test -f "$ltmain_in"; then
26356     test -f Makefile && make "$ltmain"
26357   fi
26358 fi
26359
26360
26361 ac_ext=c
26362 ac_cpp='$CPP $CPPFLAGS'
26363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26366
26367 CC="$lt_save_CC"
26368
26369         else
26370           tagname=""
26371         fi
26372         ;;
26373
26374       RC)
26375         ac_ext=c
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26380
26381
26382 # Source file extension for RC test sources.
26383 ac_ext=rc
26384
26385 # Object file extension for compiled RC test sources.
26386 objext=o
26387 objext_RC=$objext
26388
26389 # Code to be used in simple compile tests
26390 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26391
26392 # Code to be used in simple link tests
26393 lt_simple_link_test_code="$lt_simple_compile_test_code"
26394
26395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26396
26397 # If no C compiler was specified, use CC.
26398 LTCC=${LTCC-"$CC"}
26399
26400 # If no C compiler flags were specified, use CFLAGS.
26401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26402
26403 # Allow CC to be a program name with arguments.
26404 compiler=$CC
26405
26406
26407 # save warnings/boilerplate of simple test code
26408 ac_outfile=conftest.$ac_objext
26409 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26411 _lt_compiler_boilerplate=`cat conftest.err`
26412 $rm conftest*
26413
26414 ac_outfile=conftest.$ac_objext
26415 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26417 _lt_linker_boilerplate=`cat conftest.err`
26418 $rm conftest*
26419
26420
26421 # Allow CC to be a program name with arguments.
26422 lt_save_CC="$CC"
26423 CC=${RC-"windres"}
26424 compiler=$CC
26425 compiler_RC=$CC
26426 for cc_temp in $compiler""; do
26427   case $cc_temp in
26428     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26429     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26430     \-*) ;;
26431     *) break;;
26432   esac
26433 done
26434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26435
26436 lt_cv_prog_compiler_c_o_RC=yes
26437
26438 # The else clause should only fire when bootstrapping the
26439 # libtool distribution, otherwise you forgot to ship ltmain.sh
26440 # with your package, and you will get complaints that there are
26441 # no rules to generate ltmain.sh.
26442 if test -f "$ltmain"; then
26443   # See if we are running on zsh, and set the options which allow our commands through
26444   # without removal of \ escapes.
26445   if test -n "${ZSH_VERSION+set}" ; then
26446     setopt NO_GLOB_SUBST
26447   fi
26448   # Now quote all the things that may contain metacharacters while being
26449   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26450   # variables and quote the copies for generation of the libtool script.
26451   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26452     SED SHELL STRIP \
26453     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26454     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26455     deplibs_check_method reload_flag reload_cmds need_locks \
26456     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26457     lt_cv_sys_global_symbol_to_c_name_address \
26458     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26459     old_postinstall_cmds old_postuninstall_cmds \
26460     compiler_RC \
26461     CC_RC \
26462     LD_RC \
26463     lt_prog_compiler_wl_RC \
26464     lt_prog_compiler_pic_RC \
26465     lt_prog_compiler_static_RC \
26466     lt_prog_compiler_no_builtin_flag_RC \
26467     export_dynamic_flag_spec_RC \
26468     thread_safe_flag_spec_RC \
26469     whole_archive_flag_spec_RC \
26470     enable_shared_with_static_runtimes_RC \
26471     old_archive_cmds_RC \
26472     old_archive_from_new_cmds_RC \
26473     predep_objects_RC \
26474     postdep_objects_RC \
26475     predeps_RC \
26476     postdeps_RC \
26477     compiler_lib_search_path_RC \
26478     archive_cmds_RC \
26479     archive_expsym_cmds_RC \
26480     postinstall_cmds_RC \
26481     postuninstall_cmds_RC \
26482     old_archive_from_expsyms_cmds_RC \
26483     allow_undefined_flag_RC \
26484     no_undefined_flag_RC \
26485     export_symbols_cmds_RC \
26486     hardcode_libdir_flag_spec_RC \
26487     hardcode_libdir_flag_spec_ld_RC \
26488     hardcode_libdir_separator_RC \
26489     hardcode_automatic_RC \
26490     module_cmds_RC \
26491     module_expsym_cmds_RC \
26492     lt_cv_prog_compiler_c_o_RC \
26493     exclude_expsyms_RC \
26494     include_expsyms_RC; do
26495
26496     case $var in
26497     old_archive_cmds_RC | \
26498     old_archive_from_new_cmds_RC | \
26499     archive_cmds_RC | \
26500     archive_expsym_cmds_RC | \
26501     module_cmds_RC | \
26502     module_expsym_cmds_RC | \
26503     old_archive_from_expsyms_cmds_RC | \
26504     export_symbols_cmds_RC | \
26505     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26506     postinstall_cmds | postuninstall_cmds | \
26507     old_postinstall_cmds | old_postuninstall_cmds | \
26508     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26509       # Double-quote double-evaled strings.
26510       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26511       ;;
26512     *)
26513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26514       ;;
26515     esac
26516   done
26517
26518   case $lt_echo in
26519   *'\$0 --fallback-echo"')
26520     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26521     ;;
26522   esac
26523
26524 cfgfile="$ofile"
26525
26526   cat <<__EOF__ >> "$cfgfile"
26527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26528
26529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26530
26531 # Shell to use when invoking shell scripts.
26532 SHELL=$lt_SHELL
26533
26534 # Whether or not to build shared libraries.
26535 build_libtool_libs=$enable_shared
26536
26537 # Whether or not to build static libraries.
26538 build_old_libs=$enable_static
26539
26540 # Whether or not to add -lc for building shared libraries.
26541 build_libtool_need_lc=$archive_cmds_need_lc_RC
26542
26543 # Whether or not to disallow shared libs when runtime libs are static
26544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26545
26546 # Whether or not to optimize for fast installation.
26547 fast_install=$enable_fast_install
26548
26549 # The host system.
26550 host_alias=$host_alias
26551 host=$host
26552 host_os=$host_os
26553
26554 # The build system.
26555 build_alias=$build_alias
26556 build=$build
26557 build_os=$build_os
26558
26559 # An echo program that does not interpret backslashes.
26560 echo=$lt_echo
26561
26562 # The archiver.
26563 AR=$lt_AR
26564 AR_FLAGS=$lt_AR_FLAGS
26565
26566 # A C compiler.
26567 LTCC=$lt_LTCC
26568
26569 # LTCC compiler flags.
26570 LTCFLAGS=$lt_LTCFLAGS
26571
26572 # A language-specific compiler.
26573 CC=$lt_compiler_RC
26574
26575 # Is the compiler the GNU C compiler?
26576 with_gcc=$GCC_RC
26577
26578 # An ERE matcher.
26579 EGREP=$lt_EGREP
26580
26581 # The linker used to build libraries.
26582 LD=$lt_LD_RC
26583
26584 # Whether we need hard or soft links.
26585 LN_S=$lt_LN_S
26586
26587 # A BSD-compatible nm program.
26588 NM=$lt_NM
26589
26590 # A symbol stripping program
26591 STRIP=$lt_STRIP
26592
26593 # Used to examine libraries when file_magic_cmd begins "file"
26594 MAGIC_CMD=$MAGIC_CMD
26595
26596 # Used on cygwin: DLL creation program.
26597 DLLTOOL="$DLLTOOL"
26598
26599 # Used on cygwin: object dumper.
26600 OBJDUMP="$OBJDUMP"
26601
26602 # Used on cygwin: assembler.
26603 AS="$AS"
26604
26605 # The name of the directory that contains temporary libtool files.
26606 objdir=$objdir
26607
26608 # How to create reloadable object files.
26609 reload_flag=$lt_reload_flag
26610 reload_cmds=$lt_reload_cmds
26611
26612 # How to pass a linker flag through the compiler.
26613 wl=$lt_lt_prog_compiler_wl_RC
26614
26615 # Object file suffix (normally "o").
26616 objext="$ac_objext"
26617
26618 # Old archive suffix (normally "a").
26619 libext="$libext"
26620
26621 # Shared library suffix (normally ".so").
26622 shrext_cmds='$shrext_cmds'
26623
26624 # Executable file suffix (normally "").
26625 exeext="$exeext"
26626
26627 # Additional compiler flags for building library objects.
26628 pic_flag=$lt_lt_prog_compiler_pic_RC
26629 pic_mode=$pic_mode
26630
26631 # What is the maximum length of a command?
26632 max_cmd_len=$lt_cv_sys_max_cmd_len
26633
26634 # Does compiler simultaneously support -c and -o options?
26635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26636
26637 # Must we lock files when doing compilation?
26638 need_locks=$lt_need_locks
26639
26640 # Do we need the lib prefix for modules?
26641 need_lib_prefix=$need_lib_prefix
26642
26643 # Do we need a version for libraries?
26644 need_version=$need_version
26645
26646 # Whether dlopen is supported.
26647 dlopen_support=$enable_dlopen
26648
26649 # Whether dlopen of programs is supported.
26650 dlopen_self=$enable_dlopen_self
26651
26652 # Whether dlopen of statically linked programs is supported.
26653 dlopen_self_static=$enable_dlopen_self_static
26654
26655 # Compiler flag to prevent dynamic linking.
26656 link_static_flag=$lt_lt_prog_compiler_static_RC
26657
26658 # Compiler flag to turn off builtin functions.
26659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26660
26661 # Compiler flag to allow reflexive dlopens.
26662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26663
26664 # Compiler flag to generate shared objects directly from archives.
26665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26666
26667 # Compiler flag to generate thread-safe objects.
26668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26669
26670 # Library versioning type.
26671 version_type=$version_type
26672
26673 # Format of library name prefix.
26674 libname_spec=$lt_libname_spec
26675
26676 # List of archive names.  First name is the real one, the rest are links.
26677 # The last name is the one that the linker finds with -lNAME.
26678 library_names_spec=$lt_library_names_spec
26679
26680 # The coded name of the library, if different from the real name.
26681 soname_spec=$lt_soname_spec
26682
26683 # Commands used to build and install an old-style archive.
26684 RANLIB=$lt_RANLIB
26685 old_archive_cmds=$lt_old_archive_cmds_RC
26686 old_postinstall_cmds=$lt_old_postinstall_cmds
26687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26688
26689 # Create an old-style archive from a shared archive.
26690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26691
26692 # Create a temporary old-style archive to link instead of a shared archive.
26693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26694
26695 # Commands used to build and install a shared archive.
26696 archive_cmds=$lt_archive_cmds_RC
26697 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26698 postinstall_cmds=$lt_postinstall_cmds
26699 postuninstall_cmds=$lt_postuninstall_cmds
26700
26701 # Commands used to build a loadable module (assumed same as above if empty)
26702 module_cmds=$lt_module_cmds_RC
26703 module_expsym_cmds=$lt_module_expsym_cmds_RC
26704
26705 # Commands to strip libraries.
26706 old_striplib=$lt_old_striplib
26707 striplib=$lt_striplib
26708
26709 # Dependencies to place before the objects being linked to create a
26710 # shared library.
26711 predep_objects=$lt_predep_objects_RC
26712
26713 # Dependencies to place after the objects being linked to create a
26714 # shared library.
26715 postdep_objects=$lt_postdep_objects_RC
26716
26717 # Dependencies to place before the objects being linked to create a
26718 # shared library.
26719 predeps=$lt_predeps_RC
26720
26721 # Dependencies to place after the objects being linked to create a
26722 # shared library.
26723 postdeps=$lt_postdeps_RC
26724
26725 # The library search path used internally by the compiler when linking
26726 # a shared library.
26727 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26728
26729 # Method to check whether dependent libraries are shared objects.
26730 deplibs_check_method=$lt_deplibs_check_method
26731
26732 # Command to use when deplibs_check_method == file_magic.
26733 file_magic_cmd=$lt_file_magic_cmd
26734
26735 # Flag that allows shared libraries with undefined symbols to be built.
26736 allow_undefined_flag=$lt_allow_undefined_flag_RC
26737
26738 # Flag that forces no undefined symbols.
26739 no_undefined_flag=$lt_no_undefined_flag_RC
26740
26741 # Commands used to finish a libtool library installation in a directory.
26742 finish_cmds=$lt_finish_cmds
26743
26744 # Same as above, but a single script fragment to be evaled but not shown.
26745 finish_eval=$lt_finish_eval
26746
26747 # Take the output of nm and produce a listing of raw symbols and C names.
26748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26749
26750 # Transform the output of nm in a proper C declaration
26751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26752
26753 # Transform the output of nm in a C name address pair
26754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26755
26756 # This is the shared library runtime path variable.
26757 runpath_var=$runpath_var
26758
26759 # This is the shared library path variable.
26760 shlibpath_var=$shlibpath_var
26761
26762 # Is shlibpath searched before the hard-coded library search path?
26763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26764
26765 # How to hardcode a shared library path into an executable.
26766 hardcode_action=$hardcode_action_RC
26767
26768 # Whether we should hardcode library paths into libraries.
26769 hardcode_into_libs=$hardcode_into_libs
26770
26771 # Flag to hardcode \$libdir into a binary during linking.
26772 # This must work even if \$libdir does not exist.
26773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26774
26775 # If ld is used when linking, flag to hardcode \$libdir into
26776 # a binary during linking. This must work even if \$libdir does
26777 # not exist.
26778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26779
26780 # Whether we need a single -rpath flag with a separated argument.
26781 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26782
26783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26784 # resulting binary.
26785 hardcode_direct=$hardcode_direct_RC
26786
26787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26788 # resulting binary.
26789 hardcode_minus_L=$hardcode_minus_L_RC
26790
26791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26792 # the resulting binary.
26793 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26794
26795 # Set to yes if building a shared library automatically hardcodes DIR into the library
26796 # and all subsequent libraries and executables linked against it.
26797 hardcode_automatic=$hardcode_automatic_RC
26798
26799 # Variables whose values should be saved in libtool wrapper scripts and
26800 # restored at relink time.
26801 variables_saved_for_relink="$variables_saved_for_relink"
26802
26803 # Whether libtool must link a program against all its dependency libraries.
26804 link_all_deplibs=$link_all_deplibs_RC
26805
26806 # Compile-time system search path for libraries
26807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26808
26809 # Run-time system search path for libraries
26810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26811
26812 # Fix the shell variable \$srcfile for the compiler.
26813 fix_srcfile_path="$fix_srcfile_path_RC"
26814
26815 # Set to yes if exported symbols are required.
26816 always_export_symbols=$always_export_symbols_RC
26817
26818 # The commands to list exported symbols.
26819 export_symbols_cmds=$lt_export_symbols_cmds_RC
26820
26821 # The commands to extract the exported symbol list from a shared archive.
26822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26823
26824 # Symbols that should not be listed in the preloaded symbols.
26825 exclude_expsyms=$lt_exclude_expsyms_RC
26826
26827 # Symbols that must always be exported.
26828 include_expsyms=$lt_include_expsyms_RC
26829
26830 # ### END LIBTOOL TAG CONFIG: $tagname
26831
26832 __EOF__
26833
26834
26835 else
26836   # If there is no Makefile yet, we rely on a make rule to execute
26837   # `config.status --recheck' to rerun these tests and create the
26838   # libtool script then.
26839   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26840   if test -f "$ltmain_in"; then
26841     test -f Makefile && make "$ltmain"
26842   fi
26843 fi
26844
26845
26846 ac_ext=c
26847 ac_cpp='$CPP $CPPFLAGS'
26848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26851
26852 CC="$lt_save_CC"
26853
26854         ;;
26855
26856       *)
26857         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26858 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26859    { (exit 1); exit 1; }; }
26860         ;;
26861       esac
26862
26863       # Append the new tag name to the list of available tags.
26864       if test -n "$tagname" ; then
26865       available_tags="$available_tags $tagname"
26866     fi
26867     fi
26868   done
26869   IFS="$lt_save_ifs"
26870
26871   # Now substitute the updated list of available tags.
26872   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26873     mv "${ofile}T" "$ofile"
26874     chmod +x "$ofile"
26875   else
26876     rm -f "${ofile}T"
26877     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26878 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26879    { (exit 1); exit 1; }; }
26880   fi
26881 fi
26882
26883
26884
26885 # This can be used to rebuild libtool when needed
26886 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26887
26888 # Always use our own libtool.
26889 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26890
26891 # Prevent multiple expansion
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913 if test "$lt_cv_dlopen_self" = "yes" ; then
26914
26915 cat >>confdefs.h <<\_ACEOF
26916 #define CAN_DLOPEN_SELF 1
26917 _ACEOF
26918
26919 fi
26920
26921
26922 if test "$WITH_LLVMGCCDIR" = "default" ; then
26923   LLVMGCC="llvm-gcc${EXEEXT}"
26924   LLVMGXX="llvm-g++${EXEEXT}"
26925   LLVMGCCCOMMAND="$LLVMGCC"
26926   LLVMGXXCOMMAND="$LLVMGXX"
26927   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26928
26929   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26930
26931   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26932 set dummy $LLVMGCC; ac_word=$2
26933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26935 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26936   echo $ECHO_N "(cached) $ECHO_C" >&6
26937 else
26938   case $LLVMGCC in
26939   [\\/]* | ?:[\\/]*)
26940   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26941   ;;
26942   *)
26943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26944 for as_dir in $PATH
26945 do
26946   IFS=$as_save_IFS
26947   test -z "$as_dir" && as_dir=.
26948   for ac_exec_ext in '' $ac_executable_extensions; do
26949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26950     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26952     break 2
26953   fi
26954 done
26955 done
26956 IFS=$as_save_IFS
26957
26958   ;;
26959 esac
26960 fi
26961 LLVMGCC=$ac_cv_path_LLVMGCC
26962 if test -n "$LLVMGCC"; then
26963   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26964 echo "${ECHO_T}$LLVMGCC" >&6; }
26965 else
26966   { echo "$as_me:$LINENO: result: no" >&5
26967 echo "${ECHO_T}no" >&6; }
26968 fi
26969
26970
26971   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26972 set dummy $LLVMGXX; ac_word=$2
26973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26975 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26976   echo $ECHO_N "(cached) $ECHO_C" >&6
26977 else
26978   case $LLVMGXX in
26979   [\\/]* | ?:[\\/]*)
26980   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26981   ;;
26982   *)
26983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26984 for as_dir in $PATH
26985 do
26986   IFS=$as_save_IFS
26987   test -z "$as_dir" && as_dir=.
26988   for ac_exec_ext in '' $ac_executable_extensions; do
26989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26990     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26992     break 2
26993   fi
26994 done
26995 done
26996 IFS=$as_save_IFS
26997
26998   ;;
26999 esac
27000 fi
27001 LLVMGXX=$ac_cv_path_LLVMGXX
27002 if test -n "$LLVMGXX"; then
27003   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27004 echo "${ECHO_T}$LLVMGXX" >&6; }
27005 else
27006   { echo "$as_me:$LINENO: result: no" >&5
27007 echo "${ECHO_T}no" >&6; }
27008 fi
27009
27010
27011 else
27012   if test -z "$LLVMGCC"; then
27013     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27014     LLVMGCCCOMMAND="$LLVMGCC"
27015   fi
27016   if test -z "$LLVMGXX"; then
27017     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27018     LLVMGXXCOMMAND="$LLVMGXX"
27019   fi
27020
27021   LLVMGCC=$LLVMGCC
27022
27023   LLVMGXX=$LLVMGXX
27024
27025   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27026
27027   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27028
27029 fi
27030
27031
27032 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27033 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27034
27035 ICC=no
27036 IXX=no
27037 case $CC in
27038   icc*|icpc*)
27039     ICC=yes
27040     IXX=yes
27041     ;;
27042    *)
27043     ;;
27044 esac
27045
27046 if test "$GCC" != "yes" && test "$ICC" != "yes"
27047 then
27048   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27049 echo "$as_me: error: gcc|icc required but not found" >&2;}
27050    { (exit 1); exit 1; }; }
27051 fi
27052
27053 if test "$GXX" != "yes" && test "$IXX" != "yes"
27054 then
27055   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27056 echo "$as_me: error: g++|icc required but not found" >&2;}
27057    { (exit 1); exit 1; }; }
27058 fi
27059
27060 if test "$GCC" = "yes"
27061 then
27062   cat >conftest.$ac_ext <<_ACEOF
27063 #if !defined(__GNUC__) || __GNUC__ < 3
27064 #error Unsupported GCC version
27065 #endif
27066
27067 _ACEOF
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_compile") 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } &&
27082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27083   { (case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_try") 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; } &&
27092          { ac_try='test -s conftest.$ac_objext'
27093   { (case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_try") 2>&5
27099   ac_status=$?
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); }; }; then
27102   :
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27108 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27109    { (exit 1); exit 1; }; }
27110 fi
27111
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 fi
27114
27115 if test -z "$llvm_cv_gnu_make_command"
27116 then
27117   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27118 echo "$as_me: error: GNU Make required but not found" >&2;}
27119    { (exit 1); exit 1; }; }
27120 fi
27121
27122 { echo "$as_me:$LINENO: result: ok" >&5
27123 echo "${ECHO_T}ok" >&6; }
27124
27125
27126
27127 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27128 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27129 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27130   echo $ECHO_N "(cached) $ECHO_C" >&6
27131 else
27132   ac_check_lib_save_LIBS=$LIBS
27133 LIBS="-lelf  $LIBS"
27134 cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140
27141 /* Override any GCC internal prototype to avoid an error.
27142    Use char because int might match the return type of a GCC
27143    builtin and then its argument prototype would still apply.  */
27144 #ifdef __cplusplus
27145 extern "C"
27146 #endif
27147 char elf_begin ();
27148 int
27149 main ()
27150 {
27151 return elf_begin ();
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (ac_try="$ac_link"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163   (eval "$ac_link") 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } &&
27170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27171   { (case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_try") 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; } &&
27180          { ac_try='test -s conftest$ac_exeext'
27181   { (case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_try") 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; }; then
27190   ac_cv_lib_elf_elf_begin=yes
27191 else
27192   echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27194
27195         ac_cv_lib_elf_elf_begin=no
27196 fi
27197
27198 rm -f core conftest.err conftest.$ac_objext \
27199       conftest$ac_exeext conftest.$ac_ext
27200 LIBS=$ac_check_lib_save_LIBS
27201 fi
27202 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27203 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27204 if test $ac_cv_lib_elf_elf_begin = yes; then
27205   cat >>confdefs.h <<_ACEOF
27206 #define HAVE_LIBELF 1
27207 _ACEOF
27208
27209   LIBS="-lelf $LIBS"
27210
27211 fi
27212
27213
27214 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27215 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27216 if test "${ac_cv_lib_m_sin+set}" = set; then
27217   echo $ECHO_N "(cached) $ECHO_C" >&6
27218 else
27219   ac_check_lib_save_LIBS=$LIBS
27220 LIBS="-lm  $LIBS"
27221 cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h.  */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h.  */
27227
27228 /* Override any GCC internal prototype to avoid an error.
27229    Use char because int might match the return type of a GCC
27230    builtin and then its argument prototype would still apply.  */
27231 #ifdef __cplusplus
27232 extern "C"
27233 #endif
27234 char sin ();
27235 int
27236 main ()
27237 {
27238 return sin ();
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 rm -f conftest.$ac_objext conftest$ac_exeext
27244 if { (ac_try="$ac_link"
27245 case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250   (eval "$ac_link") 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } &&
27257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258   { (case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263   (eval "$ac_try") 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; } &&
27267          { ac_try='test -s conftest$ac_exeext'
27268   { (case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273   (eval "$ac_try") 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; }; then
27277   ac_cv_lib_m_sin=yes
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282         ac_cv_lib_m_sin=no
27283 fi
27284
27285 rm -f core conftest.err conftest.$ac_objext \
27286       conftest$ac_exeext conftest.$ac_ext
27287 LIBS=$ac_check_lib_save_LIBS
27288 fi
27289 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27290 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27291 if test $ac_cv_lib_m_sin = yes; then
27292   cat >>confdefs.h <<_ACEOF
27293 #define HAVE_LIBM 1
27294 _ACEOF
27295
27296   LIBS="-lm $LIBS"
27297
27298 fi
27299
27300 if test "$llvm_cv_os_type" = "MingW" ; then
27301
27302 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27303 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27304 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27305   echo $ECHO_N "(cached) $ECHO_C" >&6
27306 else
27307   ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-limagehlp  $LIBS"
27309 cat >conftest.$ac_ext <<_ACEOF
27310 /* confdefs.h.  */
27311 _ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h.  */
27315
27316
27317 int
27318 main ()
27319 {
27320 return main ();
27321   ;
27322   return 0;
27323 }
27324 _ACEOF
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326 if { (ac_try="$ac_link"
27327 case "(($ac_try" in
27328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329   *) ac_try_echo=$ac_try;;
27330 esac
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332   (eval "$ac_link") 2>conftest.er1
27333   ac_status=$?
27334   grep -v '^ *+' conftest.er1 >conftest.err
27335   rm -f conftest.er1
27336   cat conftest.err >&5
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); } &&
27339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27340   { (case "(($ac_try" in
27341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342   *) ac_try_echo=$ac_try;;
27343 esac
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345   (eval "$ac_try") 2>&5
27346   ac_status=$?
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); }; } &&
27349          { ac_try='test -s conftest$ac_exeext'
27350   { (case "(($ac_try" in
27351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352   *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355   (eval "$ac_try") 2>&5
27356   ac_status=$?
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); }; }; then
27359   ac_cv_lib_imagehlp_main=yes
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364         ac_cv_lib_imagehlp_main=no
27365 fi
27366
27367 rm -f core conftest.err conftest.$ac_objext \
27368       conftest$ac_exeext conftest.$ac_ext
27369 LIBS=$ac_check_lib_save_LIBS
27370 fi
27371 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27372 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27373 if test $ac_cv_lib_imagehlp_main = yes; then
27374   cat >>confdefs.h <<_ACEOF
27375 #define HAVE_LIBIMAGEHLP 1
27376 _ACEOF
27377
27378   LIBS="-limagehlp $LIBS"
27379
27380 fi
27381
27382
27383 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27384 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27385 if test "${ac_cv_lib_psapi_main+set}" = set; then
27386   echo $ECHO_N "(cached) $ECHO_C" >&6
27387 else
27388   ac_check_lib_save_LIBS=$LIBS
27389 LIBS="-lpsapi  $LIBS"
27390 cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h.  */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h.  */
27396
27397
27398 int
27399 main ()
27400 {
27401 return main ();
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext conftest$ac_exeext
27407 if { (ac_try="$ac_link"
27408 case "(($ac_try" in
27409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410   *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413   (eval "$ac_link") 2>conftest.er1
27414   ac_status=$?
27415   grep -v '^ *+' conftest.er1 >conftest.err
27416   rm -f conftest.er1
27417   cat conftest.err >&5
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); } &&
27420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27421   { (case "(($ac_try" in
27422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423   *) ac_try_echo=$ac_try;;
27424 esac
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426   (eval "$ac_try") 2>&5
27427   ac_status=$?
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); }; } &&
27430          { ac_try='test -s conftest$ac_exeext'
27431   { (case "(($ac_try" in
27432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433   *) ac_try_echo=$ac_try;;
27434 esac
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436   (eval "$ac_try") 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; }; then
27440   ac_cv_lib_psapi_main=yes
27441 else
27442   echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445         ac_cv_lib_psapi_main=no
27446 fi
27447
27448 rm -f core conftest.err conftest.$ac_objext \
27449       conftest$ac_exeext conftest.$ac_ext
27450 LIBS=$ac_check_lib_save_LIBS
27451 fi
27452 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27453 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27454 if test $ac_cv_lib_psapi_main = yes; then
27455   cat >>confdefs.h <<_ACEOF
27456 #define HAVE_LIBPSAPI 1
27457 _ACEOF
27458
27459   LIBS="-lpsapi $LIBS"
27460
27461 fi
27462
27463 fi
27464
27465 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27466 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27467 if test "${ac_cv_search_dlopen+set}" = set; then
27468   echo $ECHO_N "(cached) $ECHO_C" >&6
27469 else
27470   ac_func_search_save_LIBS=$LIBS
27471 cat >conftest.$ac_ext <<_ACEOF
27472 /* confdefs.h.  */
27473 _ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h.  */
27477
27478 /* Override any GCC internal prototype to avoid an error.
27479    Use char because int might match the return type of a GCC
27480    builtin and then its argument prototype would still apply.  */
27481 #ifdef __cplusplus
27482 extern "C"
27483 #endif
27484 char dlopen ();
27485 int
27486 main ()
27487 {
27488 return dlopen ();
27489   ;
27490   return 0;
27491 }
27492 _ACEOF
27493 for ac_lib in '' dl; do
27494   if test -z "$ac_lib"; then
27495     ac_res="none required"
27496   else
27497     ac_res=-l$ac_lib
27498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27499   fi
27500   rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_link") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } &&
27514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515   { (case "(($ac_try" in
27516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517   *) ac_try_echo=$ac_try;;
27518 esac
27519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520   (eval "$ac_try") 2>&5
27521   ac_status=$?
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); }; } &&
27524          { ac_try='test -s conftest$ac_exeext'
27525   { (case "(($ac_try" in
27526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527   *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530   (eval "$ac_try") 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; }; then
27534   ac_cv_search_dlopen=$ac_res
27535 else
27536   echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27538
27539
27540 fi
27541
27542 rm -f core conftest.err conftest.$ac_objext \
27543       conftest$ac_exeext
27544   if test "${ac_cv_search_dlopen+set}" = set; then
27545   break
27546 fi
27547 done
27548 if test "${ac_cv_search_dlopen+set}" = set; then
27549   :
27550 else
27551   ac_cv_search_dlopen=no
27552 fi
27553 rm conftest.$ac_ext
27554 LIBS=$ac_func_search_save_LIBS
27555 fi
27556 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27557 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27558 ac_res=$ac_cv_search_dlopen
27559 if test "$ac_res" != no; then
27560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27561
27562 cat >>confdefs.h <<\_ACEOF
27563 #define HAVE_DLOPEN 1
27564 _ACEOF
27565
27566 else
27567   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27568 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27569 fi
27570
27571
27572 if test "$llvm_cv_enable_libffi" = "yes" ; then
27573   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27574 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27575 if test "${ac_cv_search_ffi_call+set}" = set; then
27576   echo $ECHO_N "(cached) $ECHO_C" >&6
27577 else
27578   ac_func_search_save_LIBS=$LIBS
27579 cat >conftest.$ac_ext <<_ACEOF
27580 /* confdefs.h.  */
27581 _ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h.  */
27585
27586 /* Override any GCC internal prototype to avoid an error.
27587    Use char because int might match the return type of a GCC
27588    builtin and then its argument prototype would still apply.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 #endif
27592 char ffi_call ();
27593 int
27594 main ()
27595 {
27596 return ffi_call ();
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 for ac_lib in '' ffi; do
27602   if test -z "$ac_lib"; then
27603     ac_res="none required"
27604   else
27605     ac_res=-l$ac_lib
27606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27607   fi
27608   rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612   *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615   (eval "$ac_link") 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } &&
27622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623   { (case "(($ac_try" in
27624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625   *) ac_try_echo=$ac_try;;
27626 esac
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628   (eval "$ac_try") 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; } &&
27632          { ac_try='test -s conftest$ac_exeext'
27633   { (case "(($ac_try" in
27634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635   *) ac_try_echo=$ac_try;;
27636 esac
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638   (eval "$ac_try") 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; }; then
27642   ac_cv_search_ffi_call=$ac_res
27643 else
27644   echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27646
27647
27648 fi
27649
27650 rm -f core conftest.err conftest.$ac_objext \
27651       conftest$ac_exeext
27652   if test "${ac_cv_search_ffi_call+set}" = set; then
27653   break
27654 fi
27655 done
27656 if test "${ac_cv_search_ffi_call+set}" = set; then
27657   :
27658 else
27659   ac_cv_search_ffi_call=no
27660 fi
27661 rm conftest.$ac_ext
27662 LIBS=$ac_func_search_save_LIBS
27663 fi
27664 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27665 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27666 ac_res=$ac_cv_search_ffi_call
27667 if test "$ac_res" != no; then
27668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27669
27670 cat >>confdefs.h <<\_ACEOF
27671 #define HAVE_FFI_CALL 1
27672 _ACEOF
27673
27674 else
27675   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27676 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27677 fi
27678
27679 fi
27680
27681 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27682 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27684   echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686   ac_func_search_save_LIBS=$LIBS
27687 cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693
27694 /* Override any GCC internal prototype to avoid an error.
27695    Use char because int might match the return type of a GCC
27696    builtin and then its argument prototype would still apply.  */
27697 #ifdef __cplusplus
27698 extern "C"
27699 #endif
27700 char mallinfo ();
27701 int
27702 main ()
27703 {
27704 return mallinfo ();
27705   ;
27706   return 0;
27707 }
27708 _ACEOF
27709 for ac_lib in '' malloc; do
27710   if test -z "$ac_lib"; then
27711     ac_res="none required"
27712   else
27713     ac_res=-l$ac_lib
27714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27715   fi
27716   rm -f conftest.$ac_objext conftest$ac_exeext
27717 if { (ac_try="$ac_link"
27718 case "(($ac_try" in
27719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720   *) ac_try_echo=$ac_try;;
27721 esac
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723   (eval "$ac_link") 2>conftest.er1
27724   ac_status=$?
27725   grep -v '^ *+' conftest.er1 >conftest.err
27726   rm -f conftest.er1
27727   cat conftest.err >&5
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); } &&
27730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27731   { (case "(($ac_try" in
27732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733   *) ac_try_echo=$ac_try;;
27734 esac
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736   (eval "$ac_try") 2>&5
27737   ac_status=$?
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); }; } &&
27740          { ac_try='test -s conftest$ac_exeext'
27741   { (case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_try") 2>&5
27747   ac_status=$?
27748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749   (exit $ac_status); }; }; then
27750   ac_cv_search_mallinfo=$ac_res
27751 else
27752   echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27754
27755
27756 fi
27757
27758 rm -f core conftest.err conftest.$ac_objext \
27759       conftest$ac_exeext
27760   if test "${ac_cv_search_mallinfo+set}" = set; then
27761   break
27762 fi
27763 done
27764 if test "${ac_cv_search_mallinfo+set}" = set; then
27765   :
27766 else
27767   ac_cv_search_mallinfo=no
27768 fi
27769 rm conftest.$ac_ext
27770 LIBS=$ac_func_search_save_LIBS
27771 fi
27772 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27773 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27774 ac_res=$ac_cv_search_mallinfo
27775 if test "$ac_res" != no; then
27776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27777
27778 cat >>confdefs.h <<\_ACEOF
27779 #define HAVE_MALLINFO 1
27780 _ACEOF
27781
27782 fi
27783
27784
27785 if test "$ENABLE_THREADS" -eq 1 ; then
27786
27787 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27788 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27789 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27790   echo $ECHO_N "(cached) $ECHO_C" >&6
27791 else
27792   ac_check_lib_save_LIBS=$LIBS
27793 LIBS="-lpthread  $LIBS"
27794 cat >conftest.$ac_ext <<_ACEOF
27795 /* confdefs.h.  */
27796 _ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h.  */
27800
27801 /* Override any GCC internal prototype to avoid an error.
27802    Use char because int might match the return type of a GCC
27803    builtin and then its argument prototype would still apply.  */
27804 #ifdef __cplusplus
27805 extern "C"
27806 #endif
27807 char pthread_mutex_init ();
27808 int
27809 main ()
27810 {
27811 return pthread_mutex_init ();
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 rm -f conftest.$ac_objext conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_link") 2>conftest.er1
27824   ac_status=$?
27825   grep -v '^ *+' conftest.er1 >conftest.err
27826   rm -f conftest.er1
27827   cat conftest.err >&5
27828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829   (exit $ac_status); } &&
27830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27831   { (case "(($ac_try" in
27832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833   *) ac_try_echo=$ac_try;;
27834 esac
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836   (eval "$ac_try") 2>&5
27837   ac_status=$?
27838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839   (exit $ac_status); }; } &&
27840          { ac_try='test -s conftest$ac_exeext'
27841   { (case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846   (eval "$ac_try") 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; }; then
27850   ac_cv_lib_pthread_pthread_mutex_init=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         ac_cv_lib_pthread_pthread_mutex_init=no
27856 fi
27857
27858 rm -f core conftest.err conftest.$ac_objext \
27859       conftest$ac_exeext conftest.$ac_ext
27860 LIBS=$ac_check_lib_save_LIBS
27861 fi
27862 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27863 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27864 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27865   cat >>confdefs.h <<_ACEOF
27866 #define HAVE_LIBPTHREAD 1
27867 _ACEOF
27868
27869   LIBS="-lpthread $LIBS"
27870
27871 fi
27872
27873   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27874 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876   echo $ECHO_N "(cached) $ECHO_C" >&6
27877 else
27878   ac_func_search_save_LIBS=$LIBS
27879 cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h.  */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h.  */
27885
27886 /* Override any GCC internal prototype to avoid an error.
27887    Use char because int might match the return type of a GCC
27888    builtin and then its argument prototype would still apply.  */
27889 #ifdef __cplusplus
27890 extern "C"
27891 #endif
27892 char pthread_mutex_lock ();
27893 int
27894 main ()
27895 {
27896 return pthread_mutex_lock ();
27897   ;
27898   return 0;
27899 }
27900 _ACEOF
27901 for ac_lib in '' pthread; do
27902   if test -z "$ac_lib"; then
27903     ac_res="none required"
27904   else
27905     ac_res=-l$ac_lib
27906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27907   fi
27908   rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912   *) ac_try_echo=$ac_try;;
27913 esac
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915   (eval "$ac_link") 2>conftest.er1
27916   ac_status=$?
27917   grep -v '^ *+' conftest.er1 >conftest.err
27918   rm -f conftest.er1
27919   cat conftest.err >&5
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); } &&
27922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27923   { (case "(($ac_try" in
27924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925   *) ac_try_echo=$ac_try;;
27926 esac
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928   (eval "$ac_try") 2>&5
27929   ac_status=$?
27930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931   (exit $ac_status); }; } &&
27932          { ac_try='test -s conftest$ac_exeext'
27933   { (case "(($ac_try" in
27934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935   *) ac_try_echo=$ac_try;;
27936 esac
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938   (eval "$ac_try") 2>&5
27939   ac_status=$?
27940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941   (exit $ac_status); }; }; then
27942   ac_cv_search_pthread_mutex_lock=$ac_res
27943 else
27944   echo "$as_me: failed program was:" >&5
27945 sed 's/^/| /' conftest.$ac_ext >&5
27946
27947
27948 fi
27949
27950 rm -f core conftest.err conftest.$ac_objext \
27951       conftest$ac_exeext
27952   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27953   break
27954 fi
27955 done
27956 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27957   :
27958 else
27959   ac_cv_search_pthread_mutex_lock=no
27960 fi
27961 rm conftest.$ac_ext
27962 LIBS=$ac_func_search_save_LIBS
27963 fi
27964 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27965 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27966 ac_res=$ac_cv_search_pthread_mutex_lock
27967 if test "$ac_res" != no; then
27968   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27969
27970 cat >>confdefs.h <<\_ACEOF
27971 #define HAVE_PTHREAD_MUTEX_LOCK 1
27972 _ACEOF
27973
27974 fi
27975
27976   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27977 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27979   echo $ECHO_N "(cached) $ECHO_C" >&6
27980 else
27981   ac_func_search_save_LIBS=$LIBS
27982 cat >conftest.$ac_ext <<_ACEOF
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988
27989 /* Override any GCC internal prototype to avoid an error.
27990    Use char because int might match the return type of a GCC
27991    builtin and then its argument prototype would still apply.  */
27992 #ifdef __cplusplus
27993 extern "C"
27994 #endif
27995 char pthread_rwlock_init ();
27996 int
27997 main ()
27998 {
27999 return pthread_rwlock_init ();
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 for ac_lib in '' pthread; do
28005   if test -z "$ac_lib"; then
28006     ac_res="none required"
28007   else
28008     ac_res=-l$ac_lib
28009     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28010   fi
28011   rm -f conftest.$ac_objext conftest$ac_exeext
28012 if { (ac_try="$ac_link"
28013 case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_link") 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } &&
28025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28026   { (case "(($ac_try" in
28027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028   *) ac_try_echo=$ac_try;;
28029 esac
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031   (eval "$ac_try") 2>&5
28032   ac_status=$?
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); }; } &&
28035          { ac_try='test -s conftest$ac_exeext'
28036   { (case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_try") 2>&5
28042   ac_status=$?
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); }; }; then
28045   ac_cv_search_pthread_rwlock_init=$ac_res
28046 else
28047   echo "$as_me: failed program was:" >&5
28048 sed 's/^/| /' conftest.$ac_ext >&5
28049
28050
28051 fi
28052
28053 rm -f core conftest.err conftest.$ac_objext \
28054       conftest$ac_exeext
28055   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28056   break
28057 fi
28058 done
28059 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28060   :
28061 else
28062   ac_cv_search_pthread_rwlock_init=no
28063 fi
28064 rm conftest.$ac_ext
28065 LIBS=$ac_func_search_save_LIBS
28066 fi
28067 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28068 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28069 ac_res=$ac_cv_search_pthread_rwlock_init
28070 if test "$ac_res" != no; then
28071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28072
28073 cat >>confdefs.h <<\_ACEOF
28074 #define HAVE_PTHREAD_RWLOCK_INIT 1
28075 _ACEOF
28076
28077 fi
28078
28079   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28080 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28081 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28082   echo $ECHO_N "(cached) $ECHO_C" >&6
28083 else
28084   ac_func_search_save_LIBS=$LIBS
28085 cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091
28092 /* Override any GCC internal prototype to avoid an error.
28093    Use char because int might match the return type of a GCC
28094    builtin and then its argument prototype would still apply.  */
28095 #ifdef __cplusplus
28096 extern "C"
28097 #endif
28098 char pthread_getspecific ();
28099 int
28100 main ()
28101 {
28102 return pthread_getspecific ();
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 for ac_lib in '' pthread; do
28108   if test -z "$ac_lib"; then
28109     ac_res="none required"
28110   else
28111     ac_res=-l$ac_lib
28112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28113   fi
28114   rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (ac_try="$ac_link"
28116 case "(($ac_try" in
28117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118   *) ac_try_echo=$ac_try;;
28119 esac
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121   (eval "$ac_link") 2>conftest.er1
28122   ac_status=$?
28123   grep -v '^ *+' conftest.er1 >conftest.err
28124   rm -f conftest.er1
28125   cat conftest.err >&5
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); } &&
28128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129   { (case "(($ac_try" in
28130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131   *) ac_try_echo=$ac_try;;
28132 esac
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134   (eval "$ac_try") 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; } &&
28138          { ac_try='test -s conftest$ac_exeext'
28139   { (case "(($ac_try" in
28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141   *) ac_try_echo=$ac_try;;
28142 esac
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144   (eval "$ac_try") 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; }; then
28148   ac_cv_search_pthread_getspecific=$ac_res
28149 else
28150   echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28152
28153
28154 fi
28155
28156 rm -f core conftest.err conftest.$ac_objext \
28157       conftest$ac_exeext
28158   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28159   break
28160 fi
28161 done
28162 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28163   :
28164 else
28165   ac_cv_search_pthread_getspecific=no
28166 fi
28167 rm conftest.$ac_ext
28168 LIBS=$ac_func_search_save_LIBS
28169 fi
28170 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28171 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28172 ac_res=$ac_cv_search_pthread_getspecific
28173 if test "$ac_res" != no; then
28174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28175
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_PTHREAD_GETSPECIFIC 1
28178 _ACEOF
28179
28180 fi
28181
28182 fi
28183
28184
28185 # Check whether --with-udis86 was given.
28186 if test "${with_udis86+set}" = set; then
28187   withval=$with_udis86;
28188       USE_UDIS86=1
28189
28190       case "$withval" in
28191         /usr/lib|yes) ;;
28192         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28193       esac
28194
28195 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28196 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28197 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200   ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-ludis86  $LIBS"
28202 cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h.  */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h.  */
28208
28209 /* Override any GCC internal prototype to avoid an error.
28210    Use char because int might match the return type of a GCC
28211    builtin and then its argument prototype would still apply.  */
28212 #ifdef __cplusplus
28213 extern "C"
28214 #endif
28215 char ud_init ();
28216 int
28217 main ()
28218 {
28219 return ud_init ();
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (ac_try="$ac_link"
28226 case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_link") 2>conftest.er1
28232   ac_status=$?
28233   grep -v '^ *+' conftest.er1 >conftest.err
28234   rm -f conftest.er1
28235   cat conftest.err >&5
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); } &&
28238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28239   { (case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_try") 2>&5
28245   ac_status=$?
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); }; } &&
28248          { ac_try='test -s conftest$ac_exeext'
28249   { (case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_try") 2>&5
28255   ac_status=$?
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); }; }; then
28258   ac_cv_lib_udis86_ud_init=yes
28259 else
28260   echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28262
28263         ac_cv_lib_udis86_ud_init=no
28264 fi
28265
28266 rm -f core conftest.err conftest.$ac_objext \
28267       conftest$ac_exeext conftest.$ac_ext
28268 LIBS=$ac_check_lib_save_LIBS
28269 fi
28270 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28271 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28272 if test $ac_cv_lib_udis86_ud_init = yes; then
28273   cat >>confdefs.h <<_ACEOF
28274 #define HAVE_LIBUDIS86 1
28275 _ACEOF
28276
28277   LIBS="-ludis86 $LIBS"
28278
28279 else
28280
28281         echo "Error! You need to have libudis86 around."
28282         exit -1
28283
28284 fi
28285
28286
28287 else
28288   USE_UDIS86=0
28289
28290 fi
28291
28292
28293 cat >>confdefs.h <<_ACEOF
28294 #define USE_UDIS86 $USE_UDIS86
28295 _ACEOF
28296
28297
28298
28299
28300
28301
28302
28303
28304 ac_header_dirent=no
28305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28306   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28307 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28308 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28310   echo $ECHO_N "(cached) $ECHO_C" >&6
28311 else
28312   cat >conftest.$ac_ext <<_ACEOF
28313 /* confdefs.h.  */
28314 _ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h.  */
28318 #include <sys/types.h>
28319 #include <$ac_hdr>
28320
28321 int
28322 main ()
28323 {
28324 if ((DIR *) 0)
28325 return 0;
28326   ;
28327   return 0;
28328 }
28329 _ACEOF
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334   *) ac_try_echo=$ac_try;;
28335 esac
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337   (eval "$ac_compile") 2>conftest.er1
28338   ac_status=$?
28339   grep -v '^ *+' conftest.er1 >conftest.err
28340   rm -f conftest.er1
28341   cat conftest.err >&5
28342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); } &&
28344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28345   { (case "(($ac_try" in
28346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347   *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350   (eval "$ac_try") 2>&5
28351   ac_status=$?
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); }; } &&
28354          { ac_try='test -s conftest.$ac_objext'
28355   { (case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360   (eval "$ac_try") 2>&5
28361   ac_status=$?
28362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363   (exit $ac_status); }; }; then
28364   eval "$as_ac_Header=yes"
28365 else
28366   echo "$as_me: failed program was:" >&5
28367 sed 's/^/| /' conftest.$ac_ext >&5
28368
28369         eval "$as_ac_Header=no"
28370 fi
28371
28372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28373 fi
28374 ac_res=`eval echo '${'$as_ac_Header'}'`
28375                { echo "$as_me:$LINENO: result: $ac_res" >&5
28376 echo "${ECHO_T}$ac_res" >&6; }
28377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28378   cat >>confdefs.h <<_ACEOF
28379 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28380 _ACEOF
28381
28382 ac_header_dirent=$ac_hdr; break
28383 fi
28384
28385 done
28386 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28387 if test $ac_header_dirent = dirent.h; then
28388   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28390 if test "${ac_cv_search_opendir+set}" = set; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393   ac_func_search_save_LIBS=$LIBS
28394 cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400
28401 /* Override any GCC internal prototype to avoid an error.
28402    Use char because int might match the return type of a GCC
28403    builtin and then its argument prototype would still apply.  */
28404 #ifdef __cplusplus
28405 extern "C"
28406 #endif
28407 char opendir ();
28408 int
28409 main ()
28410 {
28411 return opendir ();
28412   ;
28413   return 0;
28414 }
28415 _ACEOF
28416 for ac_lib in '' dir; do
28417   if test -z "$ac_lib"; then
28418     ac_res="none required"
28419   else
28420     ac_res=-l$ac_lib
28421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28422   fi
28423   rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_link") 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } &&
28437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28438   { (case "(($ac_try" in
28439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440   *) ac_try_echo=$ac_try;;
28441 esac
28442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443   (eval "$ac_try") 2>&5
28444   ac_status=$?
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); }; } &&
28447          { ac_try='test -s conftest$ac_exeext'
28448   { (case "(($ac_try" in
28449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450   *) ac_try_echo=$ac_try;;
28451 esac
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453   (eval "$ac_try") 2>&5
28454   ac_status=$?
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); }; }; then
28457   ac_cv_search_opendir=$ac_res
28458 else
28459   echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28461
28462
28463 fi
28464
28465 rm -f core conftest.err conftest.$ac_objext \
28466       conftest$ac_exeext
28467   if test "${ac_cv_search_opendir+set}" = set; then
28468   break
28469 fi
28470 done
28471 if test "${ac_cv_search_opendir+set}" = set; then
28472   :
28473 else
28474   ac_cv_search_opendir=no
28475 fi
28476 rm conftest.$ac_ext
28477 LIBS=$ac_func_search_save_LIBS
28478 fi
28479 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28480 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28481 ac_res=$ac_cv_search_opendir
28482 if test "$ac_res" != no; then
28483   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28484
28485 fi
28486
28487 else
28488   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28489 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28490 if test "${ac_cv_search_opendir+set}" = set; then
28491   echo $ECHO_N "(cached) $ECHO_C" >&6
28492 else
28493   ac_func_search_save_LIBS=$LIBS
28494 cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500
28501 /* Override any GCC internal prototype to avoid an error.
28502    Use char because int might match the return type of a GCC
28503    builtin and then its argument prototype would still apply.  */
28504 #ifdef __cplusplus
28505 extern "C"
28506 #endif
28507 char opendir ();
28508 int
28509 main ()
28510 {
28511 return opendir ();
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 for ac_lib in '' x; do
28517   if test -z "$ac_lib"; then
28518     ac_res="none required"
28519   else
28520     ac_res=-l$ac_lib
28521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28522   fi
28523   rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530   (eval "$ac_link") 2>conftest.er1
28531   ac_status=$?
28532   grep -v '^ *+' conftest.er1 >conftest.err
28533   rm -f conftest.er1
28534   cat conftest.err >&5
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); } &&
28537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28538   { (case "(($ac_try" in
28539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540   *) ac_try_echo=$ac_try;;
28541 esac
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543   (eval "$ac_try") 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; } &&
28547          { ac_try='test -s conftest$ac_exeext'
28548   { (case "(($ac_try" in
28549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550   *) ac_try_echo=$ac_try;;
28551 esac
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553   (eval "$ac_try") 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; }; then
28557   ac_cv_search_opendir=$ac_res
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562
28563 fi
28564
28565 rm -f core conftest.err conftest.$ac_objext \
28566       conftest$ac_exeext
28567   if test "${ac_cv_search_opendir+set}" = set; then
28568   break
28569 fi
28570 done
28571 if test "${ac_cv_search_opendir+set}" = set; then
28572   :
28573 else
28574   ac_cv_search_opendir=no
28575 fi
28576 rm conftest.$ac_ext
28577 LIBS=$ac_func_search_save_LIBS
28578 fi
28579 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28580 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28581 ac_res=$ac_cv_search_opendir
28582 if test "$ac_res" != no; then
28583   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28584
28585 fi
28586
28587 fi
28588
28589 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28590 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28591 if test "${ac_cv_header_mmap_anon+set}" = set; then
28592   echo $ECHO_N "(cached) $ECHO_C" >&6
28593 else
28594    ac_ext=c
28595 ac_cpp='$CPP $CPPFLAGS'
28596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28599
28600   cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606 #include <sys/mman.h>
28607 #include <unistd.h>
28608 #include <fcntl.h>
28609 int
28610 main ()
28611 {
28612 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_compile") 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } &&
28631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28632   { (case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637   (eval "$ac_try") 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); }; } &&
28641          { ac_try='test -s conftest.$ac_objext'
28642   { (case "(($ac_try" in
28643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644   *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647   (eval "$ac_try") 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); }; }; then
28651   ac_cv_header_mmap_anon=yes
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656         ac_cv_header_mmap_anon=no
28657 fi
28658
28659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28660   ac_ext=c
28661 ac_cpp='$CPP $CPPFLAGS'
28662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28665
28666
28667 fi
28668 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28669 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28670 if test "$ac_cv_header_mmap_anon" = yes; then
28671
28672 cat >>confdefs.h <<\_ACEOF
28673 #define HAVE_MMAP_ANONYMOUS 1
28674 _ACEOF
28675
28676 fi
28677
28678 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28679 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28680 if test "${ac_cv_header_stat_broken+set}" = set; then
28681   echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683   cat >conftest.$ac_ext <<_ACEOF
28684 /* confdefs.h.  */
28685 _ACEOF
28686 cat confdefs.h >>conftest.$ac_ext
28687 cat >>conftest.$ac_ext <<_ACEOF
28688 /* end confdefs.h.  */
28689 #include <sys/types.h>
28690 #include <sys/stat.h>
28691
28692 #if defined S_ISBLK && defined S_IFDIR
28693 # if S_ISBLK (S_IFDIR)
28694 You lose.
28695 # endif
28696 #endif
28697
28698 #if defined S_ISBLK && defined S_IFCHR
28699 # if S_ISBLK (S_IFCHR)
28700 You lose.
28701 # endif
28702 #endif
28703
28704 #if defined S_ISLNK && defined S_IFREG
28705 # if S_ISLNK (S_IFREG)
28706 You lose.
28707 # endif
28708 #endif
28709
28710 #if defined S_ISSOCK && defined S_IFREG
28711 # if S_ISSOCK (S_IFREG)
28712 You lose.
28713 # endif
28714 #endif
28715
28716 _ACEOF
28717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28718   $EGREP "You lose" >/dev/null 2>&1; then
28719   ac_cv_header_stat_broken=yes
28720 else
28721   ac_cv_header_stat_broken=no
28722 fi
28723 rm -f conftest*
28724
28725 fi
28726 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28727 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28728 if test $ac_cv_header_stat_broken = yes; then
28729
28730 cat >>confdefs.h <<\_ACEOF
28731 #define STAT_MACROS_BROKEN 1
28732 _ACEOF
28733
28734 fi
28735
28736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28738 if test "${ac_cv_header_stdc+set}" = set; then
28739   echo $ECHO_N "(cached) $ECHO_C" >&6
28740 else
28741   cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747 #include <stdlib.h>
28748 #include <stdarg.h>
28749 #include <string.h>
28750 #include <float.h>
28751
28752 int
28753 main ()
28754 {
28755
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext
28761 if { (ac_try="$ac_compile"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_compile") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } &&
28774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775   { (case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_try") 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; } &&
28784          { ac_try='test -s conftest.$ac_objext'
28785   { (case "(($ac_try" in
28786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787   *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790   (eval "$ac_try") 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794   ac_cv_header_stdc=yes
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799         ac_cv_header_stdc=no
28800 fi
28801
28802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803
28804 if test $ac_cv_header_stdc = yes; then
28805   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28806   cat >conftest.$ac_ext <<_ACEOF
28807 /* confdefs.h.  */
28808 _ACEOF
28809 cat confdefs.h >>conftest.$ac_ext
28810 cat >>conftest.$ac_ext <<_ACEOF
28811 /* end confdefs.h.  */
28812 #include <string.h>
28813
28814 _ACEOF
28815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28816   $EGREP "memchr" >/dev/null 2>&1; then
28817   :
28818 else
28819   ac_cv_header_stdc=no
28820 fi
28821 rm -f conftest*
28822
28823 fi
28824
28825 if test $ac_cv_header_stdc = yes; then
28826   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28827   cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833 #include <stdlib.h>
28834
28835 _ACEOF
28836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28837   $EGREP "free" >/dev/null 2>&1; then
28838   :
28839 else
28840   ac_cv_header_stdc=no
28841 fi
28842 rm -f conftest*
28843
28844 fi
28845
28846 if test $ac_cv_header_stdc = yes; then
28847   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28848   if test "$cross_compiling" = yes; then
28849   :
28850 else
28851   cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 #include <ctype.h>
28858 #include <stdlib.h>
28859 #if ((' ' & 0x0FF) == 0x020)
28860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28862 #else
28863 # define ISLOWER(c) \
28864                    (('a' <= (c) && (c) <= 'i') \
28865                      || ('j' <= (c) && (c) <= 'r') \
28866                      || ('s' <= (c) && (c) <= 'z'))
28867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28868 #endif
28869
28870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28871 int
28872 main ()
28873 {
28874   int i;
28875   for (i = 0; i < 256; i++)
28876     if (XOR (islower (i), ISLOWER (i))
28877         || toupper (i) != TOUPPER (i))
28878       return 2;
28879   return 0;
28880 }
28881 _ACEOF
28882 rm -f conftest$ac_exeext
28883 if { (ac_try="$ac_link"
28884 case "(($ac_try" in
28885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886   *) ac_try_echo=$ac_try;;
28887 esac
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889   (eval "$ac_link") 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28893   { (case "(($ac_try" in
28894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895   *) ac_try_echo=$ac_try;;
28896 esac
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898   (eval "$ac_try") 2>&5
28899   ac_status=$?
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); }; }; then
28902   :
28903 else
28904   echo "$as_me: program exited with status $ac_status" >&5
28905 echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28907
28908 ( exit $ac_status )
28909 ac_cv_header_stdc=no
28910 fi
28911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28912 fi
28913
28914
28915 fi
28916 fi
28917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28919 if test $ac_cv_header_stdc = yes; then
28920
28921 cat >>confdefs.h <<\_ACEOF
28922 #define STDC_HEADERS 1
28923 _ACEOF
28924
28925 fi
28926
28927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932   cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h.  */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h.  */
28938 #include <sys/types.h>
28939 #include <sys/wait.h>
28940 #ifndef WEXITSTATUS
28941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28942 #endif
28943 #ifndef WIFEXITED
28944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28945 #endif
28946
28947 int
28948 main ()
28949 {
28950   int s;
28951   wait (&s);
28952   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28953   ;
28954   return 0;
28955 }
28956 _ACEOF
28957 rm -f conftest.$ac_objext
28958 if { (ac_try="$ac_compile"
28959 case "(($ac_try" in
28960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961   *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964   (eval "$ac_compile") 2>conftest.er1
28965   ac_status=$?
28966   grep -v '^ *+' conftest.er1 >conftest.err
28967   rm -f conftest.er1
28968   cat conftest.err >&5
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); } &&
28971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28972   { (case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977   (eval "$ac_try") 2>&5
28978   ac_status=$?
28979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980   (exit $ac_status); }; } &&
28981          { ac_try='test -s conftest.$ac_objext'
28982   { (case "(($ac_try" in
28983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984   *) ac_try_echo=$ac_try;;
28985 esac
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987   (eval "$ac_try") 2>&5
28988   ac_status=$?
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); }; }; then
28991   ac_cv_header_sys_wait_h=yes
28992 else
28993   echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28995
28996         ac_cv_header_sys_wait_h=no
28997 fi
28998
28999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29000 fi
29001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29003 if test $ac_cv_header_sys_wait_h = yes; then
29004
29005 cat >>confdefs.h <<\_ACEOF
29006 #define HAVE_SYS_WAIT_H 1
29007 _ACEOF
29008
29009 fi
29010
29011 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29012 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29013 if test "${ac_cv_header_time+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016   cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h.  */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h.  */
29022 #include <sys/types.h>
29023 #include <sys/time.h>
29024 #include <time.h>
29025
29026 int
29027 main ()
29028 {
29029 if ((struct tm *) 0)
29030 return 0;
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 rm -f conftest.$ac_objext
29036 if { (ac_try="$ac_compile"
29037 case "(($ac_try" in
29038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039   *) ac_try_echo=$ac_try;;
29040 esac
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042   (eval "$ac_compile") 2>conftest.er1
29043   ac_status=$?
29044   grep -v '^ *+' conftest.er1 >conftest.err
29045   rm -f conftest.er1
29046   cat conftest.err >&5
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); } &&
29049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050   { (case "(($ac_try" in
29051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052   *) ac_try_echo=$ac_try;;
29053 esac
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055   (eval "$ac_try") 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; } &&
29059          { ac_try='test -s conftest.$ac_objext'
29060   { (case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_try") 2>&5
29066   ac_status=$?
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); }; }; then
29069   ac_cv_header_time=yes
29070 else
29071   echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29073
29074         ac_cv_header_time=no
29075 fi
29076
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078 fi
29079 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29080 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29081 if test $ac_cv_header_time = yes; then
29082
29083 cat >>confdefs.h <<\_ACEOF
29084 #define TIME_WITH_SYS_TIME 1
29085 _ACEOF
29086
29087 fi
29088
29089
29090
29091
29092
29093
29094
29095
29096 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29097 do
29098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103   echo $ECHO_N "(cached) $ECHO_C" >&6
29104 fi
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106                { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29108 else
29109   # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h.  */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h.  */
29118 $ac_includes_default
29119 #include <$ac_header>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128   (eval "$ac_compile") 2>conftest.er1
29129   ac_status=$?
29130   grep -v '^ *+' conftest.er1 >conftest.err
29131   rm -f conftest.er1
29132   cat conftest.err >&5
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } &&
29135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136   { (case "(($ac_try" in
29137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138   *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141   (eval "$ac_try") 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); }; } &&
29145          { ac_try='test -s conftest.$ac_objext'
29146   { (case "(($ac_try" in
29147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148   *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151   (eval "$ac_try") 2>&5
29152   ac_status=$?
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); }; }; then
29155   ac_header_compiler=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_header_compiler=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29166
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h.  */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h.  */
29176 #include <$ac_header>
29177 _ACEOF
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } >/dev/null; then
29191   if test -s conftest.err; then
29192     ac_cpp_err=$ac_c_preproc_warn_flag
29193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194   else
29195     ac_cpp_err=
29196   fi
29197 else
29198   ac_cpp_err=yes
29199 fi
29200 if test -z "$ac_cpp_err"; then
29201   ac_header_preproc=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206   ac_header_preproc=no
29207 fi
29208
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29212
29213 # So?  What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215   yes:no: )
29216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220     ac_header_preproc=yes
29221     ;;
29222   no:yes:* )
29223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29235     ( cat <<\_ASBOX
29236 ## ----------------------------------- ##
29237 ## Report this to llvmbugs@cs.uiuc.edu ##
29238 ## ----------------------------------- ##
29239 _ASBOX
29240      ) | sed "s/^/$as_me: WARNING:     /" >&2
29241     ;;
29242 esac
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246   echo $ECHO_N "(cached) $ECHO_C" >&6
29247 else
29248   eval "$as_ac_Header=\$ac_header_preproc"
29249 fi
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251                { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29253
29254 fi
29255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256   cat >>confdefs.h <<_ACEOF
29257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29258 _ACEOF
29259
29260 fi
29261
29262 done
29263
29264
29265
29266
29267
29268
29269
29270 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29271 do
29272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277   echo $ECHO_N "(cached) $ECHO_C" >&6
29278 fi
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280                { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29282 else
29283   # Is the header compilable?
29284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29286 cat >conftest.$ac_ext <<_ACEOF
29287 /* confdefs.h.  */
29288 _ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h.  */
29292 $ac_includes_default
29293 #include <$ac_header>
29294 _ACEOF
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302   (eval "$ac_compile") 2>conftest.er1
29303   ac_status=$?
29304   grep -v '^ *+' conftest.er1 >conftest.err
29305   rm -f conftest.er1
29306   cat conftest.err >&5
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); } &&
29309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310   { (case "(($ac_try" in
29311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312   *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315   (eval "$ac_try") 2>&5
29316   ac_status=$?
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); }; } &&
29319          { ac_try='test -s conftest.$ac_objext'
29320   { (case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325   (eval "$ac_try") 2>&5
29326   ac_status=$?
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); }; }; then
29329   ac_header_compiler=yes
29330 else
29331   echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29333
29334         ac_header_compiler=no
29335 fi
29336
29337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339 echo "${ECHO_T}$ac_header_compiler" >&6; }
29340
29341 # Is the header present?
29342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 #include <$ac_header>
29351 _ACEOF
29352 if { (ac_try="$ac_cpp conftest.$ac_ext"
29353 case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } >/dev/null; then
29365   if test -s conftest.err; then
29366     ac_cpp_err=$ac_c_preproc_warn_flag
29367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29368   else
29369     ac_cpp_err=
29370   fi
29371 else
29372   ac_cpp_err=yes
29373 fi
29374 if test -z "$ac_cpp_err"; then
29375   ac_header_preproc=yes
29376 else
29377   echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29379
29380   ac_header_preproc=no
29381 fi
29382
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29386
29387 # So?  What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389   yes:no: )
29390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394     ac_header_preproc=yes
29395     ;;
29396   no:yes:* )
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29409     ( cat <<\_ASBOX
29410 ## ----------------------------------- ##
29411 ## Report this to llvmbugs@cs.uiuc.edu ##
29412 ## ----------------------------------- ##
29413 _ASBOX
29414      ) | sed "s/^/$as_me: WARNING:     /" >&2
29415     ;;
29416 esac
29417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   eval "$as_ac_Header=\$ac_header_preproc"
29423 fi
29424 ac_res=`eval echo '${'$as_ac_Header'}'`
29425                { echo "$as_me:$LINENO: result: $ac_res" >&5
29426 echo "${ECHO_T}$ac_res" >&6; }
29427
29428 fi
29429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430   cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29432 _ACEOF
29433
29434 fi
29435
29436 done
29437
29438
29439
29440 for ac_header in utime.h windows.h
29441 do
29442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 fi
29449 ac_res=`eval echo '${'$as_ac_Header'}'`
29450                { echo "$as_me:$LINENO: result: $ac_res" >&5
29451 echo "${ECHO_T}$ac_res" >&6; }
29452 else
29453   # Is the header compilable?
29454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29456 cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 $ac_includes_default
29463 #include <$ac_header>
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472   (eval "$ac_compile") 2>conftest.er1
29473   ac_status=$?
29474   grep -v '^ *+' conftest.er1 >conftest.err
29475   rm -f conftest.er1
29476   cat conftest.err >&5
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); } &&
29479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480   { (case "(($ac_try" in
29481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482   *) ac_try_echo=$ac_try;;
29483 esac
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485   (eval "$ac_try") 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); }; } &&
29489          { ac_try='test -s conftest.$ac_objext'
29490   { (case "(($ac_try" in
29491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492   *) ac_try_echo=$ac_try;;
29493 esac
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495   (eval "$ac_try") 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; }; then
29499   ac_header_compiler=yes
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504         ac_header_compiler=no
29505 fi
29506
29507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29509 echo "${ECHO_T}$ac_header_compiler" >&6; }
29510
29511 # Is the header present?
29512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29514 cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h.  */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h.  */
29520 #include <$ac_header>
29521 _ACEOF
29522 if { (ac_try="$ac_cpp conftest.$ac_ext"
29523 case "(($ac_try" in
29524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525   *) ac_try_echo=$ac_try;;
29526 esac
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29529   ac_status=$?
29530   grep -v '^ *+' conftest.er1 >conftest.err
29531   rm -f conftest.er1
29532   cat conftest.err >&5
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); } >/dev/null; then
29535   if test -s conftest.err; then
29536     ac_cpp_err=$ac_c_preproc_warn_flag
29537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29538   else
29539     ac_cpp_err=
29540   fi
29541 else
29542   ac_cpp_err=yes
29543 fi
29544 if test -z "$ac_cpp_err"; then
29545   ac_header_preproc=yes
29546 else
29547   echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29549
29550   ac_header_preproc=no
29551 fi
29552
29553 rm -f conftest.err conftest.$ac_ext
29554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29555 echo "${ECHO_T}$ac_header_preproc" >&6; }
29556
29557 # So?  What about this header?
29558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29559   yes:no: )
29560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29564     ac_header_preproc=yes
29565     ;;
29566   no:yes:* )
29567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29569     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29570 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29571     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29573     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29574 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29577     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29579     ( cat <<\_ASBOX
29580 ## ----------------------------------- ##
29581 ## Report this to llvmbugs@cs.uiuc.edu ##
29582 ## ----------------------------------- ##
29583 _ASBOX
29584      ) | sed "s/^/$as_me: WARNING:     /" >&2
29585     ;;
29586 esac
29587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29590   echo $ECHO_N "(cached) $ECHO_C" >&6
29591 else
29592   eval "$as_ac_Header=\$ac_header_preproc"
29593 fi
29594 ac_res=`eval echo '${'$as_ac_Header'}'`
29595                { echo "$as_me:$LINENO: result: $ac_res" >&5
29596 echo "${ECHO_T}$ac_res" >&6; }
29597
29598 fi
29599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29600   cat >>confdefs.h <<_ACEOF
29601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29602 _ACEOF
29603
29604 fi
29605
29606 done
29607
29608
29609
29610
29611
29612 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29613 do
29614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29619   echo $ECHO_N "(cached) $ECHO_C" >&6
29620 fi
29621 ac_res=`eval echo '${'$as_ac_Header'}'`
29622                { echo "$as_me:$LINENO: result: $ac_res" >&5
29623 echo "${ECHO_T}$ac_res" >&6; }
29624 else
29625   # Is the header compilable?
29626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29628 cat >conftest.$ac_ext <<_ACEOF
29629 /* confdefs.h.  */
29630 _ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h.  */
29634 $ac_includes_default
29635 #include <$ac_header>
29636 _ACEOF
29637 rm -f conftest.$ac_objext
29638 if { (ac_try="$ac_compile"
29639 case "(($ac_try" in
29640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641   *) ac_try_echo=$ac_try;;
29642 esac
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644   (eval "$ac_compile") 2>conftest.er1
29645   ac_status=$?
29646   grep -v '^ *+' conftest.er1 >conftest.err
29647   rm -f conftest.er1
29648   cat conftest.err >&5
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); } &&
29651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29652   { (case "(($ac_try" in
29653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654   *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657   (eval "$ac_try") 2>&5
29658   ac_status=$?
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); }; } &&
29661          { ac_try='test -s conftest.$ac_objext'
29662   { (case "(($ac_try" in
29663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664   *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667   (eval "$ac_try") 2>&5
29668   ac_status=$?
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); }; }; then
29671   ac_header_compiler=yes
29672 else
29673   echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29675
29676         ac_header_compiler=no
29677 fi
29678
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29681 echo "${ECHO_T}$ac_header_compiler" >&6; }
29682
29683 # Is the header present?
29684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29686 cat >conftest.$ac_ext <<_ACEOF
29687 /* confdefs.h.  */
29688 _ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h.  */
29692 #include <$ac_header>
29693 _ACEOF
29694 if { (ac_try="$ac_cpp conftest.$ac_ext"
29695 case "(($ac_try" in
29696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697   *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29701   ac_status=$?
29702   grep -v '^ *+' conftest.er1 >conftest.err
29703   rm -f conftest.er1
29704   cat conftest.err >&5
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); } >/dev/null; then
29707   if test -s conftest.err; then
29708     ac_cpp_err=$ac_c_preproc_warn_flag
29709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29710   else
29711     ac_cpp_err=
29712   fi
29713 else
29714   ac_cpp_err=yes
29715 fi
29716 if test -z "$ac_cpp_err"; then
29717   ac_header_preproc=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722   ac_header_preproc=no
29723 fi
29724
29725 rm -f conftest.err conftest.$ac_ext
29726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29727 echo "${ECHO_T}$ac_header_preproc" >&6; }
29728
29729 # So?  What about this header?
29730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29731   yes:no: )
29732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29736     ac_header_preproc=yes
29737     ;;
29738   no:yes:* )
29739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29751     ( cat <<\_ASBOX
29752 ## ----------------------------------- ##
29753 ## Report this to llvmbugs@cs.uiuc.edu ##
29754 ## ----------------------------------- ##
29755 _ASBOX
29756      ) | sed "s/^/$as_me: WARNING:     /" >&2
29757     ;;
29758 esac
29759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29762   echo $ECHO_N "(cached) $ECHO_C" >&6
29763 else
29764   eval "$as_ac_Header=\$ac_header_preproc"
29765 fi
29766 ac_res=`eval echo '${'$as_ac_Header'}'`
29767                { echo "$as_me:$LINENO: result: $ac_res" >&5
29768 echo "${ECHO_T}$ac_res" >&6; }
29769
29770 fi
29771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29772   cat >>confdefs.h <<_ACEOF
29773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29774 _ACEOF
29775
29776 fi
29777
29778 done
29779
29780
29781
29782
29783
29784 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29785 do
29786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29791   echo $ECHO_N "(cached) $ECHO_C" >&6
29792 fi
29793 ac_res=`eval echo '${'$as_ac_Header'}'`
29794                { echo "$as_me:$LINENO: result: $ac_res" >&5
29795 echo "${ECHO_T}$ac_res" >&6; }
29796 else
29797   # Is the header compilable?
29798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29800 cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806 $ac_includes_default
29807 #include <$ac_header>
29808 _ACEOF
29809 rm -f conftest.$ac_objext
29810 if { (ac_try="$ac_compile"
29811 case "(($ac_try" in
29812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813   *) ac_try_echo=$ac_try;;
29814 esac
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816   (eval "$ac_compile") 2>conftest.er1
29817   ac_status=$?
29818   grep -v '^ *+' conftest.er1 >conftest.err
29819   rm -f conftest.er1
29820   cat conftest.err >&5
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); } &&
29823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29824   { (case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_try") 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; } &&
29833          { ac_try='test -s conftest.$ac_objext'
29834   { (case "(($ac_try" in
29835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836   *) ac_try_echo=$ac_try;;
29837 esac
29838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839   (eval "$ac_try") 2>&5
29840   ac_status=$?
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); }; }; then
29843   ac_header_compiler=yes
29844 else
29845   echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29847
29848         ac_header_compiler=no
29849 fi
29850
29851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29853 echo "${ECHO_T}$ac_header_compiler" >&6; }
29854
29855 # Is the header present?
29856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29858 cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864 #include <$ac_header>
29865 _ACEOF
29866 if { (ac_try="$ac_cpp conftest.$ac_ext"
29867 case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29873   ac_status=$?
29874   grep -v '^ *+' conftest.er1 >conftest.err
29875   rm -f conftest.er1
29876   cat conftest.err >&5
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); } >/dev/null; then
29879   if test -s conftest.err; then
29880     ac_cpp_err=$ac_c_preproc_warn_flag
29881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29882   else
29883     ac_cpp_err=
29884   fi
29885 else
29886   ac_cpp_err=yes
29887 fi
29888 if test -z "$ac_cpp_err"; then
29889   ac_header_preproc=yes
29890 else
29891   echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894   ac_header_preproc=no
29895 fi
29896
29897 rm -f conftest.err conftest.$ac_ext
29898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29899 echo "${ECHO_T}$ac_header_preproc" >&6; }
29900
29901 # So?  What about this header?
29902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29903   yes:no: )
29904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29908     ac_header_preproc=yes
29909     ;;
29910   no:yes:* )
29911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29923     ( cat <<\_ASBOX
29924 ## ----------------------------------- ##
29925 ## Report this to llvmbugs@cs.uiuc.edu ##
29926 ## ----------------------------------- ##
29927 _ASBOX
29928      ) | sed "s/^/$as_me: WARNING:     /" >&2
29929     ;;
29930 esac
29931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29934   echo $ECHO_N "(cached) $ECHO_C" >&6
29935 else
29936   eval "$as_ac_Header=\$ac_header_preproc"
29937 fi
29938 ac_res=`eval echo '${'$as_ac_Header'}'`
29939                { echo "$as_me:$LINENO: result: $ac_res" >&5
29940 echo "${ECHO_T}$ac_res" >&6; }
29941
29942 fi
29943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29944   cat >>confdefs.h <<_ACEOF
29945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29946 _ACEOF
29947
29948 fi
29949
29950 done
29951
29952 if test "$ENABLE_THREADS" -eq 1 ; then
29953
29954 for ac_header in pthread.h
29955 do
29956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 fi
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964                { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29966 else
29967   # Is the header compilable?
29968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29970 cat >conftest.$ac_ext <<_ACEOF
29971 /* confdefs.h.  */
29972 _ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h.  */
29976 $ac_includes_default
29977 #include <$ac_header>
29978 _ACEOF
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983   *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986   (eval "$ac_compile") 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994   { (case "(($ac_try" in
29995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996   *) ac_try_echo=$ac_try;;
29997 esac
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999   (eval "$ac_try") 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; } &&
30003          { ac_try='test -s conftest.$ac_objext'
30004   { (case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009   (eval "$ac_try") 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; }; then
30013   ac_header_compiler=yes
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018         ac_header_compiler=no
30019 fi
30020
30021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023 echo "${ECHO_T}$ac_header_compiler" >&6; }
30024
30025 # Is the header present?
30026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 #include <$ac_header>
30035 _ACEOF
30036 if { (ac_try="$ac_cpp conftest.$ac_ext"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } >/dev/null; then
30049   if test -s conftest.err; then
30050     ac_cpp_err=$ac_c_preproc_warn_flag
30051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30052   else
30053     ac_cpp_err=
30054   fi
30055 else
30056   ac_cpp_err=yes
30057 fi
30058 if test -z "$ac_cpp_err"; then
30059   ac_header_preproc=yes
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064   ac_header_preproc=no
30065 fi
30066
30067 rm -f conftest.err conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069 echo "${ECHO_T}$ac_header_preproc" >&6; }
30070
30071 # So?  What about this header?
30072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30073   yes:no: )
30074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30078     ac_header_preproc=yes
30079     ;;
30080   no:yes:* )
30081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30093     ( cat <<\_ASBOX
30094 ## ----------------------------------- ##
30095 ## Report this to llvmbugs@cs.uiuc.edu ##
30096 ## ----------------------------------- ##
30097 _ASBOX
30098      ) | sed "s/^/$as_me: WARNING:     /" >&2
30099     ;;
30100 esac
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 else
30106   eval "$as_ac_Header=\$ac_header_preproc"
30107 fi
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109                { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30111
30112 fi
30113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114   cat >>confdefs.h <<_ACEOF
30115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30116 _ACEOF
30117  HAVE_PTHREAD=1
30118
30119 else
30120   HAVE_PTHREAD=0
30121
30122 fi
30123
30124 done
30125
30126 else
30127   HAVE_PTHREAD=0
30128
30129 fi
30130
30131 if test "$llvm_cv_enable_libffi" = "yes" ; then
30132
30133
30134 for ac_header in ffi.h ffi/ffi.h
30135 do
30136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30141   echo $ECHO_N "(cached) $ECHO_C" >&6
30142 fi
30143 ac_res=`eval echo '${'$as_ac_Header'}'`
30144                { echo "$as_me:$LINENO: result: $ac_res" >&5
30145 echo "${ECHO_T}$ac_res" >&6; }
30146 else
30147   # Is the header compilable?
30148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30150 cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156 $ac_includes_default
30157 #include <$ac_header>
30158 _ACEOF
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_compile") 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } &&
30173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30174   { (case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_try") 2>&5
30180   ac_status=$?
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); }; } &&
30183          { ac_try='test -s conftest.$ac_objext'
30184   { (case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189   (eval "$ac_try") 2>&5
30190   ac_status=$?
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); }; }; then
30193   ac_header_compiler=yes
30194 else
30195   echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30197
30198         ac_header_compiler=no
30199 fi
30200
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30203 echo "${ECHO_T}$ac_header_compiler" >&6; }
30204
30205 # Is the header present?
30206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30208 cat >conftest.$ac_ext <<_ACEOF
30209 /* confdefs.h.  */
30210 _ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h.  */
30214 #include <$ac_header>
30215 _ACEOF
30216 if { (ac_try="$ac_cpp conftest.$ac_ext"
30217 case "(($ac_try" in
30218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219   *) ac_try_echo=$ac_try;;
30220 esac
30221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30223   ac_status=$?
30224   grep -v '^ *+' conftest.er1 >conftest.err
30225   rm -f conftest.er1
30226   cat conftest.err >&5
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); } >/dev/null; then
30229   if test -s conftest.err; then
30230     ac_cpp_err=$ac_c_preproc_warn_flag
30231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30232   else
30233     ac_cpp_err=
30234   fi
30235 else
30236   ac_cpp_err=yes
30237 fi
30238 if test -z "$ac_cpp_err"; then
30239   ac_header_preproc=yes
30240 else
30241   echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244   ac_header_preproc=no
30245 fi
30246
30247 rm -f conftest.err conftest.$ac_ext
30248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30249 echo "${ECHO_T}$ac_header_preproc" >&6; }
30250
30251 # So?  What about this header?
30252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30253   yes:no: )
30254     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30258     ac_header_preproc=yes
30259     ;;
30260   no:yes:* )
30261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30263     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30264 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30265     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30267     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30268 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30271     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30273     ( cat <<\_ASBOX
30274 ## ----------------------------------- ##
30275 ## Report this to llvmbugs@cs.uiuc.edu ##
30276 ## ----------------------------------- ##
30277 _ASBOX
30278      ) | sed "s/^/$as_me: WARNING:     /" >&2
30279     ;;
30280 esac
30281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30284   echo $ECHO_N "(cached) $ECHO_C" >&6
30285 else
30286   eval "$as_ac_Header=\$ac_header_preproc"
30287 fi
30288 ac_res=`eval echo '${'$as_ac_Header'}'`
30289                { echo "$as_me:$LINENO: result: $ac_res" >&5
30290 echo "${ECHO_T}$ac_res" >&6; }
30291
30292 fi
30293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30294   cat >>confdefs.h <<_ACEOF
30295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30296 _ACEOF
30297
30298 fi
30299
30300 done
30301
30302 fi
30303
30304
30305
30306   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30307 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30308 if test "${ac_cv_huge_val_sanity+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311
30312     ac_ext=cpp
30313 ac_cpp='$CXXCPP $CPPFLAGS'
30314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30317
30318     CXXFLAGS=-pedantic
30319     if test "$cross_compiling" = yes; then
30320   ac_cv_huge_val_sanity=yes
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 #include <math.h>
30329 int
30330 main ()
30331 {
30332 double x = HUGE_VAL; return x != x;
30333   ;
30334   return 0;
30335 }
30336 _ACEOF
30337 rm -f conftest$ac_exeext
30338 if { (ac_try="$ac_link"
30339 case "(($ac_try" in
30340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30341   *) ac_try_echo=$ac_try;;
30342 esac
30343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344   (eval "$ac_link") 2>&5
30345   ac_status=$?
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30348   { (case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_try") 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; }; then
30357   ac_cv_huge_val_sanity=yes
30358 else
30359   echo "$as_me: program exited with status $ac_status" >&5
30360 echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30362
30363 ( exit $ac_status )
30364 ac_cv_huge_val_sanity=no
30365 fi
30366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30367 fi
30368
30369
30370     ac_ext=c
30371 ac_cpp='$CPP $CPPFLAGS'
30372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30375
30376
30377 fi
30378 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30379 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30380   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30381
30382
30383 { echo "$as_me:$LINENO: checking for pid_t" >&5
30384 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30385 if test "${ac_cv_type_pid_t+set}" = set; then
30386   echo $ECHO_N "(cached) $ECHO_C" >&6
30387 else
30388   cat >conftest.$ac_ext <<_ACEOF
30389 /* confdefs.h.  */
30390 _ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h.  */
30394 $ac_includes_default
30395 typedef pid_t ac__type_new_;
30396 int
30397 main ()
30398 {
30399 if ((ac__type_new_ *) 0)
30400   return 0;
30401 if (sizeof (ac__type_new_))
30402   return 0;
30403   ;
30404   return 0;
30405 }
30406 _ACEOF
30407 rm -f conftest.$ac_objext
30408 if { (ac_try="$ac_compile"
30409 case "(($ac_try" in
30410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411   *) ac_try_echo=$ac_try;;
30412 esac
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414   (eval "$ac_compile") 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } &&
30421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422   { (case "(($ac_try" in
30423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424   *) ac_try_echo=$ac_try;;
30425 esac
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427   (eval "$ac_try") 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; } &&
30431          { ac_try='test -s conftest.$ac_objext'
30432   { (case "(($ac_try" in
30433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434   *) ac_try_echo=$ac_try;;
30435 esac
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437   (eval "$ac_try") 2>&5
30438   ac_status=$?
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); }; }; then
30441   ac_cv_type_pid_t=yes
30442 else
30443   echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30445
30446         ac_cv_type_pid_t=no
30447 fi
30448
30449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30450 fi
30451 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30452 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30453 if test $ac_cv_type_pid_t = yes; then
30454   :
30455 else
30456
30457 cat >>confdefs.h <<_ACEOF
30458 #define pid_t int
30459 _ACEOF
30460
30461 fi
30462
30463 { echo "$as_me:$LINENO: checking for size_t" >&5
30464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30465 if test "${ac_cv_type_size_t+set}" = set; then
30466   echo $ECHO_N "(cached) $ECHO_C" >&6
30467 else
30468   cat >conftest.$ac_ext <<_ACEOF
30469 /* confdefs.h.  */
30470 _ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h.  */
30474 $ac_includes_default
30475 typedef size_t ac__type_new_;
30476 int
30477 main ()
30478 {
30479 if ((ac__type_new_ *) 0)
30480   return 0;
30481 if (sizeof (ac__type_new_))
30482   return 0;
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_compile") 2>conftest.er1
30495   ac_status=$?
30496   grep -v '^ *+' conftest.er1 >conftest.err
30497   rm -f conftest.er1
30498   cat conftest.err >&5
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); } &&
30501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30502   { (case "(($ac_try" in
30503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30504   *) ac_try_echo=$ac_try;;
30505 esac
30506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30507   (eval "$ac_try") 2>&5
30508   ac_status=$?
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); }; } &&
30511          { ac_try='test -s conftest.$ac_objext'
30512   { (case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_try") 2>&5
30518   ac_status=$?
30519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520   (exit $ac_status); }; }; then
30521   ac_cv_type_size_t=yes
30522 else
30523   echo "$as_me: failed program was:" >&5
30524 sed 's/^/| /' conftest.$ac_ext >&5
30525
30526         ac_cv_type_size_t=no
30527 fi
30528
30529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30530 fi
30531 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30532 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30533 if test $ac_cv_type_size_t = yes; then
30534   :
30535 else
30536
30537 cat >>confdefs.h <<_ACEOF
30538 #define size_t unsigned int
30539 _ACEOF
30540
30541 fi
30542
30543 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30544 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30545 if test "${ac_cv_type_signal+set}" = set; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 else
30548   cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h.  */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h.  */
30554 #include <sys/types.h>
30555 #include <signal.h>
30556
30557 int
30558 main ()
30559 {
30560 return *(signal (0, 0)) (0) == 1;
30561   ;
30562   return 0;
30563 }
30564 _ACEOF
30565 rm -f conftest.$ac_objext
30566 if { (ac_try="$ac_compile"
30567 case "(($ac_try" in
30568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569   *) ac_try_echo=$ac_try;;
30570 esac
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572   (eval "$ac_compile") 2>conftest.er1
30573   ac_status=$?
30574   grep -v '^ *+' conftest.er1 >conftest.err
30575   rm -f conftest.er1
30576   cat conftest.err >&5
30577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578   (exit $ac_status); } &&
30579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30580   { (case "(($ac_try" in
30581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582   *) ac_try_echo=$ac_try;;
30583 esac
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585   (eval "$ac_try") 2>&5
30586   ac_status=$?
30587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588   (exit $ac_status); }; } &&
30589          { ac_try='test -s conftest.$ac_objext'
30590   { (case "(($ac_try" in
30591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592   *) ac_try_echo=$ac_try;;
30593 esac
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595   (eval "$ac_try") 2>&5
30596   ac_status=$?
30597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598   (exit $ac_status); }; }; then
30599   ac_cv_type_signal=int
30600 else
30601   echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30603
30604         ac_cv_type_signal=void
30605 fi
30606
30607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30608 fi
30609 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30610 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30611
30612 cat >>confdefs.h <<_ACEOF
30613 #define RETSIGTYPE $ac_cv_type_signal
30614 _ACEOF
30615
30616
30617 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30618 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30619 if test "${ac_cv_struct_tm+set}" = set; then
30620   echo $ECHO_N "(cached) $ECHO_C" >&6
30621 else
30622   cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628 #include <sys/types.h>
30629 #include <time.h>
30630
30631 int
30632 main ()
30633 {
30634 struct tm *tp; tp->tm_sec;
30635   ;
30636   return 0;
30637 }
30638 _ACEOF
30639 rm -f conftest.$ac_objext
30640 if { (ac_try="$ac_compile"
30641 case "(($ac_try" in
30642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643   *) ac_try_echo=$ac_try;;
30644 esac
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646   (eval "$ac_compile") 2>conftest.er1
30647   ac_status=$?
30648   grep -v '^ *+' conftest.er1 >conftest.err
30649   rm -f conftest.er1
30650   cat conftest.err >&5
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); } &&
30653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654   { (case "(($ac_try" in
30655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656   *) ac_try_echo=$ac_try;;
30657 esac
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659   (eval "$ac_try") 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; } &&
30663          { ac_try='test -s conftest.$ac_objext'
30664   { (case "(($ac_try" in
30665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666   *) ac_try_echo=$ac_try;;
30667 esac
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669   (eval "$ac_try") 2>&5
30670   ac_status=$?
30671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672   (exit $ac_status); }; }; then
30673   ac_cv_struct_tm=time.h
30674 else
30675   echo "$as_me: failed program was:" >&5
30676 sed 's/^/| /' conftest.$ac_ext >&5
30677
30678         ac_cv_struct_tm=sys/time.h
30679 fi
30680
30681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30682 fi
30683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30685 if test $ac_cv_struct_tm = sys/time.h; then
30686
30687 cat >>confdefs.h <<\_ACEOF
30688 #define TM_IN_SYS_TIME 1
30689 _ACEOF
30690
30691 fi
30692
30693 { echo "$as_me:$LINENO: checking for int64_t" >&5
30694 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30695 if test "${ac_cv_type_int64_t+set}" = set; then
30696   echo $ECHO_N "(cached) $ECHO_C" >&6
30697 else
30698   cat >conftest.$ac_ext <<_ACEOF
30699 /* confdefs.h.  */
30700 _ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h.  */
30704 $ac_includes_default
30705 typedef int64_t ac__type_new_;
30706 int
30707 main ()
30708 {
30709 if ((ac__type_new_ *) 0)
30710   return 0;
30711 if (sizeof (ac__type_new_))
30712   return 0;
30713   ;
30714   return 0;
30715 }
30716 _ACEOF
30717 rm -f conftest.$ac_objext
30718 if { (ac_try="$ac_compile"
30719 case "(($ac_try" in
30720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721   *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724   (eval "$ac_compile") 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } &&
30731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732   { (case "(($ac_try" in
30733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734   *) ac_try_echo=$ac_try;;
30735 esac
30736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737   (eval "$ac_try") 2>&5
30738   ac_status=$?
30739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740   (exit $ac_status); }; } &&
30741          { ac_try='test -s conftest.$ac_objext'
30742   { (case "(($ac_try" in
30743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744   *) ac_try_echo=$ac_try;;
30745 esac
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747   (eval "$ac_try") 2>&5
30748   ac_status=$?
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); }; }; then
30751   ac_cv_type_int64_t=yes
30752 else
30753   echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30755
30756         ac_cv_type_int64_t=no
30757 fi
30758
30759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30760 fi
30761 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30762 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30763 if test $ac_cv_type_int64_t = yes; then
30764
30765 cat >>confdefs.h <<_ACEOF
30766 #define HAVE_INT64_T 1
30767 _ACEOF
30768
30769
30770 else
30771   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30772 echo "$as_me: error: Type int64_t required but not found" >&2;}
30773    { (exit 1); exit 1; }; }
30774 fi
30775
30776 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30777 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30778 if test "${ac_cv_type_uint64_t+set}" = set; then
30779   echo $ECHO_N "(cached) $ECHO_C" >&6
30780 else
30781   cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787 $ac_includes_default
30788 typedef uint64_t ac__type_new_;
30789 int
30790 main ()
30791 {
30792 if ((ac__type_new_ *) 0)
30793   return 0;
30794 if (sizeof (ac__type_new_))
30795   return 0;
30796   ;
30797   return 0;
30798 }
30799 _ACEOF
30800 rm -f conftest.$ac_objext
30801 if { (ac_try="$ac_compile"
30802 case "(($ac_try" in
30803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804   *) ac_try_echo=$ac_try;;
30805 esac
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807   (eval "$ac_compile") 2>conftest.er1
30808   ac_status=$?
30809   grep -v '^ *+' conftest.er1 >conftest.err
30810   rm -f conftest.er1
30811   cat conftest.err >&5
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); } &&
30814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815   { (case "(($ac_try" in
30816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817   *) ac_try_echo=$ac_try;;
30818 esac
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820   (eval "$ac_try") 2>&5
30821   ac_status=$?
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); }; } &&
30824          { ac_try='test -s conftest.$ac_objext'
30825   { (case "(($ac_try" in
30826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827   *) ac_try_echo=$ac_try;;
30828 esac
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830   (eval "$ac_try") 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); }; }; then
30834   ac_cv_type_uint64_t=yes
30835 else
30836   echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30838
30839         ac_cv_type_uint64_t=no
30840 fi
30841
30842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30843 fi
30844 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30845 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30846 if test $ac_cv_type_uint64_t = yes; then
30847
30848 cat >>confdefs.h <<_ACEOF
30849 #define HAVE_UINT64_T 1
30850 _ACEOF
30851
30852
30853 else
30854   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30855 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30856 if test "${ac_cv_type_u_int64_t+set}" = set; then
30857   echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859   cat >conftest.$ac_ext <<_ACEOF
30860 /* confdefs.h.  */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h.  */
30865 $ac_includes_default
30866 typedef u_int64_t ac__type_new_;
30867 int
30868 main ()
30869 {
30870 if ((ac__type_new_ *) 0)
30871   return 0;
30872 if (sizeof (ac__type_new_))
30873   return 0;
30874   ;
30875   return 0;
30876 }
30877 _ACEOF
30878 rm -f conftest.$ac_objext
30879 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30886   ac_status=$?
30887   grep -v '^ *+' conftest.er1 >conftest.err
30888   rm -f conftest.er1
30889   cat conftest.err >&5
30890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891   (exit $ac_status); } &&
30892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30893   { (case "(($ac_try" in
30894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895   *) ac_try_echo=$ac_try;;
30896 esac
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898   (eval "$ac_try") 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); }; } &&
30902          { ac_try='test -s conftest.$ac_objext'
30903   { (case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_try") 2>&5
30909   ac_status=$?
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); }; }; then
30912   ac_cv_type_u_int64_t=yes
30913 else
30914   echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30916
30917         ac_cv_type_u_int64_t=no
30918 fi
30919
30920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30921 fi
30922 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30923 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30924 if test $ac_cv_type_u_int64_t = yes; then
30925
30926 cat >>confdefs.h <<_ACEOF
30927 #define HAVE_U_INT64_T 1
30928 _ACEOF
30929
30930
30931 else
30932   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30933 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30934    { (exit 1); exit 1; }; }
30935 fi
30936
30937 fi
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30949 do
30950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30954   echo $ECHO_N "(cached) $ECHO_C" >&6
30955 else
30956   cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30964 #define $ac_func innocuous_$ac_func
30965
30966 /* System header to define __stub macros and hopefully few prototypes,
30967     which can conflict with char $ac_func (); below.
30968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969     <limits.h> exists even on freestanding compilers.  */
30970
30971 #ifdef __STDC__
30972 # include <limits.h>
30973 #else
30974 # include <assert.h>
30975 #endif
30976
30977 #undef $ac_func
30978
30979 /* Override any GCC internal prototype to avoid an error.
30980    Use char because int might match the return type of a GCC
30981    builtin and then its argument prototype would still apply.  */
30982 #ifdef __cplusplus
30983 extern "C"
30984 #endif
30985 char $ac_func ();
30986 /* The GNU C library defines this for functions which it implements
30987     to always fail with ENOSYS.  Some functions are actually named
30988     something starting with __ and the normal name is an alias.  */
30989 #if defined __stub_$ac_func || defined __stub___$ac_func
30990 choke me
30991 #endif
30992
30993 int
30994 main ()
30995 {
30996 return $ac_func ();
30997   ;
30998   return 0;
30999 }
31000 _ACEOF
31001 rm -f conftest.$ac_objext conftest$ac_exeext
31002 if { (ac_try="$ac_link"
31003 case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008   (eval "$ac_link") 2>conftest.er1
31009   ac_status=$?
31010   grep -v '^ *+' conftest.er1 >conftest.err
31011   rm -f conftest.er1
31012   cat conftest.err >&5
31013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014   (exit $ac_status); } &&
31015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31016   { (case "(($ac_try" in
31017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018   *) ac_try_echo=$ac_try;;
31019 esac
31020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021   (eval "$ac_try") 2>&5
31022   ac_status=$?
31023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024   (exit $ac_status); }; } &&
31025          { ac_try='test -s conftest$ac_exeext'
31026   { (case "(($ac_try" in
31027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028   *) ac_try_echo=$ac_try;;
31029 esac
31030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031   (eval "$ac_try") 2>&5
31032   ac_status=$?
31033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034   (exit $ac_status); }; }; then
31035   eval "$as_ac_var=yes"
31036 else
31037   echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31039
31040         eval "$as_ac_var=no"
31041 fi
31042
31043 rm -f core conftest.err conftest.$ac_objext \
31044       conftest$ac_exeext conftest.$ac_ext
31045 fi
31046 ac_res=`eval echo '${'$as_ac_var'}'`
31047                { echo "$as_me:$LINENO: result: $ac_res" >&5
31048 echo "${ECHO_T}$ac_res" >&6; }
31049 if test `eval echo '${'$as_ac_var'}'` = yes; then
31050   cat >>confdefs.h <<_ACEOF
31051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31052 _ACEOF
31053
31054 fi
31055 done
31056
31057
31058
31059
31060
31061 for ac_func in powf fmodf strtof round
31062 do
31063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31067   echo $ECHO_N "(cached) $ECHO_C" >&6
31068 else
31069   cat >conftest.$ac_ext <<_ACEOF
31070 /* confdefs.h.  */
31071 _ACEOF
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h.  */
31075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31077 #define $ac_func innocuous_$ac_func
31078
31079 /* System header to define __stub macros and hopefully few prototypes,
31080     which can conflict with char $ac_func (); below.
31081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31082     <limits.h> exists even on freestanding compilers.  */
31083
31084 #ifdef __STDC__
31085 # include <limits.h>
31086 #else
31087 # include <assert.h>
31088 #endif
31089
31090 #undef $ac_func
31091
31092 /* Override any GCC internal prototype to avoid an error.
31093    Use char because int might match the return type of a GCC
31094    builtin and then its argument prototype would still apply.  */
31095 #ifdef __cplusplus
31096 extern "C"
31097 #endif
31098 char $ac_func ();
31099 /* The GNU C library defines this for functions which it implements
31100     to always fail with ENOSYS.  Some functions are actually named
31101     something starting with __ and the normal name is an alias.  */
31102 #if defined __stub_$ac_func || defined __stub___$ac_func
31103 choke me
31104 #endif
31105
31106 int
31107 main ()
31108 {
31109 return $ac_func ();
31110   ;
31111   return 0;
31112 }
31113 _ACEOF
31114 rm -f conftest.$ac_objext conftest$ac_exeext
31115 if { (ac_try="$ac_link"
31116 case "(($ac_try" in
31117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118   *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121   (eval "$ac_link") 2>conftest.er1
31122   ac_status=$?
31123   grep -v '^ *+' conftest.er1 >conftest.err
31124   rm -f conftest.er1
31125   cat conftest.err >&5
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); } &&
31128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31129   { (case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_try") 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; } &&
31138          { ac_try='test -s conftest$ac_exeext'
31139   { (case "(($ac_try" in
31140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141   *) ac_try_echo=$ac_try;;
31142 esac
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144   (eval "$ac_try") 2>&5
31145   ac_status=$?
31146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147   (exit $ac_status); }; }; then
31148   eval "$as_ac_var=yes"
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153         eval "$as_ac_var=no"
31154 fi
31155
31156 rm -f core conftest.err conftest.$ac_objext \
31157       conftest$ac_exeext conftest.$ac_ext
31158 fi
31159 ac_res=`eval echo '${'$as_ac_var'}'`
31160                { echo "$as_me:$LINENO: result: $ac_res" >&5
31161 echo "${ECHO_T}$ac_res" >&6; }
31162 if test `eval echo '${'$as_ac_var'}'` = yes; then
31163   cat >>confdefs.h <<_ACEOF
31164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31165 _ACEOF
31166
31167 fi
31168 done
31169
31170
31171
31172
31173
31174
31175 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31176 do
31177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31181   echo $ECHO_N "(cached) $ECHO_C" >&6
31182 else
31183   cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31191 #define $ac_func innocuous_$ac_func
31192
31193 /* System header to define __stub macros and hopefully few prototypes,
31194     which can conflict with char $ac_func (); below.
31195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31196     <limits.h> exists even on freestanding compilers.  */
31197
31198 #ifdef __STDC__
31199 # include <limits.h>
31200 #else
31201 # include <assert.h>
31202 #endif
31203
31204 #undef $ac_func
31205
31206 /* Override any GCC internal prototype to avoid an error.
31207    Use char because int might match the return type of a GCC
31208    builtin and then its argument prototype would still apply.  */
31209 #ifdef __cplusplus
31210 extern "C"
31211 #endif
31212 char $ac_func ();
31213 /* The GNU C library defines this for functions which it implements
31214     to always fail with ENOSYS.  Some functions are actually named
31215     something starting with __ and the normal name is an alias.  */
31216 #if defined __stub_$ac_func || defined __stub___$ac_func
31217 choke me
31218 #endif
31219
31220 int
31221 main ()
31222 {
31223 return $ac_func ();
31224   ;
31225   return 0;
31226 }
31227 _ACEOF
31228 rm -f conftest.$ac_objext conftest$ac_exeext
31229 if { (ac_try="$ac_link"
31230 case "(($ac_try" in
31231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232   *) ac_try_echo=$ac_try;;
31233 esac
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235   (eval "$ac_link") 2>conftest.er1
31236   ac_status=$?
31237   grep -v '^ *+' conftest.er1 >conftest.err
31238   rm -f conftest.er1
31239   cat conftest.err >&5
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); } &&
31242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31243   { (case "(($ac_try" in
31244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245   *) ac_try_echo=$ac_try;;
31246 esac
31247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248   (eval "$ac_try") 2>&5
31249   ac_status=$?
31250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251   (exit $ac_status); }; } &&
31252          { ac_try='test -s conftest$ac_exeext'
31253   { (case "(($ac_try" in
31254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255   *) ac_try_echo=$ac_try;;
31256 esac
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258   (eval "$ac_try") 2>&5
31259   ac_status=$?
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); }; }; then
31262   eval "$as_ac_var=yes"
31263 else
31264   echo "$as_me: failed program was:" >&5
31265 sed 's/^/| /' conftest.$ac_ext >&5
31266
31267         eval "$as_ac_var=no"
31268 fi
31269
31270 rm -f core conftest.err conftest.$ac_objext \
31271       conftest$ac_exeext conftest.$ac_ext
31272 fi
31273 ac_res=`eval echo '${'$as_ac_var'}'`
31274                { echo "$as_me:$LINENO: result: $ac_res" >&5
31275 echo "${ECHO_T}$ac_res" >&6; }
31276 if test `eval echo '${'$as_ac_var'}'` = yes; then
31277   cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31279 _ACEOF
31280
31281 fi
31282 done
31283
31284
31285
31286
31287 for ac_func in isatty mkdtemp mkstemp
31288 do
31289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31293   echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31295   cat >conftest.$ac_ext <<_ACEOF
31296 /* confdefs.h.  */
31297 _ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h.  */
31301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31303 #define $ac_func innocuous_$ac_func
31304
31305 /* System header to define __stub macros and hopefully few prototypes,
31306     which can conflict with char $ac_func (); below.
31307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31308     <limits.h> exists even on freestanding compilers.  */
31309
31310 #ifdef __STDC__
31311 # include <limits.h>
31312 #else
31313 # include <assert.h>
31314 #endif
31315
31316 #undef $ac_func
31317
31318 /* Override any GCC internal prototype to avoid an error.
31319    Use char because int might match the return type of a GCC
31320    builtin and then its argument prototype would still apply.  */
31321 #ifdef __cplusplus
31322 extern "C"
31323 #endif
31324 char $ac_func ();
31325 /* The GNU C library defines this for functions which it implements
31326     to always fail with ENOSYS.  Some functions are actually named
31327     something starting with __ and the normal name is an alias.  */
31328 #if defined __stub_$ac_func || defined __stub___$ac_func
31329 choke me
31330 #endif
31331
31332 int
31333 main ()
31334 {
31335 return $ac_func ();
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (ac_try="$ac_link"
31342 case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347   (eval "$ac_link") 2>conftest.er1
31348   ac_status=$?
31349   grep -v '^ *+' conftest.er1 >conftest.err
31350   rm -f conftest.er1
31351   cat conftest.err >&5
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); } &&
31354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355   { (case "(($ac_try" in
31356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357   *) ac_try_echo=$ac_try;;
31358 esac
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360   (eval "$ac_try") 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; } &&
31364          { ac_try='test -s conftest$ac_exeext'
31365   { (case "(($ac_try" in
31366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367   *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370   (eval "$ac_try") 2>&5
31371   ac_status=$?
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); }; }; then
31374   eval "$as_ac_var=yes"
31375 else
31376   echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31378
31379         eval "$as_ac_var=no"
31380 fi
31381
31382 rm -f core conftest.err conftest.$ac_objext \
31383       conftest$ac_exeext conftest.$ac_ext
31384 fi
31385 ac_res=`eval echo '${'$as_ac_var'}'`
31386                { echo "$as_me:$LINENO: result: $ac_res" >&5
31387 echo "${ECHO_T}$ac_res" >&6; }
31388 if test `eval echo '${'$as_ac_var'}'` = yes; then
31389   cat >>confdefs.h <<_ACEOF
31390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391 _ACEOF
31392
31393 fi
31394 done
31395
31396
31397
31398
31399
31400
31401 for ac_func in mktemp realpath sbrk setrlimit strdup
31402 do
31403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31407   echo $ECHO_N "(cached) $ECHO_C" >&6
31408 else
31409   cat >conftest.$ac_ext <<_ACEOF
31410 /* confdefs.h.  */
31411 _ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h.  */
31415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31417 #define $ac_func innocuous_$ac_func
31418
31419 /* System header to define __stub macros and hopefully few prototypes,
31420     which can conflict with char $ac_func (); below.
31421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31422     <limits.h> exists even on freestanding compilers.  */
31423
31424 #ifdef __STDC__
31425 # include <limits.h>
31426 #else
31427 # include <assert.h>
31428 #endif
31429
31430 #undef $ac_func
31431
31432 /* Override any GCC internal prototype to avoid an error.
31433    Use char because int might match the return type of a GCC
31434    builtin and then its argument prototype would still apply.  */
31435 #ifdef __cplusplus
31436 extern "C"
31437 #endif
31438 char $ac_func ();
31439 /* The GNU C library defines this for functions which it implements
31440     to always fail with ENOSYS.  Some functions are actually named
31441     something starting with __ and the normal name is an alias.  */
31442 #if defined __stub_$ac_func || defined __stub___$ac_func
31443 choke me
31444 #endif
31445
31446 int
31447 main ()
31448 {
31449 return $ac_func ();
31450   ;
31451   return 0;
31452 }
31453 _ACEOF
31454 rm -f conftest.$ac_objext conftest$ac_exeext
31455 if { (ac_try="$ac_link"
31456 case "(($ac_try" in
31457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458   *) ac_try_echo=$ac_try;;
31459 esac
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461   (eval "$ac_link") 2>conftest.er1
31462   ac_status=$?
31463   grep -v '^ *+' conftest.er1 >conftest.err
31464   rm -f conftest.er1
31465   cat conftest.err >&5
31466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467   (exit $ac_status); } &&
31468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31469   { (case "(($ac_try" in
31470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471   *) ac_try_echo=$ac_try;;
31472 esac
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474   (eval "$ac_try") 2>&5
31475   ac_status=$?
31476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477   (exit $ac_status); }; } &&
31478          { ac_try='test -s conftest$ac_exeext'
31479   { (case "(($ac_try" in
31480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481   *) ac_try_echo=$ac_try;;
31482 esac
31483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484   (eval "$ac_try") 2>&5
31485   ac_status=$?
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); }; }; then
31488   eval "$as_ac_var=yes"
31489 else
31490   echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31492
31493         eval "$as_ac_var=no"
31494 fi
31495
31496 rm -f core conftest.err conftest.$ac_objext \
31497       conftest$ac_exeext conftest.$ac_ext
31498 fi
31499 ac_res=`eval echo '${'$as_ac_var'}'`
31500                { echo "$as_me:$LINENO: result: $ac_res" >&5
31501 echo "${ECHO_T}$ac_res" >&6; }
31502 if test `eval echo '${'$as_ac_var'}'` = yes; then
31503   cat >>confdefs.h <<_ACEOF
31504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31505 _ACEOF
31506
31507 fi
31508 done
31509
31510
31511
31512
31513 for ac_func in strerror strerror_r strerror_s
31514 do
31515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31519   echo $ECHO_N "(cached) $ECHO_C" >&6
31520 else
31521   cat >conftest.$ac_ext <<_ACEOF
31522 /* confdefs.h.  */
31523 _ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h.  */
31527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31529 #define $ac_func innocuous_$ac_func
31530
31531 /* System header to define __stub macros and hopefully few prototypes,
31532     which can conflict with char $ac_func (); below.
31533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534     <limits.h> exists even on freestanding compilers.  */
31535
31536 #ifdef __STDC__
31537 # include <limits.h>
31538 #else
31539 # include <assert.h>
31540 #endif
31541
31542 #undef $ac_func
31543
31544 /* Override any GCC internal prototype to avoid an error.
31545    Use char because int might match the return type of a GCC
31546    builtin and then its argument prototype would still apply.  */
31547 #ifdef __cplusplus
31548 extern "C"
31549 #endif
31550 char $ac_func ();
31551 /* The GNU C library defines this for functions which it implements
31552     to always fail with ENOSYS.  Some functions are actually named
31553     something starting with __ and the normal name is an alias.  */
31554 #if defined __stub_$ac_func || defined __stub___$ac_func
31555 choke me
31556 #endif
31557
31558 int
31559 main ()
31560 {
31561 return $ac_func ();
31562   ;
31563   return 0;
31564 }
31565 _ACEOF
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (ac_try="$ac_link"
31568 case "(($ac_try" in
31569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570   *) ac_try_echo=$ac_try;;
31571 esac
31572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573   (eval "$ac_link") 2>conftest.er1
31574   ac_status=$?
31575   grep -v '^ *+' conftest.er1 >conftest.err
31576   rm -f conftest.er1
31577   cat conftest.err >&5
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); } &&
31580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581   { (case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_try") 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); }; } &&
31590          { ac_try='test -s conftest$ac_exeext'
31591   { (case "(($ac_try" in
31592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593   *) ac_try_echo=$ac_try;;
31594 esac
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596   (eval "$ac_try") 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); }; }; then
31600   eval "$as_ac_var=yes"
31601 else
31602   echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605         eval "$as_ac_var=no"
31606 fi
31607
31608 rm -f core conftest.err conftest.$ac_objext \
31609       conftest$ac_exeext conftest.$ac_ext
31610 fi
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612                { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615   cat >>confdefs.h <<_ACEOF
31616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31617 _ACEOF
31618
31619 fi
31620 done
31621
31622
31623
31624
31625
31626 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31627 do
31628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31632   echo $ECHO_N "(cached) $ECHO_C" >&6
31633 else
31634   cat >conftest.$ac_ext <<_ACEOF
31635 /* confdefs.h.  */
31636 _ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h.  */
31640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31642 #define $ac_func innocuous_$ac_func
31643
31644 /* System header to define __stub macros and hopefully few prototypes,
31645     which can conflict with char $ac_func (); below.
31646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31647     <limits.h> exists even on freestanding compilers.  */
31648
31649 #ifdef __STDC__
31650 # include <limits.h>
31651 #else
31652 # include <assert.h>
31653 #endif
31654
31655 #undef $ac_func
31656
31657 /* Override any GCC internal prototype to avoid an error.
31658    Use char because int might match the return type of a GCC
31659    builtin and then its argument prototype would still apply.  */
31660 #ifdef __cplusplus
31661 extern "C"
31662 #endif
31663 char $ac_func ();
31664 /* The GNU C library defines this for functions which it implements
31665     to always fail with ENOSYS.  Some functions are actually named
31666     something starting with __ and the normal name is an alias.  */
31667 #if defined __stub_$ac_func || defined __stub___$ac_func
31668 choke me
31669 #endif
31670
31671 int
31672 main ()
31673 {
31674 return $ac_func ();
31675   ;
31676   return 0;
31677 }
31678 _ACEOF
31679 rm -f conftest.$ac_objext conftest$ac_exeext
31680 if { (ac_try="$ac_link"
31681 case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686   (eval "$ac_link") 2>conftest.er1
31687   ac_status=$?
31688   grep -v '^ *+' conftest.er1 >conftest.err
31689   rm -f conftest.er1
31690   cat conftest.err >&5
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); } &&
31693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31694   { (case "(($ac_try" in
31695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696   *) ac_try_echo=$ac_try;;
31697 esac
31698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699   (eval "$ac_try") 2>&5
31700   ac_status=$?
31701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702   (exit $ac_status); }; } &&
31703          { ac_try='test -s conftest$ac_exeext'
31704   { (case "(($ac_try" in
31705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706   *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709   (eval "$ac_try") 2>&5
31710   ac_status=$?
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); }; }; then
31713   eval "$as_ac_var=yes"
31714 else
31715   echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31717
31718         eval "$as_ac_var=no"
31719 fi
31720
31721 rm -f core conftest.err conftest.$ac_objext \
31722       conftest$ac_exeext conftest.$ac_ext
31723 fi
31724 ac_res=`eval echo '${'$as_ac_var'}'`
31725                { echo "$as_me:$LINENO: result: $ac_res" >&5
31726 echo "${ECHO_T}$ac_res" >&6; }
31727 if test `eval echo '${'$as_ac_var'}'` = yes; then
31728   cat >>confdefs.h <<_ACEOF
31729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31730 _ACEOF
31731
31732 fi
31733 done
31734
31735
31736
31737
31738
31739 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31740 do
31741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31745   echo $ECHO_N "(cached) $ECHO_C" >&6
31746 else
31747   cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31755 #define $ac_func innocuous_$ac_func
31756
31757 /* System header to define __stub macros and hopefully few prototypes,
31758     which can conflict with char $ac_func (); below.
31759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31760     <limits.h> exists even on freestanding compilers.  */
31761
31762 #ifdef __STDC__
31763 # include <limits.h>
31764 #else
31765 # include <assert.h>
31766 #endif
31767
31768 #undef $ac_func
31769
31770 /* Override any GCC internal prototype to avoid an error.
31771    Use char because int might match the return type of a GCC
31772    builtin and then its argument prototype would still apply.  */
31773 #ifdef __cplusplus
31774 extern "C"
31775 #endif
31776 char $ac_func ();
31777 /* The GNU C library defines this for functions which it implements
31778     to always fail with ENOSYS.  Some functions are actually named
31779     something starting with __ and the normal name is an alias.  */
31780 #if defined __stub_$ac_func || defined __stub___$ac_func
31781 choke me
31782 #endif
31783
31784 int
31785 main ()
31786 {
31787 return $ac_func ();
31788   ;
31789   return 0;
31790 }
31791 _ACEOF
31792 rm -f conftest.$ac_objext conftest$ac_exeext
31793 if { (ac_try="$ac_link"
31794 case "(($ac_try" in
31795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31796   *) ac_try_echo=$ac_try;;
31797 esac
31798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31799   (eval "$ac_link") 2>conftest.er1
31800   ac_status=$?
31801   grep -v '^ *+' conftest.er1 >conftest.err
31802   rm -f conftest.er1
31803   cat conftest.err >&5
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); } &&
31806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31813   ac_status=$?
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); }; } &&
31816          { ac_try='test -s conftest$ac_exeext'
31817   { (case "(($ac_try" in
31818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819   *) ac_try_echo=$ac_try;;
31820 esac
31821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822   (eval "$ac_try") 2>&5
31823   ac_status=$?
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); }; }; then
31826   eval "$as_ac_var=yes"
31827 else
31828   echo "$as_me: failed program was:" >&5
31829 sed 's/^/| /' conftest.$ac_ext >&5
31830
31831         eval "$as_ac_var=no"
31832 fi
31833
31834 rm -f core conftest.err conftest.$ac_objext \
31835       conftest$ac_exeext conftest.$ac_ext
31836 fi
31837 ac_res=`eval echo '${'$as_ac_var'}'`
31838                { echo "$as_me:$LINENO: result: $ac_res" >&5
31839 echo "${ECHO_T}$ac_res" >&6; }
31840 if test `eval echo '${'$as_ac_var'}'` = yes; then
31841   cat >>confdefs.h <<_ACEOF
31842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31843 _ACEOF
31844
31845 fi
31846 done
31847
31848 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31849 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31850 if test "${llvm_cv_c_printf_a+set}" = set; then
31851   echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853   ac_ext=c
31854 ac_cpp='$CPP $CPPFLAGS'
31855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31858
31859  if test "$cross_compiling" = yes; then
31860   llvmac_cv_c_printf_a=no
31861 else
31862   cat >conftest.$ac_ext <<_ACEOF
31863
31864   /* confdefs.h.  */
31865 _ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h.  */
31869
31870 #include <stdio.h>
31871 #include <stdlib.h>
31872
31873 int
31874 main ()
31875 {
31876
31877 volatile double A, B;
31878 char Buffer[100];
31879 A = 1;
31880 A /= 10.0;
31881 sprintf(Buffer, "%a", A);
31882 B = atof(Buffer);
31883 if (A != B)
31884   return (1);
31885 if (A != 0x1.999999999999ap-4)
31886   return (1);
31887 return (0);
31888   ;
31889   return 0;
31890 }
31891 _ACEOF
31892 rm -f conftest$ac_exeext
31893 if { (ac_try="$ac_link"
31894 case "(($ac_try" in
31895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896   *) ac_try_echo=$ac_try;;
31897 esac
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899   (eval "$ac_link") 2>&5
31900   ac_status=$?
31901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31903   { (case "(($ac_try" in
31904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905   *) ac_try_echo=$ac_try;;
31906 esac
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908   (eval "$ac_try") 2>&5
31909   ac_status=$?
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); }; }; then
31912   llvm_cv_c_printf_a=yes
31913 else
31914   echo "$as_me: program exited with status $ac_status" >&5
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 ( exit $ac_status )
31919 llvmac_cv_c_printf_a=no
31920 fi
31921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31922 fi
31923
31924
31925  ac_ext=c
31926 ac_cpp='$CPP $CPPFLAGS'
31927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31930
31931 fi
31932 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31933 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31934  if test "$llvm_cv_c_printf_a" = "yes"; then
31935
31936 cat >>confdefs.h <<\_ACEOF
31937 #define HAVE_PRINTF_A 1
31938 _ACEOF
31939
31940  fi
31941
31942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31943 # for constant arguments.  Useless!
31944 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31945 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31946 if test "${ac_cv_working_alloca_h+set}" = set; then
31947   echo $ECHO_N "(cached) $ECHO_C" >&6
31948 else
31949   cat >conftest.$ac_ext <<_ACEOF
31950 /* confdefs.h.  */
31951 _ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h.  */
31955 #include <alloca.h>
31956 int
31957 main ()
31958 {
31959 char *p = (char *) alloca (2 * sizeof (int));
31960                           if (p) return 0;
31961   ;
31962   return 0;
31963 }
31964 _ACEOF
31965 rm -f conftest.$ac_objext conftest$ac_exeext
31966 if { (ac_try="$ac_link"
31967 case "(($ac_try" in
31968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969   *) ac_try_echo=$ac_try;;
31970 esac
31971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972   (eval "$ac_link") 2>conftest.er1
31973   ac_status=$?
31974   grep -v '^ *+' conftest.er1 >conftest.err
31975   rm -f conftest.er1
31976   cat conftest.err >&5
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); } &&
31979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31980   { (case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_try") 2>&5
31986   ac_status=$?
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); }; } &&
31989          { ac_try='test -s conftest$ac_exeext'
31990   { (case "(($ac_try" in
31991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992   *) ac_try_echo=$ac_try;;
31993 esac
31994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995   (eval "$ac_try") 2>&5
31996   ac_status=$?
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); }; }; then
31999   ac_cv_working_alloca_h=yes
32000 else
32001   echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32003
32004         ac_cv_working_alloca_h=no
32005 fi
32006
32007 rm -f core conftest.err conftest.$ac_objext \
32008       conftest$ac_exeext conftest.$ac_ext
32009 fi
32010 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32012 if test $ac_cv_working_alloca_h = yes; then
32013
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_ALLOCA_H 1
32016 _ACEOF
32017
32018 fi
32019
32020 { echo "$as_me:$LINENO: checking for alloca" >&5
32021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32022 if test "${ac_cv_func_alloca_works+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   cat >conftest.$ac_ext <<_ACEOF
32026 /* confdefs.h.  */
32027 _ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h.  */
32031 #ifdef __GNUC__
32032 # define alloca __builtin_alloca
32033 #else
32034 # ifdef _MSC_VER
32035 #  include <malloc.h>
32036 #  define alloca _alloca
32037 # else
32038 #  if HAVE_ALLOCA_H
32039 #   include <alloca.h>
32040 #  else
32041 #   ifdef _AIX
32042  #pragma alloca
32043 #   else
32044 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32045 char *alloca ();
32046 #    endif
32047 #   endif
32048 #  endif
32049 # endif
32050 #endif
32051
32052 int
32053 main ()
32054 {
32055 char *p = (char *) alloca (1);
32056                                     if (p) return 0;
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 rm -f conftest.$ac_objext conftest$ac_exeext
32062 if { (ac_try="$ac_link"
32063 case "(($ac_try" in
32064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065   *) ac_try_echo=$ac_try;;
32066 esac
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068   (eval "$ac_link") 2>conftest.er1
32069   ac_status=$?
32070   grep -v '^ *+' conftest.er1 >conftest.err
32071   rm -f conftest.er1
32072   cat conftest.err >&5
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); } &&
32075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32076   { (case "(($ac_try" in
32077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078   *) ac_try_echo=$ac_try;;
32079 esac
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081   (eval "$ac_try") 2>&5
32082   ac_status=$?
32083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); }; } &&
32085          { ac_try='test -s conftest$ac_exeext'
32086   { (case "(($ac_try" in
32087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088   *) ac_try_echo=$ac_try;;
32089 esac
32090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091   (eval "$ac_try") 2>&5
32092   ac_status=$?
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); }; }; then
32095   ac_cv_func_alloca_works=yes
32096 else
32097   echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32099
32100         ac_cv_func_alloca_works=no
32101 fi
32102
32103 rm -f core conftest.err conftest.$ac_objext \
32104       conftest$ac_exeext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32108
32109 if test $ac_cv_func_alloca_works = yes; then
32110
32111 cat >>confdefs.h <<\_ACEOF
32112 #define HAVE_ALLOCA 1
32113 _ACEOF
32114
32115 else
32116   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32117 # that cause trouble.  Some versions do not even contain alloca or
32118 # contain a buggy version.  If you still want to use their alloca,
32119 # use ar to extract alloca.o from them instead of compiling alloca.c.
32120
32121 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32122
32123 cat >>confdefs.h <<\_ACEOF
32124 #define C_ALLOCA 1
32125 _ACEOF
32126
32127
32128 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32130 if test "${ac_cv_os_cray+set}" = set; then
32131   echo $ECHO_N "(cached) $ECHO_C" >&6
32132 else
32133   cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139 #if defined CRAY && ! defined CRAY2
32140 webecray
32141 #else
32142 wenotbecray
32143 #endif
32144
32145 _ACEOF
32146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32147   $EGREP "webecray" >/dev/null 2>&1; then
32148   ac_cv_os_cray=yes
32149 else
32150   ac_cv_os_cray=no
32151 fi
32152 rm -f conftest*
32153
32154 fi
32155 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32156 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32157 if test $ac_cv_os_cray = yes; then
32158   for ac_func in _getb67 GETB67 getb67; do
32159     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32163   echo $ECHO_N "(cached) $ECHO_C" >&6
32164 else
32165   cat >conftest.$ac_ext <<_ACEOF
32166 /* confdefs.h.  */
32167 _ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h.  */
32171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32173 #define $ac_func innocuous_$ac_func
32174
32175 /* System header to define __stub macros and hopefully few prototypes,
32176     which can conflict with char $ac_func (); below.
32177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32178     <limits.h> exists even on freestanding compilers.  */
32179
32180 #ifdef __STDC__
32181 # include <limits.h>
32182 #else
32183 # include <assert.h>
32184 #endif
32185
32186 #undef $ac_func
32187
32188 /* Override any GCC internal prototype to avoid an error.
32189    Use char because int might match the return type of a GCC
32190    builtin and then its argument prototype would still apply.  */
32191 #ifdef __cplusplus
32192 extern "C"
32193 #endif
32194 char $ac_func ();
32195 /* The GNU C library defines this for functions which it implements
32196     to always fail with ENOSYS.  Some functions are actually named
32197     something starting with __ and the normal name is an alias.  */
32198 #if defined __stub_$ac_func || defined __stub___$ac_func
32199 choke me
32200 #endif
32201
32202 int
32203 main ()
32204 {
32205 return $ac_func ();
32206   ;
32207   return 0;
32208 }
32209 _ACEOF
32210 rm -f conftest.$ac_objext conftest$ac_exeext
32211 if { (ac_try="$ac_link"
32212 case "(($ac_try" in
32213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214   *) ac_try_echo=$ac_try;;
32215 esac
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217   (eval "$ac_link") 2>conftest.er1
32218   ac_status=$?
32219   grep -v '^ *+' conftest.er1 >conftest.err
32220   rm -f conftest.er1
32221   cat conftest.err >&5
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); } &&
32224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32225   { (case "(($ac_try" in
32226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227   *) ac_try_echo=$ac_try;;
32228 esac
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230   (eval "$ac_try") 2>&5
32231   ac_status=$?
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); }; } &&
32234          { ac_try='test -s conftest$ac_exeext'
32235   { (case "(($ac_try" in
32236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237   *) ac_try_echo=$ac_try;;
32238 esac
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240   (eval "$ac_try") 2>&5
32241   ac_status=$?
32242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243   (exit $ac_status); }; }; then
32244   eval "$as_ac_var=yes"
32245 else
32246   echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32248
32249         eval "$as_ac_var=no"
32250 fi
32251
32252 rm -f core conftest.err conftest.$ac_objext \
32253       conftest$ac_exeext conftest.$ac_ext
32254 fi
32255 ac_res=`eval echo '${'$as_ac_var'}'`
32256                { echo "$as_me:$LINENO: result: $ac_res" >&5
32257 echo "${ECHO_T}$ac_res" >&6; }
32258 if test `eval echo '${'$as_ac_var'}'` = yes; then
32259
32260 cat >>confdefs.h <<_ACEOF
32261 #define CRAY_STACKSEG_END $ac_func
32262 _ACEOF
32263
32264     break
32265 fi
32266
32267   done
32268 fi
32269
32270 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32271 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32272 if test "${ac_cv_c_stack_direction+set}" = set; then
32273   echo $ECHO_N "(cached) $ECHO_C" >&6
32274 else
32275   if test "$cross_compiling" = yes; then
32276   ac_cv_c_stack_direction=0
32277 else
32278   cat >conftest.$ac_ext <<_ACEOF
32279 /* confdefs.h.  */
32280 _ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h.  */
32284 $ac_includes_default
32285 int
32286 find_stack_direction ()
32287 {
32288   static char *addr = 0;
32289   auto char dummy;
32290   if (addr == 0)
32291     {
32292       addr = &dummy;
32293       return find_stack_direction ();
32294     }
32295   else
32296     return (&dummy > addr) ? 1 : -1;
32297 }
32298
32299 int
32300 main ()
32301 {
32302   return find_stack_direction () < 0;
32303 }
32304 _ACEOF
32305 rm -f conftest$ac_exeext
32306 if { (ac_try="$ac_link"
32307 case "(($ac_try" in
32308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309   *) ac_try_echo=$ac_try;;
32310 esac
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312   (eval "$ac_link") 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32316   { (case "(($ac_try" in
32317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318   *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321   (eval "$ac_try") 2>&5
32322   ac_status=$?
32323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324   (exit $ac_status); }; }; then
32325   ac_cv_c_stack_direction=1
32326 else
32327   echo "$as_me: program exited with status $ac_status" >&5
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32330
32331 ( exit $ac_status )
32332 ac_cv_c_stack_direction=-1
32333 fi
32334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32335 fi
32336
32337
32338 fi
32339 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32340 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32341
32342 cat >>confdefs.h <<_ACEOF
32343 #define STACK_DIRECTION $ac_cv_c_stack_direction
32344 _ACEOF
32345
32346
32347 fi
32348
32349
32350 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32351 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32352 if test "${ac_cv_func_rand48+set}" = set; then
32353   echo $ECHO_N "(cached) $ECHO_C" >&6
32354 else
32355   ac_ext=cpp
32356 ac_cpp='$CXXCPP $CPPFLAGS'
32357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32360
32361    cat >conftest.$ac_ext <<_ACEOF
32362 /* confdefs.h.  */
32363 _ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h.  */
32367 #include <stdlib.h>
32368 int
32369 main ()
32370 {
32371 srand48(0);lrand48();drand48();
32372   ;
32373   return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext
32377 if { (ac_try="$ac_compile"
32378 case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383   (eval "$ac_compile") 2>conftest.er1
32384   ac_status=$?
32385   grep -v '^ *+' conftest.er1 >conftest.err
32386   rm -f conftest.er1
32387   cat conftest.err >&5
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); } &&
32390          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32391   { (case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_try") 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); }; } &&
32400          { ac_try='test -s conftest.$ac_objext'
32401   { (case "(($ac_try" in
32402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403   *) ac_try_echo=$ac_try;;
32404 esac
32405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32406   (eval "$ac_try") 2>&5
32407   ac_status=$?
32408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409   (exit $ac_status); }; }; then
32410   ac_cv_func_rand48=yes
32411 else
32412   echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32414
32415         ac_cv_func_rand48=no
32416 fi
32417
32418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32419   ac_ext=c
32420 ac_cpp='$CPP $CPPFLAGS'
32421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32424
32425 fi
32426 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32427 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32428
32429 if test "$ac_cv_func_rand48" = "yes" ; then
32430
32431 cat >>confdefs.h <<\_ACEOF
32432 #define HAVE_RAND48 1
32433 _ACEOF
32434
32435 fi
32436
32437
32438 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32439 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32440 if test "${ac_cv_cxx_namespaces+set}" = set; then
32441   echo $ECHO_N "(cached) $ECHO_C" >&6
32442 else
32443   ac_ext=cpp
32444 ac_cpp='$CXXCPP $CPPFLAGS'
32445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32448
32449  cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h.  */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h.  */
32455 namespace Outer { namespace Inner { int i = 0; }}
32456 int
32457 main ()
32458 {
32459 using namespace Outer::Inner; return i;
32460   ;
32461   return 0;
32462 }
32463 _ACEOF
32464 rm -f conftest.$ac_objext
32465 if { (ac_try="$ac_compile"
32466 case "(($ac_try" in
32467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468   *) ac_try_echo=$ac_try;;
32469 esac
32470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471   (eval "$ac_compile") 2>conftest.er1
32472   ac_status=$?
32473   grep -v '^ *+' conftest.er1 >conftest.err
32474   rm -f conftest.er1
32475   cat conftest.err >&5
32476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477   (exit $ac_status); } &&
32478          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32479   { (case "(($ac_try" in
32480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481   *) ac_try_echo=$ac_try;;
32482 esac
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484   (eval "$ac_try") 2>&5
32485   ac_status=$?
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); }; } &&
32488          { ac_try='test -s conftest.$ac_objext'
32489   { (case "(($ac_try" in
32490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491   *) ac_try_echo=$ac_try;;
32492 esac
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494   (eval "$ac_try") 2>&5
32495   ac_status=$?
32496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497   (exit $ac_status); }; }; then
32498   ac_cv_cxx_namespaces=yes
32499 else
32500   echo "$as_me: failed program was:" >&5
32501 sed 's/^/| /' conftest.$ac_ext >&5
32502
32503         ac_cv_cxx_namespaces=no
32504 fi
32505
32506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32507  ac_ext=c
32508 ac_cpp='$CPP $CPPFLAGS'
32509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32512
32513
32514 fi
32515 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32516 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32517 if test "$ac_cv_cxx_namespaces" = yes; then
32518
32519 cat >>confdefs.h <<\_ACEOF
32520 #define HAVE_NAMESPACES
32521 _ACEOF
32522
32523 fi
32524
32525 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32527 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528   echo $ECHO_N "(cached) $ECHO_C" >&6
32529 else
32530
32531   ac_ext=cpp
32532 ac_cpp='$CXXCPP $CPPFLAGS'
32533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536
32537   cat >conftest.$ac_ext <<_ACEOF
32538 /* confdefs.h.  */
32539 _ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h.  */
32543 #include <iterator>
32544 #ifdef HAVE_NAMESPACES
32545 using namespace std;
32546 #endif
32547 int
32548 main ()
32549 {
32550 iterator<int,int,int> t; return 0;
32551   ;
32552   return 0;
32553 }
32554 _ACEOF
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559   *) ac_try_echo=$ac_try;;
32560 esac
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562   (eval "$ac_compile") 2>conftest.er1
32563   ac_status=$?
32564   grep -v '^ *+' conftest.er1 >conftest.err
32565   rm -f conftest.er1
32566   cat conftest.err >&5
32567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); } &&
32569          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570   { (case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_try") 2>&5
32576   ac_status=$?
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); }; } &&
32579          { ac_try='test -s conftest.$ac_objext'
32580   { (case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_try") 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); }; }; then
32589   ac_cv_cxx_have_std_iterator=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594         ac_cv_cxx_have_std_iterator=no
32595 fi
32596
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598   ac_ext=c
32599 ac_cpp='$CPP $CPPFLAGS'
32600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32603
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32608 if test "$ac_cv_cxx_have_std_iterator" = yes
32609 then
32610
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_STD_ITERATOR 1
32613 _ACEOF
32614
32615 else
32616
32617 cat >>confdefs.h <<\_ACEOF
32618 #define HAVE_STD_ITERATOR 0
32619 _ACEOF
32620
32621 fi
32622
32623 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32625 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626   echo $ECHO_N "(cached) $ECHO_C" >&6
32627 else
32628
32629   ac_ext=cpp
32630 ac_cpp='$CXXCPP $CPPFLAGS'
32631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32634
32635   cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641 #include <iterator>
32642 #ifdef HAVE_NAMESPACES
32643 using namespace std;
32644 #endif
32645 int
32646 main ()
32647 {
32648 bidirectional_iterator<int,int> t; return 0;
32649   ;
32650   return 0;
32651 }
32652 _ACEOF
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_compile") 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } &&
32667          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668   { (case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673   (eval "$ac_try") 2>&5
32674   ac_status=$?
32675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); }; } &&
32677          { ac_try='test -s conftest.$ac_objext'
32678   { (case "(($ac_try" in
32679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680   *) ac_try_echo=$ac_try;;
32681 esac
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683   (eval "$ac_try") 2>&5
32684   ac_status=$?
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); }; }; then
32687   ac_cv_cxx_have_bi_iterator=yes
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692         ac_cv_cxx_have_bi_iterator=no
32693 fi
32694
32695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32696   ac_ext=c
32697 ac_cpp='$CPP $CPPFLAGS'
32698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32701
32702
32703 fi
32704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32706 if test "$ac_cv_cxx_have_bi_iterator" = yes
32707 then
32708
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_BI_ITERATOR 1
32711 _ACEOF
32712
32713 else
32714
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_BI_ITERATOR 0
32717 _ACEOF
32718
32719 fi
32720
32721 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32723 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724   echo $ECHO_N "(cached) $ECHO_C" >&6
32725 else
32726
32727   ac_ext=cpp
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733   cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739 #include <iterator>
32740 #ifdef HAVE_NAMESPACES
32741 using namespace std;
32742 #endif
32743 int
32744 main ()
32745 {
32746 forward_iterator<int,int> t; return 0;
32747   ;
32748   return 0;
32749 }
32750 _ACEOF
32751 rm -f conftest.$ac_objext
32752 if { (ac_try="$ac_compile"
32753 case "(($ac_try" in
32754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755   *) ac_try_echo=$ac_try;;
32756 esac
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758   (eval "$ac_compile") 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } &&
32765          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766   { (case "(($ac_try" in
32767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768   *) ac_try_echo=$ac_try;;
32769 esac
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771   (eval "$ac_try") 2>&5
32772   ac_status=$?
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); }; } &&
32775          { ac_try='test -s conftest.$ac_objext'
32776   { (case "(($ac_try" in
32777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778   *) ac_try_echo=$ac_try;;
32779 esac
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781   (eval "$ac_try") 2>&5
32782   ac_status=$?
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); }; }; then
32785   ac_cv_cxx_have_fwd_iterator=yes
32786 else
32787   echo "$as_me: failed program was:" >&5
32788 sed 's/^/| /' conftest.$ac_ext >&5
32789
32790         ac_cv_cxx_have_fwd_iterator=no
32791 fi
32792
32793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32794   ac_ext=c
32795 ac_cpp='$CPP $CPPFLAGS'
32796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32799
32800
32801 fi
32802 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32804 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32805 then
32806
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_FWD_ITERATOR 1
32809 _ACEOF
32810
32811 else
32812
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_FWD_ITERATOR 0
32815 _ACEOF
32816
32817 fi
32818
32819
32820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   ac_ext=cpp
32826 ac_cpp='$CXXCPP $CPPFLAGS'
32827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32830
32831    cat >conftest.$ac_ext <<_ACEOF
32832 /* confdefs.h.  */
32833 _ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h.  */
32837 #include <math.h>
32838 int
32839 main ()
32840 {
32841 float f; isnan(f);
32842   ;
32843   return 0;
32844 }
32845 _ACEOF
32846 rm -f conftest.$ac_objext
32847 if { (ac_try="$ac_compile"
32848 case "(($ac_try" in
32849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850   *) ac_try_echo=$ac_try;;
32851 esac
32852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853   (eval "$ac_compile") 2>conftest.er1
32854   ac_status=$?
32855   grep -v '^ *+' conftest.er1 >conftest.err
32856   rm -f conftest.er1
32857   cat conftest.err >&5
32858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859   (exit $ac_status); } &&
32860          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861   { (case "(($ac_try" in
32862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863   *) ac_try_echo=$ac_try;;
32864 esac
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866   (eval "$ac_try") 2>&5
32867   ac_status=$?
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); }; } &&
32870          { ac_try='test -s conftest.$ac_objext'
32871   { (case "(($ac_try" in
32872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873   *) ac_try_echo=$ac_try;;
32874 esac
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876   (eval "$ac_try") 2>&5
32877   ac_status=$?
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); }; }; then
32880   ac_cv_func_isnan_in_math_h=yes
32881 else
32882   echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32884
32885         ac_cv_func_isnan_in_math_h=no
32886 fi
32887
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889   ac_ext=c
32890 ac_cpp='$CPP $CPPFLAGS'
32891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32894
32895 fi
32896 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32898
32899
32900 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32901
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_ISNAN_IN_MATH_H 1
32904 _ACEOF
32905
32906 fi
32907
32908 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32910 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913   ac_ext=cpp
32914 ac_cpp='$CXXCPP $CPPFLAGS'
32915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32918
32919    cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h.  */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h.  */
32925 #include <cmath>
32926 int
32927 main ()
32928 {
32929 float f; isnan(f);
32930   ;
32931   return 0;
32932 }
32933 _ACEOF
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_compile") 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } &&
32948          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949   { (case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954   (eval "$ac_try") 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest.$ac_objext'
32959   { (case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_try") 2>&5
32965   ac_status=$?
32966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967   (exit $ac_status); }; }; then
32968   ac_cv_func_isnan_in_cmath=yes
32969 else
32970   echo "$as_me: failed program was:" >&5
32971 sed 's/^/| /' conftest.$ac_ext >&5
32972
32973         ac_cv_func_isnan_in_cmath=no
32974 fi
32975
32976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32977   ac_ext=c
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32982
32983 fi
32984 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32986
32987 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32988
32989 cat >>confdefs.h <<\_ACEOF
32990 #define HAVE_ISNAN_IN_CMATH 1
32991 _ACEOF
32992
32993 fi
32994
32995 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32997 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998   echo $ECHO_N "(cached) $ECHO_C" >&6
32999 else
33000   ac_ext=cpp
33001 ac_cpp='$CXXCPP $CPPFLAGS'
33002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005
33006    cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 #include <cmath>
33013 int
33014 main ()
33015 {
33016 float f; std::isnan(f);
33017   ;
33018   return 0;
33019 }
33020 _ACEOF
33021 rm -f conftest.$ac_objext
33022 if { (ac_try="$ac_compile"
33023 case "(($ac_try" in
33024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025   *) ac_try_echo=$ac_try;;
33026 esac
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028   (eval "$ac_compile") 2>conftest.er1
33029   ac_status=$?
33030   grep -v '^ *+' conftest.er1 >conftest.err
33031   rm -f conftest.er1
33032   cat conftest.err >&5
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); } &&
33035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036   { (case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_try") 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; } &&
33045          { ac_try='test -s conftest.$ac_objext'
33046   { (case "(($ac_try" in
33047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048   *) ac_try_echo=$ac_try;;
33049 esac
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051   (eval "$ac_try") 2>&5
33052   ac_status=$?
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); }; }; then
33055   ac_cv_func_std_isnan_in_cmath=yes
33056 else
33057   echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33059
33060         ac_cv_func_std_isnan_in_cmath=no
33061 fi
33062
33063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064   ac_ext=c
33065 ac_cpp='$CPP $CPPFLAGS'
33066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33069
33070 fi
33071 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33073
33074 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33075
33076 cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_STD_ISNAN_IN_CMATH 1
33078 _ACEOF
33079
33080 fi
33081
33082
33083 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33085 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086   echo $ECHO_N "(cached) $ECHO_C" >&6
33087 else
33088   ac_ext=cpp
33089 ac_cpp='$CXXCPP $CPPFLAGS'
33090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33093
33094    cat >conftest.$ac_ext <<_ACEOF
33095 /* confdefs.h.  */
33096 _ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h.  */
33100 #include <math.h>
33101 int
33102 main ()
33103 {
33104 float f; isinf(f);
33105   ;
33106   return 0;
33107 }
33108 _ACEOF
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_compile") 2>conftest.er1
33117   ac_status=$?
33118   grep -v '^ *+' conftest.er1 >conftest.err
33119   rm -f conftest.er1
33120   cat conftest.err >&5
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); } &&
33123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124   { (case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_try") 2>&5
33130   ac_status=$?
33131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132   (exit $ac_status); }; } &&
33133          { ac_try='test -s conftest.$ac_objext'
33134   { (case "(($ac_try" in
33135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136   *) ac_try_echo=$ac_try;;
33137 esac
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139   (eval "$ac_try") 2>&5
33140   ac_status=$?
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); }; }; then
33143   ac_cv_func_isinf_in_math_h=yes
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148         ac_cv_func_isinf_in_math_h=no
33149 fi
33150
33151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33152   ac_ext=c
33153 ac_cpp='$CPP $CPPFLAGS'
33154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33157
33158 fi
33159 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33161
33162 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33163
33164 cat >>confdefs.h <<\_ACEOF
33165 #define HAVE_ISINF_IN_MATH_H 1
33166 _ACEOF
33167
33168 fi
33169
33170 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173   echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33175   ac_ext=cpp
33176 ac_cpp='$CXXCPP $CPPFLAGS'
33177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33180
33181    cat >conftest.$ac_ext <<_ACEOF
33182 /* confdefs.h.  */
33183 _ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h.  */
33187 #include <cmath>
33188 int
33189 main ()
33190 {
33191 float f; isinf(f);
33192   ;
33193   return 0;
33194 }
33195 _ACEOF
33196 rm -f conftest.$ac_objext
33197 if { (ac_try="$ac_compile"
33198 case "(($ac_try" in
33199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200   *) ac_try_echo=$ac_try;;
33201 esac
33202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203   (eval "$ac_compile") 2>conftest.er1
33204   ac_status=$?
33205   grep -v '^ *+' conftest.er1 >conftest.err
33206   rm -f conftest.er1
33207   cat conftest.err >&5
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); } &&
33210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33211   { (case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_try") 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; } &&
33220          { ac_try='test -s conftest.$ac_objext'
33221   { (case "(($ac_try" in
33222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223   *) ac_try_echo=$ac_try;;
33224 esac
33225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226   (eval "$ac_try") 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; }; then
33230   ac_cv_func_isinf_in_cmath=yes
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235         ac_cv_func_isinf_in_cmath=no
33236 fi
33237
33238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33239   ac_ext=c
33240 ac_cpp='$CPP $CPPFLAGS'
33241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33244
33245 fi
33246 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33248
33249 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33250
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ISINF_IN_CMATH 1
33253 _ACEOF
33254
33255 fi
33256
33257 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33259 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260   echo $ECHO_N "(cached) $ECHO_C" >&6
33261 else
33262   ac_ext=cpp
33263 ac_cpp='$CXXCPP $CPPFLAGS'
33264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267
33268    cat >conftest.$ac_ext <<_ACEOF
33269 /* confdefs.h.  */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h.  */
33274 #include <cmath>
33275 int
33276 main ()
33277 {
33278 float f; std::isinf(f)}
33279   ;
33280   return 0;
33281 }
33282 _ACEOF
33283 rm -f conftest.$ac_objext
33284 if { (ac_try="$ac_compile"
33285 case "(($ac_try" in
33286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287   *) ac_try_echo=$ac_try;;
33288 esac
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290   (eval "$ac_compile") 2>conftest.er1
33291   ac_status=$?
33292   grep -v '^ *+' conftest.er1 >conftest.err
33293   rm -f conftest.er1
33294   cat conftest.err >&5
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); } &&
33297          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298   { (case "(($ac_try" in
33299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300   *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303   (eval "$ac_try") 2>&5
33304   ac_status=$?
33305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306   (exit $ac_status); }; } &&
33307          { ac_try='test -s conftest.$ac_objext'
33308   { (case "(($ac_try" in
33309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310   *) ac_try_echo=$ac_try;;
33311 esac
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313   (eval "$ac_try") 2>&5
33314   ac_status=$?
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); }; }; then
33317   ac_cv_func_std_isinf_in_cmath=yes
33318 else
33319   echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33321
33322         ac_cv_func_std_isinf_in_cmath=no
33323 fi
33324
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326   ac_ext=c
33327 ac_cpp='$CPP $CPPFLAGS'
33328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33331
33332 fi
33333 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33335
33336 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33337
33338 cat >>confdefs.h <<\_ACEOF
33339 #define HAVE_STD_ISINF_IN_CMATH 1
33340 _ACEOF
33341
33342 fi
33343
33344 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33346 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347   echo $ECHO_N "(cached) $ECHO_C" >&6
33348 else
33349   ac_ext=cpp
33350 ac_cpp='$CXXCPP $CPPFLAGS'
33351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354
33355    cat >conftest.$ac_ext <<_ACEOF
33356 /* confdefs.h.  */
33357 _ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h.  */
33361 #include <ieeefp.h>
33362 int
33363 main ()
33364 {
33365 float f; finite(f);
33366   ;
33367   return 0;
33368 }
33369 _ACEOF
33370 rm -f conftest.$ac_objext
33371 if { (ac_try="$ac_compile"
33372 case "(($ac_try" in
33373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374   *) ac_try_echo=$ac_try;;
33375 esac
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377   (eval "$ac_compile") 2>conftest.er1
33378   ac_status=$?
33379   grep -v '^ *+' conftest.er1 >conftest.err
33380   rm -f conftest.er1
33381   cat conftest.err >&5
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); } &&
33384          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33385   { (case "(($ac_try" in
33386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387   *) ac_try_echo=$ac_try;;
33388 esac
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390   (eval "$ac_try") 2>&5
33391   ac_status=$?
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); }; } &&
33394          { ac_try='test -s conftest.$ac_objext'
33395   { (case "(($ac_try" in
33396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397   *) ac_try_echo=$ac_try;;
33398 esac
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400   (eval "$ac_try") 2>&5
33401   ac_status=$?
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); }; }; then
33404   ac_cv_func_finite_in_ieeefp_h=yes
33405 else
33406   echo "$as_me: failed program was:" >&5
33407 sed 's/^/| /' conftest.$ac_ext >&5
33408
33409         ac_cv_func_finite_in_ieeefp_h=no
33410 fi
33411
33412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33413   ac_ext=c
33414 ac_cpp='$CPP $CPPFLAGS'
33415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33418
33419 fi
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33422
33423 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33424
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_FINITE_IN_IEEEFP_H 1
33427 _ACEOF
33428
33429 fi
33430
33431
33432
33433 if test "$llvm_cv_platform_type" = "Unix" ; then
33434
33435
33436 for ac_header in stdlib.h unistd.h
33437 do
33438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33443   echo $ECHO_N "(cached) $ECHO_C" >&6
33444 fi
33445 ac_res=`eval echo '${'$as_ac_Header'}'`
33446                { echo "$as_me:$LINENO: result: $ac_res" >&5
33447 echo "${ECHO_T}$ac_res" >&6; }
33448 else
33449   # Is the header compilable?
33450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33452 cat >conftest.$ac_ext <<_ACEOF
33453 /* confdefs.h.  */
33454 _ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h.  */
33458 $ac_includes_default
33459 #include <$ac_header>
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } &&
33475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33476   { (case "(($ac_try" in
33477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478   *) ac_try_echo=$ac_try;;
33479 esac
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481   (eval "$ac_try") 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); }; } &&
33485          { ac_try='test -s conftest.$ac_objext'
33486   { (case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_try") 2>&5
33492   ac_status=$?
33493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494   (exit $ac_status); }; }; then
33495   ac_header_compiler=yes
33496 else
33497   echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33499
33500         ac_header_compiler=no
33501 fi
33502
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505 echo "${ECHO_T}$ac_header_compiler" >&6; }
33506
33507 # Is the header present?
33508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33510 cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 #include <$ac_header>
33517 _ACEOF
33518 if { (ac_try="$ac_cpp conftest.$ac_ext"
33519 case "(($ac_try" in
33520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521   *) ac_try_echo=$ac_try;;
33522 esac
33523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33525   ac_status=$?
33526   grep -v '^ *+' conftest.er1 >conftest.err
33527   rm -f conftest.er1
33528   cat conftest.err >&5
33529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530   (exit $ac_status); } >/dev/null; then
33531   if test -s conftest.err; then
33532     ac_cpp_err=$ac_c_preproc_warn_flag
33533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33534   else
33535     ac_cpp_err=
33536   fi
33537 else
33538   ac_cpp_err=yes
33539 fi
33540 if test -z "$ac_cpp_err"; then
33541   ac_header_preproc=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546   ac_header_preproc=no
33547 fi
33548
33549 rm -f conftest.err conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551 echo "${ECHO_T}$ac_header_preproc" >&6; }
33552
33553 # So?  What about this header?
33554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33555   yes:no: )
33556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560     ac_header_preproc=yes
33561     ;;
33562   no:yes:* )
33563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33575     ( cat <<\_ASBOX
33576 ## ----------------------------------- ##
33577 ## Report this to llvmbugs@cs.uiuc.edu ##
33578 ## ----------------------------------- ##
33579 _ASBOX
33580      ) | sed "s/^/$as_me: WARNING:     /" >&2
33581     ;;
33582 esac
33583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33586   echo $ECHO_N "(cached) $ECHO_C" >&6
33587 else
33588   eval "$as_ac_Header=\$ac_header_preproc"
33589 fi
33590 ac_res=`eval echo '${'$as_ac_Header'}'`
33591                { echo "$as_me:$LINENO: result: $ac_res" >&5
33592 echo "${ECHO_T}$ac_res" >&6; }
33593
33594 fi
33595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596   cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33598 _ACEOF
33599
33600 fi
33601
33602 done
33603
33604
33605 for ac_func in getpagesize
33606 do
33607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33611   echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33613   cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33621 #define $ac_func innocuous_$ac_func
33622
33623 /* System header to define __stub macros and hopefully few prototypes,
33624     which can conflict with char $ac_func (); below.
33625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626     <limits.h> exists even on freestanding compilers.  */
33627
33628 #ifdef __STDC__
33629 # include <limits.h>
33630 #else
33631 # include <assert.h>
33632 #endif
33633
33634 #undef $ac_func
33635
33636 /* Override any GCC internal prototype to avoid an error.
33637    Use char because int might match the return type of a GCC
33638    builtin and then its argument prototype would still apply.  */
33639 #ifdef __cplusplus
33640 extern "C"
33641 #endif
33642 char $ac_func ();
33643 /* The GNU C library defines this for functions which it implements
33644     to always fail with ENOSYS.  Some functions are actually named
33645     something starting with __ and the normal name is an alias.  */
33646 #if defined __stub_$ac_func || defined __stub___$ac_func
33647 choke me
33648 #endif
33649
33650 int
33651 main ()
33652 {
33653 return $ac_func ();
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_link") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } &&
33672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673   { (case "(($ac_try" in
33674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675   *) ac_try_echo=$ac_try;;
33676 esac
33677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678   (eval "$ac_try") 2>&5
33679   ac_status=$?
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); }; } &&
33682          { ac_try='test -s conftest$ac_exeext'
33683   { (case "(($ac_try" in
33684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685   *) ac_try_echo=$ac_try;;
33686 esac
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688   (eval "$ac_try") 2>&5
33689   ac_status=$?
33690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691   (exit $ac_status); }; }; then
33692   eval "$as_ac_var=yes"
33693 else
33694   echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33696
33697         eval "$as_ac_var=no"
33698 fi
33699
33700 rm -f core conftest.err conftest.$ac_objext \
33701       conftest$ac_exeext conftest.$ac_ext
33702 fi
33703 ac_res=`eval echo '${'$as_ac_var'}'`
33704                { echo "$as_me:$LINENO: result: $ac_res" >&5
33705 echo "${ECHO_T}$ac_res" >&6; }
33706 if test `eval echo '${'$as_ac_var'}'` = yes; then
33707   cat >>confdefs.h <<_ACEOF
33708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33709 _ACEOF
33710
33711 fi
33712 done
33713
33714 { echo "$as_me:$LINENO: checking for working mmap" >&5
33715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717   echo $ECHO_N "(cached) $ECHO_C" >&6
33718 else
33719   if test "$cross_compiling" = yes; then
33720   ac_cv_func_mmap_fixed_mapped=no
33721 else
33722   cat >conftest.$ac_ext <<_ACEOF
33723 /* confdefs.h.  */
33724 _ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h.  */
33728 $ac_includes_default
33729 /* malloc might have been renamed as rpl_malloc. */
33730 #undef malloc
33731
33732 /* Thanks to Mike Haertel and Jim Avera for this test.
33733    Here is a matrix of mmap possibilities:
33734         mmap private not fixed
33735         mmap private fixed at somewhere currently unmapped
33736         mmap private fixed at somewhere already mapped
33737         mmap shared not fixed
33738         mmap shared fixed at somewhere currently unmapped
33739         mmap shared fixed at somewhere already mapped
33740    For private mappings, we should verify that changes cannot be read()
33741    back from the file, nor mmap's back from the file at a different
33742    address.  (There have been systems where private was not correctly
33743    implemented like the infamous i386 svr4.0, and systems where the
33744    VM page cache was not coherent with the file system buffer cache
33745    like early versions of FreeBSD and possibly contemporary NetBSD.)
33746    For shared mappings, we should conversely verify that changes get
33747    propagated back to all the places they're supposed to be.
33748
33749    Grep wants private fixed already mapped.
33750    The main things grep needs to know about mmap are:
33751    * does it exist and is it safe to write into the mmap'd area
33752    * how to use it (BSD variants)  */
33753
33754 #include <fcntl.h>
33755 #include <sys/mman.h>
33756
33757 #if !STDC_HEADERS && !HAVE_STDLIB_H
33758 char *malloc ();
33759 #endif
33760
33761 /* This mess was copied from the GNU getpagesize.h.  */
33762 #if !HAVE_GETPAGESIZE
33763 /* Assume that all systems that can run configure have sys/param.h.  */
33764 # if !HAVE_SYS_PARAM_H
33765 #  define HAVE_SYS_PARAM_H 1
33766 # endif
33767
33768 # ifdef _SC_PAGESIZE
33769 #  define getpagesize() sysconf(_SC_PAGESIZE)
33770 # else /* no _SC_PAGESIZE */
33771 #  if HAVE_SYS_PARAM_H
33772 #   include <sys/param.h>
33773 #   ifdef EXEC_PAGESIZE
33774 #    define getpagesize() EXEC_PAGESIZE
33775 #   else /* no EXEC_PAGESIZE */
33776 #    ifdef NBPG
33777 #     define getpagesize() NBPG * CLSIZE
33778 #     ifndef CLSIZE
33779 #      define CLSIZE 1
33780 #     endif /* no CLSIZE */
33781 #    else /* no NBPG */
33782 #     ifdef NBPC
33783 #      define getpagesize() NBPC
33784 #     else /* no NBPC */
33785 #      ifdef PAGESIZE
33786 #       define getpagesize() PAGESIZE
33787 #      endif /* PAGESIZE */
33788 #     endif /* no NBPC */
33789 #    endif /* no NBPG */
33790 #   endif /* no EXEC_PAGESIZE */
33791 #  else /* no HAVE_SYS_PARAM_H */
33792 #   define getpagesize() 8192   /* punt totally */
33793 #  endif /* no HAVE_SYS_PARAM_H */
33794 # endif /* no _SC_PAGESIZE */
33795
33796 #endif /* no HAVE_GETPAGESIZE */
33797
33798 int
33799 main ()
33800 {
33801   char *data, *data2, *data3;
33802   int i, pagesize;
33803   int fd;
33804
33805   pagesize = getpagesize ();
33806
33807   /* First, make a file with some known garbage in it. */
33808   data = (char *) malloc (pagesize);
33809   if (!data)
33810     return 1;
33811   for (i = 0; i < pagesize; ++i)
33812     *(data + i) = rand ();
33813   umask (0);
33814   fd = creat ("conftest.mmap", 0600);
33815   if (fd < 0)
33816     return 1;
33817   if (write (fd, data, pagesize) != pagesize)
33818     return 1;
33819   close (fd);
33820
33821   /* Next, try to mmap the file at a fixed address which already has
33822      something else allocated at it.  If we can, also make sure that
33823      we see the same garbage.  */
33824   fd = open ("conftest.mmap", O_RDWR);
33825   if (fd < 0)
33826     return 1;
33827   data2 = (char *) malloc (2 * pagesize);
33828   if (!data2)
33829     return 1;
33830   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33831   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33832                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33833     return 1;
33834   for (i = 0; i < pagesize; ++i)
33835     if (*(data + i) != *(data2 + i))
33836       return 1;
33837
33838   /* Finally, make sure that changes to the mapped area do not
33839      percolate back to the file as seen by read().  (This is a bug on
33840      some variants of i386 svr4.0.)  */
33841   for (i = 0; i < pagesize; ++i)
33842     *(data2 + i) = *(data2 + i) + 1;
33843   data3 = (char *) malloc (pagesize);
33844   if (!data3)
33845     return 1;
33846   if (read (fd, data3, pagesize) != pagesize)
33847     return 1;
33848   for (i = 0; i < pagesize; ++i)
33849     if (*(data + i) != *(data3 + i))
33850       return 1;
33851   close (fd);
33852   return 0;
33853 }
33854 _ACEOF
33855 rm -f conftest$ac_exeext
33856 if { (ac_try="$ac_link"
33857 case "(($ac_try" in
33858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859   *) ac_try_echo=$ac_try;;
33860 esac
33861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862   (eval "$ac_link") 2>&5
33863   ac_status=$?
33864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33866   { (case "(($ac_try" in
33867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868   *) ac_try_echo=$ac_try;;
33869 esac
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871   (eval "$ac_try") 2>&5
33872   ac_status=$?
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); }; }; then
33875   ac_cv_func_mmap_fixed_mapped=yes
33876 else
33877   echo "$as_me: program exited with status $ac_status" >&5
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33880
33881 ( exit $ac_status )
33882 ac_cv_func_mmap_fixed_mapped=no
33883 fi
33884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33885 fi
33886
33887
33888 fi
33889 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33891 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33892
33893 cat >>confdefs.h <<\_ACEOF
33894 #define HAVE_MMAP 1
33895 _ACEOF
33896
33897 fi
33898 rm -f conftest.mmap
33899
33900   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33901 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33902 if test "${ac_cv_func_mmap_file+set}" = set; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905    ac_ext=c
33906 ac_cpp='$CPP $CPPFLAGS'
33907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910
33911   if test "$cross_compiling" = yes; then
33912   ac_cv_func_mmap_file=no
33913 else
33914   cat >conftest.$ac_ext <<_ACEOF
33915
33916     /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921
33922 #include <sys/types.h>
33923 #include <sys/mman.h>
33924 #include <fcntl.h>
33925
33926 int
33927 main ()
33928 {
33929
33930   int fd;
33931   fd = creat ("foo",0777);
33932   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33933   unlink ("foo");
33934   return (fd != (int) MAP_FAILED);
33935   ;
33936   return 0;
33937 }
33938 _ACEOF
33939 rm -f conftest$ac_exeext
33940 if { (ac_try="$ac_link"
33941 case "(($ac_try" in
33942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943   *) ac_try_echo=$ac_try;;
33944 esac
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946   (eval "$ac_link") 2>&5
33947   ac_status=$?
33948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33950   { (case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_try") 2>&5
33956   ac_status=$?
33957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958   (exit $ac_status); }; }; then
33959   ac_cv_func_mmap_file=yes
33960 else
33961   echo "$as_me: program exited with status $ac_status" >&5
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33964
33965 ( exit $ac_status )
33966 ac_cv_func_mmap_file=no
33967 fi
33968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33969 fi
33970
33971
33972   ac_ext=c
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978
33979 fi
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33982 if test "$ac_cv_func_mmap_file" = yes; then
33983
33984 cat >>confdefs.h <<\_ACEOF
33985 #define HAVE_MMAP_FILE
33986 _ACEOF
33987
33988    MMAP_FILE=yes
33989
33990 fi
33991
33992   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33993 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33994 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995   echo $ECHO_N "(cached) $ECHO_C" >&6
33996 else
33997   if test "$llvm_cv_os_type" = "Interix" ; then
33998    ac_cv_need_dev_zero_for_mmap=yes
33999  else
34000    ac_cv_need_dev_zero_for_mmap=no
34001  fi
34002
34003 fi
34004 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34006 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34007
34008 cat >>confdefs.h <<\_ACEOF
34009 #define NEED_DEV_ZERO_FOR_MMAP 1
34010 _ACEOF
34011
34012 fi
34013
34014   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34015   then
34016     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34017 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34018   fi
34019   if test "$ac_cv_func_mmap_file" = "no"
34020   then
34021     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34022 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34023   fi
34024 fi
34025
34026 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34027 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34028 cat >conftest.$ac_ext <<_ACEOF
34029 /* confdefs.h.  */
34030 _ACEOF
34031 cat confdefs.h >>conftest.$ac_ext
34032 cat >>conftest.$ac_ext <<_ACEOF
34033 /* end confdefs.h.  */
34034 int main() {
34035         volatile unsigned long val = 1;
34036         __sync_synchronize();
34037         __sync_val_compare_and_swap(&val, 1, 0);
34038         __sync_add_and_fetch(&val, 1);
34039         __sync_sub_and_fetch(&val, 1);
34040         return 0;
34041       }
34042
34043 _ACEOF
34044 rm -f conftest.$ac_objext conftest$ac_exeext
34045 if { (ac_try="$ac_link"
34046 case "(($ac_try" in
34047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048   *) ac_try_echo=$ac_try;;
34049 esac
34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051   (eval "$ac_link") 2>conftest.er1
34052   ac_status=$?
34053   grep -v '^ *+' conftest.er1 >conftest.err
34054   rm -f conftest.er1
34055   cat conftest.err >&5
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); } &&
34058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34059   { (case "(($ac_try" in
34060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34061   *) ac_try_echo=$ac_try;;
34062 esac
34063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34064   (eval "$ac_try") 2>&5
34065   ac_status=$?
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); }; } &&
34068          { ac_try='test -s conftest$ac_exeext'
34069   { (case "(($ac_try" in
34070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071   *) ac_try_echo=$ac_try;;
34072 esac
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074   (eval "$ac_try") 2>&5
34075   ac_status=$?
34076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077   (exit $ac_status); }; }; then
34078   { echo "$as_me:$LINENO: result: yes" >&5
34079 echo "${ECHO_T}yes" >&6; }
34080
34081 cat >>confdefs.h <<\_ACEOF
34082 #define LLVM_MULTITHREADED 1
34083 _ACEOF
34084
34085 else
34086   echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34088
34089         { echo "$as_me:$LINENO: result: no" >&5
34090 echo "${ECHO_T}no" >&6; }
34091
34092 cat >>confdefs.h <<\_ACEOF
34093 #define LLVM_MULTITHREADED 0
34094 _ACEOF
34095
34096   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34097 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34098 fi
34099
34100 rm -f core conftest.err conftest.$ac_objext \
34101       conftest$ac_exeext conftest.$ac_ext
34102
34103
34104
34105
34106 for ac_func in __dso_handle
34107 do
34108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34122 #define $ac_func innocuous_$ac_func
34123
34124 /* System header to define __stub macros and hopefully few prototypes,
34125     which can conflict with char $ac_func (); below.
34126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34127     <limits.h> exists even on freestanding compilers.  */
34128
34129 #ifdef __STDC__
34130 # include <limits.h>
34131 #else
34132 # include <assert.h>
34133 #endif
34134
34135 #undef $ac_func
34136
34137 /* Override any GCC internal prototype to avoid an error.
34138    Use char because int might match the return type of a GCC
34139    builtin and then its argument prototype would still apply.  */
34140 #ifdef __cplusplus
34141 extern "C"
34142 #endif
34143 char $ac_func ();
34144 /* The GNU C library defines this for functions which it implements
34145     to always fail with ENOSYS.  Some functions are actually named
34146     something starting with __ and the normal name is an alias.  */
34147 #if defined __stub_$ac_func || defined __stub___$ac_func
34148 choke me
34149 #endif
34150
34151 int
34152 main ()
34153 {
34154 return $ac_func ();
34155   ;
34156   return 0;
34157 }
34158 _ACEOF
34159 rm -f conftest.$ac_objext conftest$ac_exeext
34160 if { (ac_try="$ac_link"
34161 case "(($ac_try" in
34162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163   *) ac_try_echo=$ac_try;;
34164 esac
34165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166   (eval "$ac_link") 2>conftest.er1
34167   ac_status=$?
34168   grep -v '^ *+' conftest.er1 >conftest.err
34169   rm -f conftest.er1
34170   cat conftest.err >&5
34171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172   (exit $ac_status); } &&
34173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34174   { (case "(($ac_try" in
34175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176   *) ac_try_echo=$ac_try;;
34177 esac
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179   (eval "$ac_try") 2>&5
34180   ac_status=$?
34181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182   (exit $ac_status); }; } &&
34183          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
34190   ac_status=$?
34191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192   (exit $ac_status); }; }; then
34193   eval "$as_ac_var=yes"
34194 else
34195   echo "$as_me: failed program was:" >&5
34196 sed 's/^/| /' conftest.$ac_ext >&5
34197
34198         eval "$as_ac_var=no"
34199 fi
34200
34201 rm -f core conftest.err conftest.$ac_objext \
34202       conftest$ac_exeext conftest.$ac_ext
34203 fi
34204 ac_res=`eval echo '${'$as_ac_var'}'`
34205                { echo "$as_me:$LINENO: result: $ac_res" >&5
34206 echo "${ECHO_T}$ac_res" >&6; }
34207 if test `eval echo '${'$as_ac_var'}'` = yes; then
34208   cat >>confdefs.h <<_ACEOF
34209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34210 _ACEOF
34211
34212 fi
34213 done
34214
34215
34216 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34217 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34218 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34219   echo $ECHO_N "(cached) $ECHO_C" >&6
34220 else
34221   llvm_cv_llvmgcc_sanity="no"
34222 if test -x "$LLVMGCC" ; then
34223   cp /dev/null conftest.c
34224   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34225       grep 'target datalayout =' > /dev/null 2>&1
34226   if test $? -eq 0 ; then
34227     llvm_cv_llvmgcc_sanity="yes"
34228   fi
34229   rm conftest.c
34230 fi
34231 fi
34232 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34233 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34234
34235 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34236   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34237 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34238   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34239   LLVMCC1=$llvmcc1path
34240
34241   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34242   LLVMCC1PLUS=$llvmcc1pluspath
34243
34244   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34245   LLVMGCCDIR=$llvmgccdir
34246
34247   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34248   LLVMGCCLIBEXEC=$llvmgcclibexec
34249
34250   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34251   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34252   LLVMGCC_VERSION=$llvmgccversion
34253
34254   LLVMGCC_MAJVERS=$llvmgccmajvers
34255
34256   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34257   LLVMGCC_LANGS=$llvmgcclangs
34258
34259   { echo "$as_me:$LINENO: result: ok" >&5
34260 echo "${ECHO_T}ok" >&6; }
34261 fi
34262
34263 SHLIBEXT=$libltdl_cv_shlibext
34264
34265
34266 # Translate the various configuration directories and other basic
34267 # information into substitutions that will end up in Makefile.config.in
34268 # that these configured values can be used by the makefiles
34269 if test "${prefix}" = "NONE" ; then
34270   prefix="/usr/local"
34271 fi
34272 eval LLVM_PREFIX="${prefix}";
34273 eval LLVM_BINDIR="${prefix}/bin";
34274 eval LLVM_LIBDIR="${prefix}/lib";
34275 eval LLVM_DATADIR="${prefix}/share/llvm";
34276 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34278 eval LLVM_INCLUDEDIR="${prefix}/include";
34279 eval LLVM_INFODIR="${prefix}/info";
34280 eval LLVM_MANDIR="${prefix}/man";
34281 LLVM_CONFIGTIME=`date`
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293 # Place the various directores into the config.h file as #defines so that we
34294 # can know about the installation paths within LLVM.
34295
34296 cat >>confdefs.h <<_ACEOF
34297 #define LLVM_PREFIX "$LLVM_PREFIX"
34298 _ACEOF
34299
34300
34301 cat >>confdefs.h <<_ACEOF
34302 #define LLVM_BINDIR "$LLVM_BINDIR"
34303 _ACEOF
34304
34305
34306 cat >>confdefs.h <<_ACEOF
34307 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34308 _ACEOF
34309
34310
34311 cat >>confdefs.h <<_ACEOF
34312 #define LLVM_DATADIR "$LLVM_DATADIR"
34313 _ACEOF
34314
34315
34316 cat >>confdefs.h <<_ACEOF
34317 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34318 _ACEOF
34319
34320
34321 cat >>confdefs.h <<_ACEOF
34322 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34323 _ACEOF
34324
34325
34326 cat >>confdefs.h <<_ACEOF
34327 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34328 _ACEOF
34329
34330
34331 cat >>confdefs.h <<_ACEOF
34332 #define LLVM_INFODIR "$LLVM_INFODIR"
34333 _ACEOF
34334
34335
34336 cat >>confdefs.h <<_ACEOF
34337 #define LLVM_MANDIR "$LLVM_MANDIR"
34338 _ACEOF
34339
34340
34341 cat >>confdefs.h <<_ACEOF
34342 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34343 _ACEOF
34344
34345
34346 cat >>confdefs.h <<_ACEOF
34347 #define LLVM_HOSTTRIPLE "$host"
34348 _ACEOF
34349
34350
34351 # Determine which bindings to build.
34352 if test "$BINDINGS_TO_BUILD" = auto ; then
34353   BINDINGS_TO_BUILD=""
34354   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34355     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34356   fi
34357 fi
34358 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34359
34360
34361 # This isn't really configurey, but it avoids having to repeat the list in
34362 # other files.
34363 ALL_BINDINGS=ocaml
34364
34365
34366 # Do any work necessary to ensure that bindings have what they need.
34367 binding_prereqs_failed=0
34368 for a_binding in $BINDINGS_TO_BUILD ; do
34369   case "$a_binding" in
34370   ocaml)
34371     if test "x$OCAMLC" = x ; then
34372       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34373 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34374       binding_prereqs_failed=1
34375     fi
34376     if test "x$OCAMLDEP" = x ; then
34377       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34378 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34379       binding_prereqs_failed=1
34380     fi
34381     if test "x$OCAMLOPT" = x ; then
34382       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34383 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34384           fi
34385     if test "x$with_ocaml_libdir" != xauto ; then
34386       OCAML_LIBDIR=$with_ocaml_libdir
34387
34388     else
34389       ocaml_stdlib="`"$OCAMLC" -where`"
34390       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34391       then
34392         # ocaml stdlib is beneath our prefix; use stdlib
34393         OCAML_LIBDIR=$ocaml_stdlib
34394
34395       else
34396         # ocaml stdlib is outside our prefix; use libdir/ocaml
34397         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34398
34399       fi
34400     fi
34401     ;;
34402   esac
34403 done
34404 if test "$binding_prereqs_failed" = 1 ; then
34405   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34406 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34407    { (exit 1); exit 1; }; }
34408 fi
34409
34410 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34411 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34412 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34413   echo $ECHO_N "(cached) $ECHO_C" >&6
34414 else
34415    ac_ext=cpp
34416 ac_cpp='$CXXCPP $CPPFLAGS'
34417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34420
34421   oldcxxflags="$CXXFLAGS"
34422   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34423   cat >conftest.$ac_ext <<_ACEOF
34424 /* confdefs.h.  */
34425 _ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h.  */
34429
34430 int
34431 main ()
34432 {
34433
34434   ;
34435   return 0;
34436 }
34437 _ACEOF
34438 rm -f conftest.$ac_objext
34439 if { (ac_try="$ac_compile"
34440 case "(($ac_try" in
34441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442   *) ac_try_echo=$ac_try;;
34443 esac
34444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34445   (eval "$ac_compile") 2>conftest.er1
34446   ac_status=$?
34447   grep -v '^ *+' conftest.er1 >conftest.err
34448   rm -f conftest.er1
34449   cat conftest.err >&5
34450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451   (exit $ac_status); } &&
34452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34453   { (case "(($ac_try" in
34454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455   *) ac_try_echo=$ac_try;;
34456 esac
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458   (eval "$ac_try") 2>&5
34459   ac_status=$?
34460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461   (exit $ac_status); }; } &&
34462          { ac_try='test -s conftest.$ac_objext'
34463   { (case "(($ac_try" in
34464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465   *) ac_try_echo=$ac_try;;
34466 esac
34467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468   (eval "$ac_try") 2>&5
34469   ac_status=$?
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); }; }; then
34472   llvm_cv_cxx_visibility_inlines_hidden=yes
34473 else
34474   echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34476
34477         llvm_cv_cxx_visibility_inlines_hidden=no
34478 fi
34479
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481   CXXFLAGS="$oldcxxflags"
34482   ac_ext=c
34483 ac_cpp='$CPP $CPPFLAGS'
34484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34487
34488
34489 fi
34490 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34491 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34492 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34493   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34494
34495 else
34496   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34497
34498 fi
34499
34500
34501 if test "$llvm_cv_link_use_r" = "yes" ; then
34502   RPATH="-Wl,-R"
34503 else
34504   RPATH="-Wl,-rpath"
34505 fi
34506
34507
34508 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34509   RDYNAMIC="-Wl,-export-dynamic"
34510 else
34511   RDYNAMIC=""
34512 fi
34513
34514
34515
34516 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34517
34518 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34519
34520 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34521
34522 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34523
34524 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34525
34526
34527 ac_config_files="$ac_config_files Makefile.config"
34528
34529
34530 ac_config_files="$ac_config_files llvm.spec"
34531
34532
34533 ac_config_files="$ac_config_files docs/doxygen.cfg"
34534
34535
34536 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34537
34538
34539 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34540
34541
34542 ac_config_commands="$ac_config_commands setup"
34543
34544 ac_config_commands="$ac_config_commands Makefile"
34545
34546
34547 ac_config_commands="$ac_config_commands Makefile.common"
34548
34549
34550 ac_config_commands="$ac_config_commands examples/Makefile"
34551
34552
34553 ac_config_commands="$ac_config_commands lib/Makefile"
34554
34555
34556 ac_config_commands="$ac_config_commands runtime/Makefile"
34557
34558
34559 ac_config_commands="$ac_config_commands test/Makefile"
34560
34561
34562 ac_config_commands="$ac_config_commands test/Makefile.tests"
34563
34564
34565 ac_config_commands="$ac_config_commands unittests/Makefile"
34566
34567
34568 ac_config_commands="$ac_config_commands tools/Makefile"
34569
34570
34571 ac_config_commands="$ac_config_commands utils/Makefile"
34572
34573
34574 ac_config_commands="$ac_config_commands projects/Makefile"
34575
34576
34577 ac_config_commands="$ac_config_commands bindings/Makefile"
34578
34579
34580 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34581
34582
34583
34584 cat >confcache <<\_ACEOF
34585 # This file is a shell script that caches the results of configure
34586 # tests run on this system so they can be shared between configure
34587 # scripts and configure runs, see configure's option --config-cache.
34588 # It is not useful on other systems.  If it contains results you don't
34589 # want to keep, you may remove or edit it.
34590 #
34591 # config.status only pays attention to the cache file if you give it
34592 # the --recheck option to rerun configure.
34593 #
34594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34596 # following values.
34597
34598 _ACEOF
34599
34600 # The following way of writing the cache mishandles newlines in values,
34601 # but we know of no workaround that is simple, portable, and efficient.
34602 # So, we kill variables containing newlines.
34603 # Ultrix sh set writes to stderr and can't be redirected directly,
34604 # and sets the high bit in the cache file unless we assign to the vars.
34605 (
34606   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34607     eval ac_val=\$$ac_var
34608     case $ac_val in #(
34609     *${as_nl}*)
34610       case $ac_var in #(
34611       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34613       esac
34614       case $ac_var in #(
34615       _ | IFS | as_nl) ;; #(
34616       *) $as_unset $ac_var ;;
34617       esac ;;
34618     esac
34619   done
34620
34621   (set) 2>&1 |
34622     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34623     *${as_nl}ac_space=\ *)
34624       # `set' does not quote correctly, so add quotes (double-quote
34625       # substitution turns \\\\ into \\, and sed turns \\ into \).
34626       sed -n \
34627         "s/'/'\\\\''/g;
34628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34629       ;; #(
34630     *)
34631       # `set' quotes correctly as required by POSIX, so do not add quotes.
34632       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34633       ;;
34634     esac |
34635     sort
34636 ) |
34637   sed '
34638      /^ac_cv_env_/b end
34639      t clear
34640      :clear
34641      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34642      t end
34643      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34644      :end' >>confcache
34645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34646   if test -w "$cache_file"; then
34647     test "x$cache_file" != "x/dev/null" &&
34648       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34649 echo "$as_me: updating cache $cache_file" >&6;}
34650     cat confcache >$cache_file
34651   else
34652     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34654   fi
34655 fi
34656 rm -f confcache
34657
34658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34659 # Let make expand exec_prefix.
34660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34661
34662 DEFS=-DHAVE_CONFIG_H
34663
34664 ac_libobjs=
34665 ac_ltlibobjs=
34666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34667   # 1. Remove the extension, and $U if already installed.
34668   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34669   ac_i=`echo "$ac_i" | sed "$ac_script"`
34670   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34671   #    will be set to the directory where LIBOBJS objects are built.
34672   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34673   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34674 done
34675 LIBOBJS=$ac_libobjs
34676
34677 LTLIBOBJS=$ac_ltlibobjs
34678
34679
34680 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34681   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34682 Usually this means the macro was only invoked conditionally." >&5
34683 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34684 Usually this means the macro was only invoked conditionally." >&2;}
34685    { (exit 1); exit 1; }; }
34686 fi
34687 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34688   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34689 Usually this means the macro was only invoked conditionally." >&5
34690 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34691 Usually this means the macro was only invoked conditionally." >&2;}
34692    { (exit 1); exit 1; }; }
34693 fi
34694
34695 : ${CONFIG_STATUS=./config.status}
34696 ac_clean_files_save=$ac_clean_files
34697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34700 cat >$CONFIG_STATUS <<_ACEOF
34701 #! $SHELL
34702 # Generated by $as_me.
34703 # Run this file to recreate the current configuration.
34704 # Compiler output produced by configure, useful for debugging
34705 # configure, is in config.log if it exists.
34706
34707 debug=false
34708 ac_cs_recheck=false
34709 ac_cs_silent=false
34710 SHELL=\${CONFIG_SHELL-$SHELL}
34711 _ACEOF
34712
34713 cat >>$CONFIG_STATUS <<\_ACEOF
34714 ## --------------------- ##
34715 ## M4sh Initialization.  ##
34716 ## --------------------- ##
34717
34718 # Be Bourne compatible
34719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34720   emulate sh
34721   NULLCMD=:
34722   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34723   # is contrary to our usage.  Disable this feature.
34724   alias -g '${1+"$@"}'='"$@"'
34725   setopt NO_GLOB_SUBST
34726 else
34727   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34728 fi
34729 BIN_SH=xpg4; export BIN_SH # for Tru64
34730 DUALCASE=1; export DUALCASE # for MKS sh
34731
34732
34733 # PATH needs CR
34734 # Avoid depending upon Character Ranges.
34735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34738 as_cr_digits='0123456789'
34739 as_cr_alnum=$as_cr_Letters$as_cr_digits
34740
34741 # The user is always right.
34742 if test "${PATH_SEPARATOR+set}" != set; then
34743   echo "#! /bin/sh" >conf$$.sh
34744   echo  "exit 0"   >>conf$$.sh
34745   chmod +x conf$$.sh
34746   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34747     PATH_SEPARATOR=';'
34748   else
34749     PATH_SEPARATOR=:
34750   fi
34751   rm -f conf$$.sh
34752 fi
34753
34754 # Support unset when possible.
34755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34756   as_unset=unset
34757 else
34758   as_unset=false
34759 fi
34760
34761
34762 # IFS
34763 # We need space, tab and new line, in precisely that order.  Quoting is
34764 # there to prevent editors from complaining about space-tab.
34765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34766 # splitting by setting IFS to empty value.)
34767 as_nl='
34768 '
34769 IFS=" ""        $as_nl"
34770
34771 # Find who we are.  Look in the path if we contain no directory separator.
34772 case $0 in
34773   *[\\/]* ) as_myself=$0 ;;
34774   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34775 for as_dir in $PATH
34776 do
34777   IFS=$as_save_IFS
34778   test -z "$as_dir" && as_dir=.
34779   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34780 done
34781 IFS=$as_save_IFS
34782
34783      ;;
34784 esac
34785 # We did not find ourselves, most probably we were run as `sh COMMAND'
34786 # in which case we are not to be found in the path.
34787 if test "x$as_myself" = x; then
34788   as_myself=$0
34789 fi
34790 if test ! -f "$as_myself"; then
34791   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34792   { (exit 1); exit 1; }
34793 fi
34794
34795 # Work around bugs in pre-3.0 UWIN ksh.
34796 for as_var in ENV MAIL MAILPATH
34797 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34798 done
34799 PS1='$ '
34800 PS2='> '
34801 PS4='+ '
34802
34803 # NLS nuisances.
34804 for as_var in \
34805   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34806   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34807   LC_TELEPHONE LC_TIME
34808 do
34809   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34810     eval $as_var=C; export $as_var
34811   else
34812     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34813   fi
34814 done
34815
34816 # Required to use basename.
34817 if expr a : '\(a\)' >/dev/null 2>&1 &&
34818    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34819   as_expr=expr
34820 else
34821   as_expr=false
34822 fi
34823
34824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34825   as_basename=basename
34826 else
34827   as_basename=false
34828 fi
34829
34830
34831 # Name of the executable.
34832 as_me=`$as_basename -- "$0" ||
34833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34834          X"$0" : 'X\(//\)$' \| \
34835          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34836 echo X/"$0" |
34837     sed '/^.*\/\([^/][^/]*\)\/*$/{
34838             s//\1/
34839             q
34840           }
34841           /^X\/\(\/\/\)$/{
34842             s//\1/
34843             q
34844           }
34845           /^X\/\(\/\).*/{
34846             s//\1/
34847             q
34848           }
34849           s/.*/./; q'`
34850
34851 # CDPATH.
34852 $as_unset CDPATH
34853
34854
34855
34856   as_lineno_1=$LINENO
34857   as_lineno_2=$LINENO
34858   test "x$as_lineno_1" != "x$as_lineno_2" &&
34859   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34860
34861   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34862   # uniformly replaced by the line number.  The first 'sed' inserts a
34863   # line-number line after each line using $LINENO; the second 'sed'
34864   # does the real work.  The second script uses 'N' to pair each
34865   # line-number line with the line containing $LINENO, and appends
34866   # trailing '-' during substitution so that $LINENO is not a special
34867   # case at line end.
34868   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34869   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34870   # E. McMahon (1931-1989) for sed's syntax.  :-)
34871   sed -n '
34872     p
34873     /[$]LINENO/=
34874   ' <$as_myself |
34875     sed '
34876       s/[$]LINENO.*/&-/
34877       t lineno
34878       b
34879       :lineno
34880       N
34881       :loop
34882       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34883       t loop
34884       s/-\n.*//
34885     ' >$as_me.lineno &&
34886   chmod +x "$as_me.lineno" ||
34887     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34888    { (exit 1); exit 1; }; }
34889
34890   # Don't try to exec as it changes $[0], causing all sort of problems
34891   # (the dirname of $[0] is not the place where we might find the
34892   # original and so on.  Autoconf is especially sensitive to this).
34893   . "./$as_me.lineno"
34894   # Exit status is that of the last command.
34895   exit
34896 }
34897
34898
34899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34900   as_dirname=dirname
34901 else
34902   as_dirname=false
34903 fi
34904
34905 ECHO_C= ECHO_N= ECHO_T=
34906 case `echo -n x` in
34907 -n*)
34908   case `echo 'x\c'` in
34909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34910   *)   ECHO_C='\c';;
34911   esac;;
34912 *)
34913   ECHO_N='-n';;
34914 esac
34915
34916 if expr a : '\(a\)' >/dev/null 2>&1 &&
34917    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34918   as_expr=expr
34919 else
34920   as_expr=false
34921 fi
34922
34923 rm -f conf$$ conf$$.exe conf$$.file
34924 if test -d conf$$.dir; then
34925   rm -f conf$$.dir/conf$$.file
34926 else
34927   rm -f conf$$.dir
34928   mkdir conf$$.dir
34929 fi
34930 echo >conf$$.file
34931 if ln -s conf$$.file conf$$ 2>/dev/null; then
34932   as_ln_s='ln -s'
34933   # ... but there are two gotchas:
34934   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34935   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34936   # In both cases, we have to default to `cp -p'.
34937   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34938     as_ln_s='cp -p'
34939 elif ln conf$$.file conf$$ 2>/dev/null; then
34940   as_ln_s=ln
34941 else
34942   as_ln_s='cp -p'
34943 fi
34944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34945 rmdir conf$$.dir 2>/dev/null
34946
34947 if mkdir -p . 2>/dev/null; then
34948   as_mkdir_p=:
34949 else
34950   test -d ./-p && rmdir ./-p
34951   as_mkdir_p=false
34952 fi
34953
34954 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34955 # systems may use methods other than mode bits to determine executability.
34956 cat >conf$$.file <<_ASEOF
34957 #! /bin/sh
34958 exit 0
34959 _ASEOF
34960 chmod +x conf$$.file
34961 if test -x conf$$.file >/dev/null 2>&1; then
34962   as_executable_p="test -x"
34963 else
34964   as_executable_p=:
34965 fi
34966 rm -f conf$$.file
34967
34968 # Sed expression to map a string onto a valid CPP name.
34969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34970
34971 # Sed expression to map a string onto a valid variable name.
34972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34973
34974
34975 exec 6>&1
34976
34977 # Save the log message, to keep $[0] and so on meaningful, and to
34978 # report actual input values of CONFIG_FILES etc. instead of their
34979 # values after options handling.
34980 ac_log="
34981 This file was extended by llvm $as_me 2.6svn, which was
34982 generated by GNU Autoconf 2.60.  Invocation command line was
34983
34984   CONFIG_FILES    = $CONFIG_FILES
34985   CONFIG_HEADERS  = $CONFIG_HEADERS
34986   CONFIG_LINKS    = $CONFIG_LINKS
34987   CONFIG_COMMANDS = $CONFIG_COMMANDS
34988   $ $0 $@
34989
34990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34991 "
34992
34993 _ACEOF
34994
34995 cat >>$CONFIG_STATUS <<_ACEOF
34996 # Files that config.status was made for.
34997 config_files="$ac_config_files"
34998 config_headers="$ac_config_headers"
34999 config_commands="$ac_config_commands"
35000
35001 _ACEOF
35002
35003 cat >>$CONFIG_STATUS <<\_ACEOF
35004 ac_cs_usage="\
35005 \`$as_me' instantiates files from templates according to the
35006 current configuration.
35007
35008 Usage: $0 [OPTIONS] [FILE]...
35009
35010   -h, --help       print this help, then exit
35011   -V, --version    print version number, then exit
35012   -q, --quiet      do not print progress messages
35013   -d, --debug      don't remove temporary files
35014       --recheck    update $as_me by reconfiguring in the same conditions
35015   --file=FILE[:TEMPLATE]
35016                    instantiate the configuration file FILE
35017   --header=FILE[:TEMPLATE]
35018                    instantiate the configuration header FILE
35019
35020 Configuration files:
35021 $config_files
35022
35023 Configuration headers:
35024 $config_headers
35025
35026 Configuration commands:
35027 $config_commands
35028
35029 Report bugs to <bug-autoconf@gnu.org>."
35030
35031 _ACEOF
35032 cat >>$CONFIG_STATUS <<_ACEOF
35033 ac_cs_version="\\
35034 llvm config.status 2.6svn
35035 configured by $0, generated by GNU Autoconf 2.60,
35036   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35037
35038 Copyright (C) 2006 Free Software Foundation, Inc.
35039 This config.status script is free software; the Free Software Foundation
35040 gives unlimited permission to copy, distribute and modify it."
35041
35042 ac_pwd='$ac_pwd'
35043 srcdir='$srcdir'
35044 INSTALL='$INSTALL'
35045 _ACEOF
35046
35047 cat >>$CONFIG_STATUS <<\_ACEOF
35048 # If no file are specified by the user, then we need to provide default
35049 # value.  By we need to know if files were specified by the user.
35050 ac_need_defaults=:
35051 while test $# != 0
35052 do
35053   case $1 in
35054   --*=*)
35055     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35056     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35057     ac_shift=:
35058     ;;
35059   *)
35060     ac_option=$1
35061     ac_optarg=$2
35062     ac_shift=shift
35063     ;;
35064   esac
35065
35066   case $ac_option in
35067   # Handling of the options.
35068   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35069     ac_cs_recheck=: ;;
35070   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35071     echo "$ac_cs_version"; exit ;;
35072   --debug | --debu | --deb | --de | --d | -d )
35073     debug=: ;;
35074   --file | --fil | --fi | --f )
35075     $ac_shift
35076     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35077     ac_need_defaults=false;;
35078   --header | --heade | --head | --hea )
35079     $ac_shift
35080     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35081     ac_need_defaults=false;;
35082   --he | --h)
35083     # Conflict between --help and --header
35084     { echo "$as_me: error: ambiguous option: $1
35085 Try \`$0 --help' for more information." >&2
35086    { (exit 1); exit 1; }; };;
35087   --help | --hel | -h )
35088     echo "$ac_cs_usage"; exit ;;
35089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35090   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35091     ac_cs_silent=: ;;
35092
35093   # This is an error.
35094   -*) { echo "$as_me: error: unrecognized option: $1
35095 Try \`$0 --help' for more information." >&2
35096    { (exit 1); exit 1; }; } ;;
35097
35098   *) ac_config_targets="$ac_config_targets $1"
35099      ac_need_defaults=false ;;
35100
35101   esac
35102   shift
35103 done
35104
35105 ac_configure_extra_args=
35106
35107 if $ac_cs_silent; then
35108   exec 6>/dev/null
35109   ac_configure_extra_args="$ac_configure_extra_args --silent"
35110 fi
35111
35112 _ACEOF
35113 cat >>$CONFIG_STATUS <<_ACEOF
35114 if \$ac_cs_recheck; then
35115   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35116   CONFIG_SHELL=$SHELL
35117   export CONFIG_SHELL
35118   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35119 fi
35120
35121 _ACEOF
35122 cat >>$CONFIG_STATUS <<\_ACEOF
35123 exec 5>>config.log
35124 {
35125   echo
35126   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35127 ## Running $as_me. ##
35128 _ASBOX
35129   echo "$ac_log"
35130 } >&5
35131
35132 _ACEOF
35133 cat >>$CONFIG_STATUS <<_ACEOF
35134 #
35135 # INIT-COMMANDS
35136 #
35137 llvm_src="${srcdir}"
35138
35139 _ACEOF
35140
35141 cat >>$CONFIG_STATUS <<\_ACEOF
35142
35143 # Handling of arguments.
35144 for ac_config_target in $ac_config_targets
35145 do
35146   case $ac_config_target in
35147     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35148     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35149     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35150     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35151     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35152     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35153     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35154     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35155     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35156     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35157     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35158     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35159     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35160     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35161     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35162     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35163     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35164     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35165     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35166     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35167     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35168     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35169     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35170     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35171
35172   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35174    { (exit 1); exit 1; }; };;
35175   esac
35176 done
35177
35178
35179 # If the user did not use the arguments to specify the items to instantiate,
35180 # then the envvar interface is used.  Set only those that are not.
35181 # We use the long form for the default assignment because of an extremely
35182 # bizarre bug on SunOS 4.1.3.
35183 if $ac_need_defaults; then
35184   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35185   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35186   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35187 fi
35188
35189 # Have a temporary directory for convenience.  Make it in the build tree
35190 # simply because there is no reason against having it here, and in addition,
35191 # creating and moving files from /tmp can sometimes cause problems.
35192 # Hook for its removal unless debugging.
35193 # Note that there is a small window in which the directory will not be cleaned:
35194 # after its creation but before its name has been assigned to `$tmp'.
35195 $debug ||
35196 {
35197   tmp=
35198   trap 'exit_status=$?
35199   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35200 ' 0
35201   trap '{ (exit 1); exit 1; }' 1 2 13 15
35202 }
35203 # Create a (secure) tmp directory for tmp files.
35204
35205 {
35206   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35207   test -n "$tmp" && test -d "$tmp"
35208 }  ||
35209 {
35210   tmp=./conf$$-$RANDOM
35211   (umask 077 && mkdir "$tmp")
35212 } ||
35213 {
35214    echo "$me: cannot create a temporary directory in ." >&2
35215    { (exit 1); exit 1; }
35216 }
35217
35218 #
35219 # Set up the sed scripts for CONFIG_FILES section.
35220 #
35221
35222 # No need to generate the scripts if there are no CONFIG_FILES.
35223 # This happens for instance when ./config.status config.h
35224 if test -n "$CONFIG_FILES"; then
35225
35226 _ACEOF
35227
35228
35229
35230 ac_delim='%!_!# '
35231 for ac_last_try in false false false false false :; do
35232   cat >conf$$subs.sed <<_ACEOF
35233 SHELL!$SHELL$ac_delim
35234 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35235 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35236 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35237 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35238 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35239 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35240 exec_prefix!$exec_prefix$ac_delim
35241 prefix!$prefix$ac_delim
35242 program_transform_name!$program_transform_name$ac_delim
35243 bindir!$bindir$ac_delim
35244 sbindir!$sbindir$ac_delim
35245 libexecdir!$libexecdir$ac_delim
35246 datarootdir!$datarootdir$ac_delim
35247 datadir!$datadir$ac_delim
35248 sysconfdir!$sysconfdir$ac_delim
35249 sharedstatedir!$sharedstatedir$ac_delim
35250 localstatedir!$localstatedir$ac_delim
35251 includedir!$includedir$ac_delim
35252 oldincludedir!$oldincludedir$ac_delim
35253 docdir!$docdir$ac_delim
35254 infodir!$infodir$ac_delim
35255 htmldir!$htmldir$ac_delim
35256 dvidir!$dvidir$ac_delim
35257 pdfdir!$pdfdir$ac_delim
35258 psdir!$psdir$ac_delim
35259 libdir!$libdir$ac_delim
35260 localedir!$localedir$ac_delim
35261 mandir!$mandir$ac_delim
35262 DEFS!$DEFS$ac_delim
35263 ECHO_C!$ECHO_C$ac_delim
35264 ECHO_N!$ECHO_N$ac_delim
35265 ECHO_T!$ECHO_T$ac_delim
35266 LIBS!$LIBS$ac_delim
35267 build_alias!$build_alias$ac_delim
35268 host_alias!$host_alias$ac_delim
35269 target_alias!$target_alias$ac_delim
35270 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35271 subdirs!$subdirs$ac_delim
35272 build!$build$ac_delim
35273 build_cpu!$build_cpu$ac_delim
35274 build_vendor!$build_vendor$ac_delim
35275 build_os!$build_os$ac_delim
35276 host!$host$ac_delim
35277 host_cpu!$host_cpu$ac_delim
35278 host_vendor!$host_vendor$ac_delim
35279 host_os!$host_os$ac_delim
35280 target!$target$ac_delim
35281 target_cpu!$target_cpu$ac_delim
35282 target_vendor!$target_vendor$ac_delim
35283 target_os!$target_os$ac_delim
35284 OS!$OS$ac_delim
35285 LINKALL!$LINKALL$ac_delim
35286 NOLINKALL!$NOLINKALL$ac_delim
35287 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35288 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35289 ARCH!$ARCH$ac_delim
35290 ENDIAN!$ENDIAN$ac_delim
35291 CC!$CC$ac_delim
35292 CFLAGS!$CFLAGS$ac_delim
35293 LDFLAGS!$LDFLAGS$ac_delim
35294 CPPFLAGS!$CPPFLAGS$ac_delim
35295 ac_ct_CC!$ac_ct_CC$ac_delim
35296 EXEEXT!$EXEEXT$ac_delim
35297 OBJEXT!$OBJEXT$ac_delim
35298 CPP!$CPP$ac_delim
35299 GREP!$GREP$ac_delim
35300 EGREP!$EGREP$ac_delim
35301 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35302 BUILD_CC!$BUILD_CC$ac_delim
35303 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35304 BUILD_CXX!$BUILD_CXX$ac_delim
35305 CVSBUILD!$CVSBUILD$ac_delim
35306 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35307 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35308 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35309 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35310 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35311 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35312 JIT!$JIT$ac_delim
35313 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35314 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35315 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35316 ENABLE_PIC!$ENABLE_PIC$ac_delim
35317 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35318 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35319 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35320 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35321 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35322 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35323 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35324 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
35325 CXX!$CXX$ac_delim
35326 CXXFLAGS!$CXXFLAGS$ac_delim
35327 ac_ct_CXX!$ac_ct_CXX$ac_delim
35328 NM!$NM$ac_delim
35329 ifGNUmake!$ifGNUmake$ac_delim
35330 _ACEOF
35331
35332   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35333     break
35334   elif $ac_last_try; then
35335     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35337    { (exit 1); exit 1; }; }
35338   else
35339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35340   fi
35341 done
35342
35343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35344 if test -n "$ac_eof"; then
35345   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35346   ac_eof=`expr $ac_eof + 1`
35347 fi
35348
35349 cat >>$CONFIG_STATUS <<_ACEOF
35350 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35352 _ACEOF
35353 sed '
35354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35355 s/^/s,@/; s/!/@,|#_!!_#|/
35356 :n
35357 t n
35358 s/'"$ac_delim"'$/,g/; t
35359 s/$/\\/; p
35360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35361 ' >>$CONFIG_STATUS <conf$$subs.sed
35362 rm -f conf$$subs.sed
35363 cat >>$CONFIG_STATUS <<_ACEOF
35364 CEOF$ac_eof
35365 _ACEOF
35366
35367
35368 ac_delim='%!_!# '
35369 for ac_last_try in false false false false false :; do
35370   cat >conf$$subs.sed <<_ACEOF
35371 LN_S!$LN_S$ac_delim
35372 CMP!$CMP$ac_delim
35373 CP!$CP$ac_delim
35374 DATE!$DATE$ac_delim
35375 FIND!$FIND$ac_delim
35376 MKDIR!$MKDIR$ac_delim
35377 MV!$MV$ac_delim
35378 RANLIB!$RANLIB$ac_delim
35379 RM!$RM$ac_delim
35380 SED!$SED$ac_delim
35381 TAR!$TAR$ac_delim
35382 BINPWD!$BINPWD$ac_delim
35383 GRAPHVIZ!$GRAPHVIZ$ac_delim
35384 DOT!$DOT$ac_delim
35385 GV!$GV$ac_delim
35386 DOTTY!$DOTTY$ac_delim
35387 PERL!$PERL$ac_delim
35388 HAVE_PERL!$HAVE_PERL$ac_delim
35389 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35390 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35391 INSTALL_DATA!$INSTALL_DATA$ac_delim
35392 BZIP2!$BZIP2$ac_delim
35393 DOXYGEN!$DOXYGEN$ac_delim
35394 GROFF!$GROFF$ac_delim
35395 GZIP!$GZIP$ac_delim
35396 POD2HTML!$POD2HTML$ac_delim
35397 POD2MAN!$POD2MAN$ac_delim
35398 RUNTEST!$RUNTEST$ac_delim
35399 TCLSH!$TCLSH$ac_delim
35400 ZIP!$ZIP$ac_delim
35401 OCAMLC!$OCAMLC$ac_delim
35402 OCAMLOPT!$OCAMLOPT$ac_delim
35403 OCAMLDEP!$OCAMLDEP$ac_delim
35404 OCAMLDOC!$OCAMLDOC$ac_delim
35405 GAS!$GAS$ac_delim
35406 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35407 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35408 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35409 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35410 LIBADD_DL!$LIBADD_DL$ac_delim
35411 ECHO!$ECHO$ac_delim
35412 AR!$AR$ac_delim
35413 STRIP!$STRIP$ac_delim
35414 CXXCPP!$CXXCPP$ac_delim
35415 F77!$F77$ac_delim
35416 FFLAGS!$FFLAGS$ac_delim
35417 ac_ct_F77!$ac_ct_F77$ac_delim
35418 LIBTOOL!$LIBTOOL$ac_delim
35419 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35420 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35421 LLVMGCC!$LLVMGCC$ac_delim
35422 LLVMGXX!$LLVMGXX$ac_delim
35423 USE_UDIS86!$USE_UDIS86$ac_delim
35424 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35425 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35426 ALLOCA!$ALLOCA$ac_delim
35427 MMAP_FILE!$MMAP_FILE$ac_delim
35428 LLVMCC1!$LLVMCC1$ac_delim
35429 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35430 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35431 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35432 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35433 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35434 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35435 SHLIBEXT!$SHLIBEXT$ac_delim
35436 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35437 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35438 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35439 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35440 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35441 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35442 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35443 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35444 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35445 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35446 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35447 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35448 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35449 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35450 RPATH!$RPATH$ac_delim
35451 RDYNAMIC!$RDYNAMIC$ac_delim
35452 LIBOBJS!$LIBOBJS$ac_delim
35453 LTLIBOBJS!$LTLIBOBJS$ac_delim
35454 _ACEOF
35455
35456   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
35457     break
35458   elif $ac_last_try; then
35459     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35461    { (exit 1); exit 1; }; }
35462   else
35463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35464   fi
35465 done
35466
35467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35468 if test -n "$ac_eof"; then
35469   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35470   ac_eof=`expr $ac_eof + 1`
35471 fi
35472
35473 cat >>$CONFIG_STATUS <<_ACEOF
35474 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35476 _ACEOF
35477 sed '
35478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35479 s/^/s,@/; s/!/@,|#_!!_#|/
35480 :n
35481 t n
35482 s/'"$ac_delim"'$/,g/; t
35483 s/$/\\/; p
35484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35485 ' >>$CONFIG_STATUS <conf$$subs.sed
35486 rm -f conf$$subs.sed
35487 cat >>$CONFIG_STATUS <<_ACEOF
35488 :end
35489 s/|#_!!_#|//g
35490 CEOF$ac_eof
35491 _ACEOF
35492
35493
35494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35496 # trailing colons and then remove the whole line if VPATH becomes empty
35497 # (actually we leave an empty line to preserve line numbers).
35498 if test "x$srcdir" = x.; then
35499   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35500 s/:*\$(srcdir):*/:/
35501 s/:*\${srcdir}:*/:/
35502 s/:*@srcdir@:*/:/
35503 s/^\([^=]*=[     ]*\):*/\1/
35504 s/:*$//
35505 s/^[^=]*=[       ]*$//
35506 }'
35507 fi
35508
35509 cat >>$CONFIG_STATUS <<\_ACEOF
35510 fi # test -n "$CONFIG_FILES"
35511
35512
35513 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35514 do
35515   case $ac_tag in
35516   :[FHLC]) ac_mode=$ac_tag; continue;;
35517   esac
35518   case $ac_mode$ac_tag in
35519   :[FHL]*:*);;
35520   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35522    { (exit 1); exit 1; }; };;
35523   :[FH]-) ac_tag=-:-;;
35524   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35525   esac
35526   ac_save_IFS=$IFS
35527   IFS=:
35528   set x $ac_tag
35529   IFS=$ac_save_IFS
35530   shift
35531   ac_file=$1
35532   shift
35533
35534   case $ac_mode in
35535   :L) ac_source=$1;;
35536   :[FH])
35537     ac_file_inputs=
35538     for ac_f
35539     do
35540       case $ac_f in
35541       -) ac_f="$tmp/stdin";;
35542       *) # Look for the file first in the build tree, then in the source tree
35543          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35544          # because $ac_f cannot contain `:'.
35545          test -f "$ac_f" ||
35546            case $ac_f in
35547            [\\/$]*) false;;
35548            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35549            esac ||
35550            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35552    { (exit 1); exit 1; }; };;
35553       esac
35554       ac_file_inputs="$ac_file_inputs $ac_f"
35555     done
35556
35557     # Let's still pretend it is `configure' which instantiates (i.e., don't
35558     # use $as_me), people would be surprised to read:
35559     #    /* config.h.  Generated by config.status.  */
35560     configure_input="Generated from "`IFS=:
35561           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35562     if test x"$ac_file" != x-; then
35563       configure_input="$ac_file.  $configure_input"
35564       { echo "$as_me:$LINENO: creating $ac_file" >&5
35565 echo "$as_me: creating $ac_file" >&6;}
35566     fi
35567
35568     case $ac_tag in
35569     *:-:* | *:-) cat >"$tmp/stdin";;
35570     esac
35571     ;;
35572   esac
35573
35574   ac_dir=`$as_dirname -- "$ac_file" ||
35575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35576          X"$ac_file" : 'X\(//\)[^/]' \| \
35577          X"$ac_file" : 'X\(//\)$' \| \
35578          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35579 echo X"$ac_file" |
35580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35581             s//\1/
35582             q
35583           }
35584           /^X\(\/\/\)[^/].*/{
35585             s//\1/
35586             q
35587           }
35588           /^X\(\/\/\)$/{
35589             s//\1/
35590             q
35591           }
35592           /^X\(\/\).*/{
35593             s//\1/
35594             q
35595           }
35596           s/.*/./; q'`
35597   { as_dir="$ac_dir"
35598   case $as_dir in #(
35599   -*) as_dir=./$as_dir;;
35600   esac
35601   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35602     as_dirs=
35603     while :; do
35604       case $as_dir in #(
35605       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35606       *) as_qdir=$as_dir;;
35607       esac
35608       as_dirs="'$as_qdir' $as_dirs"
35609       as_dir=`$as_dirname -- "$as_dir" ||
35610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35611          X"$as_dir" : 'X\(//\)[^/]' \| \
35612          X"$as_dir" : 'X\(//\)$' \| \
35613          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35614 echo X"$as_dir" |
35615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35616             s//\1/
35617             q
35618           }
35619           /^X\(\/\/\)[^/].*/{
35620             s//\1/
35621             q
35622           }
35623           /^X\(\/\/\)$/{
35624             s//\1/
35625             q
35626           }
35627           /^X\(\/\).*/{
35628             s//\1/
35629             q
35630           }
35631           s/.*/./; q'`
35632       test -d "$as_dir" && break
35633     done
35634     test -z "$as_dirs" || eval "mkdir $as_dirs"
35635   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35637    { (exit 1); exit 1; }; }; }
35638   ac_builddir=.
35639
35640 case "$ac_dir" in
35641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35642 *)
35643   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35644   # A ".." for each directory in $ac_dir_suffix.
35645   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35646   case $ac_top_builddir_sub in
35647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35649   esac ;;
35650 esac
35651 ac_abs_top_builddir=$ac_pwd
35652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35653 # for backward compatibility:
35654 ac_top_builddir=$ac_top_build_prefix
35655
35656 case $srcdir in
35657   .)  # We are building in place.
35658     ac_srcdir=.
35659     ac_top_srcdir=$ac_top_builddir_sub
35660     ac_abs_top_srcdir=$ac_pwd ;;
35661   [\\/]* | ?:[\\/]* )  # Absolute name.
35662     ac_srcdir=$srcdir$ac_dir_suffix;
35663     ac_top_srcdir=$srcdir
35664     ac_abs_top_srcdir=$srcdir ;;
35665   *) # Relative name.
35666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35667     ac_top_srcdir=$ac_top_build_prefix$srcdir
35668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35669 esac
35670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35671
35672
35673   case $ac_mode in
35674   :F)
35675   #
35676   # CONFIG_FILE
35677   #
35678
35679   case $INSTALL in
35680   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35681   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35682   esac
35683 _ACEOF
35684
35685 cat >>$CONFIG_STATUS <<\_ACEOF
35686 # If the template does not know about datarootdir, expand it.
35687 # FIXME: This hack should be removed a few years after 2.60.
35688 ac_datarootdir_hack=; ac_datarootdir_seen=
35689
35690 case `sed -n '/datarootdir/ {
35691   p
35692   q
35693 }
35694 /@datadir@/p
35695 /@docdir@/p
35696 /@infodir@/p
35697 /@localedir@/p
35698 /@mandir@/p
35699 ' $ac_file_inputs` in
35700 *datarootdir*) ac_datarootdir_seen=yes;;
35701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35702   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35704 _ACEOF
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706   ac_datarootdir_hack='
35707   s&@datadir@&$datadir&g
35708   s&@docdir@&$docdir&g
35709   s&@infodir@&$infodir&g
35710   s&@localedir@&$localedir&g
35711   s&@mandir@&$mandir&g
35712     s&\\\${datarootdir}&$datarootdir&g' ;;
35713 esac
35714 _ACEOF
35715
35716 # Neutralize VPATH when `$srcdir' = `.'.
35717 # Shell code in configure.ac might set extrasub.
35718 # FIXME: do we really want to maintain this feature?
35719 cat >>$CONFIG_STATUS <<_ACEOF
35720   sed "$ac_vpsub
35721 $extrasub
35722 _ACEOF
35723 cat >>$CONFIG_STATUS <<\_ACEOF
35724 :t
35725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35726 s&@configure_input@&$configure_input&;t t
35727 s&@top_builddir@&$ac_top_builddir_sub&;t t
35728 s&@srcdir@&$ac_srcdir&;t t
35729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35730 s&@top_srcdir@&$ac_top_srcdir&;t t
35731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35732 s&@builddir@&$ac_builddir&;t t
35733 s&@abs_builddir@&$ac_abs_builddir&;t t
35734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35735 s&@INSTALL@&$ac_INSTALL&;t t
35736 $ac_datarootdir_hack
35737 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35738
35739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35740   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35741   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35742   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35743 which seems to be undefined.  Please make sure it is defined." >&5
35744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35745 which seems to be undefined.  Please make sure it is defined." >&2;}
35746
35747   rm -f "$tmp/stdin"
35748   case $ac_file in
35749   -) cat "$tmp/out"; rm -f "$tmp/out";;
35750   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35751   esac
35752  ;;
35753   :H)
35754   #
35755   # CONFIG_HEADER
35756   #
35757 _ACEOF
35758
35759 # Transform confdefs.h into a sed script `conftest.defines', that
35760 # substitutes the proper values into config.h.in to produce config.h.
35761 rm -f conftest.defines conftest.tail
35762 # First, append a space to every undef/define line, to ease matching.
35763 echo 's/$/ /' >conftest.defines
35764 # Then, protect against being on the right side of a sed subst, or in
35765 # an unquoted here document, in config.status.  If some macros were
35766 # called several times there might be several #defines for the same
35767 # symbol, which is useless.  But do not sort them, since the last
35768 # AC_DEFINE must be honored.
35769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35772 # PARAMS is the parameter list in the macro definition--in most cases, it's
35773 # just an empty string.
35774 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35775 ac_dB='\\)[      (].*,\\1define\\2'
35776 ac_dC=' '
35777 ac_dD=' ,'
35778
35779 uniq confdefs.h |
35780   sed -n '
35781         t rset
35782         :rset
35783         s/^[     ]*#[    ]*define[       ][      ]*//
35784         t ok
35785         d
35786         :ok
35787         s/[\\&,]/\\&/g
35788         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35789         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35790   ' >>conftest.defines
35791
35792 # Remove the space that was appended to ease matching.
35793 # Then replace #undef with comments.  This is necessary, for
35794 # example, in the case of _POSIX_SOURCE, which is predefined and required
35795 # on some systems where configure will not decide to define it.
35796 # (The regexp can be short, since the line contains either #define or #undef.)
35797 echo 's/ $//
35798 s,^[     #]*u.*,/* & */,' >>conftest.defines
35799
35800 # Break up conftest.defines:
35801 ac_max_sed_lines=50
35802
35803 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35804 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35805 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35806 # et cetera.
35807 ac_in='$ac_file_inputs'
35808 ac_out='"$tmp/out1"'
35809 ac_nxt='"$tmp/out2"'
35810
35811 while :
35812 do
35813   # Write a here document:
35814     cat >>$CONFIG_STATUS <<_ACEOF
35815     # First, check the format of the line:
35816     cat >"\$tmp/defines.sed" <<\\CEOF
35817 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35818 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35819 b
35820 :def
35821 _ACEOF
35822   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35823   echo 'CEOF
35824     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35825   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35826   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35827   grep . conftest.tail >/dev/null || break
35828   rm -f conftest.defines
35829   mv conftest.tail conftest.defines
35830 done
35831 rm -f conftest.defines conftest.tail
35832
35833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35834 cat >>$CONFIG_STATUS <<\_ACEOF
35835   if test x"$ac_file" != x-; then
35836     echo "/* $configure_input  */" >"$tmp/config.h"
35837     cat "$ac_result" >>"$tmp/config.h"
35838     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35839       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35840 echo "$as_me: $ac_file is unchanged" >&6;}
35841     else
35842       rm -f $ac_file
35843       mv "$tmp/config.h" $ac_file
35844     fi
35845   else
35846     echo "/* $configure_input  */"
35847     cat "$ac_result"
35848   fi
35849   rm -f "$tmp/out12"
35850  ;;
35851
35852   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35853 echo "$as_me: executing $ac_file commands" >&6;}
35854  ;;
35855   esac
35856
35857
35858   case $ac_file$ac_mode in
35859     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35860    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35861     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35862    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35863     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35864    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35865     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35866    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35867     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35868    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35869     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35870    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35871     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35872    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35873     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35874    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35875     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35876    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35877     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35878    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35879     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35880    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35881     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35882    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35883     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35884    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35885
35886   esac
35887 done # for ac_tag
35888
35889
35890 { (exit 0); exit 0; }
35891 _ACEOF
35892 chmod +x $CONFIG_STATUS
35893 ac_clean_files=$ac_clean_files_save
35894
35895
35896 # configure is writing to config.log, and then calls config.status.
35897 # config.status does its own redirection, appending to config.log.
35898 # Unfortunately, on DOS this fails, as config.log is still kept open
35899 # by configure, so config.status won't be able to write to it; its
35900 # output is simply discarded.  So we exec the FD to /dev/null,
35901 # effectively closing config.log, so it can be properly (re)opened and
35902 # appended to by config.status.  When coming back to configure, we
35903 # need to make the FD available again.
35904 if test "$no_create" != yes; then
35905   ac_cs_success=:
35906   ac_config_status_args=
35907   test "$silent" = yes &&
35908     ac_config_status_args="$ac_config_status_args --quiet"
35909   exec 5>/dev/null
35910   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35911   exec 5>>config.log
35912   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35913   # would make configure fail if this is the last instruction.
35914   $ac_cs_success || { (exit 1); exit 1; }
35915 fi
35916
35917 #
35918 # CONFIG_SUBDIRS section.
35919 #
35920 if test "$no_recursion" != yes; then
35921
35922   # Remove --cache-file and --srcdir arguments so they do not pile up.
35923   ac_sub_configure_args=
35924   ac_prev=
35925   eval "set x $ac_configure_args"
35926   shift
35927   for ac_arg
35928   do
35929     if test -n "$ac_prev"; then
35930       ac_prev=
35931       continue
35932     fi
35933     case $ac_arg in
35934     -cache-file | --cache-file | --cache-fil | --cache-fi \
35935     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35936       ac_prev=cache_file ;;
35937     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35938     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35939     | --c=*)
35940       ;;
35941     --config-cache | -C)
35942       ;;
35943     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35944       ac_prev=srcdir ;;
35945     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35946       ;;
35947     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35948       ac_prev=prefix ;;
35949     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35950       ;;
35951     *)
35952       case $ac_arg in
35953       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35954       esac
35955       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35956     esac
35957   done
35958
35959   # Always prepend --prefix to ensure using the same prefix
35960   # in subdir configurations.
35961   ac_arg="--prefix=$prefix"
35962   case $ac_arg in
35963   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35964   esac
35965   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35966
35967   ac_popdir=`pwd`
35968   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35969
35970     # Do not complain, so a configure script can configure whichever
35971     # parts of a large source tree are present.
35972     test -d "$srcdir/$ac_dir" || continue
35973
35974     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35975     echo "$as_me:$LINENO: $ac_msg" >&5
35976     echo "$ac_msg" >&6
35977     { as_dir="$ac_dir"
35978   case $as_dir in #(
35979   -*) as_dir=./$as_dir;;
35980   esac
35981   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35982     as_dirs=
35983     while :; do
35984       case $as_dir in #(
35985       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35986       *) as_qdir=$as_dir;;
35987       esac
35988       as_dirs="'$as_qdir' $as_dirs"
35989       as_dir=`$as_dirname -- "$as_dir" ||
35990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35991          X"$as_dir" : 'X\(//\)[^/]' \| \
35992          X"$as_dir" : 'X\(//\)$' \| \
35993          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35994 echo X"$as_dir" |
35995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35996             s//\1/
35997             q
35998           }
35999           /^X\(\/\/\)[^/].*/{
36000             s//\1/
36001             q
36002           }
36003           /^X\(\/\/\)$/{
36004             s//\1/
36005             q
36006           }
36007           /^X\(\/\).*/{
36008             s//\1/
36009             q
36010           }
36011           s/.*/./; q'`
36012       test -d "$as_dir" && break
36013     done
36014     test -z "$as_dirs" || eval "mkdir $as_dirs"
36015   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36016 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36017    { (exit 1); exit 1; }; }; }
36018     ac_builddir=.
36019
36020 case "$ac_dir" in
36021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36022 *)
36023   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36024   # A ".." for each directory in $ac_dir_suffix.
36025   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36026   case $ac_top_builddir_sub in
36027   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36028   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36029   esac ;;
36030 esac
36031 ac_abs_top_builddir=$ac_pwd
36032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36033 # for backward compatibility:
36034 ac_top_builddir=$ac_top_build_prefix
36035
36036 case $srcdir in
36037   .)  # We are building in place.
36038     ac_srcdir=.
36039     ac_top_srcdir=$ac_top_builddir_sub
36040     ac_abs_top_srcdir=$ac_pwd ;;
36041   [\\/]* | ?:[\\/]* )  # Absolute name.
36042     ac_srcdir=$srcdir$ac_dir_suffix;
36043     ac_top_srcdir=$srcdir
36044     ac_abs_top_srcdir=$srcdir ;;
36045   *) # Relative name.
36046     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36047     ac_top_srcdir=$ac_top_build_prefix$srcdir
36048     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36049 esac
36050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36051
36052
36053     cd "$ac_dir"
36054
36055     # Check for guested configure; otherwise get Cygnus style configure.
36056     if test -f "$ac_srcdir/configure.gnu"; then
36057       ac_sub_configure=$ac_srcdir/configure.gnu
36058     elif test -f "$ac_srcdir/configure"; then
36059       ac_sub_configure=$ac_srcdir/configure
36060     elif test -f "$ac_srcdir/configure.in"; then
36061       # This should be Cygnus configure.
36062       ac_sub_configure=$ac_aux_dir/configure
36063     else
36064       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36065 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36066       ac_sub_configure=
36067     fi
36068
36069     # The recursion is here.
36070     if test -n "$ac_sub_configure"; then
36071       # Make the cache file name correct relative to the subdirectory.
36072       case $cache_file in
36073       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36074       *) # Relative name.
36075         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36076       esac
36077
36078       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36079 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36080       # The eval makes quoting arguments work.
36081       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36082            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36083         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36084 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36085    { (exit 1); exit 1; }; }
36086     fi
36087
36088     cd "$ac_popdir"
36089   done
36090 fi
36091