Don't sign extend the char when expanding char -> int during
[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 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 BINUTILS_INCDIR
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 LEX
850 LEXLIB
851 LEX_OUTPUT_ROOT
852 FLEX
853 YACC
854 YFLAGS
855 BISON
856 NM
857 ifGNUmake
858 LN_S
859 CMP
860 CP
861 DATE
862 FIND
863 MKDIR
864 MV
865 RANLIB
866 RM
867 SED
868 TAR
869 BINPWD
870 GRAPHVIZ
871 DOT
872 GV
873 DOTTY
874 PERL
875 HAVE_PERL
876 INSTALL_PROGRAM
877 INSTALL_SCRIPT
878 INSTALL_DATA
879 BZIP2
880 DOXYGEN
881 GROFF
882 GZIP
883 POD2HTML
884 POD2MAN
885 RUNTEST
886 TCLSH
887 ZIP
888 OCAMLC
889 OCAMLOPT
890 OCAMLDEP
891 OCAMLDOC
892 GAS
893 INSTALL_LTDL_TRUE
894 INSTALL_LTDL_FALSE
895 CONVENIENCE_LTDL_TRUE
896 CONVENIENCE_LTDL_FALSE
897 LIBADD_DL
898 ECHO
899 AR
900 STRIP
901 CXXCPP
902 F77
903 FFLAGS
904 ac_ct_F77
905 LIBTOOL
906 LLVMGCC
907 LLVMGXX
908 USE_UDIS86
909 HAVE_PTHREAD
910 HAVE_FFI
911 HUGE_VAL_SANITY
912 ALLOCA
913 MMAP_FILE
914 LLVMCC1
915 LLVMCC1PLUS
916 LLVMGCCDIR
917 LLVMGCCLIBEXEC
918 LLVMGCC_VERSION
919 LLVMGCC_MAJVERS
920 LLVMGCC_LANGS
921 SHLIBEXT
922 LLVM_PREFIX
923 LLVM_BINDIR
924 LLVM_LIBDIR
925 LLVM_DATADIR
926 LLVM_DOCSDIR
927 LLVM_ETCDIR
928 LLVM_INCLUDEDIR
929 LLVM_INFODIR
930 LLVM_MANDIR
931 LLVM_CONFIGTIME
932 BINDINGS_TO_BUILD
933 ALL_BINDINGS
934 OCAML_LIBDIR
935 ENABLE_VISIBILITY_INLINES_HIDDEN
936 LIBOBJS
937 LTLIBOBJS'
938 ac_subst_files=''
939       ac_precious_vars='build_alias
940 host_alias
941 target_alias
942 CC
943 CFLAGS
944 LDFLAGS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC
950 YACC
951 YFLAGS
952 CXXCPP
953 F77
954 FFLAGS'
955 ac_subdirs_all='projects/sample
956 projects/privbracket
957 projects/llvm-stacker
958 projects/llvm-test
959 projects/test-suite
960 projects/llvm-reopt
961 projects/llvm-gcc
962 projects/llvm-java
963 projects/llvm-tv
964 projects/llvm-poolalloc
965 projects/poolalloc
966 projects/llvm-kernel'
967
968 # Initialize some variables set by options.
969 ac_init_help=
970 ac_init_version=false
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
987
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005 infodir='${datarootdir}/info'
1006 htmldir='${docdir}'
1007 dvidir='${docdir}'
1008 pdfdir='${docdir}'
1009 psdir='${docdir}'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1013
1014 ac_prev=
1015 ac_dashdash=
1016 for ac_option
1017 do
1018   # If the previous option needs an argument, assign it.
1019   if test -n "$ac_prev"; then
1020     eval $ac_prev=\$ac_option
1021     ac_prev=
1022     continue
1023   fi
1024
1025   case $ac_option in
1026   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027   *)    ac_optarg=yes ;;
1028   esac
1029
1030   # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032   case $ac_dashdash$ac_option in
1033   --)
1034     ac_dashdash=yes ;;
1035
1036   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037     ac_prev=bindir ;;
1038   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039     bindir=$ac_optarg ;;
1040
1041   -build | --build | --buil | --bui | --bu)
1042     ac_prev=build_alias ;;
1043   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044     build_alias=$ac_optarg ;;
1045
1046   -cache-file | --cache-file | --cache-fil | --cache-fi \
1047   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048     ac_prev=cache_file ;;
1049   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051     cache_file=$ac_optarg ;;
1052
1053   --config-cache | -C)
1054     cache_file=config.cache ;;
1055
1056   -datadir | --datadir | --datadi | --datad)
1057     ac_prev=datadir ;;
1058   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059     datadir=$ac_optarg ;;
1060
1061   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062   | --dataroo | --dataro | --datar)
1063     ac_prev=datarootdir ;;
1064   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066     datarootdir=$ac_optarg ;;
1067
1068   -disable-* | --disable-*)
1069     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073    { (exit 1); exit 1; }; }
1074     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1075     eval enable_$ac_feature=no ;;
1076
1077   -docdir | --docdir | --docdi | --doc | --do)
1078     ac_prev=docdir ;;
1079   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080     docdir=$ac_optarg ;;
1081
1082   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083     ac_prev=dvidir ;;
1084   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085     dvidir=$ac_optarg ;;
1086
1087   -enable-* | --enable-*)
1088     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1091       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1092    { (exit 1); exit 1; }; }
1093     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1094     eval enable_$ac_feature=\$ac_optarg ;;
1095
1096   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098   | --exec | --exe | --ex)
1099     ac_prev=exec_prefix ;;
1100   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102   | --exec=* | --exe=* | --ex=*)
1103     exec_prefix=$ac_optarg ;;
1104
1105   -gas | --gas | --ga | --g)
1106     # Obsolete; use --with-gas.
1107     with_gas=yes ;;
1108
1109   -help | --help | --hel | --he | -h)
1110     ac_init_help=long ;;
1111   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112     ac_init_help=recursive ;;
1113   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114     ac_init_help=short ;;
1115
1116   -host | --host | --hos | --ho)
1117     ac_prev=host_alias ;;
1118   -host=* | --host=* | --hos=* | --ho=*)
1119     host_alias=$ac_optarg ;;
1120
1121   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122     ac_prev=htmldir ;;
1123   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124   | --ht=*)
1125     htmldir=$ac_optarg ;;
1126
1127   -includedir | --includedir | --includedi | --included | --include \
1128   | --includ | --inclu | --incl | --inc)
1129     ac_prev=includedir ;;
1130   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131   | --includ=* | --inclu=* | --incl=* | --inc=*)
1132     includedir=$ac_optarg ;;
1133
1134   -infodir | --infodir | --infodi | --infod | --info | --inf)
1135     ac_prev=infodir ;;
1136   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137     infodir=$ac_optarg ;;
1138
1139   -libdir | --libdir | --libdi | --libd)
1140     ac_prev=libdir ;;
1141   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142     libdir=$ac_optarg ;;
1143
1144   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145   | --libexe | --libex | --libe)
1146     ac_prev=libexecdir ;;
1147   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148   | --libexe=* | --libex=* | --libe=*)
1149     libexecdir=$ac_optarg ;;
1150
1151   -localedir | --localedir | --localedi | --localed | --locale)
1152     ac_prev=localedir ;;
1153   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154     localedir=$ac_optarg ;;
1155
1156   -localstatedir | --localstatedir | --localstatedi | --localstated \
1157   | --localstate | --localstat | --localsta | --localst | --locals)
1158     ac_prev=localstatedir ;;
1159   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161     localstatedir=$ac_optarg ;;
1162
1163   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164     ac_prev=mandir ;;
1165   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166     mandir=$ac_optarg ;;
1167
1168   -nfp | --nfp | --nf)
1169     # Obsolete; use --without-fp.
1170     with_fp=no ;;
1171
1172   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173   | --no-cr | --no-c | -n)
1174     no_create=yes ;;
1175
1176   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178     no_recursion=yes ;;
1179
1180   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182   | --oldin | --oldi | --old | --ol | --o)
1183     ac_prev=oldincludedir ;;
1184   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187     oldincludedir=$ac_optarg ;;
1188
1189   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190     ac_prev=prefix ;;
1191   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192     prefix=$ac_optarg ;;
1193
1194   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195   | --program-pre | --program-pr | --program-p)
1196     ac_prev=program_prefix ;;
1197   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199     program_prefix=$ac_optarg ;;
1200
1201   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202   | --program-suf | --program-su | --program-s)
1203     ac_prev=program_suffix ;;
1204   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206     program_suffix=$ac_optarg ;;
1207
1208   -program-transform-name | --program-transform-name \
1209   | --program-transform-nam | --program-transform-na \
1210   | --program-transform-n | --program-transform- \
1211   | --program-transform | --program-transfor \
1212   | --program-transfo | --program-transf \
1213   | --program-trans | --program-tran \
1214   | --progr-tra | --program-tr | --program-t)
1215     ac_prev=program_transform_name ;;
1216   -program-transform-name=* | --program-transform-name=* \
1217   | --program-transform-nam=* | --program-transform-na=* \
1218   | --program-transform-n=* | --program-transform-=* \
1219   | --program-transform=* | --program-transfor=* \
1220   | --program-transfo=* | --program-transf=* \
1221   | --program-trans=* | --program-tran=* \
1222   | --progr-tra=* | --program-tr=* | --program-t=*)
1223     program_transform_name=$ac_optarg ;;
1224
1225   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226     ac_prev=pdfdir ;;
1227   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228     pdfdir=$ac_optarg ;;
1229
1230   -psdir | --psdir | --psdi | --psd | --ps)
1231     ac_prev=psdir ;;
1232   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233     psdir=$ac_optarg ;;
1234
1235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236   | -silent | --silent | --silen | --sile | --sil)
1237     silent=yes ;;
1238
1239   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240     ac_prev=sbindir ;;
1241   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242   | --sbi=* | --sb=*)
1243     sbindir=$ac_optarg ;;
1244
1245   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247   | --sharedst | --shareds | --shared | --share | --shar \
1248   | --sha | --sh)
1249     ac_prev=sharedstatedir ;;
1250   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253   | --sha=* | --sh=*)
1254     sharedstatedir=$ac_optarg ;;
1255
1256   -site | --site | --sit)
1257     ac_prev=site ;;
1258   -site=* | --site=* | --sit=*)
1259     site=$ac_optarg ;;
1260
1261   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262     ac_prev=srcdir ;;
1263   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264     srcdir=$ac_optarg ;;
1265
1266   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267   | --syscon | --sysco | --sysc | --sys | --sy)
1268     ac_prev=sysconfdir ;;
1269   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271     sysconfdir=$ac_optarg ;;
1272
1273   -target | --target | --targe | --targ | --tar | --ta | --t)
1274     ac_prev=target_alias ;;
1275   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276     target_alias=$ac_optarg ;;
1277
1278   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279     verbose=yes ;;
1280
1281   -version | --version | --versio | --versi | --vers | -V)
1282     ac_init_version=: ;;
1283
1284   -with-* | --with-*)
1285     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288       { echo "$as_me: error: invalid package name: $ac_package" >&2
1289    { (exit 1); exit 1; }; }
1290     ac_package=`echo $ac_package| sed 's/-/_/g'`
1291     eval with_$ac_package=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1297       { echo "$as_me: error: invalid package name: $ac_package" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_package=`echo $ac_package | sed 's/-/_/g'`
1300     eval with_$ac_package=no ;;
1301
1302   --x)
1303     # Obsolete; use --with-x.
1304     with_x=yes ;;
1305
1306   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307   | --x-incl | --x-inc | --x-in | --x-i)
1308     ac_prev=x_includes ;;
1309   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311     x_includes=$ac_optarg ;;
1312
1313   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315     ac_prev=x_libraries ;;
1316   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318     x_libraries=$ac_optarg ;;
1319
1320   -*) { echo "$as_me: error: unrecognized option: $ac_option
1321 Try \`$0 --help' for more information." >&2
1322    { (exit 1); exit 1; }; }
1323     ;;
1324
1325   *=*)
1326     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330    { (exit 1); exit 1; }; }
1331     eval $ac_envvar=\$ac_optarg
1332     export $ac_envvar ;;
1333
1334   *)
1335     # FIXME: should be removed in autoconf 3.0.
1336     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340     ;;
1341
1342   esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347   { echo "$as_me: error: missing argument to $ac_option" >&2
1348    { (exit 1); exit 1; }; }
1349 fi
1350
1351 # Be sure to have absolute directory names.
1352 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353                 datadir sysconfdir sharedstatedir localstatedir includedir \
1354                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355                 libdir localedir mandir
1356 do
1357   eval ac_val=\$$ac_var
1358   case $ac_val in
1359     [\\/$]* | ?:[\\/]* )  continue;;
1360     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361   esac
1362   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1363    { (exit 1); exit 1; }; }
1364 done
1365
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1372
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375   if test "x$build_alias" = x; then
1376     cross_compiling=maybe
1377     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378     If a cross compiler is detected then cross compile mode will be used." >&2
1379   elif test "x$build_alias" != "x$host_alias"; then
1380     cross_compiling=yes
1381   fi
1382 fi
1383
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387 test "$silent" = yes && exec 6>/dev/null
1388
1389
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393   { echo "$as_me: error: Working directory cannot be determined" >&2
1394    { (exit 1); exit 1; }; }
1395 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396   { echo "$as_me: error: pwd does not report name of working directory" >&2
1397    { (exit 1); exit 1; }; }
1398
1399
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402   ac_srcdir_defaulted=yes
1403   # Try the directory containing this script, then the parent directory.
1404   ac_confdir=`$as_dirname -- "$0" ||
1405 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406          X"$0" : 'X\(//\)[^/]' \| \
1407          X"$0" : 'X\(//\)$' \| \
1408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409 echo X"$0" |
1410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\/\)[^/].*/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)$/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\).*/{
1423             s//\1/
1424             q
1425           }
1426           s/.*/./; q'`
1427   srcdir=$ac_confdir
1428   if test ! -r "$srcdir/$ac_unique_file"; then
1429     srcdir=..
1430   fi
1431 else
1432   ac_srcdir_defaulted=no
1433 fi
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1437    { (exit 1); exit 1; }; }
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1442    { (exit 1); exit 1; }; }
1443         pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446   srcdir=.
1447 fi
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_env_${ac_var}_value=\$${ac_var}
1457   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1460
1461 #
1462 # Report the --help message.
1463 #
1464 if test "$ac_init_help" = "long"; then
1465   # Omit some internal or obsolete options to make the list less imposing.
1466   # This message is too long to be a string in the A/UX 3.1 sh.
1467   cat <<_ACEOF
1468 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1469
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475 Defaults for the options are specified in brackets.
1476
1477 Configuration:
1478   -h, --help              display this help and exit
1479       --help=short        display options specific to this package
1480       --help=recursive    display the short help of all the included packages
1481   -V, --version           display version information and exit
1482   -q, --quiet, --silent   do not print \`checking...' messages
1483       --cache-file=FILE   cache test results in FILE [disabled]
1484   -C, --config-cache      alias for \`--cache-file=config.cache'
1485   -n, --no-create         do not create output files
1486       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488 Installation directories:
1489   --prefix=PREFIX         install architecture-independent files in PREFIX
1490                           [$ac_default_prefix]
1491   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492                           [PREFIX]
1493
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1498
1499 For better control, use the options below.
1500
1501 Fine tuning of the installation directories:
1502   --bindir=DIR           user executables [EPREFIX/bin]
1503   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1504   --libexecdir=DIR       program executables [EPREFIX/libexec]
1505   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1506   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1507   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1508   --libdir=DIR           object code libraries [EPREFIX/lib]
1509   --includedir=DIR       C header files [PREFIX/include]
1510   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR          info documentation [DATAROOTDIR/info]
1514   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR           man documentation [DATAROOTDIR/man]
1516   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1517   --htmldir=DIR          html documentation [DOCDIR]
1518   --dvidir=DIR           dvi documentation [DOCDIR]
1519   --pdfdir=DIR           pdf documentation [DOCDIR]
1520   --psdir=DIR            ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528   --target=TARGET   configure for building compilers for TARGET [HOST]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533   case $ac_init_help in
1534      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1535    esac
1536   cat <<\_ACEOF
1537
1538 Optional Features:
1539   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541   --enable-optimized
1542   --enable-assertions
1543   --enable-expensive-checks
1544
1545   --enable-debug-runtime
1546   --enable-jit            Enable Just In Time Compiling (default is YES)
1547   --enable-doxygen        Build doxygen documentation (default is NO)
1548   --enable-threads        Use threads if available (default is YES)
1549   --enable-pic            Build LLVM with Position Independent Code (default
1550                           is YES)
1551   --enable-targets        Build specific host targets:
1552                           all,host-only,{target-name} (default=all)
1553   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1554                           %a (default is YES)
1555   --enable-bindings       Build specific language bindings:
1556                           all,auto,none,{binding-name} (default=auto)
1557   --enable-ltdl-install   install libltdl
1558   --enable-shared[=PKGS]  build shared libraries
1559                           [default=yes]
1560   --enable-static[=PKGS]  build static libraries
1561                           [default=yes]
1562   --enable-fast-install[=PKGS]
1563                           optimize for fast installation
1564                           [default=yes]
1565   --disable-libtool-lock  avoid locking (might break parallel builds)
1566
1567 Optional Packages:
1568   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1571                           searches PATH)
1572   --with-llvmgcc          Specify location of llvm-gcc driver (default
1573                           searches PATH)
1574   --with-llvmgxx          Specify location of llvm-g++ driver (default
1575                           searches PATH)
1576   --with-extra-options    Specify addtional options to compile LLVM with
1577   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1578                           is stdlib)
1579   --with-binutils-include Specify path to binutils/include/ containing
1580                           plugin-api.h file for gold plugin.
1581   --with-tclinclude       directory where tcl headers are
1582   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583   --with-pic              try to use only PIC/non-PIC objects [default=use
1584                           both]
1585   --with-tags[=TAGS]      include additional configurations [automatic]
1586   --with-udis86=<path>    Use udis86 external x86 disassembler library
1587
1588 Some influential environment variables:
1589   CC          C compiler command
1590   CFLAGS      C compiler flags
1591   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592               nonstandard directory <lib dir>
1593   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594               you have headers in a nonstandard directory <include dir>
1595   CPP         C preprocessor
1596   CXX         C++ compiler command
1597   CXXFLAGS    C++ compiler flags
1598   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1599               the first program found out of: `bison -y', `byacc', `yacc'.
1600   YFLAGS      The list of arguments that will be passed by default to $YACC.
1601               This script will default YFLAGS to the empty string to avoid a
1602               default value of `-d' given by some make applications.
1603   CXXCPP      C++ preprocessor
1604   F77         Fortran 77 compiler command
1605   FFLAGS      Fortran 77 compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <llvmbugs@cs.uiuc.edu>.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616   # If there are subdirs, report their specific --help.
1617   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618     test -d "$ac_dir" || continue
1619     ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1625   # A ".." for each directory in $ac_dir_suffix.
1626   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1627   case $ac_top_builddir_sub in
1628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630   esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638   .)  # We are building in place.
1639     ac_srcdir=.
1640     ac_top_srcdir=$ac_top_builddir_sub
1641     ac_abs_top_srcdir=$ac_pwd ;;
1642   [\\/]* | ?:[\\/]* )  # Absolute name.
1643     ac_srcdir=$srcdir$ac_dir_suffix;
1644     ac_top_srcdir=$srcdir
1645     ac_abs_top_srcdir=$srcdir ;;
1646   *) # Relative name.
1647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648     ac_top_srcdir=$ac_top_build_prefix$srcdir
1649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653     cd "$ac_dir" || { ac_status=$?; continue; }
1654     # Check for guested configure.
1655     if test -f "$ac_srcdir/configure.gnu"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658     elif test -f "$ac_srcdir/configure"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure" --help=recursive
1661     else
1662       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663     fi || ac_status=$?
1664     cd "$ac_pwd" || { ac_status=$?; break; }
1665   done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670   cat <<\_ACEOF
1671 llvm configure 2.6svn
1672 generated by GNU Autoconf 2.60
1673
1674 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1675 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678
1679 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1680 _ACEOF
1681   exit
1682 fi
1683 cat >config.log <<_ACEOF
1684 This file contains any messages produced by compilers while
1685 running configure, to aid debugging if configure makes a mistake.
1686
1687 It was created by llvm $as_me 2.6svn, which was
1688 generated by GNU Autoconf 2.60.  Invocation command line was
1689
1690   $ $0 $@
1691
1692 _ACEOF
1693 exec 5>>config.log
1694 {
1695 cat <<_ASUNAME
1696 ## --------- ##
1697 ## Platform. ##
1698 ## --------- ##
1699
1700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1708
1709 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1710 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1713 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1714 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1715 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1716
1717 _ASUNAME
1718
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   echo "PATH: $as_dir"
1725 done
1726 IFS=$as_save_IFS
1727
1728 } >&5
1729
1730 cat >&5 <<_ACEOF
1731
1732
1733 ## ----------- ##
1734 ## Core tests. ##
1735 ## ----------- ##
1736
1737 _ACEOF
1738
1739
1740 # Keep a trace of the command line.
1741 # Strip out --no-create and --no-recursion so they do not pile up.
1742 # Strip out --silent because we don't want to record it for future runs.
1743 # Also quote any args containing shell meta-characters.
1744 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_configure_args=
1746 ac_configure_args0=
1747 ac_configure_args1=
1748 ac_must_keep_next=false
1749 for ac_pass in 1 2
1750 do
1751   for ac_arg
1752   do
1753     case $ac_arg in
1754     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756     | -silent | --silent | --silen | --sile | --sil)
1757       continue ;;
1758     *\'*)
1759       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760     esac
1761     case $ac_pass in
1762     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763     2)
1764       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765       if test $ac_must_keep_next = true; then
1766         ac_must_keep_next=false # Got value, back to normal.
1767       else
1768         case $ac_arg in
1769           *=* | --config-cache | -C | -disable-* | --disable-* \
1770           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772           | -with-* | --with-* | -without-* | --without-* | --x)
1773             case "$ac_configure_args0 " in
1774               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775             esac
1776             ;;
1777           -* ) ac_must_keep_next=true ;;
1778         esac
1779       fi
1780       ac_configure_args="$ac_configure_args '$ac_arg'"
1781       ;;
1782     esac
1783   done
1784 done
1785 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1787
1788 # When interrupted or exit'd, cleanup temporary files, and complete
1789 # config.log.  We remove comments because anyway the quotes in there
1790 # would cause problems or look ugly.
1791 # WARNING: Use '\'' to represent an apostrophe within the trap.
1792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793 trap 'exit_status=$?
1794   # Save into config.log some information that might help in debugging.
1795   {
1796     echo
1797
1798     cat <<\_ASBOX
1799 ## ---------------- ##
1800 ## Cache variables. ##
1801 ## ---------------- ##
1802 _ASBOX
1803     echo
1804     # The following way of writing the cache mishandles newlines in values,
1805 (
1806   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807     eval ac_val=\$$ac_var
1808     case $ac_val in #(
1809     *${as_nl}*)
1810       case $ac_var in #(
1811       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1813       esac
1814       case $ac_var in #(
1815       _ | IFS | as_nl) ;; #(
1816       *) $as_unset $ac_var ;;
1817       esac ;;
1818     esac
1819   done
1820   (set) 2>&1 |
1821     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822     *${as_nl}ac_space=\ *)
1823       sed -n \
1824         "s/'\''/'\''\\\\'\'''\''/g;
1825           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1826       ;; #(
1827     *)
1828       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829       ;;
1830     esac |
1831     sort
1832 )
1833     echo
1834
1835     cat <<\_ASBOX
1836 ## ----------------- ##
1837 ## Output variables. ##
1838 ## ----------------- ##
1839 _ASBOX
1840     echo
1841     for ac_var in $ac_subst_vars
1842     do
1843       eval ac_val=\$$ac_var
1844       case $ac_val in
1845       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846       esac
1847       echo "$ac_var='\''$ac_val'\''"
1848     done | sort
1849     echo
1850
1851     if test -n "$ac_subst_files"; then
1852       cat <<\_ASBOX
1853 ## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##
1856 _ASBOX
1857       echo
1858       for ac_var in $ac_subst_files
1859       do
1860         eval ac_val=\$$ac_var
1861         case $ac_val in
1862         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863         esac
1864         echo "$ac_var='\''$ac_val'\''"
1865       done | sort
1866       echo
1867     fi
1868
1869     if test -s confdefs.h; then
1870       cat <<\_ASBOX
1871 ## ----------- ##
1872 ## confdefs.h. ##
1873 ## ----------- ##
1874 _ASBOX
1875       echo
1876       cat confdefs.h
1877       echo
1878     fi
1879     test "$ac_signal" != 0 &&
1880       echo "$as_me: caught signal $ac_signal"
1881     echo "$as_me: exit $exit_status"
1882   } >&5
1883   rm -f core *.core core.conftest.* &&
1884     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1885     exit $exit_status
1886 ' 0
1887 for ac_signal in 1 2 13 15; do
1888   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889 done
1890 ac_signal=0
1891
1892 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1893 rm -f -r conftest* confdefs.h
1894
1895 # Predefined preprocessor variables.
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_NAME "$PACKAGE_NAME"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_STRING "$PACKAGE_STRING"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919 _ACEOF
1920
1921
1922 # Let the site file select an alternate cache file if it wants to.
1923 # Prefer explicitly selected file to automatically selected ones.
1924 if test -n "$CONFIG_SITE"; then
1925   set x "$CONFIG_SITE"
1926 elif test "x$prefix" != xNONE; then
1927   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1928 else
1929   set x "$ac_default_prefix/share/config.site" \
1930         "$ac_default_prefix/etc/config.site"
1931 fi
1932 shift
1933 for ac_site_file
1934 do
1935   if test -r "$ac_site_file"; then
1936     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937 echo "$as_me: loading site script $ac_site_file" >&6;}
1938     sed 's/^/| /' "$ac_site_file" >&5
1939     . "$ac_site_file"
1940   fi
1941 done
1942
1943 if test -r "$cache_file"; then
1944   # Some versions of bash will fail to source /dev/null (special
1945   # files actually), so we avoid doing that.
1946   if test -f "$cache_file"; then
1947     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948 echo "$as_me: loading cache $cache_file" >&6;}
1949     case $cache_file in
1950       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951       *)                      . "./$cache_file";;
1952     esac
1953   fi
1954 else
1955   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956 echo "$as_me: creating cache $cache_file" >&6;}
1957   >$cache_file
1958 fi
1959
1960 # Check that the precious variables saved in the cache have kept the same
1961 # value.
1962 ac_cache_corrupted=false
1963 for ac_var in $ac_precious_vars; do
1964   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965   eval ac_new_set=\$ac_env_${ac_var}_set
1966   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967   eval ac_new_val=\$ac_env_${ac_var}_value
1968   case $ac_old_set,$ac_new_set in
1969     set,)
1970       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972       ac_cache_corrupted=: ;;
1973     ,set)
1974       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976       ac_cache_corrupted=: ;;
1977     ,);;
1978     *)
1979       if test "x$ac_old_val" != "x$ac_new_val"; then
1980         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1983 echo "$as_me:   former value:  $ac_old_val" >&2;}
1984         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1985 echo "$as_me:   current value: $ac_new_val" >&2;}
1986         ac_cache_corrupted=:
1987       fi;;
1988   esac
1989   # Pass precious variables to config.status.
1990   if test "$ac_new_set" = set; then
1991     case $ac_new_val in
1992     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1993     *) ac_arg=$ac_var=$ac_new_val ;;
1994     esac
1995     case " $ac_configure_args " in
1996       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1997       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998     esac
1999   fi
2000 done
2001 if $ac_cache_corrupted; then
2002   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2042
2043
2044
2045
2046
2047
2048
2049 ac_aux_dir=
2050 for ac_dir in autoconf "$srcdir"/autoconf; do
2051   if test -f "$ac_dir/install-sh"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/install-sh -c"
2054     break
2055   elif test -f "$ac_dir/install.sh"; then
2056     ac_aux_dir=$ac_dir
2057     ac_install_sh="$ac_aux_dir/install.sh -c"
2058     break
2059   elif test -f "$ac_dir/shtool"; then
2060     ac_aux_dir=$ac_dir
2061     ac_install_sh="$ac_aux_dir/shtool install -c"
2062     break
2063   fi
2064 done
2065 if test -z "$ac_aux_dir"; then
2066   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2067 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2078
2079
2080
2081 if test ${srcdir} != "." ; then
2082   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2083     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2084 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2085    { (exit 1); exit 1; }; }
2086   fi
2087 fi
2088
2089 for i in `ls ${srcdir}/projects`
2090 do
2091   if test -d ${srcdir}/projects/${i} ; then
2092     case ${i} in
2093       CVS) ;;
2094       sample)       subdirs="$subdirs projects/sample"
2095     ;;
2096       privbracket)  subdirs="$subdirs projects/privbracket"
2097  ;;
2098       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2099  ;;
2100       # llvm-test is the old name of the test-suite, kept here for backwards
2101       # compatibility
2102       llvm-test)    subdirs="$subdirs projects/llvm-test"
2103  ;;
2104       test-suite)   subdirs="$subdirs projects/test-suite"
2105  ;;
2106       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2107 ;;
2108       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2109   ;;
2110       llvm-java)    subdirs="$subdirs projects/llvm-java"
2111  ;;
2112       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2113    ;;
2114       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2115  ;;
2116       poolalloc)    subdirs="$subdirs projects/poolalloc"
2117  ;;
2118       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2119  ;;
2120       *)
2121         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2122 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2123         ;;
2124     esac
2125   fi
2126 done
2127
2128
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133    { (exit 1); exit 1; }; }
2134
2135 { echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146    { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150    { (exit 1); exit 1; }; }
2151
2152 fi
2153 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2156 *-*-*) ;;
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 echo "$as_me: error: invalid value of canonical build" >&2;}
2159    { (exit 1); exit 1; }; };;
2160 esac
2161 build=$ac_cv_build
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_build
2164 shift
2165 build_cpu=$1
2166 build_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 build_os=$*
2171 IFS=$ac_save_IFS
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 { echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test "x$host_alias" = x; then
2181   ac_cv_host=$ac_cv_build
2182 else
2183   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2188
2189 fi
2190 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6; }
2192 case $ac_cv_host in
2193 *-*-*) ;;
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 echo "$as_me: error: invalid value of canonical host" >&2;}
2196    { (exit 1); exit 1; }; };;
2197 esac
2198 host=$ac_cv_host
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_host
2201 shift
2202 host_cpu=$1
2203 host_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 host_os=$*
2208 IFS=$ac_save_IFS
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210
2211
2212 { echo "$as_me:$LINENO: checking target system type" >&5
2213 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2214 if test "${ac_cv_target+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test "x$target_alias" = x; then
2218   ac_cv_target=$ac_cv_host
2219 else
2220   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2222 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225
2226 fi
2227 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228 echo "${ECHO_T}$ac_cv_target" >&6; }
2229 case $ac_cv_target in
2230 *-*-*) ;;
2231 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2232 echo "$as_me: error: invalid value of canonical target" >&2;}
2233    { (exit 1); exit 1; }; };;
2234 esac
2235 target=$ac_cv_target
2236 ac_save_IFS=$IFS; IFS='-'
2237 set x $ac_cv_target
2238 shift
2239 target_cpu=$1
2240 target_vendor=$2
2241 shift; shift
2242 # Remember, the first character of IFS is used to create $*,
2243 # except with old shells:
2244 target_os=$*
2245 IFS=$ac_save_IFS
2246 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2247
2248
2249 # The aliases save the names the user supplied, while $host etc.
2250 # will get canonicalized.
2251 test -n "$target_alias" &&
2252   test "$program_prefix$program_suffix$program_transform_name" = \
2253     NONENONEs,x,x, &&
2254   program_prefix=${target_alias}-
2255
2256 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2257 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2258 if test "${llvm_cv_os_type+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   case $host in
2262   *-*-aix*)
2263     llvm_cv_link_all_option="-Wl,--whole-archive"
2264     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265     llvm_cv_os_type="AIX"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-irix*)
2268     llvm_cv_link_all_option="-Wl,--whole-archive"
2269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270     llvm_cv_os_type="IRIX"
2271     llvm_cv_platform_type="Unix" ;;
2272   *-*-cygwin*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="Cygwin"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-darwin*)
2278     llvm_cv_link_all_option="-Wl,-all_load"
2279     llvm_cv_no_link_all_option="-Wl,-noall_load"
2280     llvm_cv_os_type="Darwin"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-freebsd*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="FreeBSD"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-openbsd*)
2288     llvm_cv_link_all_option="-Wl,--whole-archive"
2289     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290     llvm_cv_os_type="OpenBSD"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-netbsd*)
2293     llvm_cv_link_all_option="-Wl,--whole-archive"
2294     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295     llvm_cv_os_type="NetBSD"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-dragonfly*)
2298     llvm_cv_link_all_option="-Wl,--whole-archive"
2299     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300     llvm_cv_os_type="DragonFly"
2301     llvm_cv_platform_type="Unix" ;;
2302   *-*-hpux*)
2303     llvm_cv_link_all_option="-Wl,--whole-archive"
2304     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305     llvm_cv_os_type="HP-UX"
2306     llvm_cv_platform_type="Unix" ;;
2307   *-*-interix*)
2308     llvm_cv_link_all_option="-Wl,--whole-archive"
2309     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310     llvm_cv_os_type="Interix"
2311     llvm_cv_platform_type="Unix" ;;
2312   *-*-linux*)
2313     llvm_cv_link_all_option="-Wl,--whole-archive"
2314     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315     llvm_cv_os_type="Linux"
2316     llvm_cv_platform_type="Unix" ;;
2317   *-*-solaris*)
2318     llvm_cv_link_all_option="-Wl,-z,allextract"
2319     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2320     llvm_cv_os_type="SunOS"
2321     llvm_cv_platform_type="Unix" ;;
2322   *-*-win32*)
2323     llvm_cv_link_all_option="-Wl,--whole-archive"
2324     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325     llvm_cv_os_type="Win32"
2326     llvm_cv_platform_type="Win32" ;;
2327   *-*-mingw*)
2328     llvm_cv_link_all_option="-Wl,--whole-archive"
2329     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2330     llvm_cv_os_type="MingW"
2331     llvm_cv_platform_type="Win32" ;;
2332   *)
2333     llvm_cv_link_all_option=""
2334     llvm_cv_no_link_all_option=""
2335     llvm_cv_os_type="Unknown"
2336     llvm_cv_platform_type="Unknown" ;;
2337 esac
2338 fi
2339 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2340 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2341
2342 if test "$llvm_cv_os_type" = "Unknown" ; then
2343   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348 OS=$llvm_cv_os_type
2349
2350
2351 LINKALL=$llvm_cv_link_all_option
2352
2353 NOLINKALL=$llvm_cv_no_link_all_option
2354
2355
2356 case $llvm_cv_platform_type in
2357   Unix)
2358
2359 cat >>confdefs.h <<\_ACEOF
2360 #define LLVM_ON_UNIX 1
2361 _ACEOF
2362
2363     LLVM_ON_UNIX=1
2364
2365     LLVM_ON_WIN32=0
2366
2367     ;;
2368   Win32)
2369
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_WIN32 1
2372 _ACEOF
2373
2374     LLVM_ON_UNIX=0
2375
2376     LLVM_ON_WIN32=1
2377
2378     ;;
2379 esac
2380
2381 { echo "$as_me:$LINENO: checking target architecture" >&5
2382 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2383 if test "${llvm_cv_target_arch+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   case $target in
2387   i?86-*)                 llvm_cv_target_arch="x86" ;;
2388   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2389   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2390   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2391   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2392   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2393   arm-*)                  llvm_cv_target_arch="ARM" ;;
2394   mips-*)                 llvm_cv_target_arch="Mips" ;;
2395   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2396   xcore-*)                llvm_cv_target_arch="XCore" ;;
2397   *)                      llvm_cv_target_arch="Unknown" ;;
2398 esac
2399 fi
2400 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2401 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2402
2403 if test "$llvm_cv_target_arch" = "Unknown" ; then
2404   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2405 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406 fi
2407
2408 ARCH=$llvm_cv_target_arch
2409
2410
2411 ac_ext=c
2412 ac_cpp='$CPP $CPPFLAGS'
2413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416 if test -n "$ac_tool_prefix"; then
2417   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422   echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424   if test -n "$CC"; then
2425   ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430   IFS=$as_save_IFS
2431   test -z "$as_dir" && as_dir=.
2432   for ac_exec_ext in '' $ac_executable_extensions; do
2433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436     break 2
2437   fi
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446   { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2448 else
2449   { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2451 fi
2452
2453
2454 fi
2455 if test -z "$ac_cv_prog_CC"; then
2456   ac_ct_CC=$CC
2457   # Extract the first word of "gcc", so it can be a program name with args.
2458 set dummy gcc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$ac_ct_CC"; then
2465   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_ac_ct_CC="gcc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2485 if test -n "$ac_ct_CC"; then
2486   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2487 echo "${ECHO_T}$ac_ct_CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493   if test "x$ac_ct_CC" = x; then
2494     CC=""
2495   else
2496     case $cross_compiling:$ac_tool_warned in
2497 yes:)
2498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet.  If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&5
2501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet.  If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504 ac_tool_warned=yes ;;
2505 esac
2506     CC=$ac_ct_CC
2507   fi
2508 else
2509   CC="$ac_cv_prog_CC"
2510 fi
2511
2512 if test -z "$CC"; then
2513           if test -n "$ac_tool_prefix"; then
2514     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}cc; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$CC"; then
2522   ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531     ac_cv_prog_CC="${ac_tool_prefix}cc"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543   { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551   fi
2552 fi
2553 if test -z "$CC"; then
2554   # Extract the first word of "cc", so it can be a program name with args.
2555 set dummy cc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   if test -n "$CC"; then
2562   ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564   ac_prog_rejected=no
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2573        ac_prog_rejected=yes
2574        continue
2575      fi
2576     ac_cv_prog_CC="cc"
2577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578     break 2
2579   fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 if test $ac_prog_rejected = yes; then
2585   # We found a bogon in the path, so make sure we never use it.
2586   set dummy $ac_cv_prog_CC
2587   shift
2588   if test $# != 0; then
2589     # We chose a different compiler from the bogus one.
2590     # However, it has the same basename, so the bogon will be chosen
2591     # first if we set CC to just the basename; use the full file name.
2592     shift
2593     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594   fi
2595 fi
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600   { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2602 else
2603   { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2605 fi
2606
2607
2608 fi
2609 if test -z "$CC"; then
2610   if test -n "$ac_tool_prefix"; then
2611   for ac_prog in cl.exe
2612   do
2613     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   if test -n "$CC"; then
2621   ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2630     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642   { echo "$as_me:$LINENO: result: $CC" >&5
2643 echo "${ECHO_T}$CC" >&6; }
2644 else
2645   { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2647 fi
2648
2649
2650     test -n "$CC" && break
2651   done
2652 fi
2653 if test -z "$CC"; then
2654   ac_ct_CC=$CC
2655   for ac_prog in cl.exe
2656 do
2657   # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   if test -n "$ac_ct_CC"; then
2665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     ac_cv_prog_ac_ct_CC="$ac_prog"
2675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685 if test -n "$ac_ct_CC"; then
2686   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687 echo "${ECHO_T}$ac_ct_CC" >&6; }
2688 else
2689   { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2691 fi
2692
2693
2694   test -n "$ac_ct_CC" && break
2695 done
2696
2697   if test "x$ac_ct_CC" = x; then
2698     CC=""
2699   else
2700     case $cross_compiling:$ac_tool_warned in
2701 yes:)
2702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet.  If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&5
2705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet.  If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710     CC=$ac_ct_CC
2711   fi
2712 fi
2713
2714 fi
2715
2716
2717 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: no acceptable C compiler found in \$PATH
2720 See \`config.log' for more details." >&2;}
2721    { (exit 1); exit 1; }; }
2722
2723 # Provide some information about the compiler.
2724 echo "$as_me:$LINENO: checking for C compiler version" >&5
2725 ac_compiler=`set X $ac_compile; echo $2`
2726 { (ac_try="$ac_compiler --version >&5"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_compiler --version >&5") 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }
2736 { (ac_try="$ac_compiler -v >&5"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compiler -v >&5") 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }
2746 { (ac_try="$ac_compiler -V >&5"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_compiler -V >&5") 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }
2756
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763
2764 int
2765 main ()
2766 {
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 ac_clean_files_save=$ac_clean_files
2773 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2774 # Try to create an executable without -o first, disregard a.out.
2775 # It will help us diagnose broken compilers, and finding out an intuition
2776 # of exeext.
2777 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2778 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2779 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2780 #
2781 # List of possible output files, starting from the most likely.
2782 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2783 # only as a last resort.  b.out is created by i960 compilers.
2784 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2785 #
2786 # The IRIX 6 linker writes into existing files which may not be
2787 # executable, retaining their permissions.  Remove them first so a
2788 # subsequent execution test works.
2789 ac_rmfiles=
2790 for ac_file in $ac_files
2791 do
2792   case $ac_file in
2793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795   esac
2796 done
2797 rm -f $ac_rmfiles
2798
2799 if { (ac_try="$ac_link_default"
2800 case "(($ac_try" in
2801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802   *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805   (eval "$ac_link_default") 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; then
2809   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2812 # so that the user can short-circuit this test for compilers unknown to
2813 # Autoconf.
2814 for ac_file in $ac_files
2815 do
2816   test -f "$ac_file" || continue
2817   case $ac_file in
2818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2819         ;;
2820     [ab].out )
2821         # We found the default executable, but exeext='' is most
2822         # certainly right.
2823         break;;
2824     *.* )
2825         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2826         then :; else
2827            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828         fi
2829         # We set ac_cv_exeext here because the later test for it is not
2830         # safe: cross compilers may not add the suffix if given an `-o'
2831         # argument, so we may need to know it at that point already.
2832         # Even if this section looks crufty: it has the advantage of
2833         # actually working.
2834         break;;
2835     * )
2836         break;;
2837   esac
2838 done
2839 test "$ac_cv_exeext" = no && ac_cv_exeext=
2840
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: C compiler cannot create executables
2848 See \`config.log' for more details." >&2;}
2849    { (exit 77); exit 77; }; }
2850 fi
2851
2852 ac_exeext=$ac_cv_exeext
2853 { echo "$as_me:$LINENO: result: $ac_file" >&5
2854 echo "${ECHO_T}$ac_file" >&6; }
2855
2856 # Check that the compiler produces executables we can run.  If not, either
2857 # the compiler is broken, or we cross compile.
2858 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2859 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2860 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2861 # If not cross compiling, check that we can run a simple program.
2862 if test "$cross_compiling" != yes; then
2863   if { ac_try='./$ac_file'
2864   { (case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869   (eval "$ac_try") 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; }; then
2873     cross_compiling=no
2874   else
2875     if test "$cross_compiling" = maybe; then
2876         cross_compiling=yes
2877     else
2878         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2879 If you meant to cross compile, use \`--host'.
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: cannot run C compiled programs.
2882 If you meant to cross compile, use \`--host'.
2883 See \`config.log' for more details." >&2;}
2884    { (exit 1); exit 1; }; }
2885     fi
2886   fi
2887 fi
2888 { echo "$as_me:$LINENO: result: yes" >&5
2889 echo "${ECHO_T}yes" >&6; }
2890
2891 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2892 ac_clean_files=$ac_clean_files_save
2893 # Check that the compiler produces executables we can run.  If not, either
2894 # the compiler is broken, or we cross compile.
2895 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2896 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2897 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2898 echo "${ECHO_T}$cross_compiling" >&6; }
2899
2900 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2901 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2902 if { (ac_try="$ac_link"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_link") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; then
2912   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2914 # work properly (i.e., refer to `conftest.exe'), while it won't with
2915 # `rm'.
2916 for ac_file in conftest.exe conftest conftest.*; do
2917   test -f "$ac_file" || continue
2918   case $ac_file in
2919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2920     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921           break;;
2922     * ) break;;
2923   esac
2924 done
2925 else
2926   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest$ac_cv_exeext
2934 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2935 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2936
2937 rm -f conftest.$ac_ext
2938 EXEEXT=$ac_cv_exeext
2939 ac_exeext=$EXEEXT
2940 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2941 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2942 if test "${ac_cv_objext+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951
2952 int
2953 main ()
2954 {
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.o conftest.obj
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; then
2971   for ac_file in conftest.o conftest.obj conftest.*; do
2972   test -f "$ac_file" || continue;
2973   case $ac_file in
2974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2975     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976        break;;
2977   esac
2978 done
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2986 See \`config.log' for more details." >&2;}
2987    { (exit 1); exit 1; }; }
2988 fi
2989
2990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2993 echo "${ECHO_T}$ac_cv_objext" >&6; }
2994 OBJEXT=$ac_cv_objext
2995 ac_objext=$OBJEXT
2996 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007
3008 int
3009 main ()
3010 {
3011 #ifndef __GNUC__
3012        choke me
3013 #endif
3014
3015   ;
3016   return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_compile") 2>conftest.er1
3027   ac_status=$?
3028   grep -v '^ *+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } &&
3033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034   { (case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_try") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   ac_compiler_gnu=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058         ac_compiler_gnu=no
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063
3064 fi
3065 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   ac_save_c_werror_flag=$ac_c_werror_flag
3076    ac_c_werror_flag=yes
3077    ac_cv_prog_cc_g=no
3078    CFLAGS="-g"
3079    cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109   { (case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_try") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_try") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   ac_cv_prog_cc_g=yes
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133         CFLAGS=""
3134       cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_compile") 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } &&
3163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164   { (case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169   (eval "$ac_try") 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; } &&
3173          { ac_try='test -s conftest.$ac_objext'
3174   { (case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   :
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188         ac_c_werror_flag=$ac_save_c_werror_flag
3189          CFLAGS="-g"
3190          cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212   (eval "$ac_compile") 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } &&
3219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220   { (case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225   (eval "$ac_try") 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; } &&
3229          { ac_try='test -s conftest.$ac_objext'
3230   { (case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_try") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   ac_cv_prog_cc_g=yes
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 fi
3252
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254    ac_c_werror_flag=$ac_save_c_werror_flag
3255 fi
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3258 if test "$ac_test_CFLAGS" = set; then
3259   CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261   if test "$GCC" = yes; then
3262     CFLAGS="-g -O2"
3263   else
3264     CFLAGS="-g"
3265   fi
3266 else
3267   if test "$GCC" = yes; then
3268     CFLAGS="-O2"
3269   else
3270     CFLAGS=
3271   fi
3272 fi
3273 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3274 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_cc_c89+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_cv_prog_cc_c89=no
3279 ac_save_CC=$CC
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <stdarg.h>
3287 #include <stdio.h>
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3294      char **p;
3295      int i;
3296 {
3297   return p[i];
3298 }
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3300 {
3301   char *s;
3302   va_list v;
3303   va_start (v,p);
3304   s = g (p, va_arg (v,int));
3305   va_end (v);
3306   return s;
3307 }
3308
3309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3310    function prototypes and stuff, but not '\xHH' hex character constants.
3311    These don't provoke an error unfortunately, instead are silently treated
3312    as 'x'.  The following induces an error, until -std is added to get
3313    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3314    array size at least.  It's necessary to write '\x00'==0 to get something
3315    that's true only with -std.  */
3316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3319    inside strings and character constants.  */
3320 #define FOO(x) 'x'
3321 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3322
3323 int test (int i, double x);
3324 struct s1 {int (*f) (int a);};
3325 struct s2 {int (*f) (double a);};
3326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3327 int argc;
3328 char **argv;
3329 int
3330 main ()
3331 {
3332 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3338         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3339 do
3340   CC="$ac_save_CC $ac_arg"
3341   rm -f conftest.$ac_objext
3342 if { (ac_try="$ac_compile"
3343 case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_compile") 2>conftest.er1
3349   ac_status=$?
3350   grep -v '^ *+' conftest.er1 >conftest.err
3351   rm -f conftest.er1
3352   cat conftest.err >&5
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); } &&
3355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356   { (case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361   (eval "$ac_try") 2>&5
3362   ac_status=$?
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); }; } &&
3365          { ac_try='test -s conftest.$ac_objext'
3366   { (case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_try") 2>&5
3372   ac_status=$?
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); }; }; then
3375   ac_cv_prog_cc_c89=$ac_arg
3376 else
3377   echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext
3384   test "x$ac_cv_prog_cc_c89" != "xno" && break
3385 done
3386 rm -f conftest.$ac_ext
3387 CC=$ac_save_CC
3388
3389 fi
3390 # AC_CACHE_VAL
3391 case "x$ac_cv_prog_cc_c89" in
3392   x)
3393     { echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6; } ;;
3395   xno)
3396     { echo "$as_me:$LINENO: result: unsupported" >&5
3397 echo "${ECHO_T}unsupported" >&6; } ;;
3398   *)
3399     CC="$CC $ac_cv_prog_cc_c89"
3400     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3402 esac
3403
3404
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3418 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3419 # On Suns, sometimes $CPP names a directory.
3420 if test -n "$CPP" && test -d "$CPP"; then
3421   CPP=
3422 fi
3423 if test -z "$CPP"; then
3424   if test "${ac_cv_prog_CPP+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427       # Double quotes because CPP needs to be expanded
3428     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429     do
3430       ac_preproc_ok=false
3431 for ac_c_preproc_warn_flag in '' yes
3432 do
3433   # Use a header file that comes with gcc, so configuring glibc
3434   # with a fresh cross-compiler works.
3435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436   # <limits.h> exists even on freestanding compilers.
3437   # On the NeXT, cc -E runs the code through the compiler's parser,
3438   # not just through cpp. "Syntax error" is here to catch this case.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #ifdef __STDC__
3446 # include <limits.h>
3447 #else
3448 # include <assert.h>
3449 #endif
3450                      Syntax error
3451 _ACEOF
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } >/dev/null; then
3465   if test -s conftest.err; then
3466     ac_cpp_err=$ac_c_preproc_warn_flag
3467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468   else
3469     ac_cpp_err=
3470   fi
3471 else
3472   ac_cpp_err=yes
3473 fi
3474 if test -z "$ac_cpp_err"; then
3475   :
3476 else
3477   echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480   # Broken: fails on valid input.
3481 continue
3482 fi
3483
3484 rm -f conftest.err conftest.$ac_ext
3485
3486   # OK, works on sane cases.  Now check whether nonexistent headers
3487   # can be detected and how.
3488   cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include <ac_nonexistent.h>
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } >/dev/null; then
3509   if test -s conftest.err; then
3510     ac_cpp_err=$ac_c_preproc_warn_flag
3511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3512   else
3513     ac_cpp_err=
3514   fi
3515 else
3516   ac_cpp_err=yes
3517 fi
3518 if test -z "$ac_cpp_err"; then
3519   # Broken: success on invalid input.
3520 continue
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525   # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3528 fi
3529
3530 rm -f conftest.err conftest.$ac_ext
3531
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3536   break
3537 fi
3538
3539     done
3540     ac_cv_prog_CPP=$CPP
3541
3542 fi
3543   CPP=$ac_cv_prog_CPP
3544 else
3545   ac_cv_prog_CPP=$CPP
3546 fi
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3549 ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3551 do
3552   # Use a header file that comes with gcc, so configuring glibc
3553   # with a fresh cross-compiler works.
3554   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555   # <limits.h> exists even on freestanding compilers.
3556   # On the NeXT, cc -E runs the code through the compiler's parser,
3557   # not just through cpp. "Syntax error" is here to catch this case.
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569                      Syntax error
3570 _ACEOF
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } >/dev/null; then
3584   if test -s conftest.err; then
3585     ac_cpp_err=$ac_c_preproc_warn_flag
3586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587   else
3588     ac_cpp_err=
3589   fi
3590 else
3591   ac_cpp_err=yes
3592 fi
3593 if test -z "$ac_cpp_err"; then
3594   :
3595 else
3596   echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599   # Broken: fails on valid input.
3600 continue
3601 fi
3602
3603 rm -f conftest.err conftest.$ac_ext
3604
3605   # OK, works on sane cases.  Now check whether nonexistent headers
3606   # can be detected and how.
3607   cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h.  */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h.  */
3613 #include <ac_nonexistent.h>
3614 _ACEOF
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3616 case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } >/dev/null; then
3628   if test -s conftest.err; then
3629     ac_cpp_err=$ac_c_preproc_warn_flag
3630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631   else
3632     ac_cpp_err=
3633   fi
3634 else
3635   ac_cpp_err=yes
3636 fi
3637 if test -z "$ac_cpp_err"; then
3638   # Broken: success on invalid input.
3639 continue
3640 else
3641   echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644   # Passes both tests.
3645 ac_preproc_ok=:
3646 break
3647 fi
3648
3649 rm -f conftest.err conftest.$ac_ext
3650
3651 done
3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653 rm -f conftest.err conftest.$ac_ext
3654 if $ac_preproc_ok; then
3655   :
3656 else
3657   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3658 See \`config.log' for more details." >&5
3659 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3660 See \`config.log' for more details." >&2;}
3661    { (exit 1); exit 1; }; }
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   # Extract the first word of "grep ggrep" to use in msg output
3677 if test -z "$GREP"; then
3678 set dummy grep ggrep; ac_prog_name=$2
3679 if test "${ac_cv_path_GREP+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_path_GREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689   for ac_prog in grep ggrep; do
3690   for ac_exec_ext in '' $ac_executable_extensions; do
3691     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3693     # Check for GNU ac_path_GREP and select it if it is found.
3694   # Check for GNU $ac_path_GREP
3695 case `"$ac_path_GREP" --version 2>&1` in
3696 *GNU*)
3697   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 *)
3699   ac_count=0
3700   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3701   while :
3702   do
3703     cat "conftest.in" "conftest.in" >"conftest.tmp"
3704     mv "conftest.tmp" "conftest.in"
3705     cp "conftest.in" "conftest.nl"
3706     echo 'GREP' >> "conftest.nl"
3707     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709     ac_count=`expr $ac_count + 1`
3710     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711       # Best one so far, save it but keep looking for a better one
3712       ac_cv_path_GREP="$ac_path_GREP"
3713       ac_path_GREP_max=$ac_count
3714     fi
3715     # 10*(2^10) chars as input seems more than enough
3716     test $ac_count -gt 10 && break
3717   done
3718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 esac
3720
3721
3722     $ac_path_GREP_found && break 3
3723   done
3724 done
3725
3726 done
3727 IFS=$as_save_IFS
3728
3729
3730 fi
3731
3732 GREP="$ac_cv_path_GREP"
3733 if test -z "$GREP"; then
3734   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736    { (exit 1); exit 1; }; }
3737 fi
3738
3739 else
3740   ac_cv_path_GREP=$GREP
3741 fi
3742
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747  GREP="$ac_cv_path_GREP"
3748
3749
3750 { echo "$as_me:$LINENO: checking for egrep" >&5
3751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756    then ac_cv_path_EGREP="$GREP -E"
3757    else
3758      # Extract the first word of "egrep" to use in msg output
3759 if test -z "$EGREP"; then
3760 set dummy egrep; ac_prog_name=$2
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   ac_path_EGREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_prog in egrep; do
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3774     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3775     # Check for GNU ac_path_EGREP and select it if it is found.
3776   # Check for GNU $ac_path_EGREP
3777 case `"$ac_path_EGREP" --version 2>&1` in
3778 *GNU*)
3779   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780 *)
3781   ac_count=0
3782   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783   while :
3784   do
3785     cat "conftest.in" "conftest.in" >"conftest.tmp"
3786     mv "conftest.tmp" "conftest.in"
3787     cp "conftest.in" "conftest.nl"
3788     echo 'EGREP' >> "conftest.nl"
3789     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791     ac_count=`expr $ac_count + 1`
3792     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793       # Best one so far, save it but keep looking for a better one
3794       ac_cv_path_EGREP="$ac_path_EGREP"
3795       ac_path_EGREP_max=$ac_count
3796     fi
3797     # 10*(2^10) chars as input seems more than enough
3798     test $ac_count -gt 10 && break
3799   done
3800   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 esac
3802
3803
3804     $ac_path_EGREP_found && break 3
3805   done
3806 done
3807
3808 done
3809 IFS=$as_save_IFS
3810
3811
3812 fi
3813
3814 EGREP="$ac_cv_path_EGREP"
3815 if test -z "$EGREP"; then
3816   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818    { (exit 1); exit 1; }; }
3819 fi
3820
3821 else
3822   ac_cv_path_EGREP=$EGREP
3823 fi
3824
3825
3826    fi
3827 fi
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830  EGREP="$ac_cv_path_EGREP"
3831
3832
3833 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <stdlib.h>
3845 #include <stdarg.h>
3846 #include <string.h>
3847 #include <float.h>
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864   (eval "$ac_compile") 2>conftest.er1
3865   ac_status=$?
3866   grep -v '^ *+' conftest.er1 >conftest.err
3867   rm -f conftest.er1
3868   cat conftest.err >&5
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); } &&
3871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3872   { (case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_try") 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; } &&
3881          { ac_try='test -s conftest.$ac_objext'
3882   { (case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887   (eval "$ac_try") 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }; }; then
3891   ac_cv_header_stdc=yes
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896         ac_cv_header_stdc=no
3897 fi
3898
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900
3901 if test $ac_cv_header_stdc = yes; then
3902   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <string.h>
3910
3911 _ACEOF
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913   $EGREP "memchr" >/dev/null 2>&1; then
3914   :
3915 else
3916   ac_cv_header_stdc=no
3917 fi
3918 rm -f conftest*
3919
3920 fi
3921
3922 if test $ac_cv_header_stdc = yes; then
3923   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <stdlib.h>
3931
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934   $EGREP "free" >/dev/null 2>&1; then
3935   :
3936 else
3937   ac_cv_header_stdc=no
3938 fi
3939 rm -f conftest*
3940
3941 fi
3942
3943 if test $ac_cv_header_stdc = yes; then
3944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3945   if test "$cross_compiling" = yes; then
3946   :
3947 else
3948   cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <ctype.h>
3955 #include <stdlib.h>
3956 #if ((' ' & 0x0FF) == 0x020)
3957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959 #else
3960 # define ISLOWER(c) \
3961                    (('a' <= (c) && (c) <= 'i') \
3962                      || ('j' <= (c) && (c) <= 'r') \
3963                      || ('s' <= (c) && (c) <= 'z'))
3964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3965 #endif
3966
3967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968 int
3969 main ()
3970 {
3971   int i;
3972   for (i = 0; i < 256; i++)
3973     if (XOR (islower (i), ISLOWER (i))
3974         || toupper (i) != TOUPPER (i))
3975       return 2;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest$ac_exeext
3980 if { (ac_try="$ac_link"
3981 case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986   (eval "$ac_link") 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990   { (case "(($ac_try" in
3991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992   *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995   (eval "$ac_try") 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; }; then
3999   :
4000 else
4001   echo "$as_me: program exited with status $ac_status" >&5
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 ( exit $ac_status )
4006 ac_cv_header_stdc=no
4007 fi
4008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009 fi
4010
4011
4012 fi
4013 fi
4014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4016 if test $ac_cv_header_stdc = yes; then
4017
4018 cat >>confdefs.h <<\_ACEOF
4019 #define STDC_HEADERS 1
4020 _ACEOF
4021
4022 fi
4023
4024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035                   inttypes.h stdint.h unistd.h
4036 do
4037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049 $ac_includes_default
4050
4051 #include <$ac_header>
4052 _ACEOF
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_compile") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } &&
4067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068   { (case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_try") 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; } &&
4077          { ac_try='test -s conftest.$ac_objext'
4078   { (case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_try") 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   eval "$as_ac_Header=yes"
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         eval "$as_ac_Header=no"
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097 ac_res=`eval echo '${'$as_ac_Header'}'`
4098                { echo "$as_me:$LINENO: result: $ac_res" >&5
4099 echo "${ECHO_T}$ac_res" >&6; }
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101   cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4104
4105 fi
4106
4107 done
4108
4109
4110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4112 if test "${ac_cv_c_bigendian+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   # See if sys/param.h defines the BYTE_ORDER macro.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4124
4125 int
4126 main ()
4127 {
4128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4129  bogus endian macros
4130 #endif
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_compile") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } &&
4150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151   { (case "(($ac_try" in
4152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153   *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156   (eval "$ac_try") 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; } &&
4160          { ac_try='test -s conftest.$ac_objext'
4161   { (case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   # It does; now see whether it defined to BIG_ENDIAN or not.
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <sys/types.h>
4178 #include <sys/param.h>
4179
4180 int
4181 main ()
4182 {
4183 #if BYTE_ORDER != BIG_ENDIAN
4184  not big endian
4185 #endif
4186
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (ac_try="$ac_compile"
4193 case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_compile") 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } &&
4205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4206   { (case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211   (eval "$ac_try") 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; } &&
4215          { ac_try='test -s conftest.$ac_objext'
4216   { (case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_try") 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; }; then
4225   ac_cv_c_bigendian=yes
4226 else
4227   echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230         ac_cv_c_bigendian=no
4231 fi
4232
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 else
4235   echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238         # It does not; compile a test program.
4239 if test "$cross_compiling" = yes; then
4240   # try to guess the endianness by grepping values into an object file
4241   ac_cv_c_bigendian=unknown
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4249 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4250 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4251 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4252 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4253 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4254 int
4255 main ()
4256 {
4257  _ascii (); _ebcdic ();
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4264 case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_compile") 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277   { (case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; } &&
4286          { ac_try='test -s conftest.$ac_objext'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4297   ac_cv_c_bigendian=yes
4298 fi
4299 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4300   if test "$ac_cv_c_bigendian" = unknown; then
4301     ac_cv_c_bigendian=no
4302   else
4303     # finding both strings is unlikely to happen, but who knows?
4304     ac_cv_c_bigendian=unknown
4305   fi
4306 fi
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 else
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 $ac_includes_default
4323 int
4324 main ()
4325 {
4326
4327   /* Are we little or big endian?  From Harbison&Steele.  */
4328   union
4329   {
4330     long int l;
4331     char c[sizeof (long int)];
4332   } u;
4333   u.l = 1;
4334   return u.c[sizeof (long int) - 1] == 1;
4335
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest$ac_exeext
4341 if { (ac_try="$ac_link"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_link") 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351   { (case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_try") 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; }; then
4360   ac_cv_c_bigendian=no
4361 else
4362   echo "$as_me: program exited with status $ac_status" >&5
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ( exit $ac_status )
4367 ac_cv_c_bigendian=yes
4368 fi
4369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 fi
4371
4372
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4379 case $ac_cv_c_bigendian in
4380   yes)
4381     ENDIAN=big
4382  ;;
4383   no)
4384     ENDIAN=little
4385  ;;
4386   *)
4387     { { echo "$as_me:$LINENO: error: unknown endianness
4388 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4389 echo "$as_me: error: unknown endianness
4390 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4391    { (exit 1); exit 1; }; } ;;
4392 esac
4393
4394
4395 if test "$cross_compiling" = yes; then
4396   LLVM_CROSS_COMPILING=1
4397
4398
4399 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4400 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4401 if test "${ac_cv_build_exeext+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4405   ac_cv_build_exeext=.exe
4406 else
4407   ac_build_prefix=${build_alias}-
4408
4409   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4410 set dummy ${ac_build_prefix}gcc; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   if test -n "$BUILD_CC"; then
4417   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_exec_ext in '' $ac_executable_extensions; do
4425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4426     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428     break 2
4429   fi
4430 done
4431 done
4432 IFS=$as_save_IFS
4433
4434 fi
4435 fi
4436 BUILD_CC=$ac_cv_prog_BUILD_CC
4437 if test -n "$BUILD_CC"; then
4438   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4439 echo "${ECHO_T}$BUILD_CC" >&6; }
4440 else
4441   { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4443 fi
4444
4445
4446   if test -z "$BUILD_CC"; then
4447      # Extract the first word of "gcc", so it can be a program name with args.
4448 set dummy gcc; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   if test -n "$BUILD_CC"; then
4455   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_prog_BUILD_CC="gcc"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484      if test -z "$BUILD_CC"; then
4485        # Extract the first word of "cc", so it can be a program name with args.
4486 set dummy cc; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   if test -n "$BUILD_CC"; then
4493   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4494 else
4495   ac_prog_rejected=no
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504        ac_prog_rejected=yes
4505        continue
4506      fi
4507     ac_cv_prog_BUILD_CC="cc"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 if test $ac_prog_rejected = yes; then
4516   # We found a bogon in the path, so make sure we never use it.
4517   set dummy $ac_cv_prog_BUILD_CC
4518   shift
4519   if test $# != 0; then
4520     # We chose a different compiler from the bogus one.
4521     # However, it has the same basename, so the bogon will be chosen
4522     # first if we set BUILD_CC to just the basename; use the full file name.
4523     shift
4524     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525   fi
4526 fi
4527 fi
4528 fi
4529 BUILD_CC=$ac_cv_prog_BUILD_CC
4530 if test -n "$BUILD_CC"; then
4531   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4532 echo "${ECHO_T}$BUILD_CC" >&6; }
4533 else
4534   { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4536 fi
4537
4538
4539      fi
4540   fi
4541   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4542 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4543    { (exit 1); exit 1; }; }
4544   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4545   rm -f conftest*
4546   echo 'int main () { return 0; }' > conftest.$ac_ext
4547   ac_cv_build_exeext=
4548   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4549   (eval $ac_build_link) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; then
4553     for file in conftest.*; do
4554       case $file in
4555       *.c | *.o | *.obj | *.dSYM) ;;
4556       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4557       esac
4558     done
4559   else
4560     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4561 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4562    { (exit 1); exit 1; }; }
4563   fi
4564   rm -f conftest*
4565   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4566 fi
4567 fi
4568
4569 BUILD_EXEEXT=""
4570 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4571 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4572 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4573 ac_build_exeext=$BUILD_EXEEXT
4574
4575   ac_build_prefix=${build_alias}-
4576   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4577 set dummy ${ac_build_prefix}g++; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   if test -n "$BUILD_CXX"; then
4584   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4593     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4604 if test -n "$BUILD_CXX"; then
4605   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4606 echo "${ECHO_T}$BUILD_CXX" >&6; }
4607 else
4608   { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610 fi
4611
4612
4613   if test -z "$BUILD_CXX"; then
4614      # Extract the first word of "g++", so it can be a program name with args.
4615 set dummy g++; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$BUILD_CXX"; then
4622   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_BUILD_CXX="g++"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642 if test -n "$BUILD_CXX"; then
4643   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644 echo "${ECHO_T}$BUILD_CXX" >&6; }
4645 else
4646   { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4648 fi
4649
4650
4651      if test -z "$BUILD_CXX"; then
4652        # Extract the first word of "c++", so it can be a program name with args.
4653 set dummy c++; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   if test -n "$BUILD_CXX"; then
4660   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4661 else
4662   ac_prog_rejected=no
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4671        ac_prog_rejected=yes
4672        continue
4673      fi
4674     ac_cv_prog_BUILD_CXX="c++"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 if test $ac_prog_rejected = yes; then
4683   # We found a bogon in the path, so make sure we never use it.
4684   set dummy $ac_cv_prog_BUILD_CXX
4685   shift
4686   if test $# != 0; then
4687     # We chose a different compiler from the bogus one.
4688     # However, it has the same basename, so the bogon will be chosen
4689     # first if we set BUILD_CXX to just the basename; use the full file name.
4690     shift
4691     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692   fi
4693 fi
4694 fi
4695 fi
4696 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4697 if test -n "$BUILD_CXX"; then
4698   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4699 echo "${ECHO_T}$BUILD_CXX" >&6; }
4700 else
4701   { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4703 fi
4704
4705
4706      fi
4707   fi
4708 else
4709   LLVM_CROSS_COMPILING=0
4710
4711 fi
4712
4713 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4714   cvsbuild="yes"
4715   optimize="no"
4716   CVSBUILD=CVSBUILD=1
4717
4718 else
4719   cvsbuild="no"
4720   optimize="yes"
4721 fi
4722
4723
4724 # Check whether --enable-optimized was given.
4725 if test "${enable_optimized+set}" = set; then
4726   enableval=$enable_optimized;
4727 else
4728   enableval=$optimize
4729 fi
4730
4731 if test ${enableval} = "no" ; then
4732   ENABLE_OPTIMIZED=
4733
4734 else
4735   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4736
4737 fi
4738
4739 # Check whether --enable-assertions was given.
4740 if test "${enable_assertions+set}" = set; then
4741   enableval=$enable_assertions;
4742 else
4743   enableval="yes"
4744 fi
4745
4746 if test ${enableval} = "yes" ; then
4747   DISABLE_ASSERTIONS=
4748
4749 else
4750   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4751
4752 fi
4753
4754 # Check whether --enable-expensive-checks was given.
4755 if test "${enable_expensive_checks+set}" = set; then
4756   enableval=$enable_expensive_checks;
4757 else
4758   enableval="no"
4759 fi
4760
4761 if test ${enableval} = "yes" ; then
4762   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4763
4764   EXPENSIVE_CHECKS=yes
4765
4766 else
4767   ENABLE_EXPENSIVE_CHECKS=
4768
4769   EXPENSIVE_CHECKS=no
4770
4771 fi
4772
4773 # Check whether --enable-debug-runtime was given.
4774 if test "${enable_debug_runtime+set}" = set; then
4775   enableval=$enable_debug_runtime;
4776 else
4777   enableval=no
4778 fi
4779
4780 if test ${enableval} = "no" ; then
4781   DEBUG_RUNTIME=
4782
4783 else
4784   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4785
4786 fi
4787
4788 # Check whether --enable-jit was given.
4789 if test "${enable_jit+set}" = set; then
4790   enableval=$enable_jit;
4791 else
4792   enableval=default
4793 fi
4794
4795 if test ${enableval} = "no"
4796 then
4797   JIT=
4798
4799 else
4800   case "$llvm_cv_target_arch" in
4801     x86)     TARGET_HAS_JIT=1
4802  ;;
4803     Sparc)   TARGET_HAS_JIT=0
4804  ;;
4805     PowerPC) TARGET_HAS_JIT=1
4806  ;;
4807     x86_64)  TARGET_HAS_JIT=1
4808  ;;
4809     Alpha)   TARGET_HAS_JIT=1
4810  ;;
4811     IA64)    TARGET_HAS_JIT=0
4812  ;;
4813     ARM)     TARGET_HAS_JIT=0
4814  ;;
4815     Mips)    TARGET_HAS_JIT=0
4816  ;;
4817     PIC16)   TARGET_HAS_JIT=0
4818  ;;
4819     XCore)   TARGET_HAS_JIT=0
4820  ;;
4821     *)       TARGET_HAS_JIT=0
4822  ;;
4823   esac
4824 fi
4825
4826 # Check whether --enable-doxygen was given.
4827 if test "${enable_doxygen+set}" = set; then
4828   enableval=$enable_doxygen;
4829 else
4830   enableval=default
4831 fi
4832
4833 case "$enableval" in
4834   yes) ENABLE_DOXYGEN=1
4835  ;;
4836   no)  ENABLE_DOXYGEN=0
4837  ;;
4838   default) ENABLE_DOXYGEN=0
4839  ;;
4840   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4842    { (exit 1); exit 1; }; } ;;
4843 esac
4844
4845 # Check whether --enable-threads was given.
4846 if test "${enable_threads+set}" = set; then
4847   enableval=$enable_threads;
4848 else
4849   enableval=default
4850 fi
4851
4852 case "$enableval" in
4853   yes) ENABLE_THREADS=1
4854  ;;
4855   no)  ENABLE_THREADS=0
4856  ;;
4857   default) ENABLE_THREADS=1
4858  ;;
4859   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4861    { (exit 1); exit 1; }; } ;;
4862 esac
4863
4864 cat >>confdefs.h <<_ACEOF
4865 #define ENABLE_THREADS $ENABLE_THREADS
4866 _ACEOF
4867
4868
4869 # Check whether --enable-pic was given.
4870 if test "${enable_pic+set}" = set; then
4871   enableval=$enable_pic;
4872 else
4873   enableval=default
4874 fi
4875
4876 case "$enableval" in
4877   yes) ENABLE_PIC=1
4878  ;;
4879   no)  ENABLE_PIC=0
4880  ;;
4881   default) ENABLE_PIC=1
4882  ;;
4883   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4884 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4885    { (exit 1); exit 1; }; } ;;
4886 esac
4887
4888 cat >>confdefs.h <<_ACEOF
4889 #define ENABLE_PIC $ENABLE_PIC
4890 _ACEOF
4891
4892
4893 TARGETS_TO_BUILD=""
4894 # Check whether --enable-targets was given.
4895 if test "${enable_targets+set}" = set; then
4896   enableval=$enable_targets;
4897 else
4898   enableval=all
4899 fi
4900
4901 case "$enableval" in
4902   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4903   host-only)
4904     case "$llvm_cv_target_arch" in
4905       x86)     TARGETS_TO_BUILD="X86" ;;
4906       x86_64)  TARGETS_TO_BUILD="X86" ;;
4907       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4908       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4909       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4910       IA64)    TARGETS_TO_BUILD="IA64" ;;
4911       ARM)     TARGETS_TO_BUILD="ARM" ;;
4912       Mips)    TARGETS_TO_BUILD="Mips" ;;
4913       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4914       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4915       XCore)   TARGETS_TO_BUILD="XCore" ;;
4916       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4917 echo "$as_me: error: Can not set target to build" >&2;}
4918    { (exit 1); exit 1; }; } ;;
4919     esac
4920     ;;
4921   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4922       case "$a_target" in
4923         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4925         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4926         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4927         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4928         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4929         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4930         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4931         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4932         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4933         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4934         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4935         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4936         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4937         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4938 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4939    { (exit 1); exit 1; }; } ;;
4940       esac
4941   done
4942   ;;
4943 esac
4944 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4945
4946
4947 # Check whether --enable-cbe-printf-a was given.
4948 if test "${enable_cbe_printf_a+set}" = set; then
4949   enableval=$enable_cbe_printf_a;
4950 else
4951   enableval=default
4952 fi
4953
4954 case "$enableval" in
4955   yes) ENABLE_CBE_PRINTF_A=1
4956  ;;
4957   no)  ENABLE_CBE_PRINTF_A=0
4958  ;;
4959   default)  ENABLE_CBE_PRINTF_A=1
4960  ;;
4961   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964 esac
4965
4966 cat >>confdefs.h <<_ACEOF
4967 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4968 _ACEOF
4969
4970
4971
4972 # Check whether --with-llvmgccdir was given.
4973 if test "${with_llvmgccdir+set}" = set; then
4974   withval=$with_llvmgccdir;
4975 else
4976   withval=default
4977 fi
4978
4979 case "$withval" in
4980   default) WITH_LLVMGCCDIR=default ;;
4981   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4982   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4983 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4984    { (exit 1); exit 1; }; } ;;
4985 esac
4986
4987
4988 # Check whether --with-llvmgcc was given.
4989 if test "${with_llvmgcc+set}" = set; then
4990   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4991       WITH_LLVMGCCDIR=""
4992 fi
4993
4994
4995
4996 # Check whether --with-llvmgxx was given.
4997 if test "${with_llvmgxx+set}" = set; then
4998   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4999     WITH_LLVMGCCDIR=""
5000 fi
5001
5002
5003 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5004    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5005 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5006    { (exit 1); exit 1; }; };
5007 fi
5008
5009 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5010    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5011 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5012    { (exit 1); exit 1; }; };
5013 fi
5014
5015
5016 # Check whether --with-extra-options was given.
5017 if test "${with_extra_options+set}" = set; then
5018   withval=$with_extra_options;
5019 else
5020   withval=default
5021 fi
5022
5023 case "$withval" in
5024   default) EXTRA_OPTIONS= ;;
5025   *) EXTRA_OPTIONS=$withval ;;
5026 esac
5027 EXTRA_OPTIONS=$EXTRA_OPTIONS
5028
5029
5030 # Check whether --enable-bindings was given.
5031 if test "${enable_bindings+set}" = set; then
5032   enableval=$enable_bindings;
5033 else
5034   enableval=default
5035 fi
5036
5037 BINDINGS_TO_BUILD=""
5038 case "$enableval" in
5039   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5040   all ) BINDINGS_TO_BUILD="ocaml" ;;
5041   none | no) BINDINGS_TO_BUILD="" ;;
5042   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5043       case "$a_binding" in
5044         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5045         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5046 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5047    { (exit 1); exit 1; }; } ;;
5048       esac
5049   done
5050   ;;
5051 esac
5052
5053
5054 # Check whether --with-ocaml-libdir was given.
5055 if test "${with_ocaml_libdir+set}" = set; then
5056   withval=$with_ocaml_libdir;
5057 else
5058   withval=auto
5059 fi
5060
5061 case "$withval" in
5062   auto) with_ocaml_libdir="$withval" ;;
5063   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5064   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5065 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5066    { (exit 1); exit 1; }; } ;;
5067 esac
5068
5069
5070 # Check whether --with-binutils-include was given.
5071 if test "${with_binutils_include+set}" = set; then
5072   withval=$with_binutils_include;
5073 else
5074   withval=default
5075 fi
5076
5077 case "$withval" in
5078   default) WITH_BINUTILS_INCDIR=default ;;
5079   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5080   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5081 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5082    { (exit 1); exit 1; }; } ;;
5083 esac
5084 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5085   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5086
5087   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5088      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5089      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5090 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5091    { (exit 1); exit 1; }; };
5092   fi
5093 fi
5094
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5103 # On Suns, sometimes $CPP names a directory.
5104 if test -n "$CPP" && test -d "$CPP"; then
5105   CPP=
5106 fi
5107 if test -z "$CPP"; then
5108   if test "${ac_cv_prog_CPP+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111       # Double quotes because CPP needs to be expanded
5112     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5113     do
5114       ac_preproc_ok=false
5115 for ac_c_preproc_warn_flag in '' yes
5116 do
5117   # Use a header file that comes with gcc, so configuring glibc
5118   # with a fresh cross-compiler works.
5119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120   # <limits.h> exists even on freestanding compilers.
5121   # On the NeXT, cc -E runs the code through the compiler's parser,
5122   # not just through cpp. "Syntax error" is here to catch this case.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #ifdef __STDC__
5130 # include <limits.h>
5131 #else
5132 # include <assert.h>
5133 #endif
5134                      Syntax error
5135 _ACEOF
5136 if { (ac_try="$ac_cpp conftest.$ac_ext"
5137 case "(($ac_try" in
5138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139   *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } >/dev/null; then
5149   if test -s conftest.err; then
5150     ac_cpp_err=$ac_c_preproc_warn_flag
5151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152   else
5153     ac_cpp_err=
5154   fi
5155 else
5156   ac_cpp_err=yes
5157 fi
5158 if test -z "$ac_cpp_err"; then
5159   :
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164   # Broken: fails on valid input.
5165 continue
5166 fi
5167
5168 rm -f conftest.err conftest.$ac_ext
5169
5170   # OK, works on sane cases.  Now check whether nonexistent headers
5171   # can be detected and how.
5172   cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178 #include <ac_nonexistent.h>
5179 _ACEOF
5180 if { (ac_try="$ac_cpp conftest.$ac_ext"
5181 case "(($ac_try" in
5182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183   *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187   ac_status=$?
5188   grep -v '^ *+' conftest.er1 >conftest.err
5189   rm -f conftest.er1
5190   cat conftest.err >&5
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } >/dev/null; then
5193   if test -s conftest.err; then
5194     ac_cpp_err=$ac_c_preproc_warn_flag
5195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196   else
5197     ac_cpp_err=
5198   fi
5199 else
5200   ac_cpp_err=yes
5201 fi
5202 if test -z "$ac_cpp_err"; then
5203   # Broken: success on invalid input.
5204 continue
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209   # Passes both tests.
5210 ac_preproc_ok=:
5211 break
5212 fi
5213
5214 rm -f conftest.err conftest.$ac_ext
5215
5216 done
5217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218 rm -f conftest.err conftest.$ac_ext
5219 if $ac_preproc_ok; then
5220   break
5221 fi
5222
5223     done
5224     ac_cv_prog_CPP=$CPP
5225
5226 fi
5227   CPP=$ac_cv_prog_CPP
5228 else
5229   ac_cv_prog_CPP=$CPP
5230 fi
5231 { echo "$as_me:$LINENO: result: $CPP" >&5
5232 echo "${ECHO_T}$CPP" >&6; }
5233 ac_preproc_ok=false
5234 for ac_c_preproc_warn_flag in '' yes
5235 do
5236   # Use a header file that comes with gcc, so configuring glibc
5237   # with a fresh cross-compiler works.
5238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239   # <limits.h> exists even on freestanding compilers.
5240   # On the NeXT, cc -E runs the code through the compiler's parser,
5241   # not just through cpp. "Syntax error" is here to catch this case.
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 #ifdef __STDC__
5249 # include <limits.h>
5250 #else
5251 # include <assert.h>
5252 #endif
5253                      Syntax error
5254 _ACEOF
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5256 case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } >/dev/null; then
5268   if test -s conftest.err; then
5269     ac_cpp_err=$ac_c_preproc_warn_flag
5270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271   else
5272     ac_cpp_err=
5273   fi
5274 else
5275   ac_cpp_err=yes
5276 fi
5277 if test -z "$ac_cpp_err"; then
5278   :
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283   # Broken: fails on valid input.
5284 continue
5285 fi
5286
5287 rm -f conftest.err conftest.$ac_ext
5288
5289   # OK, works on sane cases.  Now check whether nonexistent headers
5290   # can be detected and how.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #include <ac_nonexistent.h>
5298 _ACEOF
5299 if { (ac_try="$ac_cpp conftest.$ac_ext"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   # Broken: success on invalid input.
5323 continue
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328   # Passes both tests.
5329 ac_preproc_ok=:
5330 break
5331 fi
5332
5333 rm -f conftest.err conftest.$ac_ext
5334
5335 done
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then
5339   :
5340 else
5341   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5342 See \`config.log' for more details." >&5
5343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5344 See \`config.log' for more details." >&2;}
5345    { (exit 1); exit 1; }; }
5346 fi
5347
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359 if test -n "$ac_tool_prefix"; then
5360   for ac_prog in gcc
5361   do
5362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   if test -n "$CC"; then
5370   ac_cv_prog_CC="$CC" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377   for ac_exec_ext in '' $ac_executable_extensions; do
5378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5379     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391   { echo "$as_me:$LINENO: result: $CC" >&5
5392 echo "${ECHO_T}$CC" >&6; }
5393 else
5394   { echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6; }
5396 fi
5397
5398
5399     test -n "$CC" && break
5400   done
5401 fi
5402 if test -z "$CC"; then
5403   ac_ct_CC=$CC
5404   for ac_prog in gcc
5405 do
5406   # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   if test -n "$ac_ct_CC"; then
5414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421   for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_prog_ac_ct_CC="$ac_prog"
5424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434 if test -n "$ac_ct_CC"; then
5435   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5436 echo "${ECHO_T}$ac_ct_CC" >&6; }
5437 else
5438   { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5440 fi
5441
5442
5443   test -n "$ac_ct_CC" && break
5444 done
5445
5446   if test "x$ac_ct_CC" = x; then
5447     CC=""
5448   else
5449     case $cross_compiling:$ac_tool_warned in
5450 yes:)
5451 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5452 whose name does not start with the host triplet.  If you think this
5453 configuration is useful to you, please write to autoconf@gnu.org." >&5
5454 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5455 whose name does not start with the host triplet.  If you think this
5456 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5457 ac_tool_warned=yes ;;
5458 esac
5459     CC=$ac_ct_CC
5460   fi
5461 fi
5462
5463
5464 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5465 See \`config.log' for more details." >&5
5466 echo "$as_me: error: no acceptable C compiler found in \$PATH
5467 See \`config.log' for more details." >&2;}
5468    { (exit 1); exit 1; }; }
5469
5470 # Provide some information about the compiler.
5471 echo "$as_me:$LINENO: checking for C compiler version" >&5
5472 ac_compiler=`set X $ac_compile; echo $2`
5473 { (ac_try="$ac_compiler --version >&5"
5474 case "(($ac_try" in
5475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476   *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479   (eval "$ac_compiler --version >&5") 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }
5483 { (ac_try="$ac_compiler -v >&5"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compiler -v >&5") 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }
5493 { (ac_try="$ac_compiler -V >&5"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compiler -V >&5") 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); }
5503
5504 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5505 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5506 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h.  */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h.  */
5515
5516 int
5517 main ()
5518 {
5519 #ifndef __GNUC__
5520        choke me
5521 #endif
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542   { (case "(($ac_try" in
5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544   *) ac_try_echo=$ac_try;;
5545 esac
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547   (eval "$ac_try") 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; } &&
5551          { ac_try='test -s conftest.$ac_objext'
5552   { (case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_try") 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; }; then
5561   ac_compiler_gnu=yes
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566         ac_compiler_gnu=no
5567 fi
5568
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5571
5572 fi
5573 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5574 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5575 GCC=`test $ac_compiler_gnu = yes && echo yes`
5576 ac_test_CFLAGS=${CFLAGS+set}
5577 ac_save_CFLAGS=$CFLAGS
5578 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5579 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5580 if test "${ac_cv_prog_cc_g+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   ac_save_c_werror_flag=$ac_c_werror_flag
5584    ac_c_werror_flag=yes
5585    ac_cv_prog_cc_g=no
5586    CFLAGS="-g"
5587    cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593
5594 int
5595 main ()
5596 {
5597
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606   *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609   (eval "$ac_compile") 2>conftest.er1
5610   ac_status=$?
5611   grep -v '^ *+' conftest.er1 >conftest.err
5612   rm -f conftest.er1
5613   cat conftest.err >&5
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617   { (case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622   (eval "$ac_try") 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; } &&
5626          { ac_try='test -s conftest.$ac_objext'
5627   { (case "(($ac_try" in
5628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629   *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632   (eval "$ac_try") 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); }; }; then
5636   ac_cv_prog_cc_g=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641         CFLAGS=""
5642       cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648
5649 int
5650 main ()
5651 {
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5659 case "(($ac_try" in
5660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661   *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664   (eval "$ac_compile") 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672   { (case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_try") 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest.$ac_objext'
5682   { (case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_try") 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; }; then
5691   :
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696         ac_c_werror_flag=$ac_save_c_werror_flag
5697          CFLAGS="-g"
5698          cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704
5705 int
5706 main ()
5707 {
5708
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_compile") 2>conftest.er1
5721   ac_status=$?
5722   grep -v '^ *+' conftest.er1 >conftest.err
5723   rm -f conftest.er1
5724   cat conftest.err >&5
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5728   { (case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733   (eval "$ac_try") 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); }; } &&
5737          { ac_try='test -s conftest.$ac_objext'
5738   { (case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743   (eval "$ac_try") 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; }; then
5747   ac_cv_prog_cc_g=yes
5748 else
5749   echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752
5753 fi
5754
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 fi
5757
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762    ac_c_werror_flag=$ac_save_c_werror_flag
5763 fi
5764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5765 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5766 if test "$ac_test_CFLAGS" = set; then
5767   CFLAGS=$ac_save_CFLAGS
5768 elif test $ac_cv_prog_cc_g = yes; then
5769   if test "$GCC" = yes; then
5770     CFLAGS="-g -O2"
5771   else
5772     CFLAGS="-g"
5773   fi
5774 else
5775   if test "$GCC" = yes; then
5776     CFLAGS="-O2"
5777   else
5778     CFLAGS=
5779   fi
5780 fi
5781 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5782 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_cc_c89+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   ac_cv_prog_cc_c89=no
5787 ac_save_CC=$CC
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794 #include <stdarg.h>
5795 #include <stdio.h>
5796 #include <sys/types.h>
5797 #include <sys/stat.h>
5798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5799 struct buf { int x; };
5800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5801 static char *e (p, i)
5802      char **p;
5803      int i;
5804 {
5805   return p[i];
5806 }
5807 static char *f (char * (*g) (char **, int), char **p, ...)
5808 {
5809   char *s;
5810   va_list v;
5811   va_start (v,p);
5812   s = g (p, va_arg (v,int));
5813   va_end (v);
5814   return s;
5815 }
5816
5817 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5818    function prototypes and stuff, but not '\xHH' hex character constants.
5819    These don't provoke an error unfortunately, instead are silently treated
5820    as 'x'.  The following induces an error, until -std is added to get
5821    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5822    array size at least.  It's necessary to write '\x00'==0 to get something
5823    that's true only with -std.  */
5824 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5825
5826 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5827    inside strings and character constants.  */
5828 #define FOO(x) 'x'
5829 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5830
5831 int test (int i, double x);
5832 struct s1 {int (*f) (int a);};
5833 struct s2 {int (*f) (double a);};
5834 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5835 int argc;
5836 char **argv;
5837 int
5838 main ()
5839 {
5840 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5841   ;
5842   return 0;
5843 }
5844 _ACEOF
5845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5846         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5847 do
5848   CC="$ac_save_CC $ac_arg"
5849   rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compile") 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864   { (case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_try") 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (case "(($ac_try" in
5875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876   *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879   (eval "$ac_try") 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_cv_prog_cc_c89=$ac_arg
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext
5892   test "x$ac_cv_prog_cc_c89" != "xno" && break
5893 done
5894 rm -f conftest.$ac_ext
5895 CC=$ac_save_CC
5896
5897 fi
5898 # AC_CACHE_VAL
5899 case "x$ac_cv_prog_cc_c89" in
5900   x)
5901     { echo "$as_me:$LINENO: result: none needed" >&5
5902 echo "${ECHO_T}none needed" >&6; } ;;
5903   xno)
5904     { echo "$as_me:$LINENO: result: unsupported" >&5
5905 echo "${ECHO_T}unsupported" >&6; } ;;
5906   *)
5907     CC="$CC $ac_cv_prog_cc_c89"
5908     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5909 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5910 esac
5911
5912
5913 ac_ext=c
5914 ac_cpp='$CPP $CPPFLAGS'
5915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919 ac_ext=cpp
5920 ac_cpp='$CXXCPP $CPPFLAGS'
5921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924 if test -z "$CXX"; then
5925   if test -n "$CCC"; then
5926     CXX=$CCC
5927   else
5928     if test -n "$ac_tool_prefix"; then
5929   for ac_prog in g++
5930   do
5931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_prog_CXX+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$CXX"; then
5939   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 CXX=$ac_cv_prog_CXX
5959 if test -n "$CXX"; then
5960   { echo "$as_me:$LINENO: result: $CXX" >&5
5961 echo "${ECHO_T}$CXX" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967
5968     test -n "$CXX" && break
5969   done
5970 fi
5971 if test -z "$CXX"; then
5972   ac_ct_CXX=$CXX
5973   for ac_prog in g++
5974 do
5975   # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   if test -n "$ac_ct_CXX"; then
5983   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990   for ac_exec_ext in '' $ac_executable_extensions; do
5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992     ac_cv_prog_ac_ct_CXX="$ac_prog"
5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6003 if test -n "$ac_ct_CXX"; then
6004   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6005 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6006 else
6007   { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6009 fi
6010
6011
6012   test -n "$ac_ct_CXX" && break
6013 done
6014
6015   if test "x$ac_ct_CXX" = x; then
6016     CXX="g++"
6017   else
6018     case $cross_compiling:$ac_tool_warned in
6019 yes:)
6020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6021 whose name does not start with the host triplet.  If you think this
6022 configuration is useful to you, please write to autoconf@gnu.org." >&5
6023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6024 whose name does not start with the host triplet.  If you think this
6025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028     CXX=$ac_ct_CXX
6029   fi
6030 fi
6031
6032   fi
6033 fi
6034 # Provide some information about the compiler.
6035 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6036 ac_compiler=`set X $ac_compile; echo $2`
6037 { (ac_try="$ac_compiler --version >&5"
6038 case "(($ac_try" in
6039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040   *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043   (eval "$ac_compiler --version >&5") 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); }
6047 { (ac_try="$ac_compiler -v >&5"
6048 case "(($ac_try" in
6049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050   *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053   (eval "$ac_compiler -v >&5") 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }
6057 { (ac_try="$ac_compiler -V >&5"
6058 case "(($ac_try" in
6059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060   *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063   (eval "$ac_compiler -V >&5") 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }
6067
6068 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6069 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6070 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h.  */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h.  */
6079
6080 int
6081 main ()
6082 {
6083 #ifndef __GNUC__
6084        choke me
6085 #endif
6086
6087   ;
6088   return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_compile") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106   { (case "(($ac_try" in
6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108   *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111   (eval "$ac_try") 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; } &&
6115          { ac_try='test -s conftest.$ac_objext'
6116   { (case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121   (eval "$ac_try") 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_compiler_gnu=yes
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130         ac_compiler_gnu=no
6131 fi
6132
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6135
6136 fi
6137 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6138 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6139 GXX=`test $ac_compiler_gnu = yes && echo yes`
6140 ac_test_CXXFLAGS=${CXXFLAGS+set}
6141 ac_save_CXXFLAGS=$CXXFLAGS
6142 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6143 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_cxx_g+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6148    ac_cxx_werror_flag=yes
6149    ac_cv_prog_cxx_g=no
6150    CXXFLAGS="-g"
6151    cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157
6158 int
6159 main ()
6160 {
6161
6162   ;
6163   return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6168 case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_compile") 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } &&
6180          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6181   { (case "(($ac_try" in
6182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183   *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186   (eval "$ac_try") 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; } &&
6190          { ac_try='test -s conftest.$ac_objext'
6191   { (case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_try") 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_prog_cxx_g=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205         CXXFLAGS=""
6206       cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212
6213 int
6214 main ()
6215 {
6216
6217   ;
6218   return 0;
6219 }
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (ac_try="$ac_compile"
6223 case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_compile") 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6236   { (case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_try") 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (case "(($ac_try" in
6247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248   *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251   (eval "$ac_try") 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   :
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6261          CXXFLAGS="-g"
6262          cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268
6269 int
6270 main ()
6271 {
6272
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_compile") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } &&
6291          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6292   { (case "(($ac_try" in
6293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294   *) ac_try_echo=$ac_try;;
6295 esac
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297   (eval "$ac_try") 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_try") 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; }; then
6311   ac_cv_prog_cxx_g=yes
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316
6317 fi
6318
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6327 fi
6328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6329 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6330 if test "$ac_test_CXXFLAGS" = set; then
6331   CXXFLAGS=$ac_save_CXXFLAGS
6332 elif test $ac_cv_prog_cxx_g = yes; then
6333   if test "$GXX" = yes; then
6334     CXXFLAGS="-g -O2"
6335   else
6336     CXXFLAGS="-g"
6337   fi
6338 else
6339   if test "$GXX" = yes; then
6340     CXXFLAGS="-O2"
6341   else
6342     CXXFLAGS=
6343   fi
6344 fi
6345 ac_ext=c
6346 ac_cpp='$CPP $CPPFLAGS'
6347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350
6351 { echo "$as_me:$LINENO: checking " >&5
6352 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6353 if test "${ac_cv_has_flex+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   for ac_prog in flex lex
6357 do
6358   # Extract the first word of "$ac_prog", so it can be a program name with args.
6359 set dummy $ac_prog; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_prog_LEX+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   if test -n "$LEX"; then
6366   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373   for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_prog_LEX="$ac_prog"
6376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 LEX=$ac_cv_prog_LEX
6386 if test -n "$LEX"; then
6387   { echo "$as_me:$LINENO: result: $LEX" >&5
6388 echo "${ECHO_T}$LEX" >&6; }
6389 else
6390   { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6392 fi
6393
6394
6395   test -n "$LEX" && break
6396 done
6397 test -n "$LEX" || LEX=":"
6398
6399 if test -z "$LEXLIB"
6400 then
6401   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6402 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6403 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   ac_check_lib_save_LIBS=$LIBS
6407 LIBS="-lfl  $LIBS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414
6415 /* Override any GCC internal prototype to avoid an error.
6416    Use char because int might match the return type of a GCC
6417    builtin and then its argument prototype would still apply.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 char yywrap ();
6422 int
6423 main ()
6424 {
6425 return yywrap ();
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (ac_try="$ac_link"
6432 case "(($ac_try" in
6433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434   *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437   (eval "$ac_link") 2>conftest.er1
6438   ac_status=$?
6439   grep -v '^ *+' conftest.er1 >conftest.err
6440   rm -f conftest.er1
6441   cat conftest.err >&5
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445   { (case "(($ac_try" in
6446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447   *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450   (eval "$ac_try") 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest$ac_exeext'
6455   { (case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_try") 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; }; then
6464   ac_cv_lib_fl_yywrap=yes
6465 else
6466   echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469         ac_cv_lib_fl_yywrap=no
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext \
6473       conftest$ac_exeext conftest.$ac_ext
6474 LIBS=$ac_check_lib_save_LIBS
6475 fi
6476 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6477 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6478 if test $ac_cv_lib_fl_yywrap = yes; then
6479   LEXLIB="-lfl"
6480 else
6481   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6482 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6483 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   ac_check_lib_save_LIBS=$LIBS
6487 LIBS="-ll  $LIBS"
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494
6495 /* Override any GCC internal prototype to avoid an error.
6496    Use char because int might match the return type of a GCC
6497    builtin and then its argument prototype would still apply.  */
6498 #ifdef __cplusplus
6499 extern "C"
6500 #endif
6501 char yywrap ();
6502 int
6503 main ()
6504 {
6505 return yywrap ();
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_link") 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525   { (case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530   (eval "$ac_try") 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_try") 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   ac_cv_lib_l_yywrap=yes
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549         ac_cv_lib_l_yywrap=no
6550 fi
6551
6552 rm -f core conftest.err conftest.$ac_objext \
6553       conftest$ac_exeext conftest.$ac_ext
6554 LIBS=$ac_check_lib_save_LIBS
6555 fi
6556 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6557 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6558 if test $ac_cv_lib_l_yywrap = yes; then
6559   LEXLIB="-ll"
6560 fi
6561
6562 fi
6563
6564 fi
6565
6566 if test "x$LEX" != "x:"; then
6567   { echo "$as_me:$LINENO: checking lex output file root" >&5
6568 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_lex_root+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   # The minimal lex program is just a single line: %%.  But some broken lexes
6573 # (Solaris, I think it was) want two %% lines, so accommodate them.
6574 cat >conftest.l <<_ACEOF
6575 %%
6576 %%
6577 _ACEOF
6578 { (ac_try="$LEX conftest.l"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$LEX conftest.l") 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }
6588 if test -f lex.yy.c; then
6589   ac_cv_prog_lex_root=lex.yy
6590 elif test -f lexyy.c; then
6591   ac_cv_prog_lex_root=lexyy
6592 else
6593   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6594 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6595    { (exit 1); exit 1; }; }
6596 fi
6597 fi
6598 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6599 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6600 rm -f conftest.l
6601 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6602
6603 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6604 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6605 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   # POSIX says lex can declare yytext either as a pointer or an array; the
6609 # default is implementation-dependent. Figure out which it is, since
6610 # not all implementations provide the %pointer and %array declarations.
6611 ac_cv_prog_lex_yytext_pointer=no
6612 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6613 ac_save_LIBS=$LIBS
6614 LIBS="$LIBS $LEXLIB"
6615 cat >conftest.$ac_ext <<_ACEOF
6616 `cat $LEX_OUTPUT_ROOT.c`
6617 _ACEOF
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6620 case "(($ac_try" in
6621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622   *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625   (eval "$ac_link") 2>conftest.er1
6626   ac_status=$?
6627   grep -v '^ *+' conftest.er1 >conftest.err
6628   rm -f conftest.er1
6629   cat conftest.err >&5
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } &&
6632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633   { (case "(($ac_try" in
6634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635   *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638   (eval "$ac_try") 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest$ac_exeext'
6643   { (case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648   (eval "$ac_try") 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); }; }; then
6652   ac_cv_prog_lex_yytext_pointer=yes
6653 else
6654   echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657
6658 fi
6659
6660 rm -f core conftest.err conftest.$ac_objext \
6661       conftest$ac_exeext conftest.$ac_ext
6662 LIBS=$ac_save_LIBS
6663 rm -f "${LEX_OUTPUT_ROOT}.c"
6664
6665 fi
6666 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6667 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6668 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6669
6670 cat >>confdefs.h <<\_ACEOF
6671 #define YYTEXT_POINTER 1
6672 _ACEOF
6673
6674 fi
6675
6676 fi
6677
6678 fi
6679 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6680 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6681 if test "$LEX" != "flex"; then
6682   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6683 echo "$as_me: error: flex not found but required" >&2;}
6684    { (exit 1); exit 1; }; }
6685 else
6686   FLEX=flex
6687
6688 fi
6689
6690 { echo "$as_me:$LINENO: checking " >&5
6691 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6692 if test "${llvm_cv_has_bison+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   for ac_prog in 'bison -y' byacc
6696 do
6697   # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_prog_YACC+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   if test -n "$YACC"; then
6705   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_prog_YACC="$ac_prog"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 YACC=$ac_cv_prog_YACC
6725 if test -n "$YACC"; then
6726   { echo "$as_me:$LINENO: result: $YACC" >&5
6727 echo "${ECHO_T}$YACC" >&6; }
6728 else
6729   { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6731 fi
6732
6733
6734   test -n "$YACC" && break
6735 done
6736 test -n "$YACC" || YACC="yacc"
6737
6738 fi
6739 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6740 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6741 if test "$YACC" != "bison -y"; then
6742
6743   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6744 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6745 else
6746   BISON=bison
6747
6748 fi
6749
6750 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6751 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6752 if test "${lt_cv_path_NM+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   if test -n "$NM"; then
6756   # Let the user override the test.
6757   lt_cv_path_NM="$NM"
6758 else
6759   lt_nm_to_check="${ac_tool_prefix}nm"
6760   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6761     lt_nm_to_check="$lt_nm_to_check nm"
6762   fi
6763   for lt_tmp_nm in $lt_nm_to_check; do
6764     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6765     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6766       IFS="$lt_save_ifs"
6767       test -z "$ac_dir" && ac_dir=.
6768       tmp_nm="$ac_dir/$lt_tmp_nm"
6769       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6770         # Check to see if the nm accepts a BSD-compat flag.
6771         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6772         #   nm: unknown option "B" ignored
6773         # Tru64's nm complains that /dev/null is an invalid object file
6774         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6775         */dev/null* | *'Invalid file or object type'*)
6776           lt_cv_path_NM="$tmp_nm -B"
6777           break
6778           ;;
6779         *)
6780           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6781           */dev/null*)
6782             lt_cv_path_NM="$tmp_nm -p"
6783             break
6784             ;;
6785           *)
6786             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6787             continue # so that we can try to find one that supports BSD flags
6788             ;;
6789           esac
6790           ;;
6791         esac
6792       fi
6793     done
6794     IFS="$lt_save_ifs"
6795   done
6796   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6797 fi
6798 fi
6799 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6800 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6801 NM="$lt_cv_path_NM"
6802
6803
6804
6805 { echo "$as_me:$LINENO: checking for GNU make" >&5
6806 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6807 if test "${llvm_cv_gnu_make_command+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   llvm_cv_gnu_make_command=''
6811  for a in "$MAKE" make gmake gnumake ; do
6812   if test -z "$a" ; then continue ; fi ;
6813   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6814   then
6815    llvm_cv_gnu_make_command=$a ;
6816    break;
6817   fi
6818  done
6819 fi
6820 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6821 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6822  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6823    ifGNUmake='' ;
6824  else
6825    ifGNUmake='#' ;
6826    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6827 echo "${ECHO_T}\"Not found\"" >&6; };
6828  fi
6829
6830
6831 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6832 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6833 LN_S=$as_ln_s
6834 if test "$LN_S" = "ln -s"; then
6835   { echo "$as_me:$LINENO: result: yes" >&5
6836 echo "${ECHO_T}yes" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6839 echo "${ECHO_T}no, using $LN_S" >&6; }
6840 fi
6841
6842 # Extract the first word of "cmp", so it can be a program name with args.
6843 set dummy cmp; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_CMP+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   case $CMP in
6850   [\\/]* | ?:[\\/]*)
6851   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6852   ;;
6853   *)
6854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6870   ;;
6871 esac
6872 fi
6873 CMP=$ac_cv_path_CMP
6874 if test -n "$CMP"; then
6875   { echo "$as_me:$LINENO: result: $CMP" >&5
6876 echo "${ECHO_T}$CMP" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6881
6882
6883 # Extract the first word of "cp", so it can be a program name with args.
6884 set dummy cp; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_CP+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   case $CP in
6891   [\\/]* | ?:[\\/]*)
6892   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6893   ;;
6894   *)
6895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900   for ac_exec_ext in '' $ac_executable_extensions; do
6901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6911   ;;
6912 esac
6913 fi
6914 CP=$ac_cv_path_CP
6915 if test -n "$CP"; then
6916   { echo "$as_me:$LINENO: result: $CP" >&5
6917 echo "${ECHO_T}$CP" >&6; }
6918 else
6919   { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6921 fi
6922
6923
6924 # Extract the first word of "date", so it can be a program name with args.
6925 set dummy date; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_DATE+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   case $DATE in
6932   [\\/]* | ?:[\\/]*)
6933   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6934   ;;
6935   *)
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6952   ;;
6953 esac
6954 fi
6955 DATE=$ac_cv_path_DATE
6956 if test -n "$DATE"; then
6957   { echo "$as_me:$LINENO: result: $DATE" >&5
6958 echo "${ECHO_T}$DATE" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964
6965 # Extract the first word of "find", so it can be a program name with args.
6966 set dummy find; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_FIND+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   case $FIND in
6973   [\\/]* | ?:[\\/]*)
6974   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6975   ;;
6976   *)
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6993   ;;
6994 esac
6995 fi
6996 FIND=$ac_cv_path_FIND
6997 if test -n "$FIND"; then
6998   { echo "$as_me:$LINENO: result: $FIND" >&5
6999 echo "${ECHO_T}$FIND" >&6; }
7000 else
7001   { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005
7006 # Extract the first word of "grep", so it can be a program name with args.
7007 set dummy grep; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_GREP+set}" = set; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   case $GREP in
7014   [\\/]* | ?:[\\/]*)
7015   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7016   ;;
7017   *)
7018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021   IFS=$as_save_IFS
7022   test -z "$as_dir" && as_dir=.
7023   for ac_exec_ext in '' $ac_executable_extensions; do
7024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027     break 2
7028   fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7034   ;;
7035 esac
7036 fi
7037 GREP=$ac_cv_path_GREP
7038 if test -n "$GREP"; then
7039   { echo "$as_me:$LINENO: result: $GREP" >&5
7040 echo "${ECHO_T}$GREP" >&6; }
7041 else
7042   { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7044 fi
7045
7046
7047 # Extract the first word of "mkdir", so it can be a program name with args.
7048 set dummy mkdir; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_MKDIR+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   case $MKDIR in
7055   [\\/]* | ?:[\\/]*)
7056   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7057   ;;
7058   *)
7059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7075   ;;
7076 esac
7077 fi
7078 MKDIR=$ac_cv_path_MKDIR
7079 if test -n "$MKDIR"; then
7080   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7081 echo "${ECHO_T}$MKDIR" >&6; }
7082 else
7083   { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7085 fi
7086
7087
7088 # Extract the first word of "mv", so it can be a program name with args.
7089 set dummy mv; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_MV+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   case $MV in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7116   ;;
7117 esac
7118 fi
7119 MV=$ac_cv_path_MV
7120 if test -n "$MV"; then
7121   { echo "$as_me:$LINENO: result: $MV" >&5
7122 echo "${ECHO_T}$MV" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128
7129 if test -n "$ac_tool_prefix"; then
7130   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_prog_RANLIB+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   if test -n "$RANLIB"; then
7138   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145   for ac_exec_ext in '' $ac_executable_extensions; do
7146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7147     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 RANLIB=$ac_cv_prog_RANLIB
7158 if test -n "$RANLIB"; then
7159   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7160 echo "${ECHO_T}$RANLIB" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_RANLIB"; then
7169   ac_ct_RANLIB=$RANLIB
7170   # Extract the first word of "ranlib", so it can be a program name with args.
7171 set dummy ranlib; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_RANLIB"; then
7178   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7187     ac_cv_prog_ac_ct_RANLIB="ranlib"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198 if test -n "$ac_ct_RANLIB"; then
7199   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7201 else
7202   { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7204 fi
7205
7206   if test "x$ac_ct_RANLIB" = x; then
7207     RANLIB=":"
7208   else
7209     case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet.  If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&5
7214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215 whose name does not start with the host triplet.  If you think this
7216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219     RANLIB=$ac_ct_RANLIB
7220   fi
7221 else
7222   RANLIB="$ac_cv_prog_RANLIB"
7223 fi
7224
7225 # Extract the first word of "rm", so it can be a program name with args.
7226 set dummy rm; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_RM+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $RM in
7233   [\\/]* | ?:[\\/]*)
7234   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7235   ;;
7236   *)
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7253   ;;
7254 esac
7255 fi
7256 RM=$ac_cv_path_RM
7257 if test -n "$RM"; then
7258   { echo "$as_me:$LINENO: result: $RM" >&5
7259 echo "${ECHO_T}$RM" >&6; }
7260 else
7261   { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7263 fi
7264
7265
7266 # Extract the first word of "sed", so it can be a program name with args.
7267 set dummy sed; ac_word=$2
7268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270 if test "${ac_cv_path_SED+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   case $SED in
7274   [\\/]* | ?:[\\/]*)
7275   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7276   ;;
7277   *)
7278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7294   ;;
7295 esac
7296 fi
7297 SED=$ac_cv_path_SED
7298 if test -n "$SED"; then
7299   { echo "$as_me:$LINENO: result: $SED" >&5
7300 echo "${ECHO_T}$SED" >&6; }
7301 else
7302   { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7304 fi
7305
7306
7307 # Extract the first word of "tar", so it can be a program name with args.
7308 set dummy tar; ac_word=$2
7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311 if test "${ac_cv_path_TAR+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   case $TAR in
7315   [\\/]* | ?:[\\/]*)
7316   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7317   ;;
7318   *)
7319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324   for ac_exec_ext in '' $ac_executable_extensions; do
7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7335   ;;
7336 esac
7337 fi
7338 TAR=$ac_cv_path_TAR
7339 if test -n "$TAR"; then
7340   { echo "$as_me:$LINENO: result: $TAR" >&5
7341 echo "${ECHO_T}$TAR" >&6; }
7342 else
7343   { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 fi
7346
7347
7348 # Extract the first word of "pwd", so it can be a program name with args.
7349 set dummy pwd; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_BINPWD+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   case $BINPWD in
7356   [\\/]* | ?:[\\/]*)
7357   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7358   ;;
7359   *)
7360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7376   ;;
7377 esac
7378 fi
7379 BINPWD=$ac_cv_path_BINPWD
7380 if test -n "$BINPWD"; then
7381   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382 echo "${ECHO_T}$BINPWD" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389
7390 # Extract the first word of "Graphviz", so it can be a program name with args.
7391 set dummy Graphviz; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $GRAPHVIZ in
7398   [\\/]* | ?:[\\/]*)
7399   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7400   ;;
7401   *)
7402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7418   ;;
7419 esac
7420 fi
7421 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422 if test -n "$GRAPHVIZ"; then
7423   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_GRAPHVIZ 1
7435 _ACEOF
7436
7437     if test "$llvm_cv_os_type" = "MingW" ; then
7438     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439   fi
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7443 _ACEOF
7444
7445 fi
7446 # Extract the first word of "dot", so it can be a program name with args.
7447 set dummy dot; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_DOT+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $DOT in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7474   ;;
7475 esac
7476 fi
7477 DOT=$ac_cv_path_DOT
7478 if test -n "$DOT"; then
7479   { echo "$as_me:$LINENO: result: $DOT" >&5
7480 echo "${ECHO_T}$DOT" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 if test "$DOT" != "echo dot" ; then
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_DOT 1
7491 _ACEOF
7492
7493     if test "$llvm_cv_os_type" = "MingW" ; then
7494     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495   fi
7496
7497 cat >>confdefs.h <<_ACEOF
7498 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7499 _ACEOF
7500
7501 fi
7502 for ac_prog in gv gsview32
7503 do
7504   # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GV+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   case $GV in
7512   [\\/]* | ?:[\\/]*)
7513   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7514   ;;
7515   *)
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531   ;;
7532 esac
7533 fi
7534 GV=$ac_cv_path_GV
7535 if test -n "$GV"; then
7536   { echo "$as_me:$LINENO: result: $GV" >&5
7537 echo "${ECHO_T}$GV" >&6; }
7538 else
7539   { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543
7544   test -n "$GV" && break
7545 done
7546 test -n "$GV" || GV="echo gv"
7547
7548 if test "$GV" != "echo gv" ; then
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_GV 1
7552 _ACEOF
7553
7554     if test "$llvm_cv_os_type" = "MingW" ; then
7555     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556   fi
7557
7558 cat >>confdefs.h <<_ACEOF
7559 #define LLVM_PATH_GV "$GV${EXEEXT}"
7560 _ACEOF
7561
7562 fi
7563 # Extract the first word of "dotty", so it can be a program name with args.
7564 set dummy dotty; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_DOTTY+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   case $DOTTY in
7571   [\\/]* | ?:[\\/]*)
7572   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7573   ;;
7574   *)
7575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7591   ;;
7592 esac
7593 fi
7594 DOTTY=$ac_cv_path_DOTTY
7595 if test -n "$DOTTY"; then
7596   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7597 echo "${ECHO_T}$DOTTY" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604 if test "$DOTTY" != "echo dotty" ; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_DOTTY 1
7608 _ACEOF
7609
7610     if test "$llvm_cv_os_type" = "MingW" ; then
7611     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612   fi
7613
7614 cat >>confdefs.h <<_ACEOF
7615 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7616 _ACEOF
7617
7618 fi
7619
7620
7621 # Extract the first word of "perl", so it can be a program name with args.
7622 set dummy perl; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_PERL+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628   case $PERL in
7629   [\\/]* | ?:[\\/]*)
7630   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7631   ;;
7632   *)
7633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638   for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7649   ;;
7650 esac
7651 fi
7652 PERL=$ac_cv_path_PERL
7653 if test -n "$PERL"; then
7654   { echo "$as_me:$LINENO: result: $PERL" >&5
7655 echo "${ECHO_T}$PERL" >&6; }
7656 else
7657   { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7659 fi
7660
7661
7662 if test "$PERL" != "none"; then
7663   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7664 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7665   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7666     { echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6; }
7668   else
7669     PERL=none
7670     { echo "$as_me:$LINENO: result: not found" >&5
7671 echo "${ECHO_T}not found" >&6; }
7672   fi
7673 fi
7674
7675
7676 if test x"$PERL" = xnone; then
7677    HAVE_PERL=0
7678
7679    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7680 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7681    { (exit 1); exit 1; }; }
7682 else
7683    HAVE_PERL=1
7684
7685 fi
7686
7687 # Find a good install program.  We prefer a C program (faster),
7688 # so one script is as good as another.  But avoid the broken or
7689 # incompatible versions:
7690 # SysV /etc/install, /usr/sbin/install
7691 # SunOS /usr/etc/install
7692 # IRIX /sbin/install
7693 # AIX /bin/install
7694 # AmigaOS /C/install, which installs bootblocks on floppy discs
7695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7698 # OS/2's system install, which has a completely different semantic
7699 # ./install, which can be erroneously created by make from ./install.sh.
7700 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7702 if test -z "$INSTALL"; then
7703 if test "${ac_cv_path_install+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709   IFS=$as_save_IFS
7710   test -z "$as_dir" && as_dir=.
7711   # Account for people who put trailing slashes in PATH elements.
7712 case $as_dir/ in
7713   ./ | .// | /cC/* | \
7714   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7715   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7716   /usr/ucb/* ) ;;
7717   *)
7718     # OSF1 and SCO ODT 3.0 have their own names for install.
7719     # Don't use installbsd from OSF since it installs stuff as root
7720     # by default.
7721     for ac_prog in ginstall scoinst install; do
7722       for ac_exec_ext in '' $ac_executable_extensions; do
7723         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7724           if test $ac_prog = install &&
7725             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7726             # AIX install.  It has an incompatible calling convention.
7727             :
7728           elif test $ac_prog = install &&
7729             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7730             # program-specific install script used by HP pwplus--don't use.
7731             :
7732           else
7733             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7734             break 3
7735           fi
7736         fi
7737       done
7738     done
7739     ;;
7740 esac
7741 done
7742 IFS=$as_save_IFS
7743
7744
7745 fi
7746   if test "${ac_cv_path_install+set}" = set; then
7747     INSTALL=$ac_cv_path_install
7748   else
7749     # As a last resort, use the slow shell script.  Don't cache a
7750     # value for INSTALL within a source directory, because that will
7751     # break other packages using the cache if that directory is
7752     # removed, or if the value is a relative name.
7753     INSTALL=$ac_install_sh
7754   fi
7755 fi
7756 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7757 echo "${ECHO_T}$INSTALL" >&6; }
7758
7759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7760 # It thinks the first close brace ends the variable substitution.
7761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7762
7763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7764
7765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7766
7767
7768 # Extract the first word of "bzip2", so it can be a program name with args.
7769 set dummy bzip2; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_BZIP2+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   case $BZIP2 in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795   ;;
7796 esac
7797 fi
7798 BZIP2=$ac_cv_path_BZIP2
7799 if test -n "$BZIP2"; then
7800   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7801 echo "${ECHO_T}$BZIP2" >&6; }
7802 else
7803   { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7805 fi
7806
7807
7808 # Extract the first word of "doxygen", so it can be a program name with args.
7809 set dummy doxygen; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   case $DOXYGEN in
7816   [\\/]* | ?:[\\/]*)
7817   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7818   ;;
7819   *)
7820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825   for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835   ;;
7836 esac
7837 fi
7838 DOXYGEN=$ac_cv_path_DOXYGEN
7839 if test -n "$DOXYGEN"; then
7840   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7841 echo "${ECHO_T}$DOXYGEN" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7845 fi
7846
7847
7848 # Extract the first word of "groff", so it can be a program name with args.
7849 set dummy groff; ac_word=$2
7850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852 if test "${ac_cv_path_GROFF+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   case $GROFF in
7856   [\\/]* | ?:[\\/]*)
7857   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7858   ;;
7859   *)
7860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863   IFS=$as_save_IFS
7864   test -z "$as_dir" && as_dir=.
7865   for ac_exec_ext in '' $ac_executable_extensions; do
7866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869     break 2
7870   fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875   ;;
7876 esac
7877 fi
7878 GROFF=$ac_cv_path_GROFF
7879 if test -n "$GROFF"; then
7880   { echo "$as_me:$LINENO: result: $GROFF" >&5
7881 echo "${ECHO_T}$GROFF" >&6; }
7882 else
7883   { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7885 fi
7886
7887
7888 # Extract the first word of "gzip", so it can be a program name with args.
7889 set dummy gzip; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_GZIP+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   case $GZIP in
7896   [\\/]* | ?:[\\/]*)
7897   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7898   ;;
7899   *)
7900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903   IFS=$as_save_IFS
7904   test -z "$as_dir" && as_dir=.
7905   for ac_exec_ext in '' $ac_executable_extensions; do
7906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909     break 2
7910   fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915   ;;
7916 esac
7917 fi
7918 GZIP=$ac_cv_path_GZIP
7919 if test -n "$GZIP"; then
7920   { echo "$as_me:$LINENO: result: $GZIP" >&5
7921 echo "${ECHO_T}$GZIP" >&6; }
7922 else
7923   { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7925 fi
7926
7927
7928 # Extract the first word of "pod2html", so it can be a program name with args.
7929 set dummy pod2html; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_POD2HTML+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   case $POD2HTML in
7936   [\\/]* | ?:[\\/]*)
7937   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7938   ;;
7939   *)
7940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945   for ac_exec_ext in '' $ac_executable_extensions; do
7946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955   ;;
7956 esac
7957 fi
7958 POD2HTML=$ac_cv_path_POD2HTML
7959 if test -n "$POD2HTML"; then
7960   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7961 echo "${ECHO_T}$POD2HTML" >&6; }
7962 else
7963   { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7965 fi
7966
7967
7968 # Extract the first word of "pod2man", so it can be a program name with args.
7969 set dummy pod2man; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_POD2MAN+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   case $POD2MAN in
7976   [\\/]* | ?:[\\/]*)
7977   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7978   ;;
7979   *)
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985   for ac_exec_ext in '' $ac_executable_extensions; do
7986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995   ;;
7996 esac
7997 fi
7998 POD2MAN=$ac_cv_path_POD2MAN
7999 if test -n "$POD2MAN"; then
8000   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8001 echo "${ECHO_T}$POD2MAN" >&6; }
8002 else
8003   { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8005 fi
8006
8007
8008 # Extract the first word of "runtest", so it can be a program name with args.
8009 set dummy runtest; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_RUNTEST+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   case $RUNTEST in
8016   [\\/]* | ?:[\\/]*)
8017   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8018   ;;
8019   *)
8020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023   IFS=$as_save_IFS
8024   test -z "$as_dir" && as_dir=.
8025   for ac_exec_ext in '' $ac_executable_extensions; do
8026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029     break 2
8030   fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035   ;;
8036 esac
8037 fi
8038 RUNTEST=$ac_cv_path_RUNTEST
8039 if test -n "$RUNTEST"; then
8040   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8041 echo "${ECHO_T}$RUNTEST" >&6; }
8042 else
8043   { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8045 fi
8046
8047
8048
8049 no_itcl=true
8050 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8051 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8052
8053 # Check whether --with-tclinclude was given.
8054 if test "${with_tclinclude+set}" = set; then
8055   withval=$with_tclinclude; with_tclinclude=${withval}
8056 else
8057   with_tclinclude=''
8058 fi
8059
8060 if test "${ac_cv_path_tclsh+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063
8064 if test x"${with_tclinclude}" != x ; then
8065   if test -f ${with_tclinclude}/tclsh ; then
8066     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8067   elif test -f ${with_tclinclude}/src/tclsh ; then
8068     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8069   else
8070     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8071 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8072    { (exit 1); exit 1; }; }
8073   fi
8074 fi
8075
8076 if test x"${ac_cv_path_tclsh}" = x ; then
8077   { echo "$as_me:$LINENO: result: none" >&5
8078 echo "${ECHO_T}none" >&6; }
8079   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
8080 do
8081   # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8085 if test "${ac_cv_path_TCLSH+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   case $TCLSH in
8089   [\\/]* | ?:[\\/]*)
8090   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8091   ;;
8092   *)
8093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098   for ac_exec_ext in '' $ac_executable_extensions; do
8099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8100     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102     break 2
8103   fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108   ;;
8109 esac
8110 fi
8111 TCLSH=$ac_cv_path_TCLSH
8112 if test -n "$TCLSH"; then
8113   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8114 echo "${ECHO_T}$TCLSH" >&6; }
8115 else
8116   { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8118 fi
8119
8120
8121   test -n "$TCLSH" && break
8122 done
8123
8124   if test x"${TCLSH}" = x ; then
8125     ac_cv_path_tclsh='';
8126   else
8127     ac_cv_path_tclsh="${TCLSH}";
8128   fi
8129 else
8130   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8131 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8132   TCLSH="${ac_cv_path_tclsh}"
8133
8134 fi
8135
8136 fi
8137
8138 # Extract the first word of "zip", so it can be a program name with args.
8139 set dummy zip; ac_word=$2
8140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142 if test "${ac_cv_path_ZIP+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   case $ZIP in
8146   [\\/]* | ?:[\\/]*)
8147   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8148   ;;
8149   *)
8150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155   for ac_exec_ext in '' $ac_executable_extensions; do
8156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165   ;;
8166 esac
8167 fi
8168 ZIP=$ac_cv_path_ZIP
8169 if test -n "$ZIP"; then
8170   { echo "$as_me:$LINENO: result: $ZIP" >&5
8171 echo "${ECHO_T}$ZIP" >&6; }
8172 else
8173   { echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6; }
8175 fi
8176
8177
8178 for ac_prog in ocamlc
8179 do
8180   # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184 if test "${ac_cv_path_OCAMLC+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   case $OCAMLC in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197   for ac_exec_ext in '' $ac_executable_extensions; do
8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8199     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207   ;;
8208 esac
8209 fi
8210 OCAMLC=$ac_cv_path_OCAMLC
8211 if test -n "$OCAMLC"; then
8212   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8213 echo "${ECHO_T}$OCAMLC" >&6; }
8214 else
8215   { echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6; }
8217 fi
8218
8219
8220   test -n "$OCAMLC" && break
8221 done
8222
8223 for ac_prog in ocamlopt
8224 do
8225   # Extract the first word of "$ac_prog", so it can be a program name with args.
8226 set dummy $ac_prog; ac_word=$2
8227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   case $OCAMLOPT in
8233   [\\/]* | ?:[\\/]*)
8234   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8235   ;;
8236   *)
8237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242   for ac_exec_ext in '' $ac_executable_extensions; do
8243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8244     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249 done
8250 IFS=$as_save_IFS
8251
8252   ;;
8253 esac
8254 fi
8255 OCAMLOPT=$ac_cv_path_OCAMLOPT
8256 if test -n "$OCAMLOPT"; then
8257   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8258 echo "${ECHO_T}$OCAMLOPT" >&6; }
8259 else
8260   { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8262 fi
8263
8264
8265   test -n "$OCAMLOPT" && break
8266 done
8267
8268 for ac_prog in ocamldep
8269 do
8270   # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   case $OCAMLDEP in
8278   [\\/]* | ?:[\\/]*)
8279   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8280   ;;
8281   *)
8282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285   IFS=$as_save_IFS
8286   test -z "$as_dir" && as_dir=.
8287   for ac_exec_ext in '' $ac_executable_extensions; do
8288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291     break 2
8292   fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297   ;;
8298 esac
8299 fi
8300 OCAMLDEP=$ac_cv_path_OCAMLDEP
8301 if test -n "$OCAMLDEP"; then
8302   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8303 echo "${ECHO_T}$OCAMLDEP" >&6; }
8304 else
8305   { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8307 fi
8308
8309
8310   test -n "$OCAMLDEP" && break
8311 done
8312
8313 for ac_prog in ocamldoc
8314 do
8315   # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8319 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   case $OCAMLDOC in
8323   [\\/]* | ?:[\\/]*)
8324   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8325   ;;
8326   *)
8327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332   for ac_exec_ext in '' $ac_executable_extensions; do
8333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8334     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339 done
8340 IFS=$as_save_IFS
8341
8342   ;;
8343 esac
8344 fi
8345 OCAMLDOC=$ac_cv_path_OCAMLDOC
8346 if test -n "$OCAMLDOC"; then
8347   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8348 echo "${ECHO_T}$OCAMLDOC" >&6; }
8349 else
8350   { echo "$as_me:$LINENO: result: no" >&5
8351 echo "${ECHO_T}no" >&6; }
8352 fi
8353
8354
8355   test -n "$OCAMLDOC" && break
8356 done
8357
8358 for ac_prog in gas as
8359 do
8360   # Extract the first word of "$ac_prog", so it can be a program name with args.
8361 set dummy $ac_prog; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_path_GAS+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   case $GAS in
8368   [\\/]* | ?:[\\/]*)
8369   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8370   ;;
8371   *)
8372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377   for ac_exec_ext in '' $ac_executable_extensions; do
8378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8379     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387   ;;
8388 esac
8389 fi
8390 GAS=$ac_cv_path_GAS
8391 if test -n "$GAS"; then
8392   { echo "$as_me:$LINENO: result: $GAS" >&5
8393 echo "${ECHO_T}$GAS" >&6; }
8394 else
8395   { echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6; }
8397 fi
8398
8399
8400   test -n "$GAS" && break
8401 done
8402
8403
8404 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8405 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8406 if test "${llvm_cv_link_use_r+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409    ac_ext=c
8410 ac_cpp='$CPP $CPPFLAGS'
8411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414
8415   oldcflags="$CFLAGS"
8416   CFLAGS="$CFLAGS -Wl,-R."
8417   cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 int
8425 main ()
8426 {
8427 int main() { return 0; }
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (ac_try="$ac_link"
8434 case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_link") 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447   { (case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_try") 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; } &&
8456          { ac_try='test -s conftest$ac_exeext'
8457   { (case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_try") 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   llvm_cv_link_use_r=yes
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471         llvm_cv_link_use_r=no
8472 fi
8473
8474 rm -f core conftest.err conftest.$ac_objext \
8475       conftest$ac_exeext conftest.$ac_ext
8476   CFLAGS="$oldcflags"
8477   ac_ext=c
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483
8484 fi
8485 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8486 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8487 if test "$llvm_cv_link_use_r" = yes ; then
8488
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_LINK_R 1
8491 _ACEOF
8492
8493   fi
8494
8495
8496
8497
8498 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8499 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_const+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509
8510 int
8511 main ()
8512 {
8513 /* FIXME: Include the comments suggested by Paul. */
8514 #ifndef __cplusplus
8515   /* Ultrix mips cc rejects this.  */
8516   typedef int charset[2];
8517   const charset x;
8518   /* SunOS 4.1.1 cc rejects this.  */
8519   char const *const *ccp;
8520   char **p;
8521   /* NEC SVR4.0.2 mips cc rejects this.  */
8522   struct point {int x, y;};
8523   static struct point const zero = {0,0};
8524   /* AIX XL C 1.02.0.0 rejects this.
8525      It does not let you subtract one const X* pointer from another in
8526      an arm of an if-expression whose if-part is not a constant
8527      expression */
8528   const char *g = "string";
8529   ccp = &g + (g ? g-g : 0);
8530   /* HPUX 7.0 cc rejects these. */
8531   ++ccp;
8532   p = (char**) ccp;
8533   ccp = (char const *const *) p;
8534   { /* SCO 3.2v4 cc rejects this.  */
8535     char *t;
8536     char const *s = 0 ? (char *) 0 : (char const *) 0;
8537
8538     *t++ = 0;
8539     if (s) return 0;
8540   }
8541   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8542     int x[] = {25, 17};
8543     const int *foo = &x[0];
8544     ++foo;
8545   }
8546   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8547     typedef const int *iptr;
8548     iptr p = 0;
8549     ++p;
8550   }
8551   { /* AIX XL C 1.02.0.0 rejects this saying
8552        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8553     struct s { int j; const int *ap[3]; };
8554     struct s *b; b->j = 5;
8555   }
8556   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8557     const int foo = 10;
8558     if (!foo) return 0;
8559   }
8560   return !x[0] && !zero.x;
8561 #endif
8562
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582   { (case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_try") 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest.$ac_objext'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_c_const=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606         ac_cv_c_const=no
8607 fi
8608
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8612 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8613 if test $ac_cv_c_const = no; then
8614
8615 cat >>confdefs.h <<\_ACEOF
8616 #define const
8617 _ACEOF
8618
8619 fi
8620
8621
8622
8623
8624
8625
8626 ac_header_dirent=no
8627 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8628   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8629 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8630 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 #include <sys/types.h>
8641 #include <$ac_hdr>
8642
8643 int
8644 main ()
8645 {
8646 if ((DIR *) 0)
8647 return 0;
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659   (eval "$ac_compile") 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667   { (case "(($ac_try" in
8668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669   *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672   (eval "$ac_try") 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); }; } &&
8676          { ac_try='test -s conftest.$ac_objext'
8677   { (case "(($ac_try" in
8678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679   *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682   (eval "$ac_try") 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   eval "$as_ac_Header=yes"
8687 else
8688   echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691         eval "$as_ac_Header=no"
8692 fi
8693
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 ac_res=`eval echo '${'$as_ac_Header'}'`
8697                { echo "$as_me:$LINENO: result: $ac_res" >&5
8698 echo "${ECHO_T}$ac_res" >&6; }
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700   cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8702 _ACEOF
8703
8704 ac_header_dirent=$ac_hdr; break
8705 fi
8706
8707 done
8708 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8709 if test $ac_header_dirent = dirent.h; then
8710   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8711 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8712 if test "${ac_cv_search_opendir+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   ac_func_search_save_LIBS=$LIBS
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722
8723 /* Override any GCC internal prototype to avoid an error.
8724    Use char because int might match the return type of a GCC
8725    builtin and then its argument prototype would still apply.  */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 char opendir ();
8730 int
8731 main ()
8732 {
8733 return opendir ();
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 for ac_lib in '' dir; do
8739   if test -z "$ac_lib"; then
8740     ac_res="none required"
8741   else
8742     ac_res=-l$ac_lib
8743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8744   fi
8745   rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (ac_try="$ac_link"
8747 case "(($ac_try" in
8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749   *) ac_try_echo=$ac_try;;
8750 esac
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752   (eval "$ac_link") 2>conftest.er1
8753   ac_status=$?
8754   grep -v '^ *+' conftest.er1 >conftest.err
8755   rm -f conftest.er1
8756   cat conftest.err >&5
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } &&
8759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760   { (case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_try") 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; } &&
8769          { ac_try='test -s conftest$ac_exeext'
8770   { (case "(($ac_try" in
8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772   *) ac_try_echo=$ac_try;;
8773 esac
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775   (eval "$ac_try") 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_search_opendir=$ac_res
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784
8785 fi
8786
8787 rm -f core conftest.err conftest.$ac_objext \
8788       conftest$ac_exeext
8789   if test "${ac_cv_search_opendir+set}" = set; then
8790   break
8791 fi
8792 done
8793 if test "${ac_cv_search_opendir+set}" = set; then
8794   :
8795 else
8796   ac_cv_search_opendir=no
8797 fi
8798 rm conftest.$ac_ext
8799 LIBS=$ac_func_search_save_LIBS
8800 fi
8801 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8802 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8803 ac_res=$ac_cv_search_opendir
8804 if test "$ac_res" != no; then
8805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806
8807 fi
8808
8809 else
8810   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8812 if test "${ac_cv_search_opendir+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   ac_func_search_save_LIBS=$LIBS
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822
8823 /* Override any GCC internal prototype to avoid an error.
8824    Use char because int might match the return type of a GCC
8825    builtin and then its argument prototype would still apply.  */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char opendir ();
8830 int
8831 main ()
8832 {
8833 return opendir ();
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 for ac_lib in '' x; do
8839   if test -z "$ac_lib"; then
8840     ac_res="none required"
8841   else
8842     ac_res=-l$ac_lib
8843     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8844   fi
8845   rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_link") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860   { (case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_try") 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; } &&
8869          { ac_try='test -s conftest$ac_exeext'
8870   { (case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875   (eval "$ac_try") 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   ac_cv_search_opendir=$ac_res
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext \
8888       conftest$ac_exeext
8889   if test "${ac_cv_search_opendir+set}" = set; then
8890   break
8891 fi
8892 done
8893 if test "${ac_cv_search_opendir+set}" = set; then
8894   :
8895 else
8896   ac_cv_search_opendir=no
8897 fi
8898 rm conftest.$ac_ext
8899 LIBS=$ac_func_search_save_LIBS
8900 fi
8901 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8902 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8903 ac_res=$ac_cv_search_opendir
8904 if test "$ac_res" != no; then
8905   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8906
8907 fi
8908
8909 fi
8910
8911
8912 for ac_header in dlfcn.h
8913 do
8914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8916   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 fi
8921 ac_res=`eval echo '${'$as_ac_Header'}'`
8922                { echo "$as_me:$LINENO: result: $ac_res" >&5
8923 echo "${ECHO_T}$ac_res" >&6; }
8924 else
8925   # Is the header compilable?
8926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 $ac_includes_default
8935 #include <$ac_header>
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8939 case "(($ac_try" in
8940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941   *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944   (eval "$ac_compile") 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952   { (case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957   (eval "$ac_try") 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest.$ac_objext'
8962   { (case "(($ac_try" in
8963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964   *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967   (eval "$ac_try") 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); }; }; then
8971   ac_header_compiler=yes
8972 else
8973   echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8975
8976         ac_header_compiler=no
8977 fi
8978
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981 echo "${ECHO_T}$ac_header_compiler" >&6; }
8982
8983 # Is the header present?
8984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992 #include <$ac_header>
8993 _ACEOF
8994 if { (ac_try="$ac_cpp conftest.$ac_ext"
8995 case "(($ac_try" in
8996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997   *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } >/dev/null; then
9007   if test -s conftest.err; then
9008     ac_cpp_err=$ac_c_preproc_warn_flag
9009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9010   else
9011     ac_cpp_err=
9012   fi
9013 else
9014   ac_cpp_err=yes
9015 fi
9016 if test -z "$ac_cpp_err"; then
9017   ac_header_preproc=yes
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022   ac_header_preproc=no
9023 fi
9024
9025 rm -f conftest.err conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9027 echo "${ECHO_T}$ac_header_preproc" >&6; }
9028
9029 # So?  What about this header?
9030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9031   yes:no: )
9032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9036     ac_header_preproc=yes
9037     ;;
9038   no:yes:* )
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051     ( cat <<\_ASBOX
9052 ## ----------------------------------- ##
9053 ## Report this to llvmbugs@cs.uiuc.edu ##
9054 ## ----------------------------------- ##
9055 _ASBOX
9056      ) | sed "s/^/$as_me: WARNING:     /" >&2
9057     ;;
9058 esac
9059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   eval "$as_ac_Header=\$ac_header_preproc"
9065 fi
9066 ac_res=`eval echo '${'$as_ac_Header'}'`
9067                { echo "$as_me:$LINENO: result: $ac_res" >&5
9068 echo "${ECHO_T}$ac_res" >&6; }
9069
9070 fi
9071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9072   cat >>confdefs.h <<_ACEOF
9073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074 _ACEOF
9075
9076 fi
9077
9078 done
9079
9080 # Check whether --enable-ltdl-install was given.
9081 if test "${enable_ltdl_install+set}" = set; then
9082   enableval=$enable_ltdl_install;
9083 fi
9084
9085
9086
9087
9088 if test x"${enable_ltdl_install-no}" != xno; then
9089   INSTALL_LTDL_TRUE=
9090   INSTALL_LTDL_FALSE='#'
9091 else
9092   INSTALL_LTDL_TRUE='#'
9093   INSTALL_LTDL_FALSE=
9094 fi
9095
9096
9097
9098 if test x"${enable_ltdl_convenience-no}" != xno; then
9099   CONVENIENCE_LTDL_TRUE=
9100   CONVENIENCE_LTDL_FALSE='#'
9101 else
9102   CONVENIENCE_LTDL_TRUE='#'
9103   CONVENIENCE_LTDL_FALSE=
9104 fi
9105
9106
9107 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9109 library_names_spec=
9110 libname_spec='lib$name'
9111 soname_spec=
9112 shrext_cmds=".so"
9113 postinstall_cmds=
9114 postuninstall_cmds=
9115 finish_cmds=
9116 finish_eval=
9117 shlibpath_var=
9118 shlibpath_overrides_runpath=unknown
9119 version_type=none
9120 dynamic_linker="$host_os ld.so"
9121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122 if test "$GCC" = yes; then
9123   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9124   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9125     # if the path contains ";" then we assume it to be the separator
9126     # otherwise default to the standard path separator (i.e. ":") - it is
9127     # assumed that no part of a normal pathname contains ";" but that should
9128     # okay in the real world where ";" in dirpaths is itself problematic.
9129     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130   else
9131     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9132   fi
9133 else
9134   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9135 fi
9136 need_lib_prefix=unknown
9137 hardcode_into_libs=no
9138
9139 # when you set need_version to no, make sure it does not cause -set_version
9140 # flags to be left without arguments
9141 need_version=unknown
9142
9143 case $host_os in
9144 aix3*)
9145   version_type=linux
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9147   shlibpath_var=LIBPATH
9148
9149   # AIX 3 has no versioning support, so we append a major version to the name.
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   ;;
9152
9153 aix4* | aix5*)
9154   version_type=linux
9155   need_lib_prefix=no
9156   need_version=no
9157   hardcode_into_libs=yes
9158   if test "$host_cpu" = ia64; then
9159     # AIX 5 supports IA64
9160     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9161     shlibpath_var=LD_LIBRARY_PATH
9162   else
9163     # With GCC up to 2.95.x, collect2 would create an import file
9164     # for dependence libraries.  The import file would start with
9165     # the line `#! .'.  This would cause the generated library to
9166     # depend on `.', always an invalid library.  This was fixed in
9167     # development snapshots of GCC prior to 3.0.
9168     case $host_os in
9169       aix4 | aix4.[01] | aix4.[01].*)
9170       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9171            echo ' yes '
9172            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9173         :
9174       else
9175         can_build_shared=no
9176       fi
9177       ;;
9178     esac
9179     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9180     # soname into executable. Probably we can add versioning support to
9181     # collect2, so additional links can be useful in future.
9182     if test "$aix_use_runtimelinking" = yes; then
9183       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9184       # instead of lib<name>.a to let people know that these are not
9185       # typical AIX shared libraries.
9186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187     else
9188       # We preserve .a as extension for shared libraries through AIX4.2
9189       # and later when we are not doing run time linking.
9190       library_names_spec='${libname}${release}.a $libname.a'
9191       soname_spec='${libname}${release}${shared_ext}$major'
9192     fi
9193     shlibpath_var=LIBPATH
9194   fi
9195   ;;
9196
9197 amigaos*)
9198   library_names_spec='$libname.ixlibrary $libname.a'
9199   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9200   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'
9201   ;;
9202
9203 beos*)
9204   library_names_spec='${libname}${shared_ext}'
9205   dynamic_linker="$host_os ld.so"
9206   shlibpath_var=LIBRARY_PATH
9207   ;;
9208
9209 bsdi[45]*)
9210   version_type=linux
9211   need_version=no
9212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213   soname_spec='${libname}${release}${shared_ext}$major'
9214   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9217   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9218   # the default ld.so.conf also contains /usr/contrib/lib and
9219   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9220   # libtool to hard-code these into programs
9221   ;;
9222
9223 cygwin* | mingw* | pw32*)
9224   version_type=windows
9225   shrext_cmds=".dll"
9226   need_version=no
9227   need_lib_prefix=no
9228
9229   case $GCC,$host_os in
9230   yes,cygwin* | yes,mingw* | yes,pw32*)
9231     library_names_spec='$libname.dll.a'
9232     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9233     postinstall_cmds='base_file=`basename \${file}`~
9234       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9235       dldir=$destdir/`dirname \$dlpath`~
9236       test -d \$dldir || mkdir -p \$dldir~
9237       $install_prog $dir/$dlname \$dldir/$dlname~
9238       chmod a+x \$dldir/$dlname'
9239     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9240       dlpath=$dir/\$dldll~
9241        $rm \$dlpath'
9242     shlibpath_overrides_runpath=yes
9243
9244     case $host_os in
9245     cygwin*)
9246       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9247       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9249       ;;
9250     mingw*)
9251       # MinGW DLLs use traditional 'lib' prefix
9252       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9254       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9255         # It is most probably a Windows format PATH printed by
9256         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9257         # path with ; separators, and with drive letters. We can handle the
9258         # drive letters (cygwin fileutils understands them), so leave them,
9259         # especially as we might pass files found there to a mingw objdump,
9260         # which wouldn't understand a cygwinified path. Ahh.
9261         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262       else
9263         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264       fi
9265       ;;
9266     pw32*)
9267       # pw32 DLLs use 'pw' prefix rather than 'lib'
9268       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9269       ;;
9270     esac
9271     ;;
9272
9273   *)
9274     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9275     ;;
9276   esac
9277   dynamic_linker='Win32 ld.exe'
9278   # FIXME: first we should search . and the directory the executable is in
9279   shlibpath_var=PATH
9280   ;;
9281
9282 darwin* | rhapsody*)
9283   dynamic_linker="$host_os dyld"
9284   version_type=darwin
9285   need_lib_prefix=no
9286   need_version=no
9287   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9288   soname_spec='${libname}${release}${major}$shared_ext'
9289   shlibpath_overrides_runpath=yes
9290   shlibpath_var=DYLD_LIBRARY_PATH
9291   shrext_cmds='.dylib'
9292   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9293   if test "$GCC" = yes; then
9294     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"`
9295   else
9296     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9297   fi
9298   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9299   ;;
9300
9301 dgux*)
9302   version_type=linux
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   ;;
9309
9310 freebsd1*)
9311   dynamic_linker=no
9312   ;;
9313
9314 kfreebsd*-gnu)
9315   version_type=linux
9316   need_lib_prefix=no
9317   need_version=no
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   shlibpath_var=LD_LIBRARY_PATH
9321   shlibpath_overrides_runpath=no
9322   hardcode_into_libs=yes
9323   dynamic_linker='GNU ld.so'
9324   ;;
9325
9326 freebsd* | dragonfly*)
9327   # DragonFly does not have aout.  When/if they implement a new
9328   # versioning mechanism, adjust this.
9329   if test -x /usr/bin/objformat; then
9330     objformat=`/usr/bin/objformat`
9331   else
9332     case $host_os in
9333     freebsd[123]*) objformat=aout ;;
9334     *) objformat=elf ;;
9335     esac
9336   fi
9337   version_type=freebsd-$objformat
9338   case $version_type in
9339     freebsd-elf*)
9340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9341       need_version=no
9342       need_lib_prefix=no
9343       ;;
9344     freebsd-*)
9345       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9346       need_version=yes
9347       ;;
9348   esac
9349   shlibpath_var=LD_LIBRARY_PATH
9350   case $host_os in
9351   freebsd2*)
9352     shlibpath_overrides_runpath=yes
9353     ;;
9354   freebsd3.[01]* | freebsdelf3.[01]*)
9355     shlibpath_overrides_runpath=yes
9356     hardcode_into_libs=yes
9357     ;;
9358   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9359   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9360     shlibpath_overrides_runpath=no
9361     hardcode_into_libs=yes
9362     ;;
9363   freebsd*) # from 4.6 on
9364     shlibpath_overrides_runpath=yes
9365     hardcode_into_libs=yes
9366     ;;
9367   esac
9368   ;;
9369
9370 gnu*)
9371   version_type=linux
9372   need_lib_prefix=no
9373   need_version=no
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   hardcode_into_libs=yes
9378   ;;
9379
9380 hpux9* | hpux10* | hpux11*)
9381   # Give a soname corresponding to the major version so that dld.sl refuses to
9382   # link against other versions.
9383   version_type=sunos
9384   need_lib_prefix=no
9385   need_version=no
9386   case $host_cpu in
9387   ia64*)
9388     shrext_cmds='.so'
9389     hardcode_into_libs=yes
9390     dynamic_linker="$host_os dld.so"
9391     shlibpath_var=LD_LIBRARY_PATH
9392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394     soname_spec='${libname}${release}${shared_ext}$major'
9395     if test "X$HPUX_IA64_MODE" = X32; then
9396       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9397     else
9398       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9399     fi
9400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9401     ;;
9402    hppa*64*)
9403      shrext_cmds='.sl'
9404      hardcode_into_libs=yes
9405      dynamic_linker="$host_os dld.sl"
9406      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9407      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409      soname_spec='${libname}${release}${shared_ext}$major'
9410      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9411      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9412      ;;
9413    *)
9414     shrext_cmds='.sl'
9415     dynamic_linker="$host_os dld.sl"
9416     shlibpath_var=SHLIB_PATH
9417     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419     soname_spec='${libname}${release}${shared_ext}$major'
9420     ;;
9421   esac
9422   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9423   postinstall_cmds='chmod 555 $lib'
9424   ;;
9425
9426 interix3*)
9427   version_type=linux
9428   need_lib_prefix=no
9429   need_version=no
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   shlibpath_overrides_runpath=no
9435   hardcode_into_libs=yes
9436   ;;
9437
9438 irix5* | irix6* | nonstopux*)
9439   case $host_os in
9440     nonstopux*) version_type=nonstopux ;;
9441     *)
9442         if test "$lt_cv_prog_gnu_ld" = yes; then
9443                 version_type=linux
9444         else
9445                 version_type=irix
9446         fi ;;
9447   esac
9448   need_lib_prefix=no
9449   need_version=no
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9452   case $host_os in
9453   irix5* | nonstopux*)
9454     libsuff= shlibsuff=
9455     ;;
9456   *)
9457     case $LD in # libtool.m4 will add one of these switches to LD
9458     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9459       libsuff= shlibsuff= libmagic=32-bit;;
9460     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9461       libsuff=32 shlibsuff=N32 libmagic=N32;;
9462     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9463       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9464     *) libsuff= shlibsuff= libmagic=never-match;;
9465     esac
9466     ;;
9467   esac
9468   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9469   shlibpath_overrides_runpath=no
9470   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9472   hardcode_into_libs=yes
9473   ;;
9474
9475 # No shared lib support for Linux oldld, aout, or coff.
9476 linux*oldld* | linux*aout* | linux*coff*)
9477   dynamic_linker=no
9478   ;;
9479
9480 # This must be Linux ELF.
9481 linux*)
9482   version_type=linux
9483   need_lib_prefix=no
9484   need_version=no
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486   soname_spec='${libname}${release}${shared_ext}$major'
9487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9488   shlibpath_var=LD_LIBRARY_PATH
9489   shlibpath_overrides_runpath=no
9490   # This implies no fast_install, which is unacceptable.
9491   # Some rework will be needed to allow for fast_install
9492   # before this can be enabled.
9493   hardcode_into_libs=yes
9494
9495   # Append ld.so.conf contents to the search path
9496   if test -f /etc/ld.so.conf; then
9497     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' ' '`
9498     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9499   fi
9500
9501   # We used to test for /lib/ld.so.1 and disable shared libraries on
9502   # powerpc, because MkLinux only supported shared libraries with the
9503   # GNU dynamic linker.  Since this was broken with cross compilers,
9504   # most powerpc-linux boxes support dynamic linking these days and
9505   # people can always --disable-shared, the test was removed, and we
9506   # assume the GNU/Linux dynamic linker is in use.
9507   dynamic_linker='GNU/Linux ld.so'
9508   ;;
9509
9510 knetbsd*-gnu)
9511   version_type=linux
9512   need_lib_prefix=no
9513   need_version=no
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515   soname_spec='${libname}${release}${shared_ext}$major'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   shlibpath_overrides_runpath=no
9518   hardcode_into_libs=yes
9519   dynamic_linker='GNU ld.so'
9520   ;;
9521
9522 netbsd*)
9523   version_type=sunos
9524   need_lib_prefix=no
9525   need_version=no
9526   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9529     dynamic_linker='NetBSD (a.out) ld.so'
9530   else
9531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9532     soname_spec='${libname}${release}${shared_ext}$major'
9533     dynamic_linker='NetBSD ld.elf_so'
9534   fi
9535   shlibpath_var=LD_LIBRARY_PATH
9536   shlibpath_overrides_runpath=yes
9537   hardcode_into_libs=yes
9538   ;;
9539
9540 newsos6)
9541   version_type=linux
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   shlibpath_overrides_runpath=yes
9545   ;;
9546
9547 nto-qnx*)
9548   version_type=linux
9549   need_lib_prefix=no
9550   need_version=no
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   soname_spec='${libname}${release}${shared_ext}$major'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   shlibpath_overrides_runpath=yes
9555   ;;
9556
9557 openbsd*)
9558   version_type=sunos
9559   sys_lib_dlsearch_path_spec="/usr/lib"
9560   need_lib_prefix=no
9561   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562   case $host_os in
9563     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9564     *)                         need_version=no  ;;
9565   esac
9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570     case $host_os in
9571       openbsd2.[89] | openbsd2.[89].*)
9572         shlibpath_overrides_runpath=no
9573         ;;
9574       *)
9575         shlibpath_overrides_runpath=yes
9576         ;;
9577       esac
9578   else
9579     shlibpath_overrides_runpath=yes
9580   fi
9581   ;;
9582
9583 os2*)
9584   libname_spec='$name'
9585   shrext_cmds=".dll"
9586   need_lib_prefix=no
9587   library_names_spec='$libname${shared_ext} $libname.a'
9588   dynamic_linker='OS/2 ld.exe'
9589   shlibpath_var=LIBPATH
9590   ;;
9591
9592 osf3* | osf4* | osf5*)
9593   version_type=osf
9594   need_lib_prefix=no
9595   need_version=no
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601   ;;
9602
9603 solaris*)
9604   version_type=linux
9605   need_lib_prefix=no
9606   need_version=no
9607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608   soname_spec='${libname}${release}${shared_ext}$major'
9609   shlibpath_var=LD_LIBRARY_PATH
9610   shlibpath_overrides_runpath=yes
9611   hardcode_into_libs=yes
9612   # ldd complains unless libraries are executable
9613   postinstall_cmds='chmod +x $lib'
9614   ;;
9615
9616 sunos4*)
9617   version_type=sunos
9618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620   shlibpath_var=LD_LIBRARY_PATH
9621   shlibpath_overrides_runpath=yes
9622   if test "$with_gnu_ld" = yes; then
9623     need_lib_prefix=no
9624   fi
9625   need_version=yes
9626   ;;
9627
9628 sysv4 | sysv4.3*)
9629   version_type=linux
9630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631   soname_spec='${libname}${release}${shared_ext}$major'
9632   shlibpath_var=LD_LIBRARY_PATH
9633   case $host_vendor in
9634     sni)
9635       shlibpath_overrides_runpath=no
9636       need_lib_prefix=no
9637       export_dynamic_flag_spec='${wl}-Blargedynsym'
9638       runpath_var=LD_RUN_PATH
9639       ;;
9640     siemens)
9641       need_lib_prefix=no
9642       ;;
9643     motorola)
9644       need_lib_prefix=no
9645       need_version=no
9646       shlibpath_overrides_runpath=no
9647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648       ;;
9649   esac
9650   ;;
9651
9652 sysv4*MP*)
9653   if test -d /usr/nec ;then
9654     version_type=linux
9655     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656     soname_spec='$libname${shared_ext}.$major'
9657     shlibpath_var=LD_LIBRARY_PATH
9658   fi
9659   ;;
9660
9661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662   version_type=freebsd-elf
9663   need_lib_prefix=no
9664   need_version=no
9665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666   soname_spec='${libname}${release}${shared_ext}$major'
9667   shlibpath_var=LD_LIBRARY_PATH
9668   hardcode_into_libs=yes
9669   if test "$with_gnu_ld" = yes; then
9670     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671     shlibpath_overrides_runpath=no
9672   else
9673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674     shlibpath_overrides_runpath=yes
9675     case $host_os in
9676       sco3.2v5*)
9677         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9678         ;;
9679     esac
9680   fi
9681   sys_lib_dlsearch_path_spec='/usr/lib'
9682   ;;
9683
9684 uts4*)
9685   version_type=linux
9686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687   soname_spec='${libname}${release}${shared_ext}$major'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   ;;
9690
9691 *)
9692   dynamic_linker=no
9693   ;;
9694 esac
9695 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696 echo "${ECHO_T}$dynamic_linker" >&6; }
9697 test "$dynamic_linker" = no && can_build_shared=no
9698
9699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700 if test "$GCC" = yes; then
9701   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702 fi
9703
9704
9705 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9706 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9707 if test "${libltdl_cv_shlibext+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710
9711 module=yes
9712 eval libltdl_cv_shlibext=$shrext_cmds
9713
9714 fi
9715 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9716 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9717 if test -n "$libltdl_cv_shlibext"; then
9718
9719 cat >>confdefs.h <<_ACEOF
9720 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9721 _ACEOF
9722
9723 fi
9724
9725
9726 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9727 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9728 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   libltdl_cv_shlibpath_var="$shlibpath_var"
9732 fi
9733 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9734 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9735 if test -n "$libltdl_cv_shlibpath_var"; then
9736
9737 cat >>confdefs.h <<_ACEOF
9738 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9739 _ACEOF
9740
9741 fi
9742
9743
9744 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9745 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9746 if test "${libltdl_cv_sys_search_path+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9750 fi
9751 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9752 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9753 if test -n "$libltdl_cv_sys_search_path"; then
9754   sys_search_path=
9755   for dir in $libltdl_cv_sys_search_path; do
9756     if test -z "$sys_search_path"; then
9757       sys_search_path="$dir"
9758     else
9759       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9760     fi
9761   done
9762
9763 cat >>confdefs.h <<_ACEOF
9764 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9765 _ACEOF
9766
9767 fi
9768
9769 { echo "$as_me:$LINENO: checking for objdir" >&5
9770 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9771 if test "${libltdl_cv_objdir+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   libltdl_cv_objdir="$objdir"
9775   if test -n "$objdir"; then
9776     :
9777   else
9778     rm -f .libs 2>/dev/null
9779     mkdir .libs 2>/dev/null
9780     if test -d .libs; then
9781       libltdl_cv_objdir=.libs
9782     else
9783       # MS-DOS does not allow filenames that begin with a dot.
9784       libltdl_cv_objdir=_libs
9785     fi
9786   rmdir .libs 2>/dev/null
9787   fi
9788
9789 fi
9790 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9791 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9792
9793 cat >>confdefs.h <<_ACEOF
9794 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9795 _ACEOF
9796
9797
9798
9799
9800
9801
9802 # Check for command to grab the raw symbol name followed by C symbol from nm.
9803 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9804 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9805 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808
9809 # These are sane defaults that work on at least a few old systems.
9810 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9811
9812 # Character class describing NM global symbol codes.
9813 symcode='[BCDEGRST]'
9814
9815 # Regexp to match symbols that can be accessed directly from C.
9816 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9817
9818 # Transform an extracted symbol line into a proper C declaration
9819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9820
9821 # Transform an extracted symbol line into symbol name and symbol address
9822 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'"
9823
9824 # Define system-specific variables.
9825 case $host_os in
9826 aix*)
9827   symcode='[BCDT]'
9828   ;;
9829 cygwin* | mingw* | pw32*)
9830   symcode='[ABCDGISTW]'
9831   ;;
9832 hpux*) # Its linker distinguishes data from code symbols
9833   if test "$host_cpu" = ia64; then
9834     symcode='[ABCDEGRST]'
9835   fi
9836   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9837   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'"
9838   ;;
9839 linux*)
9840   if test "$host_cpu" = ia64; then
9841     symcode='[ABCDGIRSTW]'
9842     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9843     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'"
9844   fi
9845   ;;
9846 irix* | nonstopux*)
9847   symcode='[BCDEGRST]'
9848   ;;
9849 osf*)
9850   symcode='[BCDEGQRST]'
9851   ;;
9852 solaris*)
9853   symcode='[BDRT]'
9854   ;;
9855 sco3.2v5*)
9856   symcode='[DT]'
9857   ;;
9858 sysv4.2uw2*)
9859   symcode='[DT]'
9860   ;;
9861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9862   symcode='[ABDT]'
9863   ;;
9864 sysv4)
9865   symcode='[DFNSTU]'
9866   ;;
9867 esac
9868
9869 # Handle CRLF in mingw tool chain
9870 opt_cr=
9871 case $build_os in
9872 mingw*)
9873   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9874   ;;
9875 esac
9876
9877 # If we're using GNU nm, then use its standard symbol codes.
9878 case `$NM -V 2>&1` in
9879 *GNU* | *'with BFD'*)
9880   symcode='[ABCDGIRSTW]' ;;
9881 esac
9882
9883 # Try without a prefix undercore, then with it.
9884 for ac_symprfx in "" "_"; do
9885
9886   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9887   symxfrm="\\1 $ac_symprfx\\2 \\2"
9888
9889   # Write the raw and C identifiers.
9890   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9891
9892   # Check to see that the pipe works correctly.
9893   pipe_works=no
9894
9895   rm -f conftest*
9896   cat > conftest.$ac_ext <<EOF
9897 #ifdef __cplusplus
9898 extern "C" {
9899 #endif
9900 char nm_test_var;
9901 void nm_test_func(){}
9902 #ifdef __cplusplus
9903 }
9904 #endif
9905 int main(){nm_test_var='a';nm_test_func();return(0);}
9906 EOF
9907
9908   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909   (eval $ac_compile) 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; then
9913     # Now try to grab the symbols.
9914     nlist=conftest.nm
9915     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9916   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } && test -s "$nlist"; then
9920       # Try sorting and uniquifying the output.
9921       if sort "$nlist" | uniq > "$nlist"T; then
9922         mv -f "$nlist"T "$nlist"
9923       else
9924         rm -f "$nlist"T
9925       fi
9926
9927       # Make sure that we snagged all the symbols we need.
9928       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9929         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9930           cat <<EOF > conftest.$ac_ext
9931 #ifdef __cplusplus
9932 extern "C" {
9933 #endif
9934
9935 EOF
9936           # Now generate the symbol file.
9937           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9938
9939           cat <<EOF >> conftest.$ac_ext
9940 #if defined (__STDC__) && __STDC__
9941 # define lt_ptr_t void *
9942 #else
9943 # define lt_ptr_t char *
9944 # define const
9945 #endif
9946
9947 /* The mapping between symbol names and symbols. */
9948 const struct {
9949   const char *name;
9950   lt_ptr_t address;
9951 }
9952 lt_preloaded_symbols[] =
9953 {
9954 EOF
9955           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9956           cat <<\EOF >> conftest.$ac_ext
9957   {0, (lt_ptr_t) 0}
9958 };
9959
9960 #ifdef __cplusplus
9961 }
9962 #endif
9963 EOF
9964           # Now try linking the two files.
9965           mv conftest.$ac_objext conftstm.$ac_objext
9966           lt_save_LIBS="$LIBS"
9967           lt_save_CFLAGS="$CFLAGS"
9968           LIBS="conftstm.$ac_objext"
9969           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9970           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971   (eval $ac_link) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9975             pipe_works=yes
9976           fi
9977           LIBS="$lt_save_LIBS"
9978           CFLAGS="$lt_save_CFLAGS"
9979         else
9980           echo "cannot find nm_test_func in $nlist" >&5
9981         fi
9982       else
9983         echo "cannot find nm_test_var in $nlist" >&5
9984       fi
9985     else
9986       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9987     fi
9988   else
9989     echo "$progname: failed program was:" >&5
9990     cat conftest.$ac_ext >&5
9991   fi
9992   rm -f conftest* conftst*
9993
9994   # Do not use the global_symbol_pipe unless it works.
9995   if test "$pipe_works" = yes; then
9996     break
9997   else
9998     lt_cv_sys_global_symbol_pipe=
9999   fi
10000 done
10001
10002 fi
10003
10004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10005   lt_cv_sys_global_symbol_to_cdecl=
10006 fi
10007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10008   { echo "$as_me:$LINENO: result: failed" >&5
10009 echo "${ECHO_T}failed" >&6; }
10010 else
10011   { echo "$as_me:$LINENO: result: ok" >&5
10012 echo "${ECHO_T}ok" >&6; }
10013 fi
10014
10015
10016 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10017 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10018 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10022     libltdl_cv_preloaded_symbols=yes
10023   else
10024     libltdl_cv_preloaded_symbols=no
10025   fi
10026
10027 fi
10028 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10029 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10030 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10031
10032 cat >>confdefs.h <<\_ACEOF
10033 #define HAVE_PRELOADED_SYMBOLS 1
10034 _ACEOF
10035
10036 fi
10037
10038 LIBADD_DL=
10039
10040 ac_ext=c
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10045
10046
10047 { echo "$as_me:$LINENO: checking for shl_load" >&5
10048 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10049 if test "${ac_cv_func_shl_load+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
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 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10060 #define shl_load innocuous_shl_load
10061
10062 /* System header to define __stub macros and hopefully few prototypes,
10063     which can conflict with char shl_load (); below.
10064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065     <limits.h> exists even on freestanding compilers.  */
10066
10067 #ifdef __STDC__
10068 # include <limits.h>
10069 #else
10070 # include <assert.h>
10071 #endif
10072
10073 #undef shl_load
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076    Use char because int might match the return type of a GCC
10077    builtin and then its argument prototype would still apply.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char shl_load ();
10082 /* The GNU C library defines this for functions which it implements
10083     to always fail with ENOSYS.  Some functions are actually named
10084     something starting with __ and the normal name is an alias.  */
10085 #if defined __stub_shl_load || defined __stub___shl_load
10086 choke me
10087 #endif
10088
10089 int
10090 main ()
10091 {
10092 return shl_load ();
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } &&
10111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112   { (case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_try") 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; } &&
10121          { ac_try='test -s conftest$ac_exeext'
10122   { (case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_try") 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_func_shl_load=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_cv_func_shl_load=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext \
10140       conftest$ac_exeext conftest.$ac_ext
10141 fi
10142 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10144 if test $ac_cv_func_shl_load = yes; then
10145
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_SHL_LOAD 1
10148 _ACEOF
10149
10150 else
10151   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10152 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-ldld  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char shl_load ();
10172 int
10173 main ()
10174 {
10175 return shl_load ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184   *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187   (eval "$ac_link") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; } &&
10204          { ac_try='test -s conftest$ac_exeext'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_lib_dld_shl_load=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219         ac_cv_lib_dld_shl_load=no
10220 fi
10221
10222 rm -f core conftest.err conftest.$ac_objext \
10223       conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10225 fi
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10228 if test $ac_cv_lib_dld_shl_load = yes; then
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_SHL_LOAD 1
10232 _ACEOF
10233
10234         LIBADD_DL="$LIBADD_DL -ldld"
10235 else
10236   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldl  $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251    Use char because int might match the return type of a GCC
10252    builtin and then its argument prototype would still apply.  */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char dlopen ();
10257 int
10258 main ()
10259 {
10260 return dlopen ();
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269   *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272   (eval "$ac_link") 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280   { (case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_try") 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; } &&
10289          { ac_try='test -s conftest$ac_exeext'
10290   { (case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_try") 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_cv_lib_dl_dlopen=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304         ac_cv_lib_dl_dlopen=no
10305 fi
10306
10307 rm -f core conftest.err conftest.$ac_objext \
10308       conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10313 if test $ac_cv_lib_dl_dlopen = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_LIBDL 1
10317 _ACEOF
10318
10319                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 #if HAVE_DLFCN_H
10328 #  include <dlfcn.h>
10329 #endif
10330
10331 int
10332 main ()
10333 {
10334 dlopen(0, 0);
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346   (eval "$ac_link") 2>conftest.er1
10347   ac_status=$?
10348   grep -v '^ *+' conftest.er1 >conftest.err
10349   rm -f conftest.er1
10350   cat conftest.err >&5
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } &&
10353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10354   { (case "(($ac_try" in
10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356   *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359   (eval "$ac_try") 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; } &&
10363          { ac_try='test -s conftest$ac_exeext'
10364   { (case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_try") 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_LIBDL 1
10376 _ACEOF
10377  libltdl_cv_func_dlopen="yes"
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10383 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-lsvld  $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395
10396 /* Override any GCC internal prototype to avoid an error.
10397    Use char because int might match the return type of a GCC
10398    builtin and then its argument prototype would still apply.  */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char dlopen ();
10403 int
10404 main ()
10405 {
10406 return dlopen ();
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_lib_svld_dlopen=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_cv_lib_svld_dlopen=no
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext \
10454       conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10456 fi
10457 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10459 if test $ac_cv_lib_svld_dlopen = yes; then
10460
10461 cat >>confdefs.h <<\_ACEOF
10462 #define HAVE_LIBDL 1
10463 _ACEOF
10464
10465                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10466 else
10467   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10468 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10469 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-ldld  $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h.  */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h.  */
10480
10481 /* Override any GCC internal prototype to avoid an error.
10482    Use char because int might match the return type of a GCC
10483    builtin and then its argument prototype would still apply.  */
10484 #ifdef __cplusplus
10485 extern "C"
10486 #endif
10487 char dld_link ();
10488 int
10489 main ()
10490 {
10491 return dld_link ();
10492   ;
10493   return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (ac_try="$ac_link"
10498 case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_link") 2>conftest.er1
10504   ac_status=$?
10505   grep -v '^ *+' conftest.er1 >conftest.err
10506   rm -f conftest.er1
10507   cat conftest.err >&5
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); } &&
10510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511   { (case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_try") 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; } &&
10520          { ac_try='test -s conftest$ac_exeext'
10521   { (case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_try") 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); }; }; then
10530   ac_cv_lib_dld_dld_link=yes
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535         ac_cv_lib_dld_dld_link=no
10536 fi
10537
10538 rm -f core conftest.err conftest.$ac_objext \
10539       conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10541 fi
10542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10544 if test $ac_cv_lib_dld_dld_link = yes; then
10545
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_DLD 1
10548 _ACEOF
10549
10550                 LIBADD_DL="$LIBADD_DL -ldld"
10551 else
10552   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10553 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10554 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10565 #define _dyld_func_lookup innocuous__dyld_func_lookup
10566
10567 /* System header to define __stub macros and hopefully few prototypes,
10568     which can conflict with char _dyld_func_lookup (); below.
10569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10570     <limits.h> exists even on freestanding compilers.  */
10571
10572 #ifdef __STDC__
10573 # include <limits.h>
10574 #else
10575 # include <assert.h>
10576 #endif
10577
10578 #undef _dyld_func_lookup
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char _dyld_func_lookup ();
10587 /* The GNU C library defines this for functions which it implements
10588     to always fail with ENOSYS.  Some functions are actually named
10589     something starting with __ and the normal name is an alias.  */
10590 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10591 choke me
10592 #endif
10593
10594 int
10595 main ()
10596 {
10597 return _dyld_func_lookup ();
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609   (eval "$ac_link") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617   { (case "(($ac_try" in
10618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619   *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622   (eval "$ac_try") 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; } &&
10626          { ac_try='test -s conftest$ac_exeext'
10627   { (case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_try") 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; }; then
10636   ac_cv_func__dyld_func_lookup=yes
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         ac_cv_func__dyld_func_lookup=no
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext \
10645       conftest$ac_exeext conftest.$ac_ext
10646 fi
10647 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10648 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10649 if test $ac_cv_func__dyld_func_lookup = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_DYLD 1
10653 _ACEOF
10654
10655 fi
10656
10657
10658 fi
10659
10660
10661 fi
10662
10663
10664 fi
10665
10666 rm -f core conftest.err conftest.$ac_objext \
10667       conftest$ac_exeext conftest.$ac_ext
10668
10669 fi
10670
10671
10672 fi
10673
10674
10675 fi
10676
10677
10678 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10679 then
10680   lt_save_LIBS="$LIBS"
10681   LIBS="$LIBS $LIBADD_DL"
10682
10683 for ac_func in dlerror
10684 do
10685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10699 #define $ac_func innocuous_$ac_func
10700
10701 /* System header to define __stub macros and hopefully few prototypes,
10702     which can conflict with char $ac_func (); below.
10703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704     <limits.h> exists even on freestanding compilers.  */
10705
10706 #ifdef __STDC__
10707 # include <limits.h>
10708 #else
10709 # include <assert.h>
10710 #endif
10711
10712 #undef $ac_func
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char $ac_func ();
10721 /* The GNU C library defines this for functions which it implements
10722     to always fail with ENOSYS.  Some functions are actually named
10723     something starting with __ and the normal name is an alias.  */
10724 #if defined __stub_$ac_func || defined __stub___$ac_func
10725 choke me
10726 #endif
10727
10728 int
10729 main ()
10730 {
10731 return $ac_func ();
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (ac_try="$ac_link"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743   (eval "$ac_link") 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } &&
10750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751   { (case "(($ac_try" in
10752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753   *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756   (eval "$ac_try") 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; } &&
10760          { ac_try='test -s conftest$ac_exeext'
10761   { (case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_try") 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   eval "$as_ac_var=yes"
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775         eval "$as_ac_var=no"
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext \
10779       conftest$ac_exeext conftest.$ac_ext
10780 fi
10781 ac_res=`eval echo '${'$as_ac_var'}'`
10782                { echo "$as_me:$LINENO: result: $ac_res" >&5
10783 echo "${ECHO_T}$ac_res" >&6; }
10784 if test `eval echo '${'$as_ac_var'}'` = yes; then
10785   cat >>confdefs.h <<_ACEOF
10786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787 _ACEOF
10788
10789 fi
10790 done
10791
10792   LIBS="$lt_save_LIBS"
10793 fi
10794 ac_ext=c
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800
10801
10802 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10803 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10804 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   ac_cv_sys_symbol_underscore=no
10808   cat > conftest.$ac_ext <<EOF
10809 void nm_test_func(){}
10810 int main(){nm_test_func;return 0;}
10811 EOF
10812   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813   (eval $ac_compile) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; then
10817     # Now try to grab the symbols.
10818     ac_nlist=conftest.nm
10819     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10820   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } && test -s "$ac_nlist"; then
10824       # See whether the symbols have a leading underscore.
10825       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10826         ac_cv_sys_symbol_underscore=yes
10827       else
10828         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10829           :
10830         else
10831           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10832         fi
10833       fi
10834     else
10835       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10836     fi
10837   else
10838     echo "configure: failed program was:" >&5
10839     cat conftest.c >&5
10840   fi
10841   rm -rf conftest*
10842
10843 fi
10844 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10845 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10846
10847
10848 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10849   if test x"$libltdl_cv_func_dlopen" = xyes ||
10850      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10851         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10852 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10853 if test "${libltdl_cv_need_uscore+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   libltdl_cv_need_uscore=unknown
10857           save_LIBS="$LIBS"
10858           LIBS="$LIBS $LIBADD_DL"
10859           if test "$cross_compiling" = yes; then :
10860   libltdl_cv_need_uscore=cross
10861 else
10862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863   lt_status=$lt_dlunknown
10864   cat > conftest.$ac_ext <<EOF
10865 #line 10865 "configure"
10866 #include "confdefs.h"
10867
10868 #if HAVE_DLFCN_H
10869 #include <dlfcn.h>
10870 #endif
10871
10872 #include <stdio.h>
10873
10874 #ifdef RTLD_GLOBAL
10875 #  define LT_DLGLOBAL           RTLD_GLOBAL
10876 #else
10877 #  ifdef DL_GLOBAL
10878 #    define LT_DLGLOBAL         DL_GLOBAL
10879 #  else
10880 #    define LT_DLGLOBAL         0
10881 #  endif
10882 #endif
10883
10884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885    find out it does not work in some platform. */
10886 #ifndef LT_DLLAZY_OR_NOW
10887 #  ifdef RTLD_LAZY
10888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10889 #  else
10890 #    ifdef DL_LAZY
10891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10892 #    else
10893 #      ifdef RTLD_NOW
10894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10895 #      else
10896 #        ifdef DL_NOW
10897 #          define LT_DLLAZY_OR_NOW      DL_NOW
10898 #        else
10899 #          define LT_DLLAZY_OR_NOW      0
10900 #        endif
10901 #      endif
10902 #    endif
10903 #  endif
10904 #endif
10905
10906 #ifdef __cplusplus
10907 extern "C" void exit (int);
10908 #endif
10909
10910 void fnord() { int i=42;}
10911 int main ()
10912 {
10913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914   int status = $lt_dlunknown;
10915
10916   if (self)
10917     {
10918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920       /* dlclose (self); */
10921     }
10922   else
10923     puts (dlerror ());
10924
10925     exit (status);
10926 }
10927 EOF
10928   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929   (eval $ac_link) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933     (./conftest; exit; ) >&5 2>/dev/null
10934     lt_status=$?
10935     case x$lt_status in
10936       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10937       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10938       x$lt_dlunknown|x*)  ;;
10939     esac
10940   else :
10941     # compilation failed
10942
10943   fi
10944 fi
10945 rm -fr conftest*
10946
10947           LIBS="$save_LIBS"
10948
10949 fi
10950 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10951 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10952   fi
10953 fi
10954
10955 if test x"$libltdl_cv_need_uscore" = xyes; then
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define NEED_USCORE 1
10959 _ACEOF
10960
10961 fi
10962
10963
10964 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10965 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10966 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969   # PORTME does your system automatically load deplibs for dlopen?
10970   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10971   # For now, we just catch OSes we know something about -- in the
10972   # future, we'll try test this programmatically.
10973   libltdl_cv_sys_dlopen_deplibs=unknown
10974   case "$host_os" in
10975   aix3*|aix4.1.*|aix4.2.*)
10976     # Unknown whether this is true for these versions of AIX, but
10977     # we want this `case' here to explicitly catch those versions.
10978     libltdl_cv_sys_dlopen_deplibs=unknown
10979     ;;
10980   aix[45]*)
10981     libltdl_cv_sys_dlopen_deplibs=yes
10982     ;;
10983   darwin*)
10984     # Assuming the user has installed a libdl from somewhere, this is true
10985     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10986     libltdl_cv_sys_dlopen_deplibs=yes
10987     ;;
10988   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10989     # GNU and its variants, using gnu ld.so (Glibc)
10990     libltdl_cv_sys_dlopen_deplibs=yes
10991     ;;
10992   hpux10*|hpux11*)
10993     libltdl_cv_sys_dlopen_deplibs=yes
10994     ;;
10995   interix*)
10996     libltdl_cv_sys_dlopen_deplibs=yes
10997     ;;
10998   irix[12345]*|irix6.[01]*)
10999     # Catch all versions of IRIX before 6.2, and indicate that we don't
11000     # know how it worked for any of those versions.
11001     libltdl_cv_sys_dlopen_deplibs=unknown
11002     ;;
11003   irix*)
11004     # The case above catches anything before 6.2, and it's known that
11005     # at 6.2 and later dlopen does load deplibs.
11006     libltdl_cv_sys_dlopen_deplibs=yes
11007     ;;
11008   netbsd*)
11009     libltdl_cv_sys_dlopen_deplibs=yes
11010     ;;
11011   openbsd*)
11012     libltdl_cv_sys_dlopen_deplibs=yes
11013     ;;
11014   osf[1234]*)
11015     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11016     # it did *not* use an RPATH in a shared library to find objects the
11017     # library depends on, so we explictly say `no'.
11018     libltdl_cv_sys_dlopen_deplibs=no
11019     ;;
11020   osf5.0|osf5.0a|osf5.1)
11021     # dlopen *does* load deplibs and with the right loader patch applied
11022     # it even uses RPATH in a shared library to search for shared objects
11023     # that the library depends on, but there's no easy way to know if that
11024     # patch is installed.  Since this is the case, all we can really
11025     # say is unknown -- it depends on the patch being installed.  If
11026     # it is, this changes to `yes'.  Without it, it would be `no'.
11027     libltdl_cv_sys_dlopen_deplibs=unknown
11028     ;;
11029   osf*)
11030     # the two cases above should catch all versions of osf <= 5.1.  Read
11031     # the comments above for what we know about them.
11032     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11033     # is used to find them so we can finally say `yes'.
11034     libltdl_cv_sys_dlopen_deplibs=yes
11035     ;;
11036   solaris*)
11037     libltdl_cv_sys_dlopen_deplibs=yes
11038     ;;
11039   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11040     libltdl_cv_sys_dlopen_deplibs=yes
11041     ;;
11042   esac
11043
11044 fi
11045 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11046 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11047 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11048
11049 cat >>confdefs.h <<\_ACEOF
11050 #define LTDL_DLOPEN_DEPLIBS 1
11051 _ACEOF
11052
11053 fi
11054
11055
11056 for ac_header in argz.h
11057 do
11058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 fi
11065 ac_res=`eval echo '${'$as_ac_Header'}'`
11066                { echo "$as_me:$LINENO: result: $ac_res" >&5
11067 echo "${ECHO_T}$ac_res" >&6; }
11068 else
11069   # Is the header compilable?
11070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h.  */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h.  */
11078 $ac_includes_default
11079 #include <$ac_header>
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_compile") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } &&
11095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096   { (case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_try") 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; } &&
11105          { ac_try='test -s conftest.$ac_objext'
11106   { (case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_try") 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   ac_header_compiler=yes
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120         ac_header_compiler=no
11121 fi
11122
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125 echo "${ECHO_T}$ac_header_compiler" >&6; }
11126
11127 # Is the header present?
11128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136 #include <$ac_header>
11137 _ACEOF
11138 if { (ac_try="$ac_cpp conftest.$ac_ext"
11139 case "(($ac_try" in
11140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141   *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145   ac_status=$?
11146   grep -v '^ *+' conftest.er1 >conftest.err
11147   rm -f conftest.er1
11148   cat conftest.err >&5
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } >/dev/null; then
11151   if test -s conftest.err; then
11152     ac_cpp_err=$ac_c_preproc_warn_flag
11153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11154   else
11155     ac_cpp_err=
11156   fi
11157 else
11158   ac_cpp_err=yes
11159 fi
11160 if test -z "$ac_cpp_err"; then
11161   ac_header_preproc=yes
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166   ac_header_preproc=no
11167 fi
11168
11169 rm -f conftest.err conftest.$ac_ext
11170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11171 echo "${ECHO_T}$ac_header_preproc" >&6; }
11172
11173 # So?  What about this header?
11174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175   yes:no: )
11176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11180     ac_header_preproc=yes
11181     ;;
11182   no:yes:* )
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11195     ( cat <<\_ASBOX
11196 ## ----------------------------------- ##
11197 ## Report this to llvmbugs@cs.uiuc.edu ##
11198 ## ----------------------------------- ##
11199 _ASBOX
11200      ) | sed "s/^/$as_me: WARNING:     /" >&2
11201     ;;
11202 esac
11203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   eval "$as_ac_Header=\$ac_header_preproc"
11209 fi
11210 ac_res=`eval echo '${'$as_ac_Header'}'`
11211                { echo "$as_me:$LINENO: result: $ac_res" >&5
11212 echo "${ECHO_T}$ac_res" >&6; }
11213
11214 fi
11215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216   cat >>confdefs.h <<_ACEOF
11217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218 _ACEOF
11219
11220 fi
11221
11222 done
11223
11224
11225 { echo "$as_me:$LINENO: checking for error_t" >&5
11226 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11227 if test "${ac_cv_type_error_t+set}" = set; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 #if HAVE_ARGZ_H
11237 #  include <argz.h>
11238 #endif
11239
11240 typedef error_t ac__type_new_;
11241 int
11242 main ()
11243 {
11244 if ((ac__type_new_ *) 0)
11245   return 0;
11246 if (sizeof (ac__type_new_))
11247   return 0;
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_type_error_t=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_cv_type_error_t=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 fi
11296 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11297 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11298 if test $ac_cv_type_error_t = yes; then
11299
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_ERROR_T 1
11302 _ACEOF
11303
11304
11305 else
11306
11307 cat >>confdefs.h <<\_ACEOF
11308 #define error_t int
11309 _ACEOF
11310
11311 fi
11312
11313
11314
11315
11316
11317
11318
11319 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11320 do
11321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11335 #define $ac_func innocuous_$ac_func
11336
11337 /* System header to define __stub macros and hopefully few prototypes,
11338     which can conflict with char $ac_func (); below.
11339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340     <limits.h> exists even on freestanding compilers.  */
11341
11342 #ifdef __STDC__
11343 # include <limits.h>
11344 #else
11345 # include <assert.h>
11346 #endif
11347
11348 #undef $ac_func
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351    Use char because int might match the return type of a GCC
11352    builtin and then its argument prototype would still apply.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char $ac_func ();
11357 /* The GNU C library defines this for functions which it implements
11358     to always fail with ENOSYS.  Some functions are actually named
11359     something starting with __ and the normal name is an alias.  */
11360 #if defined __stub_$ac_func || defined __stub___$ac_func
11361 choke me
11362 #endif
11363
11364 int
11365 main ()
11366 {
11367 return $ac_func ();
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_link") 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387   { (case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_try") 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; } &&
11396          { ac_try='test -s conftest$ac_exeext'
11397   { (case "(($ac_try" in
11398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399   *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402   (eval "$ac_try") 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; }; then
11406   eval "$as_ac_var=yes"
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411         eval "$as_ac_var=no"
11412 fi
11413
11414 rm -f core conftest.err conftest.$ac_objext \
11415       conftest$ac_exeext conftest.$ac_ext
11416 fi
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418                { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421   cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423 _ACEOF
11424
11425 fi
11426 done
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11456                   stdio.h unistd.h
11457 do
11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 fi
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466                { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11468 else
11469   # Is the header compilable?
11470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 $ac_includes_default
11479 #include <$ac_header>
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_compile") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496   { (case "(($ac_try" in
11497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498   *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501   (eval "$ac_try") 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest.$ac_objext'
11506   { (case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_try") 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   ac_header_compiler=yes
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520         ac_header_compiler=no
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525 echo "${ECHO_T}$ac_header_compiler" >&6; }
11526
11527 # Is the header present?
11528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 #include <$ac_header>
11537 _ACEOF
11538 if { (ac_try="$ac_cpp conftest.$ac_ext"
11539 case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } >/dev/null; then
11551   if test -s conftest.err; then
11552     ac_cpp_err=$ac_c_preproc_warn_flag
11553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11554   else
11555     ac_cpp_err=
11556   fi
11557 else
11558   ac_cpp_err=yes
11559 fi
11560 if test -z "$ac_cpp_err"; then
11561   ac_header_preproc=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566   ac_header_preproc=no
11567 fi
11568
11569 rm -f conftest.err conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572
11573 # So?  What about this header?
11574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575   yes:no: )
11576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580     ac_header_preproc=yes
11581     ;;
11582   no:yes:* )
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11595     ( cat <<\_ASBOX
11596 ## ----------------------------------- ##
11597 ## Report this to llvmbugs@cs.uiuc.edu ##
11598 ## ----------------------------------- ##
11599 _ASBOX
11600      ) | sed "s/^/$as_me: WARNING:     /" >&2
11601     ;;
11602 esac
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   eval "$as_ac_Header=\$ac_header_preproc"
11609 fi
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611                { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11613
11614 fi
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616   cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 fi
11621
11622 done
11623
11624
11625
11626
11627
11628 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11629 do
11630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 fi
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638                { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11640 else
11641   # Is the header compilable?
11642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 $ac_includes_default
11651 #include <$ac_header>
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_compile") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest.$ac_objext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_header_compiler=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         ac_header_compiler=no
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6; }
11698
11699 # Is the header present?
11700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 #include <$ac_header>
11709 _ACEOF
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } >/dev/null; then
11723   if test -s conftest.err; then
11724     ac_cpp_err=$ac_c_preproc_warn_flag
11725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11726   else
11727     ac_cpp_err=
11728   fi
11729 else
11730   ac_cpp_err=yes
11731 fi
11732 if test -z "$ac_cpp_err"; then
11733   ac_header_preproc=yes
11734 else
11735   echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738   ac_header_preproc=no
11739 fi
11740
11741 rm -f conftest.err conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744
11745 # So?  What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747   yes:no: )
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752     ac_header_preproc=yes
11753     ;;
11754   no:yes:* )
11755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767     ( cat <<\_ASBOX
11768 ## ----------------------------------- ##
11769 ## Report this to llvmbugs@cs.uiuc.edu ##
11770 ## ----------------------------------- ##
11771 _ASBOX
11772      ) | sed "s/^/$as_me: WARNING:     /" >&2
11773     ;;
11774 esac
11775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   eval "$as_ac_Header=\$ac_header_preproc"
11781 fi
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783                { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785
11786 fi
11787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788   cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790 _ACEOF
11791
11792 fi
11793
11794 done
11795
11796
11797
11798 for ac_header in string.h strings.h
11799 do
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 fi
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 else
11811   # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 $ac_includes_default
11821 #include <$ac_header>
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compile") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838   { (case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_try") 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); }; } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_try") 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   ac_header_compiler=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_header_compiler=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <$ac_header>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null; then
11893   if test -s conftest.err; then
11894     ac_cpp_err=$ac_c_preproc_warn_flag
11895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896   else
11897     ac_cpp_err=
11898   fi
11899 else
11900   ac_cpp_err=yes
11901 fi
11902 if test -z "$ac_cpp_err"; then
11903   ac_header_preproc=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908   ac_header_preproc=no
11909 fi
11910
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11914
11915 # So?  What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917   yes:no: )
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922     ac_header_preproc=yes
11923     ;;
11924   no:yes:* )
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937     ( cat <<\_ASBOX
11938 ## ----------------------------------- ##
11939 ## Report this to llvmbugs@cs.uiuc.edu ##
11940 ## ----------------------------------- ##
11941 _ASBOX
11942      ) | sed "s/^/$as_me: WARNING:     /" >&2
11943     ;;
11944 esac
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   eval "$as_ac_Header=\$ac_header_preproc"
11951 fi
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953                { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955
11956 fi
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958   cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960 _ACEOF
11961  break
11962 fi
11963
11964 done
11965
11966
11967
11968
11969 for ac_func in strchr index
11970 do
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11985 #define $ac_func innocuous_$ac_func
11986
11987 /* System header to define __stub macros and hopefully few prototypes,
11988     which can conflict with char $ac_func (); below.
11989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990     <limits.h> exists even on freestanding compilers.  */
11991
11992 #ifdef __STDC__
11993 # include <limits.h>
11994 #else
11995 # include <assert.h>
11996 #endif
11997
11998 #undef $ac_func
11999
12000 /* Override any GCC internal prototype to avoid an error.
12001    Use char because int might match the return type of a GCC
12002    builtin and then its argument prototype would still apply.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 char $ac_func ();
12007 /* The GNU C library defines this for functions which it implements
12008     to always fail with ENOSYS.  Some functions are actually named
12009     something starting with __ and the normal name is an alias.  */
12010 #if defined __stub_$ac_func || defined __stub___$ac_func
12011 choke me
12012 #endif
12013
12014 int
12015 main ()
12016 {
12017 return $ac_func ();
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_link") 2>conftest.er1
12030   ac_status=$?
12031   grep -v '^ *+' conftest.er1 >conftest.err
12032   rm -f conftest.er1
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest$ac_exeext'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   eval "$as_ac_var=yes"
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061         eval "$as_ac_var=no"
12062 fi
12063
12064 rm -f core conftest.err conftest.$ac_objext \
12065       conftest$ac_exeext conftest.$ac_ext
12066 fi
12067 ac_res=`eval echo '${'$as_ac_var'}'`
12068                { echo "$as_me:$LINENO: result: $ac_res" >&5
12069 echo "${ECHO_T}$ac_res" >&6; }
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071   cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12074  break
12075 fi
12076 done
12077
12078
12079
12080 for ac_func in strrchr rindex
12081 do
12082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h.  */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h.  */
12094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12096 #define $ac_func innocuous_$ac_func
12097
12098 /* System header to define __stub macros and hopefully few prototypes,
12099     which can conflict with char $ac_func (); below.
12100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101     <limits.h> exists even on freestanding compilers.  */
12102
12103 #ifdef __STDC__
12104 # include <limits.h>
12105 #else
12106 # include <assert.h>
12107 #endif
12108
12109 #undef $ac_func
12110
12111 /* Override any GCC internal prototype to avoid an error.
12112    Use char because int might match the return type of a GCC
12113    builtin and then its argument prototype would still apply.  */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char $ac_func ();
12118 /* The GNU C library defines this for functions which it implements
12119     to always fail with ENOSYS.  Some functions are actually named
12120     something starting with __ and the normal name is an alias.  */
12121 #if defined __stub_$ac_func || defined __stub___$ac_func
12122 choke me
12123 #endif
12124
12125 int
12126 main ()
12127 {
12128 return $ac_func ();
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (ac_try="$ac_link"
12135 case "(($ac_try" in
12136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137   *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140   (eval "$ac_link") 2>conftest.er1
12141   ac_status=$?
12142   grep -v '^ *+' conftest.er1 >conftest.err
12143   rm -f conftest.er1
12144   cat conftest.err >&5
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } &&
12147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12148   { (case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_try") 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; } &&
12157          { ac_try='test -s conftest$ac_exeext'
12158   { (case "(($ac_try" in
12159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160   *) ac_try_echo=$ac_try;;
12161 esac
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163   (eval "$ac_try") 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; }; then
12167   eval "$as_ac_var=yes"
12168 else
12169   echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172         eval "$as_ac_var=no"
12173 fi
12174
12175 rm -f core conftest.err conftest.$ac_objext \
12176       conftest$ac_exeext conftest.$ac_ext
12177 fi
12178 ac_res=`eval echo '${'$as_ac_var'}'`
12179                { echo "$as_me:$LINENO: result: $ac_res" >&5
12180 echo "${ECHO_T}$ac_res" >&6; }
12181 if test `eval echo '${'$as_ac_var'}'` = yes; then
12182   cat >>confdefs.h <<_ACEOF
12183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12184 _ACEOF
12185  break
12186 fi
12187 done
12188
12189
12190
12191 for ac_func in memcpy bcopy
12192 do
12193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12207 #define $ac_func innocuous_$ac_func
12208
12209 /* System header to define __stub macros and hopefully few prototypes,
12210     which can conflict with char $ac_func (); below.
12211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212     <limits.h> exists even on freestanding compilers.  */
12213
12214 #ifdef __STDC__
12215 # include <limits.h>
12216 #else
12217 # include <assert.h>
12218 #endif
12219
12220 #undef $ac_func
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char $ac_func ();
12229 /* The GNU C library defines this for functions which it implements
12230     to always fail with ENOSYS.  Some functions are actually named
12231     something starting with __ and the normal name is an alias.  */
12232 #if defined __stub_$ac_func || defined __stub___$ac_func
12233 choke me
12234 #endif
12235
12236 int
12237 main ()
12238 {
12239 return $ac_func ();
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_link") 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259   { (case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_try") 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest$ac_exeext'
12269   { (case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_try") 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   eval "$as_ac_var=yes"
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283         eval "$as_ac_var=no"
12284 fi
12285
12286 rm -f core conftest.err conftest.$ac_objext \
12287       conftest$ac_exeext conftest.$ac_ext
12288 fi
12289 ac_res=`eval echo '${'$as_ac_var'}'`
12290                { echo "$as_me:$LINENO: result: $ac_res" >&5
12291 echo "${ECHO_T}$ac_res" >&6; }
12292 if test `eval echo '${'$as_ac_var'}'` = yes; then
12293   cat >>confdefs.h <<_ACEOF
12294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 _ACEOF
12296  break
12297 fi
12298 done
12299
12300
12301
12302 for ac_func in memmove strcmp
12303 do
12304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h.  */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h.  */
12316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12318 #define $ac_func innocuous_$ac_func
12319
12320 /* System header to define __stub macros and hopefully few prototypes,
12321     which can conflict with char $ac_func (); below.
12322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323     <limits.h> exists even on freestanding compilers.  */
12324
12325 #ifdef __STDC__
12326 # include <limits.h>
12327 #else
12328 # include <assert.h>
12329 #endif
12330
12331 #undef $ac_func
12332
12333 /* Override any GCC internal prototype to avoid an error.
12334    Use char because int might match the return type of a GCC
12335    builtin and then its argument prototype would still apply.  */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 char $ac_func ();
12340 /* The GNU C library defines this for functions which it implements
12341     to always fail with ENOSYS.  Some functions are actually named
12342     something starting with __ and the normal name is an alias.  */
12343 #if defined __stub_$ac_func || defined __stub___$ac_func
12344 choke me
12345 #endif
12346
12347 int
12348 main ()
12349 {
12350 return $ac_func ();
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_link") 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370   { (case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_try") 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; } &&
12379          { ac_try='test -s conftest$ac_exeext'
12380   { (case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_try") 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; }; then
12389   eval "$as_ac_var=yes"
12390 else
12391   echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394         eval "$as_ac_var=no"
12395 fi
12396
12397 rm -f core conftest.err conftest.$ac_objext \
12398       conftest$ac_exeext conftest.$ac_ext
12399 fi
12400 ac_res=`eval echo '${'$as_ac_var'}'`
12401                { echo "$as_me:$LINENO: result: $ac_res" >&5
12402 echo "${ECHO_T}$ac_res" >&6; }
12403 if test `eval echo '${'$as_ac_var'}'` = yes; then
12404   cat >>confdefs.h <<_ACEOF
12405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12406 _ACEOF
12407
12408 fi
12409 done
12410
12411
12412
12413
12414 for ac_func in closedir opendir readdir
12415 do
12416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12420   echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422   cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h.  */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h.  */
12428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12430 #define $ac_func innocuous_$ac_func
12431
12432 /* System header to define __stub macros and hopefully few prototypes,
12433     which can conflict with char $ac_func (); below.
12434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12435     <limits.h> exists even on freestanding compilers.  */
12436
12437 #ifdef __STDC__
12438 # include <limits.h>
12439 #else
12440 # include <assert.h>
12441 #endif
12442
12443 #undef $ac_func
12444
12445 /* Override any GCC internal prototype to avoid an error.
12446    Use char because int might match the return type of a GCC
12447    builtin and then its argument prototype would still apply.  */
12448 #ifdef __cplusplus
12449 extern "C"
12450 #endif
12451 char $ac_func ();
12452 /* The GNU C library defines this for functions which it implements
12453     to always fail with ENOSYS.  Some functions are actually named
12454     something starting with __ and the normal name is an alias.  */
12455 #if defined __stub_$ac_func || defined __stub___$ac_func
12456 choke me
12457 #endif
12458
12459 int
12460 main ()
12461 {
12462 return $ac_func ();
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_link") 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12482   { (case "(($ac_try" in
12483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484   *) ac_try_echo=$ac_try;;
12485 esac
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487   (eval "$ac_try") 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; } &&
12491          { ac_try='test -s conftest$ac_exeext'
12492   { (case "(($ac_try" in
12493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494   *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497   (eval "$ac_try") 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   eval "$as_ac_var=yes"
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506         eval "$as_ac_var=no"
12507 fi
12508
12509 rm -f core conftest.err conftest.$ac_objext \
12510       conftest$ac_exeext conftest.$ac_ext
12511 fi
12512 ac_res=`eval echo '${'$as_ac_var'}'`
12513                { echo "$as_me:$LINENO: result: $ac_res" >&5
12514 echo "${ECHO_T}$ac_res" >&6; }
12515 if test `eval echo '${'$as_ac_var'}'` = yes; then
12516   cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12518 _ACEOF
12519
12520 fi
12521 done
12522
12523
12524 # Check whether --enable-shared was given.
12525 if test "${enable_shared+set}" = set; then
12526   enableval=$enable_shared; p=${PACKAGE-default}
12527     case $enableval in
12528     yes) enable_shared=yes ;;
12529     no) enable_shared=no ;;
12530     *)
12531       enable_shared=no
12532       # Look at the argument we got.  We use all the common list separators.
12533       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12534       for pkg in $enableval; do
12535         IFS="$lt_save_ifs"
12536         if test "X$pkg" = "X$p"; then
12537           enable_shared=yes
12538         fi
12539       done
12540       IFS="$lt_save_ifs"
12541       ;;
12542     esac
12543 else
12544   enable_shared=yes
12545 fi
12546
12547
12548 # Check whether --enable-static was given.
12549 if test "${enable_static+set}" = set; then
12550   enableval=$enable_static; p=${PACKAGE-default}
12551     case $enableval in
12552     yes) enable_static=yes ;;
12553     no) enable_static=no ;;
12554     *)
12555      enable_static=no
12556       # Look at the argument we got.  We use all the common list separators.
12557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12558       for pkg in $enableval; do
12559         IFS="$lt_save_ifs"
12560         if test "X$pkg" = "X$p"; then
12561           enable_static=yes
12562         fi
12563       done
12564       IFS="$lt_save_ifs"
12565       ;;
12566     esac
12567 else
12568   enable_static=yes
12569 fi
12570
12571
12572 # Check whether --enable-fast-install was given.
12573 if test "${enable_fast_install+set}" = set; then
12574   enableval=$enable_fast_install; p=${PACKAGE-default}
12575     case $enableval in
12576     yes) enable_fast_install=yes ;;
12577     no) enable_fast_install=no ;;
12578     *)
12579       enable_fast_install=no
12580       # Look at the argument we got.  We use all the common list separators.
12581       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12582       for pkg in $enableval; do
12583         IFS="$lt_save_ifs"
12584         if test "X$pkg" = "X$p"; then
12585           enable_fast_install=yes
12586         fi
12587       done
12588       IFS="$lt_save_ifs"
12589       ;;
12590     esac
12591 else
12592   enable_fast_install=yes
12593 fi
12594
12595
12596 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12597 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12598 if test "${lt_cv_path_SED+set}" = set; then
12599   echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601   # Loop through the user's path and test for sed and gsed.
12602 # Then use that list of sed's as ones to test for truncation.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   test -z "$as_dir" && as_dir=.
12608   for lt_ac_prog in sed gsed; do
12609     for ac_exec_ext in '' $ac_executable_extensions; do
12610       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12611         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12612       fi
12613     done
12614   done
12615 done
12616 lt_ac_max=0
12617 lt_ac_count=0
12618 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12619 # along with /bin/sed that truncates output.
12620 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12621   test ! -f $lt_ac_sed && continue
12622   cat /dev/null > conftest.in
12623   lt_ac_count=0
12624   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12625   # Check for GNU sed and select it if it is found.
12626   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12627     lt_cv_path_SED=$lt_ac_sed
12628     break
12629   fi
12630   while true; do
12631     cat conftest.in conftest.in >conftest.tmp
12632     mv conftest.tmp conftest.in
12633     cp conftest.in conftest.nl
12634     echo >>conftest.nl
12635     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12636     cmp -s conftest.out conftest.nl || break
12637     # 10000 chars as input seems more than enough
12638     test $lt_ac_count -gt 10 && break
12639     lt_ac_count=`expr $lt_ac_count + 1`
12640     if test $lt_ac_count -gt $lt_ac_max; then
12641       lt_ac_max=$lt_ac_count
12642       lt_cv_path_SED=$lt_ac_sed
12643     fi
12644   done
12645 done
12646
12647 fi
12648
12649 SED=$lt_cv_path_SED
12650 { echo "$as_me:$LINENO: result: $SED" >&5
12651 echo "${ECHO_T}$SED" >&6; }
12652
12653
12654 # Check whether --with-gnu-ld was given.
12655 if test "${with_gnu_ld+set}" = set; then
12656   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12657 else
12658   with_gnu_ld=no
12659 fi
12660
12661 ac_prog=ld
12662 if test "$GCC" = yes; then
12663   # Check if gcc -print-prog-name=ld gives a path.
12664   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12665 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12666   case $host in
12667   *-*-mingw*)
12668     # gcc leaves a trailing carriage return which upsets mingw
12669     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670   *)
12671     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672   esac
12673   case $ac_prog in
12674     # Accept absolute paths.
12675     [\\/]* | ?:[\\/]*)
12676       re_direlt='/[^/][^/]*/\.\./'
12677       # Canonicalize the pathname of ld
12678       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12679       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12680         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12681       done
12682       test -z "$LD" && LD="$ac_prog"
12683       ;;
12684   "")
12685     # If it fails, then pretend we aren't using GCC.
12686     ac_prog=ld
12687     ;;
12688   *)
12689     # If it is relative, then search for the first ld in PATH.
12690     with_gnu_ld=unknown
12691     ;;
12692   esac
12693 elif test "$with_gnu_ld" = yes; then
12694   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12696 else
12697   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12699 fi
12700 if test "${lt_cv_path_LD+set}" = set; then
12701   echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703   if test -z "$LD"; then
12704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705   for ac_dir in $PATH; do
12706     IFS="$lt_save_ifs"
12707     test -z "$ac_dir" && ac_dir=.
12708     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709       lt_cv_path_LD="$ac_dir/$ac_prog"
12710       # Check to see if the program is GNU ld.  I'd rather use --version,
12711       # but apparently some variants of GNU ld only accept -v.
12712       # Break only if it was the GNU/non-GNU ld that we prefer.
12713       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714       *GNU* | *'with BFD'*)
12715         test "$with_gnu_ld" != no && break
12716         ;;
12717       *)
12718         test "$with_gnu_ld" != yes && break
12719         ;;
12720       esac
12721     fi
12722   done
12723   IFS="$lt_save_ifs"
12724 else
12725   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12726 fi
12727 fi
12728
12729 LD="$lt_cv_path_LD"
12730 if test -n "$LD"; then
12731   { echo "$as_me:$LINENO: result: $LD" >&5
12732 echo "${ECHO_T}$LD" >&6; }
12733 else
12734   { echo "$as_me:$LINENO: result: no" >&5
12735 echo "${ECHO_T}no" >&6; }
12736 fi
12737 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12738 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12739    { (exit 1); exit 1; }; }
12740 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12741 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12742 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12743   echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746 case `$LD -v 2>&1 </dev/null` in
12747 *GNU* | *'with BFD'*)
12748   lt_cv_prog_gnu_ld=yes
12749   ;;
12750 *)
12751   lt_cv_prog_gnu_ld=no
12752   ;;
12753 esac
12754 fi
12755 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12756 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12757 with_gnu_ld=$lt_cv_prog_gnu_ld
12758
12759
12760 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12761 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12762 if test "${lt_cv_ld_reload_flag+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   lt_cv_ld_reload_flag='-r'
12766 fi
12767 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12768 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12769 reload_flag=$lt_cv_ld_reload_flag
12770 case $reload_flag in
12771 "" | " "*) ;;
12772 *) reload_flag=" $reload_flag" ;;
12773 esac
12774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12775 case $host_os in
12776   darwin*)
12777     if test "$GCC" = yes; then
12778       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12779     else
12780       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12781     fi
12782     ;;
12783 esac
12784
12785 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12786 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12787 if test "${lt_cv_deplibs_check_method+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   lt_cv_file_magic_cmd='$MAGIC_CMD'
12791 lt_cv_file_magic_test_file=
12792 lt_cv_deplibs_check_method='unknown'
12793 # Need to set the preceding variable on all platforms that support
12794 # interlibrary dependencies.
12795 # 'none' -- dependencies not supported.
12796 # `unknown' -- same as none, but documents that we really don't know.
12797 # 'pass_all' -- all dependencies passed with no checks.
12798 # 'test_compile' -- check by making test program.
12799 # 'file_magic [[regex]]' -- check by looking for files in library path
12800 # which responds to the $file_magic_cmd with a given extended regex.
12801 # If you have `file' or equivalent on your system and you're not sure
12802 # whether `pass_all' will *always* work, you probably want this one.
12803
12804 case $host_os in
12805 aix4* | aix5*)
12806   lt_cv_deplibs_check_method=pass_all
12807   ;;
12808
12809 beos*)
12810   lt_cv_deplibs_check_method=pass_all
12811   ;;
12812
12813 bsdi[45]*)
12814   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12815   lt_cv_file_magic_cmd='/usr/bin/file -L'
12816   lt_cv_file_magic_test_file=/shlib/libc.so
12817   ;;
12818
12819 cygwin*)
12820   # func_win32_libid is a shell function defined in ltmain.sh
12821   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12822   lt_cv_file_magic_cmd='func_win32_libid'
12823   ;;
12824
12825 mingw* | pw32*)
12826   # Base MSYS/MinGW do not provide the 'file' command needed by
12827   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12828   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12829   lt_cv_file_magic_cmd='$OBJDUMP -f'
12830   ;;
12831
12832 darwin* | rhapsody*)
12833   lt_cv_deplibs_check_method=pass_all
12834   ;;
12835
12836 freebsd* | kfreebsd*-gnu | dragonfly*)
12837   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12838     case $host_cpu in
12839     i*86 )
12840       # Not sure whether the presence of OpenBSD here was a mistake.
12841       # Let's accept both of them until this is cleared up.
12842       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12843       lt_cv_file_magic_cmd=/usr/bin/file
12844       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12845       ;;
12846     esac
12847   else
12848     lt_cv_deplibs_check_method=pass_all
12849   fi
12850   ;;
12851
12852 gnu*)
12853   lt_cv_deplibs_check_method=pass_all
12854   ;;
12855
12856 hpux10.20* | hpux11*)
12857   lt_cv_file_magic_cmd=/usr/bin/file
12858   case $host_cpu in
12859   ia64*)
12860     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12861     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12862     ;;
12863   hppa*64*)
12864     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]'
12865     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12866     ;;
12867   *)
12868     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12869     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12870     ;;
12871   esac
12872   ;;
12873
12874 interix3*)
12875   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12876   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12877   ;;
12878
12879 irix5* | irix6* | nonstopux*)
12880   case $LD in
12881   *-32|*"-32 ") libmagic=32-bit;;
12882   *-n32|*"-n32 ") libmagic=N32;;
12883   *-64|*"-64 ") libmagic=64-bit;;
12884   *) libmagic=never-match;;
12885   esac
12886   lt_cv_deplibs_check_method=pass_all
12887   ;;
12888
12889 # This must be Linux ELF.
12890 linux*)
12891   lt_cv_deplibs_check_method=pass_all
12892   ;;
12893
12894 netbsd*)
12895   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12896     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12897   else
12898     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12899   fi
12900   ;;
12901
12902 newos6*)
12903   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12904   lt_cv_file_magic_cmd=/usr/bin/file
12905   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12906   ;;
12907
12908 nto-qnx*)
12909   lt_cv_deplibs_check_method=unknown
12910   ;;
12911
12912 openbsd*)
12913   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12915   else
12916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12917   fi
12918   ;;
12919
12920 osf3* | osf4* | osf5*)
12921   lt_cv_deplibs_check_method=pass_all
12922   ;;
12923
12924 solaris*)
12925   lt_cv_deplibs_check_method=pass_all
12926   ;;
12927
12928 sysv4 | sysv4.3*)
12929   case $host_vendor in
12930   motorola)
12931     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]'
12932     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12933     ;;
12934   ncr)
12935     lt_cv_deplibs_check_method=pass_all
12936     ;;
12937   sequent)
12938     lt_cv_file_magic_cmd='/bin/file'
12939     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12940     ;;
12941   sni)
12942     lt_cv_file_magic_cmd='/bin/file'
12943     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12944     lt_cv_file_magic_test_file=/lib/libc.so
12945     ;;
12946   siemens)
12947     lt_cv_deplibs_check_method=pass_all
12948     ;;
12949   pc)
12950     lt_cv_deplibs_check_method=pass_all
12951     ;;
12952   esac
12953   ;;
12954
12955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12956   lt_cv_deplibs_check_method=pass_all
12957   ;;
12958 esac
12959
12960 fi
12961 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12962 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12963 file_magic_cmd=$lt_cv_file_magic_cmd
12964 deplibs_check_method=$lt_cv_deplibs_check_method
12965 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12966
12967
12968
12969 # If no C compiler was specified, use CC.
12970 LTCC=${LTCC-"$CC"}
12971
12972 # If no C compiler flags were specified, use CFLAGS.
12973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
12975 # Allow CC to be a program name with arguments.
12976 compiler=$CC
12977
12978 # Check whether --enable-libtool-lock was given.
12979 if test "${enable_libtool_lock+set}" = set; then
12980   enableval=$enable_libtool_lock;
12981 fi
12982
12983 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12984
12985 # Some flags need to be propagated to the compiler or linker for good
12986 # libtool support.
12987 case $host in
12988 ia64-*-hpux*)
12989   # Find out which ABI we are using.
12990   echo 'int i;' > conftest.$ac_ext
12991   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992   (eval $ac_compile) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; then
12996     case `/usr/bin/file conftest.$ac_objext` in
12997     *ELF-32*)
12998       HPUX_IA64_MODE="32"
12999       ;;
13000     *ELF-64*)
13001       HPUX_IA64_MODE="64"
13002       ;;
13003     esac
13004   fi
13005   rm -rf conftest*
13006   ;;
13007 *-*-irix6*)
13008   # Find out which ABI we are using.
13009   echo '#line 13009 "configure"' > conftest.$ac_ext
13010   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011   (eval $ac_compile) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; then
13015    if test "$lt_cv_prog_gnu_ld" = yes; then
13016     case `/usr/bin/file conftest.$ac_objext` in
13017     *32-bit*)
13018       LD="${LD-ld} -melf32bsmip"
13019       ;;
13020     *N32*)
13021       LD="${LD-ld} -melf32bmipn32"
13022       ;;
13023     *64-bit*)
13024       LD="${LD-ld} -melf64bmip"
13025       ;;
13026     esac
13027    else
13028     case `/usr/bin/file conftest.$ac_objext` in
13029     *32-bit*)
13030       LD="${LD-ld} -32"
13031       ;;
13032     *N32*)
13033       LD="${LD-ld} -n32"
13034       ;;
13035     *64-bit*)
13036       LD="${LD-ld} -64"
13037       ;;
13038     esac
13039    fi
13040   fi
13041   rm -rf conftest*
13042   ;;
13043
13044 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13045   # Find out which ABI we are using.
13046   echo 'int i;' > conftest.$ac_ext
13047   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048   (eval $ac_compile) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; then
13052     case `/usr/bin/file conftest.o` in
13053     *32-bit*)
13054       case $host in
13055         x86_64-*linux*)
13056           LD="${LD-ld} -m elf_i386"
13057           ;;
13058         ppc64-*linux*|powerpc64-*linux*)
13059           LD="${LD-ld} -m elf32ppclinux"
13060           ;;
13061         s390x-*linux*)
13062           LD="${LD-ld} -m elf_s390"
13063           ;;
13064         sparc64-*linux*)
13065           LD="${LD-ld} -m elf32_sparc"
13066           ;;
13067       esac
13068       ;;
13069     *64-bit*)
13070       case $host in
13071         x86_64-*linux*)
13072           LD="${LD-ld} -m elf_x86_64"
13073           ;;
13074         ppc*-*linux*|powerpc*-*linux*)
13075           LD="${LD-ld} -m elf64ppc"
13076           ;;
13077         s390*-*linux*)
13078           LD="${LD-ld} -m elf64_s390"
13079           ;;
13080         sparc*-*linux*)
13081           LD="${LD-ld} -m elf64_sparc"
13082           ;;
13083       esac
13084       ;;
13085     esac
13086   fi
13087   rm -rf conftest*
13088   ;;
13089
13090 *-*-sco3.2v5*)
13091   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13092   SAVE_CFLAGS="$CFLAGS"
13093   CFLAGS="$CFLAGS -belf"
13094   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13095 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13096 if test "${lt_cv_cc_needs_belf+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   ac_ext=c
13100 ac_cpp='$CPP $CPPFLAGS'
13101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104
13105      cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111
13112 int
13113 main ()
13114 {
13115
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_link") 2>conftest.er1
13128   ac_status=$?
13129   grep -v '^ *+' conftest.er1 >conftest.err
13130   rm -f conftest.er1
13131   cat conftest.err >&5
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135   { (case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_try") 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; } &&
13144          { ac_try='test -s conftest$ac_exeext'
13145   { (case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_try") 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; }; then
13154   lt_cv_cc_needs_belf=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159         lt_cv_cc_needs_belf=no
13160 fi
13161
13162 rm -f core conftest.err conftest.$ac_objext \
13163       conftest$ac_exeext conftest.$ac_ext
13164      ac_ext=c
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
13170 fi
13171 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13172 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13173   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13174     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13175     CFLAGS="$SAVE_CFLAGS"
13176   fi
13177   ;;
13178 sparc*-*solaris*)
13179   # Find out which ABI we are using.
13180   echo 'int i;' > conftest.$ac_ext
13181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182   (eval $ac_compile) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; then
13186     case `/usr/bin/file conftest.o` in
13187     *64-bit*)
13188       case $lt_cv_prog_gnu_ld in
13189       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13190       *)    LD="${LD-ld} -64" ;;
13191       esac
13192       ;;
13193     esac
13194   fi
13195   rm -rf conftest*
13196   ;;
13197
13198
13199 esac
13200
13201 need_locks="$enable_libtool_lock"
13202
13203
13204
13205
13206 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13207     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13208     (test "X$CXX" != "Xg++"))) ; then
13209   ac_ext=cpp
13210 ac_cpp='$CXXCPP $CPPFLAGS'
13211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13214 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13215 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13216 if test -z "$CXXCPP"; then
13217   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220       # Double quotes because CXXCPP needs to be expanded
13221     for CXXCPP in "$CXX -E" "/lib/cpp"
13222     do
13223       ac_preproc_ok=false
13224 for ac_cxx_preproc_warn_flag in '' yes
13225 do
13226   # Use a header file that comes with gcc, so configuring glibc
13227   # with a fresh cross-compiler works.
13228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229   # <limits.h> exists even on freestanding compilers.
13230   # On the NeXT, cc -E runs the code through the compiler's parser,
13231   # not just through cpp. "Syntax error" is here to catch this case.
13232   cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 #ifdef __STDC__
13239 # include <limits.h>
13240 #else
13241 # include <assert.h>
13242 #endif
13243                      Syntax error
13244 _ACEOF
13245 if { (ac_try="$ac_cpp conftest.$ac_ext"
13246 case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13252   ac_status=$?
13253   grep -v '^ *+' conftest.er1 >conftest.err
13254   rm -f conftest.er1
13255   cat conftest.err >&5
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } >/dev/null; then
13258   if test -s conftest.err; then
13259     ac_cpp_err=$ac_cxx_preproc_warn_flag
13260     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13261   else
13262     ac_cpp_err=
13263   fi
13264 else
13265   ac_cpp_err=yes
13266 fi
13267 if test -z "$ac_cpp_err"; then
13268   :
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273   # Broken: fails on valid input.
13274 continue
13275 fi
13276
13277 rm -f conftest.err conftest.$ac_ext
13278
13279   # OK, works on sane cases.  Now check whether nonexistent headers
13280   # can be detected and how.
13281   cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #include <ac_nonexistent.h>
13288 _ACEOF
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296   ac_status=$?
13297   grep -v '^ *+' conftest.er1 >conftest.err
13298   rm -f conftest.er1
13299   cat conftest.err >&5
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); } >/dev/null; then
13302   if test -s conftest.err; then
13303     ac_cpp_err=$ac_cxx_preproc_warn_flag
13304     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13305   else
13306     ac_cpp_err=
13307   fi
13308 else
13309   ac_cpp_err=yes
13310 fi
13311 if test -z "$ac_cpp_err"; then
13312   # Broken: success on invalid input.
13313 continue
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318   # Passes both tests.
13319 ac_preproc_ok=:
13320 break
13321 fi
13322
13323 rm -f conftest.err conftest.$ac_ext
13324
13325 done
13326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13327 rm -f conftest.err conftest.$ac_ext
13328 if $ac_preproc_ok; then
13329   break
13330 fi
13331
13332     done
13333     ac_cv_prog_CXXCPP=$CXXCPP
13334
13335 fi
13336   CXXCPP=$ac_cv_prog_CXXCPP
13337 else
13338   ac_cv_prog_CXXCPP=$CXXCPP
13339 fi
13340 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13341 echo "${ECHO_T}$CXXCPP" >&6; }
13342 ac_preproc_ok=false
13343 for ac_cxx_preproc_warn_flag in '' yes
13344 do
13345   # Use a header file that comes with gcc, so configuring glibc
13346   # with a fresh cross-compiler works.
13347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348   # <limits.h> exists even on freestanding compilers.
13349   # On the NeXT, cc -E runs the code through the compiler's parser,
13350   # not just through cpp. "Syntax error" is here to catch this case.
13351   cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 #ifdef __STDC__
13358 # include <limits.h>
13359 #else
13360 # include <assert.h>
13361 #endif
13362                      Syntax error
13363 _ACEOF
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } >/dev/null; then
13377   if test -s conftest.err; then
13378     ac_cpp_err=$ac_cxx_preproc_warn_flag
13379     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13380   else
13381     ac_cpp_err=
13382   fi
13383 else
13384   ac_cpp_err=yes
13385 fi
13386 if test -z "$ac_cpp_err"; then
13387   :
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392   # Broken: fails on valid input.
13393 continue
13394 fi
13395
13396 rm -f conftest.err conftest.$ac_ext
13397
13398   # OK, works on sane cases.  Now check whether nonexistent headers
13399   # can be detected and how.
13400   cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406 #include <ac_nonexistent.h>
13407 _ACEOF
13408 if { (ac_try="$ac_cpp conftest.$ac_ext"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } >/dev/null; then
13421   if test -s conftest.err; then
13422     ac_cpp_err=$ac_cxx_preproc_warn_flag
13423     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13424   else
13425     ac_cpp_err=
13426   fi
13427 else
13428   ac_cpp_err=yes
13429 fi
13430 if test -z "$ac_cpp_err"; then
13431   # Broken: success on invalid input.
13432 continue
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437   # Passes both tests.
13438 ac_preproc_ok=:
13439 break
13440 fi
13441
13442 rm -f conftest.err conftest.$ac_ext
13443
13444 done
13445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446 rm -f conftest.err conftest.$ac_ext
13447 if $ac_preproc_ok; then
13448   :
13449 else
13450   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13451 See \`config.log' for more details." >&5
13452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13453 See \`config.log' for more details." >&2;}
13454    { (exit 1); exit 1; }; }
13455 fi
13456
13457 ac_ext=cpp
13458 ac_cpp='$CXXCPP $CPPFLAGS'
13459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13462
13463 fi
13464
13465
13466 ac_ext=f
13467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13470 if test -n "$ac_tool_prefix"; then
13471   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
13472   do
13473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13477 if test "${ac_cv_prog_F77+set}" = set; then
13478   echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480   if test -n "$F77"; then
13481   ac_cv_prog_F77="$F77" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13485 do
13486   IFS=$as_save_IFS
13487   test -z "$as_dir" && as_dir=.
13488   for ac_exec_ext in '' $ac_executable_extensions; do
13489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13490     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13492     break 2
13493   fi
13494 done
13495 done
13496 IFS=$as_save_IFS
13497
13498 fi
13499 fi
13500 F77=$ac_cv_prog_F77
13501 if test -n "$F77"; then
13502   { echo "$as_me:$LINENO: result: $F77" >&5
13503 echo "${ECHO_T}$F77" >&6; }
13504 else
13505   { echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6; }
13507 fi
13508
13509
13510     test -n "$F77" && break
13511   done
13512 fi
13513 if test -z "$F77"; then
13514   ac_ct_F77=$F77
13515   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
13516 do
13517   # Extract the first word of "$ac_prog", so it can be a program name with args.
13518 set dummy $ac_prog; ac_word=$2
13519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13521 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   if test -n "$ac_ct_F77"; then
13525   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530   IFS=$as_save_IFS
13531   test -z "$as_dir" && as_dir=.
13532   for ac_exec_ext in '' $ac_executable_extensions; do
13533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13534     ac_cv_prog_ac_ct_F77="$ac_prog"
13535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13536     break 2
13537   fi
13538 done
13539 done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13545 if test -n "$ac_ct_F77"; then
13546   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13547 echo "${ECHO_T}$ac_ct_F77" >&6; }
13548 else
13549   { echo "$as_me:$LINENO: result: no" >&5
13550 echo "${ECHO_T}no" >&6; }
13551 fi
13552
13553
13554   test -n "$ac_ct_F77" && break
13555 done
13556
13557   if test "x$ac_ct_F77" = x; then
13558     F77=""
13559   else
13560     case $cross_compiling:$ac_tool_warned in
13561 yes:)
13562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13563 whose name does not start with the host triplet.  If you think this
13564 configuration is useful to you, please write to autoconf@gnu.org." >&5
13565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13566 whose name does not start with the host triplet.  If you think this
13567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13568 ac_tool_warned=yes ;;
13569 esac
13570     F77=$ac_ct_F77
13571   fi
13572 fi
13573
13574
13575 # Provide some information about the compiler.
13576 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13577 ac_compiler=`set X $ac_compile; echo $2`
13578 { (ac_try="$ac_compiler --version >&5"
13579 case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_compiler --version >&5") 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }
13588 { (ac_try="$ac_compiler -v >&5"
13589 case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594   (eval "$ac_compiler -v >&5") 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }
13598 { (ac_try="$ac_compiler -V >&5"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_compiler -V >&5") 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }
13608 rm -f a.out
13609
13610 # If we don't use `.F' as extension, the preprocessor is not run on the
13611 # input file.  (Note that this only needs to work for GNU compilers.)
13612 ac_save_ext=$ac_ext
13613 ac_ext=F
13614 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   cat >conftest.$ac_ext <<_ACEOF
13620       program main
13621 #ifndef __GNUC__
13622        choke me
13623 #endif
13624
13625       end
13626 _ACEOF
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_compile") 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13642   { (case "(($ac_try" in
13643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644   *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647   (eval "$ac_try") 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; } &&
13651          { ac_try='test -s conftest.$ac_objext'
13652   { (case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_try") 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; }; then
13661   ac_compiler_gnu=yes
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666         ac_compiler_gnu=no
13667 fi
13668
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13671
13672 fi
13673 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13674 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13675 ac_ext=$ac_save_ext
13676 ac_test_FFLAGS=${FFLAGS+set}
13677 ac_save_FFLAGS=$FFLAGS
13678 FFLAGS=
13679 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13680 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13681 if test "${ac_cv_prog_f77_g+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   FFLAGS=-g
13685 cat >conftest.$ac_ext <<_ACEOF
13686       program main
13687
13688       end
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697   (eval "$ac_compile") 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13705   { (case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_try") 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest.$ac_objext'
13715   { (case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_try") 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_cv_prog_f77_g=yes
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729         ac_cv_prog_f77_g=no
13730 fi
13731
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733
13734 fi
13735 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13736 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13737 if test "$ac_test_FFLAGS" = set; then
13738   FFLAGS=$ac_save_FFLAGS
13739 elif test $ac_cv_prog_f77_g = yes; then
13740   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13741     FFLAGS="-g -O2"
13742   else
13743     FFLAGS="-g"
13744   fi
13745 else
13746   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13747     FFLAGS="-O2"
13748   else
13749     FFLAGS=
13750   fi
13751 fi
13752
13753 G77=`test $ac_compiler_gnu = yes && echo yes`
13754 ac_ext=c
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759
13760
13761
13762 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13763
13764 # find the maximum length of command line arguments
13765 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13766 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13767 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770     i=0
13771   teststring="ABCD"
13772
13773   case $build_os in
13774   msdosdjgpp*)
13775     # On DJGPP, this test can blow up pretty badly due to problems in libc
13776     # (any single argument exceeding 2000 bytes causes a buffer overrun
13777     # during glob expansion).  Even if it were fixed, the result of this
13778     # check would be larger than it should be.
13779     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13780     ;;
13781
13782   gnu*)
13783     # Under GNU Hurd, this test is not required because there is
13784     # no limit to the length of command line arguments.
13785     # Libtool will interpret -1 as no limit whatsoever
13786     lt_cv_sys_max_cmd_len=-1;
13787     ;;
13788
13789   cygwin* | mingw*)
13790     # On Win9x/ME, this test blows up -- it succeeds, but takes
13791     # about 5 minutes as the teststring grows exponentially.
13792     # Worse, since 9x/ME are not pre-emptively multitasking,
13793     # you end up with a "frozen" computer, even though with patience
13794     # the test eventually succeeds (with a max line length of 256k).
13795     # Instead, let's just punt: use the minimum linelength reported by
13796     # all of the supported platforms: 8192 (on NT/2K/XP).
13797     lt_cv_sys_max_cmd_len=8192;
13798     ;;
13799
13800   amigaos*)
13801     # On AmigaOS with pdksh, this test takes hours, literally.
13802     # So we just punt and use a minimum line length of 8192.
13803     lt_cv_sys_max_cmd_len=8192;
13804     ;;
13805
13806   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13807     # This has been around since 386BSD, at least.  Likely further.
13808     if test -x /sbin/sysctl; then
13809       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13810     elif test -x /usr/sbin/sysctl; then
13811       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13812     else
13813       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13814     fi
13815     # And add a safety zone
13816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13817     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13818     ;;
13819
13820   interix*)
13821     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13822     lt_cv_sys_max_cmd_len=196608
13823     ;;
13824
13825   osf*)
13826     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13827     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13828     # nice to cause kernel panics so lets avoid the loop below.
13829     # First set a reasonable default.
13830     lt_cv_sys_max_cmd_len=16384
13831     #
13832     if test -x /sbin/sysconfig; then
13833       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13834         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13835       esac
13836     fi
13837     ;;
13838   sco3.2v5*)
13839     lt_cv_sys_max_cmd_len=102400
13840     ;;
13841   sysv5* | sco5v6* | sysv4.2uw2*)
13842     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13843     if test -n "$kargmax"; then
13844       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13845     else
13846       lt_cv_sys_max_cmd_len=32768
13847     fi
13848     ;;
13849   *)
13850     # If test is not a shell built-in, we'll probably end up computing a
13851     # maximum length that is only half of the actual maximum length, but
13852     # we can't tell.
13853     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13854     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13855                = "XX$teststring") >/dev/null 2>&1 &&
13856             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13857             lt_cv_sys_max_cmd_len=$new_result &&
13858             test $i != 17 # 1/2 MB should be enough
13859     do
13860       i=`expr $i + 1`
13861       teststring=$teststring$teststring
13862     done
13863     teststring=
13864     # Add a significant safety factor because C++ compilers can tack on massive
13865     # amounts of additional arguments before passing them to the linker.
13866     # It appears as though 1/2 is a usable value.
13867     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13868     ;;
13869   esac
13870
13871 fi
13872
13873 if test -n $lt_cv_sys_max_cmd_len ; then
13874   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13875 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13876 else
13877   { echo "$as_me:$LINENO: result: none" >&5
13878 echo "${ECHO_T}none" >&6; }
13879 fi
13880
13881
13882
13883
13884 # Check for command to grab the raw symbol name followed by C symbol from nm.
13885 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13886 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13887 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890
13891 # These are sane defaults that work on at least a few old systems.
13892 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13893
13894 # Character class describing NM global symbol codes.
13895 symcode='[BCDEGRST]'
13896
13897 # Regexp to match symbols that can be accessed directly from C.
13898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899
13900 # Transform an extracted symbol line into a proper C declaration
13901 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13902
13903 # Transform an extracted symbol line into symbol name and symbol address
13904 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'"
13905
13906 # Define system-specific variables.
13907 case $host_os in
13908 aix*)
13909   symcode='[BCDT]'
13910   ;;
13911 cygwin* | mingw* | pw32*)
13912   symcode='[ABCDGISTW]'
13913   ;;
13914 hpux*) # Its linker distinguishes data from code symbols
13915   if test "$host_cpu" = ia64; then
13916     symcode='[ABCDEGRST]'
13917   fi
13918   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13919   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'"
13920   ;;
13921 linux*)
13922   if test "$host_cpu" = ia64; then
13923     symcode='[ABCDGIRSTW]'
13924     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13925     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'"
13926   fi
13927   ;;
13928 irix* | nonstopux*)
13929   symcode='[BCDEGRST]'
13930   ;;
13931 osf*)
13932   symcode='[BCDEGQRST]'
13933   ;;
13934 solaris*)
13935   symcode='[BDRT]'
13936   ;;
13937 sco3.2v5*)
13938   symcode='[DT]'
13939   ;;
13940 sysv4.2uw2*)
13941   symcode='[DT]'
13942   ;;
13943 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13944   symcode='[ABDT]'
13945   ;;
13946 sysv4)
13947   symcode='[DFNSTU]'
13948   ;;
13949 esac
13950
13951 # Handle CRLF in mingw tool chain
13952 opt_cr=
13953 case $build_os in
13954 mingw*)
13955   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13956   ;;
13957 esac
13958
13959 # If we're using GNU nm, then use its standard symbol codes.
13960 case `$NM -V 2>&1` in
13961 *GNU* | *'with BFD'*)
13962   symcode='[ABCDGIRSTW]' ;;
13963 esac
13964
13965 # Try without a prefix undercore, then with it.
13966 for ac_symprfx in "" "_"; do
13967
13968   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13969   symxfrm="\\1 $ac_symprfx\\2 \\2"
13970
13971   # Write the raw and C identifiers.
13972   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13973
13974   # Check to see that the pipe works correctly.
13975   pipe_works=no
13976
13977   rm -f conftest*
13978   cat > conftest.$ac_ext <<EOF
13979 #ifdef __cplusplus
13980 extern "C" {
13981 #endif
13982 char nm_test_var;
13983 void nm_test_func(){}
13984 #ifdef __cplusplus
13985 }
13986 #endif
13987 int main(){nm_test_var='a';nm_test_func();return(0);}
13988 EOF
13989
13990   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991   (eval $ac_compile) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; then
13995     # Now try to grab the symbols.
13996     nlist=conftest.nm
13997     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13998   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } && test -s "$nlist"; then
14002       # Try sorting and uniquifying the output.
14003       if sort "$nlist" | uniq > "$nlist"T; then
14004         mv -f "$nlist"T "$nlist"
14005       else
14006         rm -f "$nlist"T
14007       fi
14008
14009       # Make sure that we snagged all the symbols we need.
14010       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14011         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14012           cat <<EOF > conftest.$ac_ext
14013 #ifdef __cplusplus
14014 extern "C" {
14015 #endif
14016
14017 EOF
14018           # Now generate the symbol file.
14019           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14020
14021           cat <<EOF >> conftest.$ac_ext
14022 #if defined (__STDC__) && __STDC__
14023 # define lt_ptr_t void *
14024 #else
14025 # define lt_ptr_t char *
14026 # define const
14027 #endif
14028
14029 /* The mapping between symbol names and symbols. */
14030 const struct {
14031   const char *name;
14032   lt_ptr_t address;
14033 }
14034 lt_preloaded_symbols[] =
14035 {
14036 EOF
14037           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14038           cat <<\EOF >> conftest.$ac_ext
14039   {0, (lt_ptr_t) 0}
14040 };
14041
14042 #ifdef __cplusplus
14043 }
14044 #endif
14045 EOF
14046           # Now try linking the two files.
14047           mv conftest.$ac_objext conftstm.$ac_objext
14048           lt_save_LIBS="$LIBS"
14049           lt_save_CFLAGS="$CFLAGS"
14050           LIBS="conftstm.$ac_objext"
14051           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14052           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053   (eval $ac_link) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14057             pipe_works=yes
14058           fi
14059           LIBS="$lt_save_LIBS"
14060           CFLAGS="$lt_save_CFLAGS"
14061         else
14062           echo "cannot find nm_test_func in $nlist" >&5
14063         fi
14064       else
14065         echo "cannot find nm_test_var in $nlist" >&5
14066       fi
14067     else
14068       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14069     fi
14070   else
14071     echo "$progname: failed program was:" >&5
14072     cat conftest.$ac_ext >&5
14073   fi
14074   rm -f conftest* conftst*
14075
14076   # Do not use the global_symbol_pipe unless it works.
14077   if test "$pipe_works" = yes; then
14078     break
14079   else
14080     lt_cv_sys_global_symbol_pipe=
14081   fi
14082 done
14083
14084 fi
14085
14086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14087   lt_cv_sys_global_symbol_to_cdecl=
14088 fi
14089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14090   { echo "$as_me:$LINENO: result: failed" >&5
14091 echo "${ECHO_T}failed" >&6; }
14092 else
14093   { echo "$as_me:$LINENO: result: ok" >&5
14094 echo "${ECHO_T}ok" >&6; }
14095 fi
14096
14097 { echo "$as_me:$LINENO: checking for objdir" >&5
14098 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14099 if test "${lt_cv_objdir+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   rm -f .libs 2>/dev/null
14103 mkdir .libs 2>/dev/null
14104 if test -d .libs; then
14105   lt_cv_objdir=.libs
14106 else
14107   # MS-DOS does not allow filenames that begin with a dot.
14108   lt_cv_objdir=_libs
14109 fi
14110 rmdir .libs 2>/dev/null
14111 fi
14112 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14113 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14114 objdir=$lt_cv_objdir
14115
14116
14117
14118
14119
14120 case $host_os in
14121 aix3*)
14122   # AIX sometimes has problems with the GCC collect2 program.  For some
14123   # reason, if we set the COLLECT_NAMES environment variable, the problems
14124   # vanish in a puff of smoke.
14125   if test "X${COLLECT_NAMES+set}" != Xset; then
14126     COLLECT_NAMES=
14127     export COLLECT_NAMES
14128   fi
14129   ;;
14130 esac
14131
14132 # Sed substitution that helps us do robust quoting.  It backslashifies
14133 # metacharacters that are still active within double-quoted strings.
14134 Xsed='sed -e 1s/^X//'
14135 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14136
14137 # Same as above, but do not quote variable references.
14138 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14139
14140 # Sed substitution to delay expansion of an escaped shell variable in a
14141 # double_quote_subst'ed string.
14142 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14143
14144 # Sed substitution to avoid accidental globbing in evaled expressions
14145 no_glob_subst='s/\*/\\\*/g'
14146
14147 # Constants:
14148 rm="rm -f"
14149
14150 # Global variables:
14151 default_ofile=mklib
14152 can_build_shared=yes
14153
14154 # All known linkers require a `.a' archive for static linking (except MSVC,
14155 # which needs '.lib').
14156 libext=a
14157 ltmain="$ac_aux_dir/ltmain.sh"
14158 ofile="$default_ofile"
14159 with_gnu_ld="$lt_cv_prog_gnu_ld"
14160
14161 if test -n "$ac_tool_prefix"; then
14162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14163 set dummy ${ac_tool_prefix}ar; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_prog_AR+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   if test -n "$AR"; then
14170   ac_cv_prog_AR="$AR" # Let the user override the test.
14171 else
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14174 do
14175   IFS=$as_save_IFS
14176   test -z "$as_dir" && as_dir=.
14177   for ac_exec_ext in '' $ac_executable_extensions; do
14178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14179     ac_cv_prog_AR="${ac_tool_prefix}ar"
14180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181     break 2
14182   fi
14183 done
14184 done
14185 IFS=$as_save_IFS
14186
14187 fi
14188 fi
14189 AR=$ac_cv_prog_AR
14190 if test -n "$AR"; then
14191   { echo "$as_me:$LINENO: result: $AR" >&5
14192 echo "${ECHO_T}$AR" >&6; }
14193 else
14194   { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14196 fi
14197
14198
14199 fi
14200 if test -z "$ac_cv_prog_AR"; then
14201   ac_ct_AR=$AR
14202   # Extract the first word of "ar", so it can be a program name with args.
14203 set dummy ar; ac_word=$2
14204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   if test -n "$ac_ct_AR"; then
14210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14211 else
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14214 do
14215   IFS=$as_save_IFS
14216   test -z "$as_dir" && as_dir=.
14217   for ac_exec_ext in '' $ac_executable_extensions; do
14218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219     ac_cv_prog_ac_ct_AR="ar"
14220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221     break 2
14222   fi
14223 done
14224 done
14225 IFS=$as_save_IFS
14226
14227 fi
14228 fi
14229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14230 if test -n "$ac_ct_AR"; then
14231   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14232 echo "${ECHO_T}$ac_ct_AR" >&6; }
14233 else
14234   { echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6; }
14236 fi
14237
14238   if test "x$ac_ct_AR" = x; then
14239     AR="false"
14240   else
14241     case $cross_compiling:$ac_tool_warned in
14242 yes:)
14243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14244 whose name does not start with the host triplet.  If you think this
14245 configuration is useful to you, please write to autoconf@gnu.org." >&5
14246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14247 whose name does not start with the host triplet.  If you think this
14248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14249 ac_tool_warned=yes ;;
14250 esac
14251     AR=$ac_ct_AR
14252   fi
14253 else
14254   AR="$ac_cv_prog_AR"
14255 fi
14256
14257 if test -n "$ac_tool_prefix"; then
14258   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14262 if test "${ac_cv_prog_RANLIB+set}" = set; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   if test -n "$RANLIB"; then
14266   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14267 else
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14270 do
14271   IFS=$as_save_IFS
14272   test -z "$as_dir" && as_dir=.
14273   for ac_exec_ext in '' $ac_executable_extensions; do
14274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14275     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14277     break 2
14278   fi
14279 done
14280 done
14281 IFS=$as_save_IFS
14282
14283 fi
14284 fi
14285 RANLIB=$ac_cv_prog_RANLIB
14286 if test -n "$RANLIB"; then
14287   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14288 echo "${ECHO_T}$RANLIB" >&6; }
14289 else
14290   { echo "$as_me:$LINENO: result: no" >&5
14291 echo "${ECHO_T}no" >&6; }
14292 fi
14293
14294
14295 fi
14296 if test -z "$ac_cv_prog_RANLIB"; then
14297   ac_ct_RANLIB=$RANLIB
14298   # Extract the first word of "ranlib", so it can be a program name with args.
14299 set dummy ranlib; ac_word=$2
14300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305   if test -n "$ac_ct_RANLIB"; then
14306   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311   IFS=$as_save_IFS
14312   test -z "$as_dir" && as_dir=.
14313   for ac_exec_ext in '' $ac_executable_extensions; do
14314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315     ac_cv_prog_ac_ct_RANLIB="ranlib"
14316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317     break 2
14318   fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14326 if test -n "$ac_ct_RANLIB"; then
14327   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14328 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14329 else
14330   { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14332 fi
14333
14334   if test "x$ac_ct_RANLIB" = x; then
14335     RANLIB=":"
14336   else
14337     case $cross_compiling:$ac_tool_warned in
14338 yes:)
14339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14340 whose name does not start with the host triplet.  If you think this
14341 configuration is useful to you, please write to autoconf@gnu.org." >&5
14342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14343 whose name does not start with the host triplet.  If you think this
14344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14345 ac_tool_warned=yes ;;
14346 esac
14347     RANLIB=$ac_ct_RANLIB
14348   fi
14349 else
14350   RANLIB="$ac_cv_prog_RANLIB"
14351 fi
14352
14353 if test -n "$ac_tool_prefix"; then
14354   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14355 set dummy ${ac_tool_prefix}strip; ac_word=$2
14356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14358 if test "${ac_cv_prog_STRIP+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   if test -n "$STRIP"; then
14362   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14363 else
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14366 do
14367   IFS=$as_save_IFS
14368   test -z "$as_dir" && as_dir=.
14369   for ac_exec_ext in '' $ac_executable_extensions; do
14370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14371     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373     break 2
14374   fi
14375 done
14376 done
14377 IFS=$as_save_IFS
14378
14379 fi
14380 fi
14381 STRIP=$ac_cv_prog_STRIP
14382 if test -n "$STRIP"; then
14383   { echo "$as_me:$LINENO: result: $STRIP" >&5
14384 echo "${ECHO_T}$STRIP" >&6; }
14385 else
14386   { echo "$as_me:$LINENO: result: no" >&5
14387 echo "${ECHO_T}no" >&6; }
14388 fi
14389
14390
14391 fi
14392 if test -z "$ac_cv_prog_STRIP"; then
14393   ac_ct_STRIP=$STRIP
14394   # Extract the first word of "strip", so it can be a program name with args.
14395 set dummy strip; ac_word=$2
14396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   if test -n "$ac_ct_STRIP"; then
14402   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14403 else
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14406 do
14407   IFS=$as_save_IFS
14408   test -z "$as_dir" && as_dir=.
14409   for ac_exec_ext in '' $ac_executable_extensions; do
14410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411     ac_cv_prog_ac_ct_STRIP="strip"
14412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413     break 2
14414   fi
14415 done
14416 done
14417 IFS=$as_save_IFS
14418
14419 fi
14420 fi
14421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14422 if test -n "$ac_ct_STRIP"; then
14423   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14424 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14425 else
14426   { echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6; }
14428 fi
14429
14430   if test "x$ac_ct_STRIP" = x; then
14431     STRIP=":"
14432   else
14433     case $cross_compiling:$ac_tool_warned in
14434 yes:)
14435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14436 whose name does not start with the host triplet.  If you think this
14437 configuration is useful to you, please write to autoconf@gnu.org." >&5
14438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14439 whose name does not start with the host triplet.  If you think this
14440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14441 ac_tool_warned=yes ;;
14442 esac
14443     STRIP=$ac_ct_STRIP
14444   fi
14445 else
14446   STRIP="$ac_cv_prog_STRIP"
14447 fi
14448
14449
14450 old_CC="$CC"
14451 old_CFLAGS="$CFLAGS"
14452
14453 # Set sane defaults for various variables
14454 test -z "$AR" && AR=ar
14455 test -z "$AR_FLAGS" && AR_FLAGS=cru
14456 test -z "$AS" && AS=as
14457 test -z "$CC" && CC=cc
14458 test -z "$LTCC" && LTCC=$CC
14459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14460 test -z "$DLLTOOL" && DLLTOOL=dlltool
14461 test -z "$LD" && LD=ld
14462 test -z "$LN_S" && LN_S="ln -s"
14463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14464 test -z "$NM" && NM=nm
14465 test -z "$SED" && SED=sed
14466 test -z "$OBJDUMP" && OBJDUMP=objdump
14467 test -z "$RANLIB" && RANLIB=:
14468 test -z "$STRIP" && STRIP=:
14469 test -z "$ac_objext" && ac_objext=o
14470
14471 # Determine commands to create old-style static archives.
14472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14473 old_postinstall_cmds='chmod 644 $oldlib'
14474 old_postuninstall_cmds=
14475
14476 if test -n "$RANLIB"; then
14477   case $host_os in
14478   openbsd*)
14479     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14480     ;;
14481   *)
14482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14483     ;;
14484   esac
14485   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14486 fi
14487
14488 for cc_temp in $compiler""; do
14489   case $cc_temp in
14490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14492     \-*) ;;
14493     *) break;;
14494   esac
14495 done
14496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14497
14498
14499 # Only perform the check for file, if the check method requires it
14500 case $deplibs_check_method in
14501 file_magic*)
14502   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14503     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14504 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   case $MAGIC_CMD in
14509 [\\/*] |  ?:[\\/]*)
14510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14511   ;;
14512 *)
14513   lt_save_MAGIC_CMD="$MAGIC_CMD"
14514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14515   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14516   for ac_dir in $ac_dummy; do
14517     IFS="$lt_save_ifs"
14518     test -z "$ac_dir" && ac_dir=.
14519     if test -f $ac_dir/${ac_tool_prefix}file; then
14520       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14521       if test -n "$file_magic_test_file"; then
14522         case $deplibs_check_method in
14523         "file_magic "*)
14524           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14525           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14526           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14527             $EGREP "$file_magic_regex" > /dev/null; then
14528             :
14529           else
14530             cat <<EOF 1>&2
14531
14532 *** Warning: the command libtool uses to detect shared libraries,
14533 *** $file_magic_cmd, produces output that libtool cannot recognize.
14534 *** The result is that libtool may fail to recognize shared libraries
14535 *** as such.  This will affect the creation of libtool libraries that
14536 *** depend on shared libraries, but programs linked with such libtool
14537 *** libraries will work regardless of this problem.  Nevertheless, you
14538 *** may want to report the problem to your system manager and/or to
14539 *** bug-libtool@gnu.org
14540
14541 EOF
14542           fi ;;
14543         esac
14544       fi
14545       break
14546     fi
14547   done
14548   IFS="$lt_save_ifs"
14549   MAGIC_CMD="$lt_save_MAGIC_CMD"
14550   ;;
14551 esac
14552 fi
14553
14554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14555 if test -n "$MAGIC_CMD"; then
14556   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14557 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14558 else
14559   { echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6; }
14561 fi
14562
14563 if test -z "$lt_cv_path_MAGIC_CMD"; then
14564   if test -n "$ac_tool_prefix"; then
14565     { echo "$as_me:$LINENO: checking for file" >&5
14566 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   case $MAGIC_CMD in
14571 [\\/*] |  ?:[\\/]*)
14572   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14573   ;;
14574 *)
14575   lt_save_MAGIC_CMD="$MAGIC_CMD"
14576   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14577   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14578   for ac_dir in $ac_dummy; do
14579     IFS="$lt_save_ifs"
14580     test -z "$ac_dir" && ac_dir=.
14581     if test -f $ac_dir/file; then
14582       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14583       if test -n "$file_magic_test_file"; then
14584         case $deplibs_check_method in
14585         "file_magic "*)
14586           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14587           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14588           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14589             $EGREP "$file_magic_regex" > /dev/null; then
14590             :
14591           else
14592             cat <<EOF 1>&2
14593
14594 *** Warning: the command libtool uses to detect shared libraries,
14595 *** $file_magic_cmd, produces output that libtool cannot recognize.
14596 *** The result is that libtool may fail to recognize shared libraries
14597 *** as such.  This will affect the creation of libtool libraries that
14598 *** depend on shared libraries, but programs linked with such libtool
14599 *** libraries will work regardless of this problem.  Nevertheless, you
14600 *** may want to report the problem to your system manager and/or to
14601 *** bug-libtool@gnu.org
14602
14603 EOF
14604           fi ;;
14605         esac
14606       fi
14607       break
14608     fi
14609   done
14610   IFS="$lt_save_ifs"
14611   MAGIC_CMD="$lt_save_MAGIC_CMD"
14612   ;;
14613 esac
14614 fi
14615
14616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14617 if test -n "$MAGIC_CMD"; then
14618   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14619 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14620 else
14621   { echo "$as_me:$LINENO: result: no" >&5
14622 echo "${ECHO_T}no" >&6; }
14623 fi
14624
14625   else
14626     MAGIC_CMD=:
14627   fi
14628 fi
14629
14630   fi
14631   ;;
14632 esac
14633
14634 enable_dlopen=yes
14635 enable_win32_dll=no
14636
14637 # Check whether --enable-libtool-lock was given.
14638 if test "${enable_libtool_lock+set}" = set; then
14639   enableval=$enable_libtool_lock;
14640 fi
14641
14642 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14643
14644
14645 # Check whether --with-pic was given.
14646 if test "${with_pic+set}" = set; then
14647   withval=$with_pic; pic_mode="$withval"
14648 else
14649   pic_mode=default
14650 fi
14651
14652 test -z "$pic_mode" && pic_mode=default
14653
14654 # Use C for the default configuration in the libtool script
14655 tagname=
14656 lt_save_CC="$CC"
14657 ac_ext=c
14658 ac_cpp='$CPP $CPPFLAGS'
14659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14662
14663
14664 # Source file extension for C test sources.
14665 ac_ext=c
14666
14667 # Object file extension for compiled C test sources.
14668 objext=o
14669 objext=$objext
14670
14671 # Code to be used in simple compile tests
14672 lt_simple_compile_test_code="int some_variable = 0;\n"
14673
14674 # Code to be used in simple link tests
14675 lt_simple_link_test_code='int main(){return(0);}\n'
14676
14677
14678 # If no C compiler was specified, use CC.
14679 LTCC=${LTCC-"$CC"}
14680
14681 # If no C compiler flags were specified, use CFLAGS.
14682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14683
14684 # Allow CC to be a program name with arguments.
14685 compiler=$CC
14686
14687
14688 # save warnings/boilerplate of simple test code
14689 ac_outfile=conftest.$ac_objext
14690 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14692 _lt_compiler_boilerplate=`cat conftest.err`
14693 $rm conftest*
14694
14695 ac_outfile=conftest.$ac_objext
14696 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14698 _lt_linker_boilerplate=`cat conftest.err`
14699 $rm conftest*
14700
14701
14702
14703 lt_prog_compiler_no_builtin_flag=
14704
14705 if test "$GCC" = yes; then
14706   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14707
14708
14709 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   lt_cv_prog_compiler_rtti_exceptions=no
14715   ac_outfile=conftest.$ac_objext
14716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717    lt_compiler_flag="-fno-rtti -fno-exceptions"
14718    # Insert the option either (1) after the last *FLAGS variable, or
14719    # (2) before a word containing "conftest.", or (3) at the end.
14720    # Note that $ac_compile itself does not contain backslashes and begins
14721    # with a dollar sign (not a hyphen), so the echo should work correctly.
14722    # The option is referenced via a variable to avoid confusing sed.
14723    lt_compile=`echo "$ac_compile" | $SED \
14724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726    -e 's:$: $lt_compiler_flag:'`
14727    (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
14728    (eval "$lt_compile" 2>conftest.err)
14729    ac_status=$?
14730    cat conftest.err >&5
14731    echo "$as_me:14731: \$? = $ac_status" >&5
14732    if (exit $ac_status) && test -s "$ac_outfile"; then
14733      # The compiler can only warn and ignore the option if not recognized
14734      # So say no if there are warnings other than the usual output.
14735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738        lt_cv_prog_compiler_rtti_exceptions=yes
14739      fi
14740    fi
14741    $rm conftest*
14742
14743 fi
14744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14746
14747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14749 else
14750     :
14751 fi
14752
14753 fi
14754
14755 lt_prog_compiler_wl=
14756 lt_prog_compiler_pic=
14757 lt_prog_compiler_static=
14758
14759 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14761
14762   if test "$GCC" = yes; then
14763     lt_prog_compiler_wl='-Wl,'
14764     lt_prog_compiler_static='-static'
14765
14766     case $host_os in
14767       aix*)
14768       # All AIX code is PIC.
14769       if test "$host_cpu" = ia64; then
14770         # AIX 5 now supports IA64 processor
14771         lt_prog_compiler_static='-Bstatic'
14772       fi
14773       ;;
14774
14775     amigaos*)
14776       # FIXME: we need at least 68020 code to build shared libraries, but
14777       # adding the `-m68020' flag to GCC prevents building anything better,
14778       # like `-m68040'.
14779       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14780       ;;
14781
14782     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783       # PIC is the default for these OSes.
14784       ;;
14785
14786     mingw* | pw32* | os2*)
14787       # This hack is so that the source file can tell whether it is being
14788       # built for inclusion in a dll (and should export symbols for example).
14789       lt_prog_compiler_pic='-DDLL_EXPORT'
14790       ;;
14791
14792     darwin* | rhapsody*)
14793       # PIC is the default on this platform
14794       # Common symbols not allowed in MH_DYLIB files
14795       lt_prog_compiler_pic='-fno-common'
14796       ;;
14797
14798     interix3*)
14799       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14800       # Instead, we relocate shared libraries at runtime.
14801       ;;
14802
14803     msdosdjgpp*)
14804       # Just because we use GCC doesn't mean we suddenly get shared libraries
14805       # on systems that don't support them.
14806       lt_prog_compiler_can_build_shared=no
14807       enable_shared=no
14808       ;;
14809
14810     sysv4*MP*)
14811       if test -d /usr/nec; then
14812         lt_prog_compiler_pic=-Kconform_pic
14813       fi
14814       ;;
14815
14816     hpux*)
14817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818       # not for PA HP-UX.
14819       case $host_cpu in
14820       hppa*64*|ia64*)
14821         # +Z the default
14822         ;;
14823       *)
14824         lt_prog_compiler_pic='-fPIC'
14825         ;;
14826       esac
14827       ;;
14828
14829     *)
14830       lt_prog_compiler_pic='-fPIC'
14831       ;;
14832     esac
14833   else
14834     # PORTME Check for flag to pass linker flags through the system compiler.
14835     case $host_os in
14836     aix*)
14837       lt_prog_compiler_wl='-Wl,'
14838       if test "$host_cpu" = ia64; then
14839         # AIX 5 now supports IA64 processor
14840         lt_prog_compiler_static='-Bstatic'
14841       else
14842         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14843       fi
14844       ;;
14845       darwin*)
14846         # PIC is the default on this platform
14847         # Common symbols not allowed in MH_DYLIB files
14848        case $cc_basename in
14849          xlc*)
14850          lt_prog_compiler_pic='-qnocommon'
14851          lt_prog_compiler_wl='-Wl,'
14852          ;;
14853        esac
14854        ;;
14855
14856     mingw* | pw32* | os2*)
14857       # This hack is so that the source file can tell whether it is being
14858       # built for inclusion in a dll (and should export symbols for example).
14859       lt_prog_compiler_pic='-DDLL_EXPORT'
14860       ;;
14861
14862     hpux9* | hpux10* | hpux11*)
14863       lt_prog_compiler_wl='-Wl,'
14864       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14865       # not for PA HP-UX.
14866       case $host_cpu in
14867       hppa*64*|ia64*)
14868         # +Z the default
14869         ;;
14870       *)
14871         lt_prog_compiler_pic='+Z'
14872         ;;
14873       esac
14874       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14875       lt_prog_compiler_static='${wl}-a ${wl}archive'
14876       ;;
14877
14878     irix5* | irix6* | nonstopux*)
14879       lt_prog_compiler_wl='-Wl,'
14880       # PIC (with -KPIC) is the default.
14881       lt_prog_compiler_static='-non_shared'
14882       ;;
14883
14884     newsos6)
14885       lt_prog_compiler_pic='-KPIC'
14886       lt_prog_compiler_static='-Bstatic'
14887       ;;
14888
14889     linux*)
14890       case $cc_basename in
14891       icc* | ecc*)
14892         lt_prog_compiler_wl='-Wl,'
14893         lt_prog_compiler_pic='-KPIC'
14894         lt_prog_compiler_static='-static'
14895         ;;
14896       pgcc* | pgf77* | pgf90* | pgf95*)
14897         # Portland Group compilers (*not* the Pentium gcc compiler,
14898         # which looks to be a dead project)
14899         lt_prog_compiler_wl='-Wl,'
14900         lt_prog_compiler_pic='-fpic'
14901         lt_prog_compiler_static='-Bstatic'
14902         ;;
14903       ccc*)
14904         lt_prog_compiler_wl='-Wl,'
14905         # All Alpha code is PIC.
14906         lt_prog_compiler_static='-non_shared'
14907         ;;
14908       esac
14909       ;;
14910
14911     osf3* | osf4* | osf5*)
14912       lt_prog_compiler_wl='-Wl,'
14913       # All OSF/1 code is PIC.
14914       lt_prog_compiler_static='-non_shared'
14915       ;;
14916
14917     solaris*)
14918       lt_prog_compiler_pic='-KPIC'
14919       lt_prog_compiler_static='-Bstatic'
14920       case $cc_basename in
14921       f77* | f90* | f95*)
14922         lt_prog_compiler_wl='-Qoption ld ';;
14923       *)
14924         lt_prog_compiler_wl='-Wl,';;
14925       esac
14926       ;;
14927
14928     sunos4*)
14929       lt_prog_compiler_wl='-Qoption ld '
14930       lt_prog_compiler_pic='-PIC'
14931       lt_prog_compiler_static='-Bstatic'
14932       ;;
14933
14934     sysv4 | sysv4.2uw2* | sysv4.3*)
14935       lt_prog_compiler_wl='-Wl,'
14936       lt_prog_compiler_pic='-KPIC'
14937       lt_prog_compiler_static='-Bstatic'
14938       ;;
14939
14940     sysv4*MP*)
14941       if test -d /usr/nec ;then
14942         lt_prog_compiler_pic='-Kconform_pic'
14943         lt_prog_compiler_static='-Bstatic'
14944       fi
14945       ;;
14946
14947     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948       lt_prog_compiler_wl='-Wl,'
14949       lt_prog_compiler_pic='-KPIC'
14950       lt_prog_compiler_static='-Bstatic'
14951       ;;
14952
14953     unicos*)
14954       lt_prog_compiler_wl='-Wl,'
14955       lt_prog_compiler_can_build_shared=no
14956       ;;
14957
14958     uts4*)
14959       lt_prog_compiler_pic='-pic'
14960       lt_prog_compiler_static='-Bstatic'
14961       ;;
14962
14963     *)
14964       lt_prog_compiler_can_build_shared=no
14965       ;;
14966     esac
14967   fi
14968
14969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14970 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14971
14972 #
14973 # Check to make sure the PIC flag actually works.
14974 #
14975 if test -n "$lt_prog_compiler_pic"; then
14976
14977 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14979 if test "${lt_prog_compiler_pic_works+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   lt_prog_compiler_pic_works=no
14983   ac_outfile=conftest.$ac_objext
14984    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14986    # Insert the option either (1) after the last *FLAGS variable, or
14987    # (2) before a word containing "conftest.", or (3) at the end.
14988    # Note that $ac_compile itself does not contain backslashes and begins
14989    # with a dollar sign (not a hyphen), so the echo should work correctly.
14990    # The option is referenced via a variable to avoid confusing sed.
14991    lt_compile=`echo "$ac_compile" | $SED \
14992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994    -e 's:$: $lt_compiler_flag:'`
14995    (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996    (eval "$lt_compile" 2>conftest.err)
14997    ac_status=$?
14998    cat conftest.err >&5
14999    echo "$as_me:14999: \$? = $ac_status" >&5
15000    if (exit $ac_status) && test -s "$ac_outfile"; then
15001      # The compiler can only warn and ignore the option if not recognized
15002      # So say no if there are warnings other than the usual output.
15003      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006        lt_prog_compiler_pic_works=yes
15007      fi
15008    fi
15009    $rm conftest*
15010
15011 fi
15012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15013 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15014
15015 if test x"$lt_prog_compiler_pic_works" = xyes; then
15016     case $lt_prog_compiler_pic in
15017      "" | " "*) ;;
15018      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15019      esac
15020 else
15021     lt_prog_compiler_pic=
15022      lt_prog_compiler_can_build_shared=no
15023 fi
15024
15025 fi
15026 case $host_os in
15027   # For platforms which do not support PIC, -DPIC is meaningless:
15028   *djgpp*)
15029     lt_prog_compiler_pic=
15030     ;;
15031   *)
15032     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15033     ;;
15034 esac
15035
15036 #
15037 # Check to make sure the static flag actually works.
15038 #
15039 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15040 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15042 if test "${lt_prog_compiler_static_works+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   lt_prog_compiler_static_works=no
15046    save_LDFLAGS="$LDFLAGS"
15047    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15049    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050      # The linker can only warn and ignore the option if not recognized
15051      # So say no if there are warnings
15052      if test -s conftest.err; then
15053        # Append any errors to the config.log.
15054        cat conftest.err 1>&5
15055        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057        if diff conftest.exp conftest.er2 >/dev/null; then
15058          lt_prog_compiler_static_works=yes
15059        fi
15060      else
15061        lt_prog_compiler_static_works=yes
15062      fi
15063    fi
15064    $rm conftest*
15065    LDFLAGS="$save_LDFLAGS"
15066
15067 fi
15068 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15069 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15070
15071 if test x"$lt_prog_compiler_static_works" = xyes; then
15072     :
15073 else
15074     lt_prog_compiler_static=
15075 fi
15076
15077
15078 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   lt_cv_prog_compiler_c_o=no
15084    $rm -r conftest 2>/dev/null
15085    mkdir conftest
15086    cd conftest
15087    mkdir out
15088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15089
15090    lt_compiler_flag="-o out/conftest2.$ac_objext"
15091    # Insert the option either (1) after the last *FLAGS variable, or
15092    # (2) before a word containing "conftest.", or (3) at the end.
15093    # Note that $ac_compile itself does not contain backslashes and begins
15094    # with a dollar sign (not a hyphen), so the echo should work correctly.
15095    lt_compile=`echo "$ac_compile" | $SED \
15096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098    -e 's:$: $lt_compiler_flag:'`
15099    (eval echo "\"\$as_me:15099: $lt_compile\"" >&5)
15100    (eval "$lt_compile" 2>out/conftest.err)
15101    ac_status=$?
15102    cat out/conftest.err >&5
15103    echo "$as_me:15103: \$? = $ac_status" >&5
15104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105    then
15106      # The compiler can only warn and ignore the option if not recognized
15107      # So say no if there are warnings
15108      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15109      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15110      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15111        lt_cv_prog_compiler_c_o=yes
15112      fi
15113    fi
15114    chmod u+w . 2>&5
15115    $rm conftest*
15116    # SGI C++ compiler will create directory out/ii_files/ for
15117    # template instantiation
15118    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15119    $rm out/* && rmdir out
15120    cd ..
15121    rmdir conftest
15122    $rm conftest*
15123
15124 fi
15125 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15127
15128
15129 hard_links="nottested"
15130 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15131   # do not overwrite the value of need_locks provided by the user
15132   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15134   hard_links=yes
15135   $rm conftest*
15136   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137   touch conftest.a
15138   ln conftest.a conftest.b 2>&5 || hard_links=no
15139   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15140   { echo "$as_me:$LINENO: result: $hard_links" >&5
15141 echo "${ECHO_T}$hard_links" >&6; }
15142   if test "$hard_links" = no; then
15143     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15145     need_locks=warn
15146   fi
15147 else
15148   need_locks=no
15149 fi
15150
15151 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15153
15154   runpath_var=
15155   allow_undefined_flag=
15156   enable_shared_with_static_runtimes=no
15157   archive_cmds=
15158   archive_expsym_cmds=
15159   old_archive_From_new_cmds=
15160   old_archive_from_expsyms_cmds=
15161   export_dynamic_flag_spec=
15162   whole_archive_flag_spec=
15163   thread_safe_flag_spec=
15164   hardcode_libdir_flag_spec=
15165   hardcode_libdir_flag_spec_ld=
15166   hardcode_libdir_separator=
15167   hardcode_direct=no
15168   hardcode_minus_L=no
15169   hardcode_shlibpath_var=unsupported
15170   link_all_deplibs=unknown
15171   hardcode_automatic=no
15172   module_cmds=
15173   module_expsym_cmds=
15174   always_export_symbols=no
15175   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15176   # include_expsyms should be a list of space-separated symbols to be *always*
15177   # included in the symbol list
15178   include_expsyms=
15179   # exclude_expsyms can be an extended regexp of symbols to exclude
15180   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15181   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15182   # as well as any symbol that contains `d'.
15183   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15184   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15185   # platforms (ab)use it in PIC code, but their linkers get confused if
15186   # the symbol is explicitly referenced.  Since portable code cannot
15187   # rely on this symbol name, it's probably fine to never include it in
15188   # preloaded symbol tables.
15189   extract_expsyms_cmds=
15190   # Just being paranoid about ensuring that cc_basename is set.
15191   for cc_temp in $compiler""; do
15192   case $cc_temp in
15193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15195     \-*) ;;
15196     *) break;;
15197   esac
15198 done
15199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15200
15201   case $host_os in
15202   cygwin* | mingw* | pw32*)
15203     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15204     # When not using gcc, we currently assume that we are using
15205     # Microsoft Visual C++.
15206     if test "$GCC" != yes; then
15207       with_gnu_ld=no
15208     fi
15209     ;;
15210   interix*)
15211     # we just hope/assume this is gcc and not c89 (= MSVC++)
15212     with_gnu_ld=yes
15213     ;;
15214   openbsd*)
15215     with_gnu_ld=no
15216     ;;
15217   esac
15218
15219   ld_shlibs=yes
15220   if test "$with_gnu_ld" = yes; then
15221     # If archive_cmds runs LD, not CC, wlarc should be empty
15222     wlarc='${wl}'
15223
15224     # Set some defaults for GNU ld with shared library support. These
15225     # are reset later if shared libraries are not supported. Putting them
15226     # here allows them to be overridden if necessary.
15227     runpath_var=LD_RUN_PATH
15228     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15229     export_dynamic_flag_spec='${wl}--export-dynamic'
15230     # ancient GNU ld didn't support --whole-archive et. al.
15231     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15232         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233       else
15234         whole_archive_flag_spec=
15235     fi
15236     supports_anon_versioning=no
15237     case `$LD -v 2>/dev/null` in
15238       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15239       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15240       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15241       *\ 2.11.*) ;; # other 2.11 versions
15242       *) supports_anon_versioning=yes ;;
15243     esac
15244
15245     # See if GNU ld supports shared libraries.
15246     case $host_os in
15247     aix3* | aix4* | aix5*)
15248       # On AIX/PPC, the GNU linker is very broken
15249       if test "$host_cpu" != ia64; then
15250         ld_shlibs=no
15251         cat <<EOF 1>&2
15252
15253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15254 *** to be unable to reliably create shared libraries on AIX.
15255 *** Therefore, libtool is disabling shared libraries support.  If you
15256 *** really care for shared libraries, you may want to modify your PATH
15257 *** so that a non-GNU linker is found, and then restart.
15258
15259 EOF
15260       fi
15261       ;;
15262
15263     amigaos*)
15264       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)'
15265       hardcode_libdir_flag_spec='-L$libdir'
15266       hardcode_minus_L=yes
15267
15268       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15269       # that the semantics of dynamic libraries on AmigaOS, at least up
15270       # to version 4, is to share data among multiple programs linked
15271       # with the same dynamic library.  Since this doesn't match the
15272       # behavior of shared libraries on other platforms, we can't use
15273       # them.
15274       ld_shlibs=no
15275       ;;
15276
15277     beos*)
15278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15279         allow_undefined_flag=unsupported
15280         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15281         # support --undefined.  This deserves some investigation.  FIXME
15282         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283       else
15284         ld_shlibs=no
15285       fi
15286       ;;
15287
15288     cygwin* | mingw* | pw32*)
15289       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15290       # as there is no search path for DLLs.
15291       hardcode_libdir_flag_spec='-L$libdir'
15292       allow_undefined_flag=unsupported
15293       always_export_symbols=no
15294       enable_shared_with_static_runtimes=yes
15295       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15296
15297       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15299         # If the export-symbols file already is a .def file (1st line
15300         # is EXPORTS), use it as is; otherwise, prepend...
15301         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15302           cp $export_symbols $output_objdir/$soname.def;
15303         else
15304           echo EXPORTS > $output_objdir/$soname.def;
15305           cat $export_symbols >> $output_objdir/$soname.def;
15306         fi~
15307         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15308       else
15309         ld_shlibs=no
15310       fi
15311       ;;
15312
15313     interix3*)
15314       hardcode_direct=no
15315       hardcode_shlibpath_var=no
15316       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317       export_dynamic_flag_spec='${wl}-E'
15318       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319       # Instead, shared libraries are loaded at an image base (0x10000000 by
15320       # default) and relocated if they conflict, which is a slow very memory
15321       # consuming and fragmenting process.  To avoid this, we pick a random,
15322       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15324       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325       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'
15326       ;;
15327
15328     linux*)
15329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330         tmp_addflag=
15331         case $cc_basename,$host_cpu in
15332         pgcc*)                          # Portland Group C compiler
15333           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'
15334           tmp_addflag=' $pic_flag'
15335           ;;
15336         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15337           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'
15338           tmp_addflag=' $pic_flag -Mnomain' ;;
15339         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15340           tmp_addflag=' -i_dynamic' ;;
15341         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15342           tmp_addflag=' -i_dynamic -nofor_main' ;;
15343         ifc* | ifort*)                  # Intel Fortran compiler
15344           tmp_addflag=' -nofor_main' ;;
15345         esac
15346         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347
15348         if test $supports_anon_versioning = yes; then
15349           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15350   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15351   $echo "local: *; };" >> $output_objdir/$libname.ver~
15352           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15353         fi
15354       else
15355         ld_shlibs=no
15356       fi
15357       ;;
15358
15359     netbsd*)
15360       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15361         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15362         wlarc=
15363       else
15364         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15366       fi
15367       ;;
15368
15369     solaris*)
15370       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15371         ld_shlibs=no
15372         cat <<EOF 1>&2
15373
15374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375 *** create shared libraries on Solaris systems.  Therefore, libtool
15376 *** is disabling shared libraries support.  We urge you to upgrade GNU
15377 *** binutils to release 2.9.1 or newer.  Another option is to modify
15378 *** your PATH or compiler configuration so that the native linker is
15379 *** used, and then restart.
15380
15381 EOF
15382       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385       else
15386         ld_shlibs=no
15387       fi
15388       ;;
15389
15390     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391       case `$LD -v 2>&1` in
15392         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15393         ld_shlibs=no
15394         cat <<_LT_EOF 1>&2
15395
15396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15398 *** is disabling shared libraries support.  We urge you to upgrade GNU
15399 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15400 *** your PATH or compiler configuration so that the native linker is
15401 *** used, and then restart.
15402
15403 _LT_EOF
15404         ;;
15405         *)
15406           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15408             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15409             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15410           else
15411             ld_shlibs=no
15412           fi
15413         ;;
15414       esac
15415       ;;
15416
15417     sunos4*)
15418       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419       wlarc=
15420       hardcode_direct=yes
15421       hardcode_shlibpath_var=no
15422       ;;
15423
15424     *)
15425       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428       else
15429         ld_shlibs=no
15430       fi
15431       ;;
15432     esac
15433
15434     if test "$ld_shlibs" = no; then
15435       runpath_var=
15436       hardcode_libdir_flag_spec=
15437       export_dynamic_flag_spec=
15438       whole_archive_flag_spec=
15439     fi
15440   else
15441     # PORTME fill in a description of your system's linker (not GNU ld)
15442     case $host_os in
15443     aix3*)
15444       allow_undefined_flag=unsupported
15445       always_export_symbols=yes
15446       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'
15447       # Note: this linker hardcodes the directories in LIBPATH if there
15448       # are no directories specified by -L.
15449       hardcode_minus_L=yes
15450       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15451         # Neither direct hardcoding nor static linking is supported with a
15452         # broken collect2.
15453         hardcode_direct=unsupported
15454       fi
15455       ;;
15456
15457     aix4* | aix5*)
15458       if test "$host_cpu" = ia64; then
15459         # On IA64, the linker does run time linking by default, so we don't
15460         # have to do anything special.
15461         aix_use_runtimelinking=no
15462         exp_sym_flag='-Bexport'
15463         no_entry_flag=""
15464       else
15465         # If we're using GNU nm, then we don't want the "-C" option.
15466         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15467         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15468           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'
15469         else
15470           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'
15471         fi
15472         aix_use_runtimelinking=no
15473
15474         # Test if we are trying to use run time linking or normal
15475         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15476         # need to do runtime linking.
15477         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15478           for ld_flag in $LDFLAGS; do
15479           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15480             aix_use_runtimelinking=yes
15481             break
15482           fi
15483           done
15484           ;;
15485         esac
15486
15487         exp_sym_flag='-bexport'
15488         no_entry_flag='-bnoentry'
15489       fi
15490
15491       # When large executables or shared objects are built, AIX ld can
15492       # have problems creating the table of contents.  If linking a library
15493       # or program results in "error TOC overflow" add -mminimal-toc to
15494       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15495       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15496
15497       archive_cmds=''
15498       hardcode_direct=yes
15499       hardcode_libdir_separator=':'
15500       link_all_deplibs=yes
15501
15502       if test "$GCC" = yes; then
15503         case $host_os in aix4.[012]|aix4.[012].*)
15504         # We only want to do this on AIX 4.2 and lower, the check
15505         # below for broken collect2 doesn't work under 4.3+
15506           collect2name=`${CC} -print-prog-name=collect2`
15507           if test -f "$collect2name" && \
15508            strings "$collect2name" | grep resolve_lib_name >/dev/null
15509           then
15510           # We have reworked collect2
15511           hardcode_direct=yes
15512           else
15513           # We have old collect2
15514           hardcode_direct=unsupported
15515           # It fails to find uninstalled libraries when the uninstalled
15516           # path is not listed in the libpath.  Setting hardcode_minus_L
15517           # to unsupported forces relinking
15518           hardcode_minus_L=yes
15519           hardcode_libdir_flag_spec='-L$libdir'
15520           hardcode_libdir_separator=
15521           fi
15522           ;;
15523         esac
15524         shared_flag='-shared'
15525         if test "$aix_use_runtimelinking" = yes; then
15526           shared_flag="$shared_flag "'${wl}-G'
15527         fi
15528       else
15529         # not using gcc
15530         if test "$host_cpu" = ia64; then
15531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15532         # chokes on -Wl,-G. The following line is correct:
15533           shared_flag='-G'
15534         else
15535           if test "$aix_use_runtimelinking" = yes; then
15536             shared_flag='${wl}-G'
15537           else
15538             shared_flag='${wl}-bM:SRE'
15539           fi
15540         fi
15541       fi
15542
15543       # It seems that -bexpall does not export symbols beginning with
15544       # underscore (_), so it is better to generate a list of symbols to export.
15545       always_export_symbols=yes
15546       if test "$aix_use_runtimelinking" = yes; then
15547         # Warning - without using the other runtime loading flags (-brtl),
15548         # -berok will link without error, but may produce a broken library.
15549         allow_undefined_flag='-berok'
15550        # Determine the default libpath from the value encoded in an empty executable.
15551        cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557
15558 int
15559 main ()
15560 {
15561
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (ac_try="$ac_link"
15568 case "(($ac_try" in
15569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570   *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573   (eval "$ac_link") 2>conftest.er1
15574   ac_status=$?
15575   grep -v '^ *+' conftest.er1 >conftest.err
15576   rm -f conftest.er1
15577   cat conftest.err >&5
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581   { (case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586   (eval "$ac_try") 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; } &&
15590          { ac_try='test -s conftest$ac_exeext'
15591   { (case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_try") 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); }; }; then
15600
15601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15602 }'`
15603 # Check for a 64-bit object if we didn't find anything.
15604 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; }
15605 }'`; fi
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext \
15614       conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15616
15617        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15618         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"
15619        else
15620         if test "$host_cpu" = ia64; then
15621           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15622           allow_undefined_flag="-z nodefs"
15623           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"
15624         else
15625          # Determine the default libpath from the value encoded in an empty executable.
15626          cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632
15633 int
15634 main ()
15635 {
15636
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_link") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656   { (case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_try") 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675
15676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15677 }'`
15678 # Check for a 64-bit object if we didn't find anything.
15679 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; }
15680 }'`; fi
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685
15686 fi
15687
15688 rm -f core conftest.err conftest.$ac_objext \
15689       conftest$ac_exeext conftest.$ac_ext
15690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15691
15692          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15693           # Warning - without using the other run time loading flags,
15694           # -berok will link without error, but may produce a broken library.
15695           no_undefined_flag=' ${wl}-bernotok'
15696           allow_undefined_flag=' ${wl}-berok'
15697           # Exported symbols can be pulled into shared objects from archives
15698           whole_archive_flag_spec='$convenience'
15699           archive_cmds_need_lc=yes
15700           # This is similar to how AIX traditionally builds its shared libraries.
15701           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'
15702         fi
15703       fi
15704       ;;
15705
15706     amigaos*)
15707       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)'
15708       hardcode_libdir_flag_spec='-L$libdir'
15709       hardcode_minus_L=yes
15710       # see comment about different semantics on the GNU ld section
15711       ld_shlibs=no
15712       ;;
15713
15714     bsdi[45]*)
15715       export_dynamic_flag_spec=-rdynamic
15716       ;;
15717
15718     cygwin* | mingw* | pw32*)
15719       # When not using gcc, we currently assume that we are using
15720       # Microsoft Visual C++.
15721       # hardcode_libdir_flag_spec is actually meaningless, as there is
15722       # no search path for DLLs.
15723       hardcode_libdir_flag_spec=' '
15724       allow_undefined_flag=unsupported
15725       # Tell ltmain to make .lib files, not .a files.
15726       libext=lib
15727       # Tell ltmain to make .dll files, not .so files.
15728       shrext_cmds=".dll"
15729       # FIXME: Setting linknames here is a bad hack.
15730       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15731       # The linker will automatically build a .lib file if we build a DLL.
15732       old_archive_From_new_cmds='true'
15733       # FIXME: Should let the user specify the lib program.
15734       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15735       fix_srcfile_path='`cygpath -w "$srcfile"`'
15736       enable_shared_with_static_runtimes=yes
15737       ;;
15738
15739     darwin* | rhapsody*)
15740       case $host_os in
15741         rhapsody* | darwin1.[012])
15742          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15743          ;;
15744        *) # Darwin 1.3 on
15745          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15746            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15747          else
15748            case ${MACOSX_DEPLOYMENT_TARGET} in
15749              10.[012])
15750                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15751                ;;
15752              10.*)
15753                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15754                ;;
15755            esac
15756          fi
15757          ;;
15758       esac
15759       archive_cmds_need_lc=no
15760       hardcode_direct=no
15761       hardcode_automatic=yes
15762       hardcode_shlibpath_var=unsupported
15763       whole_archive_flag_spec=''
15764       link_all_deplibs=yes
15765     if test "$GCC" = yes ; then
15766         output_verbose_link_cmd='echo'
15767         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15768       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15769       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15770       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}'
15771       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}'
15772     else
15773       case $cc_basename in
15774         xlc*)
15775          output_verbose_link_cmd='echo'
15776          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15777          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15778           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15779          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}'
15780           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}'
15781           ;;
15782        *)
15783          ld_shlibs=no
15784           ;;
15785       esac
15786     fi
15787       ;;
15788
15789     dgux*)
15790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791       hardcode_libdir_flag_spec='-L$libdir'
15792       hardcode_shlibpath_var=no
15793       ;;
15794
15795     freebsd1*)
15796       ld_shlibs=no
15797       ;;
15798
15799     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15800     # support.  Future versions do this automatically, but an explicit c++rt0.o
15801     # does not break anything, and helps significantly (at the cost of a little
15802     # extra space).
15803     freebsd2.2*)
15804       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15805       hardcode_libdir_flag_spec='-R$libdir'
15806       hardcode_direct=yes
15807       hardcode_shlibpath_var=no
15808       ;;
15809
15810     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15811     freebsd2*)
15812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15813       hardcode_direct=yes
15814       hardcode_minus_L=yes
15815       hardcode_shlibpath_var=no
15816       ;;
15817
15818     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15819     freebsd* | kfreebsd*-gnu | dragonfly*)
15820       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15821       hardcode_libdir_flag_spec='-R$libdir'
15822       hardcode_direct=yes
15823       hardcode_shlibpath_var=no
15824       ;;
15825
15826     hpux9*)
15827       if test "$GCC" = yes; then
15828         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'
15829       else
15830         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'
15831       fi
15832       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15833       hardcode_libdir_separator=:
15834       hardcode_direct=yes
15835
15836       # hardcode_minus_L: Not really in the search PATH,
15837       # but as the default location of the library.
15838       hardcode_minus_L=yes
15839       export_dynamic_flag_spec='${wl}-E'
15840       ;;
15841
15842     hpux10*)
15843       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15844         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15845       else
15846         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15847       fi
15848       if test "$with_gnu_ld" = no; then
15849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15850         hardcode_libdir_separator=:
15851
15852         hardcode_direct=yes
15853         export_dynamic_flag_spec='${wl}-E'
15854
15855         # hardcode_minus_L: Not really in the search PATH,
15856         # but as the default location of the library.
15857         hardcode_minus_L=yes
15858       fi
15859       ;;
15860
15861     hpux11*)
15862       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15863         case $host_cpu in
15864         hppa*64*)
15865           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866           ;;
15867         ia64*)
15868           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15869           ;;
15870         *)
15871           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15872           ;;
15873         esac
15874       else
15875         case $host_cpu in
15876         hppa*64*)
15877           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15878           ;;
15879         ia64*)
15880           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15881           ;;
15882         *)
15883           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15884           ;;
15885         esac
15886       fi
15887       if test "$with_gnu_ld" = no; then
15888         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889         hardcode_libdir_separator=:
15890
15891         case $host_cpu in
15892         hppa*64*|ia64*)
15893           hardcode_libdir_flag_spec_ld='+b $libdir'
15894           hardcode_direct=no
15895           hardcode_shlibpath_var=no
15896           ;;
15897         *)
15898           hardcode_direct=yes
15899           export_dynamic_flag_spec='${wl}-E'
15900
15901           # hardcode_minus_L: Not really in the search PATH,
15902           # but as the default location of the library.
15903           hardcode_minus_L=yes
15904           ;;
15905         esac
15906       fi
15907       ;;
15908
15909     irix5* | irix6* | nonstopux*)
15910       if test "$GCC" = yes; then
15911         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'
15912       else
15913         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'
15914         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15915       fi
15916       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15917       hardcode_libdir_separator=:
15918       link_all_deplibs=yes
15919       ;;
15920
15921     netbsd*)
15922       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15924       else
15925         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15926       fi
15927       hardcode_libdir_flag_spec='-R$libdir'
15928       hardcode_direct=yes
15929       hardcode_shlibpath_var=no
15930       ;;
15931
15932     newsos6)
15933       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934       hardcode_direct=yes
15935       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936       hardcode_libdir_separator=:
15937       hardcode_shlibpath_var=no
15938       ;;
15939
15940     openbsd*)
15941       hardcode_direct=yes
15942       hardcode_shlibpath_var=no
15943       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15945         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15946         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15947         export_dynamic_flag_spec='${wl}-E'
15948       else
15949        case $host_os in
15950          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15951            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952            hardcode_libdir_flag_spec='-R$libdir'
15953            ;;
15954          *)
15955            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15956            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15957            ;;
15958        esac
15959       fi
15960       ;;
15961
15962     os2*)
15963       hardcode_libdir_flag_spec='-L$libdir'
15964       hardcode_minus_L=yes
15965       allow_undefined_flag=unsupported
15966       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'
15967       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968       ;;
15969
15970     osf3*)
15971       if test "$GCC" = yes; then
15972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15973         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'
15974       else
15975         allow_undefined_flag=' -expect_unresolved \*'
15976         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'
15977       fi
15978       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979       hardcode_libdir_separator=:
15980       ;;
15981
15982     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15983       if test "$GCC" = yes; then
15984         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15985         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'
15986         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15987       else
15988         allow_undefined_flag=' -expect_unresolved \*'
15989         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'
15990         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15991         $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'
15992
15993         # Both c and cxx compiler support -rpath directly
15994         hardcode_libdir_flag_spec='-rpath $libdir'
15995       fi
15996       hardcode_libdir_separator=:
15997       ;;
15998
15999     solaris*)
16000       no_undefined_flag=' -z text'
16001       if test "$GCC" = yes; then
16002         wlarc='${wl}'
16003         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16006       else
16007         wlarc=''
16008         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16010         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16011       fi
16012       hardcode_libdir_flag_spec='-R$libdir'
16013       hardcode_shlibpath_var=no
16014       case $host_os in
16015       solaris2.[0-5] | solaris2.[0-5].*) ;;
16016       *)
16017         # The compiler driver will combine linker options so we
16018         # cannot just pass the convience library names through
16019         # without $wl, iff we do not link with $LD.
16020         # Luckily, gcc supports the same syntax we need for Sun Studio.
16021         # Supported since Solaris 2.6 (maybe 2.5.1?)
16022         case $wlarc in
16023         '')
16024           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16025         *)
16026           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' ;;
16027         esac ;;
16028       esac
16029       link_all_deplibs=yes
16030       ;;
16031
16032     sunos4*)
16033       if test "x$host_vendor" = xsequent; then
16034         # Use $CC to link under sequent, because it throws in some extra .o
16035         # files that make .init and .fini sections work.
16036         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16037       else
16038         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16039       fi
16040       hardcode_libdir_flag_spec='-L$libdir'
16041       hardcode_direct=yes
16042       hardcode_minus_L=yes
16043       hardcode_shlibpath_var=no
16044       ;;
16045
16046     sysv4)
16047       case $host_vendor in
16048         sni)
16049           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050           hardcode_direct=yes # is this really true???
16051         ;;
16052         siemens)
16053           ## LD is ld it makes a PLAMLIB
16054           ## CC just makes a GrossModule.
16055           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16056           reload_cmds='$CC -r -o $output$reload_objs'
16057           hardcode_direct=no
16058         ;;
16059         motorola)
16060           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16062         ;;
16063       esac
16064       runpath_var='LD_RUN_PATH'
16065       hardcode_shlibpath_var=no
16066       ;;
16067
16068     sysv4.3*)
16069       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070       hardcode_shlibpath_var=no
16071       export_dynamic_flag_spec='-Bexport'
16072       ;;
16073
16074     sysv4*MP*)
16075       if test -d /usr/nec; then
16076         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077         hardcode_shlibpath_var=no
16078         runpath_var=LD_RUN_PATH
16079         hardcode_runpath_var=yes
16080         ld_shlibs=yes
16081       fi
16082       ;;
16083
16084     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16085       no_undefined_flag='${wl}-z,text'
16086       archive_cmds_need_lc=no
16087       hardcode_shlibpath_var=no
16088       runpath_var='LD_RUN_PATH'
16089
16090       if test "$GCC" = yes; then
16091         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093       else
16094         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096       fi
16097       ;;
16098
16099     sysv5* | sco3.2v5* | sco5v6*)
16100       # Note: We can NOT use -z defs as we might desire, because we do not
16101       # link with -lc, and that would cause any symbols used from libc to
16102       # always be unresolved, which means just about no library would
16103       # ever link correctly.  If we're not using GNU ld we use -z text
16104       # though, which does catch some bad symbols but isn't as heavy-handed
16105       # as -z defs.
16106       no_undefined_flag='${wl}-z,text'
16107       allow_undefined_flag='${wl}-z,nodefs'
16108       archive_cmds_need_lc=no
16109       hardcode_shlibpath_var=no
16110       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16111       hardcode_libdir_separator=':'
16112       link_all_deplibs=yes
16113       export_dynamic_flag_spec='${wl}-Bexport'
16114       runpath_var='LD_RUN_PATH'
16115
16116       if test "$GCC" = yes; then
16117         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119       else
16120         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122       fi
16123       ;;
16124
16125     uts4*)
16126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127       hardcode_libdir_flag_spec='-L$libdir'
16128       hardcode_shlibpath_var=no
16129       ;;
16130
16131     *)
16132       ld_shlibs=no
16133       ;;
16134     esac
16135   fi
16136
16137 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16138 echo "${ECHO_T}$ld_shlibs" >&6; }
16139 test "$ld_shlibs" = no && can_build_shared=no
16140
16141 #
16142 # Do we need to explicitly link libc?
16143 #
16144 case "x$archive_cmds_need_lc" in
16145 x|xyes)
16146   # Assume -lc should be added
16147   archive_cmds_need_lc=yes
16148
16149   if test "$enable_shared" = yes && test "$GCC" = yes; then
16150     case $archive_cmds in
16151     *'~'*)
16152       # FIXME: we may have to deal with multi-command sequences.
16153       ;;
16154     '$CC '*)
16155       # Test whether the compiler implicitly links with -lc since on some
16156       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157       # to ld, don't add -lc before -lgcc.
16158       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16160       $rm conftest*
16161       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16162
16163       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164   (eval $ac_compile) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } 2>conftest.err; then
16168         soname=conftest
16169         lib=conftest
16170         libobjs=conftest.$ac_objext
16171         deplibs=
16172         wl=$lt_prog_compiler_wl
16173         pic_flag=$lt_prog_compiler_pic
16174         compiler_flags=-v
16175         linker_flags=-v
16176         verstring=
16177         output_objdir=.
16178         libname=conftest
16179         lt_save_allow_undefined_flag=$allow_undefined_flag
16180         allow_undefined_flag=
16181         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16182   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }
16186         then
16187           archive_cmds_need_lc=no
16188         else
16189           archive_cmds_need_lc=yes
16190         fi
16191         allow_undefined_flag=$lt_save_allow_undefined_flag
16192       else
16193         cat conftest.err 1>&5
16194       fi
16195       $rm conftest*
16196       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16197 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16198       ;;
16199     esac
16200   fi
16201   ;;
16202 esac
16203
16204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16206 library_names_spec=
16207 libname_spec='lib$name'
16208 soname_spec=
16209 shrext_cmds=".so"
16210 postinstall_cmds=
16211 postuninstall_cmds=
16212 finish_cmds=
16213 finish_eval=
16214 shlibpath_var=
16215 shlibpath_overrides_runpath=unknown
16216 version_type=none
16217 dynamic_linker="$host_os ld.so"
16218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16219 if test "$GCC" = yes; then
16220   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16221   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16222     # if the path contains ";" then we assume it to be the separator
16223     # otherwise default to the standard path separator (i.e. ":") - it is
16224     # assumed that no part of a normal pathname contains ";" but that should
16225     # okay in the real world where ";" in dirpaths is itself problematic.
16226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227   else
16228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16229   fi
16230 else
16231   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16232 fi
16233 need_lib_prefix=unknown
16234 hardcode_into_libs=no
16235
16236 # when you set need_version to no, make sure it does not cause -set_version
16237 # flags to be left without arguments
16238 need_version=unknown
16239
16240 case $host_os in
16241 aix3*)
16242   version_type=linux
16243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16244   shlibpath_var=LIBPATH
16245
16246   # AIX 3 has no versioning support, so we append a major version to the name.
16247   soname_spec='${libname}${release}${shared_ext}$major'
16248   ;;
16249
16250 aix4* | aix5*)
16251   version_type=linux
16252   need_lib_prefix=no
16253   need_version=no
16254   hardcode_into_libs=yes
16255   if test "$host_cpu" = ia64; then
16256     # AIX 5 supports IA64
16257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16258     shlibpath_var=LD_LIBRARY_PATH
16259   else
16260     # With GCC up to 2.95.x, collect2 would create an import file
16261     # for dependence libraries.  The import file would start with
16262     # the line `#! .'.  This would cause the generated library to
16263     # depend on `.', always an invalid library.  This was fixed in
16264     # development snapshots of GCC prior to 3.0.
16265     case $host_os in
16266       aix4 | aix4.[01] | aix4.[01].*)
16267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16268            echo ' yes '
16269            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16270         :
16271       else
16272         can_build_shared=no
16273       fi
16274       ;;
16275     esac
16276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16277     # soname into executable. Probably we can add versioning support to
16278     # collect2, so additional links can be useful in future.
16279     if test "$aix_use_runtimelinking" = yes; then
16280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16281       # instead of lib<name>.a to let people know that these are not
16282       # typical AIX shared libraries.
16283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284     else
16285       # We preserve .a as extension for shared libraries through AIX4.2
16286       # and later when we are not doing run time linking.
16287       library_names_spec='${libname}${release}.a $libname.a'
16288       soname_spec='${libname}${release}${shared_ext}$major'
16289     fi
16290     shlibpath_var=LIBPATH
16291   fi
16292   ;;
16293
16294 amigaos*)
16295   library_names_spec='$libname.ixlibrary $libname.a'
16296   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16297   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'
16298   ;;
16299
16300 beos*)
16301   library_names_spec='${libname}${shared_ext}'
16302   dynamic_linker="$host_os ld.so"
16303   shlibpath_var=LIBRARY_PATH
16304   ;;
16305
16306 bsdi[45]*)
16307   version_type=linux
16308   need_version=no
16309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310   soname_spec='${libname}${release}${shared_ext}$major'
16311   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312   shlibpath_var=LD_LIBRARY_PATH
16313   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315   # the default ld.so.conf also contains /usr/contrib/lib and
16316   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317   # libtool to hard-code these into programs
16318   ;;
16319
16320 cygwin* | mingw* | pw32*)
16321   version_type=windows
16322   shrext_cmds=".dll"
16323   need_version=no
16324   need_lib_prefix=no
16325
16326   case $GCC,$host_os in
16327   yes,cygwin* | yes,mingw* | yes,pw32*)
16328     library_names_spec='$libname.dll.a'
16329     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16330     postinstall_cmds='base_file=`basename \${file}`~
16331       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16332       dldir=$destdir/`dirname \$dlpath`~
16333       test -d \$dldir || mkdir -p \$dldir~
16334       $install_prog $dir/$dlname \$dldir/$dlname~
16335       chmod a+x \$dldir/$dlname'
16336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337       dlpath=$dir/\$dldll~
16338        $rm \$dlpath'
16339     shlibpath_overrides_runpath=yes
16340
16341     case $host_os in
16342     cygwin*)
16343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16346       ;;
16347     mingw*)
16348       # MinGW DLLs use traditional 'lib' prefix
16349       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352         # It is most probably a Windows format PATH printed by
16353         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354         # path with ; separators, and with drive letters. We can handle the
16355         # drive letters (cygwin fileutils understands them), so leave them,
16356         # especially as we might pass files found there to a mingw objdump,
16357         # which wouldn't understand a cygwinified path. Ahh.
16358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359       else
16360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16361       fi
16362       ;;
16363     pw32*)
16364       # pw32 DLLs use 'pw' prefix rather than 'lib'
16365       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16366       ;;
16367     esac
16368     ;;
16369
16370   *)
16371     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16372     ;;
16373   esac
16374   dynamic_linker='Win32 ld.exe'
16375   # FIXME: first we should search . and the directory the executable is in
16376   shlibpath_var=PATH
16377   ;;
16378
16379 darwin* | rhapsody*)
16380   dynamic_linker="$host_os dyld"
16381   version_type=darwin
16382   need_lib_prefix=no
16383   need_version=no
16384   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385   soname_spec='${libname}${release}${major}$shared_ext'
16386   shlibpath_overrides_runpath=yes
16387   shlibpath_var=DYLD_LIBRARY_PATH
16388   shrext_cmds='.dylib'
16389   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16390   if test "$GCC" = yes; then
16391     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"`
16392   else
16393     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16394   fi
16395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16396   ;;
16397
16398 dgux*)
16399   version_type=linux
16400   need_lib_prefix=no
16401   need_version=no
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403   soname_spec='${libname}${release}${shared_ext}$major'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   ;;
16406
16407 freebsd1*)
16408   dynamic_linker=no
16409   ;;
16410
16411 kfreebsd*-gnu)
16412   version_type=linux
16413   need_lib_prefix=no
16414   need_version=no
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416   soname_spec='${libname}${release}${shared_ext}$major'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   shlibpath_overrides_runpath=no
16419   hardcode_into_libs=yes
16420   dynamic_linker='GNU ld.so'
16421   ;;
16422
16423 freebsd* | dragonfly*)
16424   # DragonFly does not have aout.  When/if they implement a new
16425   # versioning mechanism, adjust this.
16426   if test -x /usr/bin/objformat; then
16427     objformat=`/usr/bin/objformat`
16428   else
16429     case $host_os in
16430     freebsd[123]*) objformat=aout ;;
16431     *) objformat=elf ;;
16432     esac
16433   fi
16434   version_type=freebsd-$objformat
16435   case $version_type in
16436     freebsd-elf*)
16437       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16438       need_version=no
16439       need_lib_prefix=no
16440       ;;
16441     freebsd-*)
16442       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16443       need_version=yes
16444       ;;
16445   esac
16446   shlibpath_var=LD_LIBRARY_PATH
16447   case $host_os in
16448   freebsd2*)
16449     shlibpath_overrides_runpath=yes
16450     ;;
16451   freebsd3.[01]* | freebsdelf3.[01]*)
16452     shlibpath_overrides_runpath=yes
16453     hardcode_into_libs=yes
16454     ;;
16455   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16456   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16457     shlibpath_overrides_runpath=no
16458     hardcode_into_libs=yes
16459     ;;
16460   freebsd*) # from 4.6 on
16461     shlibpath_overrides_runpath=yes
16462     hardcode_into_libs=yes
16463     ;;
16464   esac
16465   ;;
16466
16467 gnu*)
16468   version_type=linux
16469   need_lib_prefix=no
16470   need_version=no
16471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16472   soname_spec='${libname}${release}${shared_ext}$major'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   hardcode_into_libs=yes
16475   ;;
16476
16477 hpux9* | hpux10* | hpux11*)
16478   # Give a soname corresponding to the major version so that dld.sl refuses to
16479   # link against other versions.
16480   version_type=sunos
16481   need_lib_prefix=no
16482   need_version=no
16483   case $host_cpu in
16484   ia64*)
16485     shrext_cmds='.so'
16486     hardcode_into_libs=yes
16487     dynamic_linker="$host_os dld.so"
16488     shlibpath_var=LD_LIBRARY_PATH
16489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491     soname_spec='${libname}${release}${shared_ext}$major'
16492     if test "X$HPUX_IA64_MODE" = X32; then
16493       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16494     else
16495       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16496     fi
16497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16498     ;;
16499    hppa*64*)
16500      shrext_cmds='.sl'
16501      hardcode_into_libs=yes
16502      dynamic_linker="$host_os dld.sl"
16503      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16504      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506      soname_spec='${libname}${release}${shared_ext}$major'
16507      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16508      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16509      ;;
16510    *)
16511     shrext_cmds='.sl'
16512     dynamic_linker="$host_os dld.sl"
16513     shlibpath_var=SHLIB_PATH
16514     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516     soname_spec='${libname}${release}${shared_ext}$major'
16517     ;;
16518   esac
16519   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16520   postinstall_cmds='chmod 555 $lib'
16521   ;;
16522
16523 interix3*)
16524   version_type=linux
16525   need_lib_prefix=no
16526   need_version=no
16527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16528   soname_spec='${libname}${release}${shared_ext}$major'
16529   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16530   shlibpath_var=LD_LIBRARY_PATH
16531   shlibpath_overrides_runpath=no
16532   hardcode_into_libs=yes
16533   ;;
16534
16535 irix5* | irix6* | nonstopux*)
16536   case $host_os in
16537     nonstopux*) version_type=nonstopux ;;
16538     *)
16539         if test "$lt_cv_prog_gnu_ld" = yes; then
16540                 version_type=linux
16541         else
16542                 version_type=irix
16543         fi ;;
16544   esac
16545   need_lib_prefix=no
16546   need_version=no
16547   soname_spec='${libname}${release}${shared_ext}$major'
16548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16549   case $host_os in
16550   irix5* | nonstopux*)
16551     libsuff= shlibsuff=
16552     ;;
16553   *)
16554     case $LD in # libtool.m4 will add one of these switches to LD
16555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16556       libsuff= shlibsuff= libmagic=32-bit;;
16557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16558       libsuff=32 shlibsuff=N32 libmagic=N32;;
16559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16561     *) libsuff= shlibsuff= libmagic=never-match;;
16562     esac
16563     ;;
16564   esac
16565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16566   shlibpath_overrides_runpath=no
16567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16569   hardcode_into_libs=yes
16570   ;;
16571
16572 # No shared lib support for Linux oldld, aout, or coff.
16573 linux*oldld* | linux*aout* | linux*coff*)
16574   dynamic_linker=no
16575   ;;
16576
16577 # This must be Linux ELF.
16578 linux*)
16579   version_type=linux
16580   need_lib_prefix=no
16581   need_version=no
16582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583   soname_spec='${libname}${release}${shared_ext}$major'
16584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16585   shlibpath_var=LD_LIBRARY_PATH
16586   shlibpath_overrides_runpath=no
16587   # This implies no fast_install, which is unacceptable.
16588   # Some rework will be needed to allow for fast_install
16589   # before this can be enabled.
16590   hardcode_into_libs=yes
16591
16592   # Append ld.so.conf contents to the search path
16593   if test -f /etc/ld.so.conf; then
16594     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' ' '`
16595     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16596   fi
16597
16598   # We used to test for /lib/ld.so.1 and disable shared libraries on
16599   # powerpc, because MkLinux only supported shared libraries with the
16600   # GNU dynamic linker.  Since this was broken with cross compilers,
16601   # most powerpc-linux boxes support dynamic linking these days and
16602   # people can always --disable-shared, the test was removed, and we
16603   # assume the GNU/Linux dynamic linker is in use.
16604   dynamic_linker='GNU/Linux ld.so'
16605   ;;
16606
16607 knetbsd*-gnu)
16608   version_type=linux
16609   need_lib_prefix=no
16610   need_version=no
16611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   shlibpath_var=LD_LIBRARY_PATH
16614   shlibpath_overrides_runpath=no
16615   hardcode_into_libs=yes
16616   dynamic_linker='GNU ld.so'
16617   ;;
16618
16619 netbsd*)
16620   version_type=sunos
16621   need_lib_prefix=no
16622   need_version=no
16623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626     dynamic_linker='NetBSD (a.out) ld.so'
16627   else
16628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16629     soname_spec='${libname}${release}${shared_ext}$major'
16630     dynamic_linker='NetBSD ld.elf_so'
16631   fi
16632   shlibpath_var=LD_LIBRARY_PATH
16633   shlibpath_overrides_runpath=yes
16634   hardcode_into_libs=yes
16635   ;;
16636
16637 newsos6)
16638   version_type=linux
16639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640   shlibpath_var=LD_LIBRARY_PATH
16641   shlibpath_overrides_runpath=yes
16642   ;;
16643
16644 nto-qnx*)
16645   version_type=linux
16646   need_lib_prefix=no
16647   need_version=no
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649   soname_spec='${libname}${release}${shared_ext}$major'
16650   shlibpath_var=LD_LIBRARY_PATH
16651   shlibpath_overrides_runpath=yes
16652   ;;
16653
16654 openbsd*)
16655   version_type=sunos
16656   sys_lib_dlsearch_path_spec="/usr/lib"
16657   need_lib_prefix=no
16658   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16659   case $host_os in
16660     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16661     *)                         need_version=no  ;;
16662   esac
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665   shlibpath_var=LD_LIBRARY_PATH
16666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16667     case $host_os in
16668       openbsd2.[89] | openbsd2.[89].*)
16669         shlibpath_overrides_runpath=no
16670         ;;
16671       *)
16672         shlibpath_overrides_runpath=yes
16673         ;;
16674       esac
16675   else
16676     shlibpath_overrides_runpath=yes
16677   fi
16678   ;;
16679
16680 os2*)
16681   libname_spec='$name'
16682   shrext_cmds=".dll"
16683   need_lib_prefix=no
16684   library_names_spec='$libname${shared_ext} $libname.a'
16685   dynamic_linker='OS/2 ld.exe'
16686   shlibpath_var=LIBPATH
16687   ;;
16688
16689 osf3* | osf4* | osf5*)
16690   version_type=osf
16691   need_lib_prefix=no
16692   need_version=no
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16697   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16698   ;;
16699
16700 solaris*)
16701   version_type=linux
16702   need_lib_prefix=no
16703   need_version=no
16704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705   soname_spec='${libname}${release}${shared_ext}$major'
16706   shlibpath_var=LD_LIBRARY_PATH
16707   shlibpath_overrides_runpath=yes
16708   hardcode_into_libs=yes
16709   # ldd complains unless libraries are executable
16710   postinstall_cmds='chmod +x $lib'
16711   ;;
16712
16713 sunos4*)
16714   version_type=sunos
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=yes
16719   if test "$with_gnu_ld" = yes; then
16720     need_lib_prefix=no
16721   fi
16722   need_version=yes
16723   ;;
16724
16725 sysv4 | sysv4.3*)
16726   version_type=linux
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728   soname_spec='${libname}${release}${shared_ext}$major'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   case $host_vendor in
16731     sni)
16732       shlibpath_overrides_runpath=no
16733       need_lib_prefix=no
16734       export_dynamic_flag_spec='${wl}-Blargedynsym'
16735       runpath_var=LD_RUN_PATH
16736       ;;
16737     siemens)
16738       need_lib_prefix=no
16739       ;;
16740     motorola)
16741       need_lib_prefix=no
16742       need_version=no
16743       shlibpath_overrides_runpath=no
16744       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16745       ;;
16746   esac
16747   ;;
16748
16749 sysv4*MP*)
16750   if test -d /usr/nec ;then
16751     version_type=linux
16752     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16753     soname_spec='$libname${shared_ext}.$major'
16754     shlibpath_var=LD_LIBRARY_PATH
16755   fi
16756   ;;
16757
16758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16759   version_type=freebsd-elf
16760   need_lib_prefix=no
16761   need_version=no
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   hardcode_into_libs=yes
16766   if test "$with_gnu_ld" = yes; then
16767     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16768     shlibpath_overrides_runpath=no
16769   else
16770     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16771     shlibpath_overrides_runpath=yes
16772     case $host_os in
16773       sco3.2v5*)
16774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16775         ;;
16776     esac
16777   fi
16778   sys_lib_dlsearch_path_spec='/usr/lib'
16779   ;;
16780
16781 uts4*)
16782   version_type=linux
16783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784   soname_spec='${libname}${release}${shared_ext}$major'
16785   shlibpath_var=LD_LIBRARY_PATH
16786   ;;
16787
16788 *)
16789   dynamic_linker=no
16790   ;;
16791 esac
16792 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16793 echo "${ECHO_T}$dynamic_linker" >&6; }
16794 test "$dynamic_linker" = no && can_build_shared=no
16795
16796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16797 if test "$GCC" = yes; then
16798   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799 fi
16800
16801 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16803 hardcode_action=
16804 if test -n "$hardcode_libdir_flag_spec" || \
16805    test -n "$runpath_var" || \
16806    test "X$hardcode_automatic" = "Xyes" ; then
16807
16808   # We can hardcode non-existant directories.
16809   if test "$hardcode_direct" != no &&
16810      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16811      # have to relink, otherwise we might link with an installed library
16812      # when we should be linking with a yet-to-be-installed one
16813      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16814      test "$hardcode_minus_L" != no; then
16815     # Linking always hardcodes the temporary library directory.
16816     hardcode_action=relink
16817   else
16818     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16819     hardcode_action=immediate
16820   fi
16821 else
16822   # We cannot hardcode anything, or else we can only hardcode existing
16823   # directories.
16824   hardcode_action=unsupported
16825 fi
16826 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16827 echo "${ECHO_T}$hardcode_action" >&6; }
16828
16829 if test "$hardcode_action" = relink; then
16830   # Fast installation is not supported
16831   enable_fast_install=no
16832 elif test "$shlibpath_overrides_runpath" = yes ||
16833      test "$enable_shared" = no; then
16834   # Fast installation is not necessary
16835   enable_fast_install=needless
16836 fi
16837
16838 striplib=
16839 old_striplib=
16840 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16843   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16844   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16845   { echo "$as_me:$LINENO: result: yes" >&5
16846 echo "${ECHO_T}yes" >&6; }
16847 else
16848 # FIXME - insert some real tests, host_os isn't really good enough
16849   case $host_os in
16850    darwin*)
16851        if test -n "$STRIP" ; then
16852          striplib="$STRIP -x"
16853          { echo "$as_me:$LINENO: result: yes" >&5
16854 echo "${ECHO_T}yes" >&6; }
16855        else
16856   { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16858 fi
16859        ;;
16860    *)
16861   { echo "$as_me:$LINENO: result: no" >&5
16862 echo "${ECHO_T}no" >&6; }
16863     ;;
16864   esac
16865 fi
16866
16867 if test "x$enable_dlopen" != xyes; then
16868   enable_dlopen=unknown
16869   enable_dlopen_self=unknown
16870   enable_dlopen_self_static=unknown
16871 else
16872   lt_cv_dlopen=no
16873   lt_cv_dlopen_libs=
16874
16875   case $host_os in
16876   beos*)
16877     lt_cv_dlopen="load_add_on"
16878     lt_cv_dlopen_libs=
16879     lt_cv_dlopen_self=yes
16880     ;;
16881
16882   mingw* | pw32*)
16883     lt_cv_dlopen="LoadLibrary"
16884     lt_cv_dlopen_libs=
16885    ;;
16886
16887   cygwin*)
16888     lt_cv_dlopen="dlopen"
16889     lt_cv_dlopen_libs=
16890    ;;
16891
16892   darwin*)
16893   # if libdl is installed we need to link against it
16894     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   ac_check_lib_save_LIBS=$LIBS
16900 LIBS="-ldl  $LIBS"
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907
16908 /* Override any GCC internal prototype to avoid an error.
16909    Use char because int might match the return type of a GCC
16910    builtin and then its argument prototype would still apply.  */
16911 #ifdef __cplusplus
16912 extern "C"
16913 #endif
16914 char dlopen ();
16915 int
16916 main ()
16917 {
16918 return dlopen ();
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_link") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest$ac_exeext'
16948   { (case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_try") 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_cv_lib_dl_dlopen=yes
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962         ac_cv_lib_dl_dlopen=no
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext \
16966       conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16968 fi
16969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16970 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16971 if test $ac_cv_lib_dl_dlopen = yes; then
16972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16973 else
16974
16975     lt_cv_dlopen="dyld"
16976     lt_cv_dlopen_libs=
16977     lt_cv_dlopen_self=yes
16978
16979 fi
16980
16981    ;;
16982
16983   *)
16984     { echo "$as_me:$LINENO: checking for shl_load" >&5
16985 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16986 if test "${ac_cv_func_shl_load+set}" = set; then
16987   echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989   cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16997 #define shl_load innocuous_shl_load
16998
16999 /* System header to define __stub macros and hopefully few prototypes,
17000     which can conflict with char shl_load (); below.
17001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002     <limits.h> exists even on freestanding compilers.  */
17003
17004 #ifdef __STDC__
17005 # include <limits.h>
17006 #else
17007 # include <assert.h>
17008 #endif
17009
17010 #undef shl_load
17011
17012 /* Override any GCC internal prototype to avoid an error.
17013    Use char because int might match the return type of a GCC
17014    builtin and then its argument prototype would still apply.  */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 char shl_load ();
17019 /* The GNU C library defines this for functions which it implements
17020     to always fail with ENOSYS.  Some functions are actually named
17021     something starting with __ and the normal name is an alias.  */
17022 #if defined __stub_shl_load || defined __stub___shl_load
17023 choke me
17024 #endif
17025
17026 int
17027 main ()
17028 {
17029 return shl_load ();
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_link") 2>conftest.er1
17042   ac_status=$?
17043   grep -v '^ *+' conftest.er1 >conftest.err
17044   rm -f conftest.er1
17045   cat conftest.err >&5
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); } &&
17048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049   { (case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_try") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; } &&
17058          { ac_try='test -s conftest$ac_exeext'
17059   { (case "(($ac_try" in
17060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061   *) ac_try_echo=$ac_try;;
17062 esac
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064   (eval "$ac_try") 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   ac_cv_func_shl_load=yes
17069 else
17070   echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073         ac_cv_func_shl_load=no
17074 fi
17075
17076 rm -f core conftest.err conftest.$ac_objext \
17077       conftest$ac_exeext conftest.$ac_ext
17078 fi
17079 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17081 if test $ac_cv_func_shl_load = yes; then
17082   lt_cv_dlopen="shl_load"
17083 else
17084   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   ac_check_lib_save_LIBS=$LIBS
17090 LIBS="-ldld  $LIBS"
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097
17098 /* Override any GCC internal prototype to avoid an error.
17099    Use char because int might match the return type of a GCC
17100    builtin and then its argument prototype would still apply.  */
17101 #ifdef __cplusplus
17102 extern "C"
17103 #endif
17104 char shl_load ();
17105 int
17106 main ()
17107 {
17108 return shl_load ();
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_link") 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128   { (case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_try") 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest$ac_exeext'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_lib_dld_shl_load=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152         ac_cv_lib_dld_shl_load=no
17153 fi
17154
17155 rm -f core conftest.err conftest.$ac_objext \
17156       conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17158 fi
17159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17160 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17161 if test $ac_cv_lib_dld_shl_load = yes; then
17162   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17163 else
17164   { echo "$as_me:$LINENO: checking for dlopen" >&5
17165 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17166 if test "${ac_cv_func_dlopen+set}" = set; then
17167   echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169   cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17177 #define dlopen innocuous_dlopen
17178
17179 /* System header to define __stub macros and hopefully few prototypes,
17180     which can conflict with char dlopen (); below.
17181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17182     <limits.h> exists even on freestanding compilers.  */
17183
17184 #ifdef __STDC__
17185 # include <limits.h>
17186 #else
17187 # include <assert.h>
17188 #endif
17189
17190 #undef dlopen
17191
17192 /* Override any GCC internal prototype to avoid an error.
17193    Use char because int might match the return type of a GCC
17194    builtin and then its argument prototype would still apply.  */
17195 #ifdef __cplusplus
17196 extern "C"
17197 #endif
17198 char dlopen ();
17199 /* The GNU C library defines this for functions which it implements
17200     to always fail with ENOSYS.  Some functions are actually named
17201     something starting with __ and the normal name is an alias.  */
17202 #if defined __stub_dlopen || defined __stub___dlopen
17203 choke me
17204 #endif
17205
17206 int
17207 main ()
17208 {
17209 return dlopen ();
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (ac_try="$ac_link"
17216 case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_link") 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229   { (case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_try") 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; } &&
17238          { ac_try='test -s conftest$ac_exeext'
17239   { (case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_try") 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; }; then
17248   ac_cv_func_dlopen=yes
17249 else
17250   echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252
17253         ac_cv_func_dlopen=no
17254 fi
17255
17256 rm -f core conftest.err conftest.$ac_objext \
17257       conftest$ac_exeext conftest.$ac_ext
17258 fi
17259 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17261 if test $ac_cv_func_dlopen = yes; then
17262   lt_cv_dlopen="dlopen"
17263 else
17264   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-ldl  $LIBS"
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277
17278 /* Override any GCC internal prototype to avoid an error.
17279    Use char because int might match the return type of a GCC
17280    builtin and then its argument prototype would still apply.  */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char dlopen ();
17285 int
17286 main ()
17287 {
17288 return dlopen ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_link") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } &&
17307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; } &&
17317          { ac_try='test -s conftest$ac_exeext'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_lib_dl_dlopen=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332         ac_cv_lib_dl_dlopen=no
17333 fi
17334
17335 rm -f core conftest.err conftest.$ac_objext \
17336       conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17338 fi
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17341 if test $ac_cv_lib_dl_dlopen = yes; then
17342   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17343 else
17344   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17345 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17346 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17347   echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349   ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-lsvld  $LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h.  */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h.  */
17357
17358 /* Override any GCC internal prototype to avoid an error.
17359    Use char because int might match the return type of a GCC
17360    builtin and then its argument prototype would still apply.  */
17361 #ifdef __cplusplus
17362 extern "C"
17363 #endif
17364 char dlopen ();
17365 int
17366 main ()
17367 {
17368 return dlopen ();
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_link") 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } &&
17387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388   { (case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_try") 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; } &&
17397          { ac_try='test -s conftest$ac_exeext'
17398   { (case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_try") 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; }; then
17407   ac_cv_lib_svld_dlopen=yes
17408 else
17409   echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412         ac_cv_lib_svld_dlopen=no
17413 fi
17414
17415 rm -f core conftest.err conftest.$ac_objext \
17416       conftest$ac_exeext conftest.$ac_ext
17417 LIBS=$ac_check_lib_save_LIBS
17418 fi
17419 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17420 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17421 if test $ac_cv_lib_svld_dlopen = yes; then
17422   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17423 else
17424   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17425 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17426 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429   ac_check_lib_save_LIBS=$LIBS
17430 LIBS="-ldld  $LIBS"
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h.  */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h.  */
17437
17438 /* Override any GCC internal prototype to avoid an error.
17439    Use char because int might match the return type of a GCC
17440    builtin and then its argument prototype would still apply.  */
17441 #ifdef __cplusplus
17442 extern "C"
17443 #endif
17444 char dld_link ();
17445 int
17446 main ()
17447 {
17448 return dld_link ();
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_link") 2>conftest.er1
17461   ac_status=$?
17462   grep -v '^ *+' conftest.er1 >conftest.err
17463   rm -f conftest.er1
17464   cat conftest.err >&5
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468   { (case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_try") 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; } &&
17477          { ac_try='test -s conftest$ac_exeext'
17478   { (case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_try") 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   ac_cv_lib_dld_dld_link=yes
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492         ac_cv_lib_dld_dld_link=no
17493 fi
17494
17495 rm -f core conftest.err conftest.$ac_objext \
17496       conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17498 fi
17499 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17500 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17501 if test $ac_cv_lib_dld_dld_link = yes; then
17502   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17503 fi
17504
17505
17506 fi
17507
17508
17509 fi
17510
17511
17512 fi
17513
17514
17515 fi
17516
17517
17518 fi
17519
17520     ;;
17521   esac
17522
17523   if test "x$lt_cv_dlopen" != xno; then
17524     enable_dlopen=yes
17525   else
17526     enable_dlopen=no
17527   fi
17528
17529   case $lt_cv_dlopen in
17530   dlopen)
17531     save_CPPFLAGS="$CPPFLAGS"
17532     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17533
17534     save_LDFLAGS="$LDFLAGS"
17535     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17536
17537     save_LIBS="$LIBS"
17538     LIBS="$lt_cv_dlopen_libs $LIBS"
17539
17540     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17541 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17542 if test "${lt_cv_dlopen_self+set}" = set; then
17543   echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545           if test "$cross_compiling" = yes; then :
17546   lt_cv_dlopen_self=cross
17547 else
17548   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17549   lt_status=$lt_dlunknown
17550   cat > conftest.$ac_ext <<EOF
17551 #line 17551 "configure"
17552 #include "confdefs.h"
17553
17554 #if HAVE_DLFCN_H
17555 #include <dlfcn.h>
17556 #endif
17557
17558 #include <stdio.h>
17559
17560 #ifdef RTLD_GLOBAL
17561 #  define LT_DLGLOBAL           RTLD_GLOBAL
17562 #else
17563 #  ifdef DL_GLOBAL
17564 #    define LT_DLGLOBAL         DL_GLOBAL
17565 #  else
17566 #    define LT_DLGLOBAL         0
17567 #  endif
17568 #endif
17569
17570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17571    find out it does not work in some platform. */
17572 #ifndef LT_DLLAZY_OR_NOW
17573 #  ifdef RTLD_LAZY
17574 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17575 #  else
17576 #    ifdef DL_LAZY
17577 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17578 #    else
17579 #      ifdef RTLD_NOW
17580 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17581 #      else
17582 #        ifdef DL_NOW
17583 #          define LT_DLLAZY_OR_NOW      DL_NOW
17584 #        else
17585 #          define LT_DLLAZY_OR_NOW      0
17586 #        endif
17587 #      endif
17588 #    endif
17589 #  endif
17590 #endif
17591
17592 #ifdef __cplusplus
17593 extern "C" void exit (int);
17594 #endif
17595
17596 void fnord() { int i=42;}
17597 int main ()
17598 {
17599   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600   int status = $lt_dlunknown;
17601
17602   if (self)
17603     {
17604       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17605       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17606       /* dlclose (self); */
17607     }
17608   else
17609     puts (dlerror ());
17610
17611     exit (status);
17612 }
17613 EOF
17614   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615   (eval $ac_link) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17619     (./conftest; exit; ) >&5 2>/dev/null
17620     lt_status=$?
17621     case x$lt_status in
17622       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17623       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17624       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17625     esac
17626   else :
17627     # compilation failed
17628     lt_cv_dlopen_self=no
17629   fi
17630 fi
17631 rm -fr conftest*
17632
17633
17634 fi
17635 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17636 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17637
17638     if test "x$lt_cv_dlopen_self" = xyes; then
17639       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17640       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17641 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17642 if test "${lt_cv_dlopen_self_static+set}" = set; then
17643   echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645           if test "$cross_compiling" = yes; then :
17646   lt_cv_dlopen_self_static=cross
17647 else
17648   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17649   lt_status=$lt_dlunknown
17650   cat > conftest.$ac_ext <<EOF
17651 #line 17651 "configure"
17652 #include "confdefs.h"
17653
17654 #if HAVE_DLFCN_H
17655 #include <dlfcn.h>
17656 #endif
17657
17658 #include <stdio.h>
17659
17660 #ifdef RTLD_GLOBAL
17661 #  define LT_DLGLOBAL           RTLD_GLOBAL
17662 #else
17663 #  ifdef DL_GLOBAL
17664 #    define LT_DLGLOBAL         DL_GLOBAL
17665 #  else
17666 #    define LT_DLGLOBAL         0
17667 #  endif
17668 #endif
17669
17670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17671    find out it does not work in some platform. */
17672 #ifndef LT_DLLAZY_OR_NOW
17673 #  ifdef RTLD_LAZY
17674 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17675 #  else
17676 #    ifdef DL_LAZY
17677 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17678 #    else
17679 #      ifdef RTLD_NOW
17680 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17681 #      else
17682 #        ifdef DL_NOW
17683 #          define LT_DLLAZY_OR_NOW      DL_NOW
17684 #        else
17685 #          define LT_DLLAZY_OR_NOW      0
17686 #        endif
17687 #      endif
17688 #    endif
17689 #  endif
17690 #endif
17691
17692 #ifdef __cplusplus
17693 extern "C" void exit (int);
17694 #endif
17695
17696 void fnord() { int i=42;}
17697 int main ()
17698 {
17699   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700   int status = $lt_dlunknown;
17701
17702   if (self)
17703     {
17704       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17705       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17706       /* dlclose (self); */
17707     }
17708   else
17709     puts (dlerror ());
17710
17711     exit (status);
17712 }
17713 EOF
17714   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715   (eval $ac_link) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17719     (./conftest; exit; ) >&5 2>/dev/null
17720     lt_status=$?
17721     case x$lt_status in
17722       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17723       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17724       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17725     esac
17726   else :
17727     # compilation failed
17728     lt_cv_dlopen_self_static=no
17729   fi
17730 fi
17731 rm -fr conftest*
17732
17733
17734 fi
17735 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17737     fi
17738
17739     CPPFLAGS="$save_CPPFLAGS"
17740     LDFLAGS="$save_LDFLAGS"
17741     LIBS="$save_LIBS"
17742     ;;
17743   esac
17744
17745   case $lt_cv_dlopen_self in
17746   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17747   *) enable_dlopen_self=unknown ;;
17748   esac
17749
17750   case $lt_cv_dlopen_self_static in
17751   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17752   *) enable_dlopen_self_static=unknown ;;
17753   esac
17754 fi
17755
17756
17757 # Report which library types will actually be built
17758 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17759 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17760 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17761 echo "${ECHO_T}$can_build_shared" >&6; }
17762
17763 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17764 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17765 test "$can_build_shared" = "no" && enable_shared=no
17766
17767 # On AIX, shared libraries and static libraries use the same namespace, and
17768 # are all built from PIC.
17769 case $host_os in
17770 aix3*)
17771   test "$enable_shared" = yes && enable_static=no
17772   if test -n "$RANLIB"; then
17773     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17774     postinstall_cmds='$RANLIB $lib'
17775   fi
17776   ;;
17777
17778 aix4* | aix5*)
17779   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780     test "$enable_shared" = yes && enable_static=no
17781   fi
17782     ;;
17783 esac
17784 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17785 echo "${ECHO_T}$enable_shared" >&6; }
17786
17787 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17788 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17789 # Make sure either enable_shared or enable_static is yes.
17790 test "$enable_shared" = yes || enable_static=yes
17791 { echo "$as_me:$LINENO: result: $enable_static" >&5
17792 echo "${ECHO_T}$enable_static" >&6; }
17793
17794 # The else clause should only fire when bootstrapping the
17795 # libtool distribution, otherwise you forgot to ship ltmain.sh
17796 # with your package, and you will get complaints that there are
17797 # no rules to generate ltmain.sh.
17798 if test -f "$ltmain"; then
17799   # See if we are running on zsh, and set the options which allow our commands through
17800   # without removal of \ escapes.
17801   if test -n "${ZSH_VERSION+set}" ; then
17802     setopt NO_GLOB_SUBST
17803   fi
17804   # Now quote all the things that may contain metacharacters while being
17805   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17806   # variables and quote the copies for generation of the libtool script.
17807   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17808     SED SHELL STRIP \
17809     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811     deplibs_check_method reload_flag reload_cmds need_locks \
17812     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813     lt_cv_sys_global_symbol_to_c_name_address \
17814     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815     old_postinstall_cmds old_postuninstall_cmds \
17816     compiler \
17817     CC \
17818     LD \
17819     lt_prog_compiler_wl \
17820     lt_prog_compiler_pic \
17821     lt_prog_compiler_static \
17822     lt_prog_compiler_no_builtin_flag \
17823     export_dynamic_flag_spec \
17824     thread_safe_flag_spec \
17825     whole_archive_flag_spec \
17826     enable_shared_with_static_runtimes \
17827     old_archive_cmds \
17828     old_archive_from_new_cmds \
17829     predep_objects \
17830     postdep_objects \
17831     predeps \
17832     postdeps \
17833     compiler_lib_search_path \
17834     archive_cmds \
17835     archive_expsym_cmds \
17836     postinstall_cmds \
17837     postuninstall_cmds \
17838     old_archive_from_expsyms_cmds \
17839     allow_undefined_flag \
17840     no_undefined_flag \
17841     export_symbols_cmds \
17842     hardcode_libdir_flag_spec \
17843     hardcode_libdir_flag_spec_ld \
17844     hardcode_libdir_separator \
17845     hardcode_automatic \
17846     module_cmds \
17847     module_expsym_cmds \
17848     lt_cv_prog_compiler_c_o \
17849     exclude_expsyms \
17850     include_expsyms; do
17851
17852     case $var in
17853     old_archive_cmds | \
17854     old_archive_from_new_cmds | \
17855     archive_cmds | \
17856     archive_expsym_cmds | \
17857     module_cmds | \
17858     module_expsym_cmds | \
17859     old_archive_from_expsyms_cmds | \
17860     export_symbols_cmds | \
17861     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862     postinstall_cmds | postuninstall_cmds | \
17863     old_postinstall_cmds | old_postuninstall_cmds | \
17864     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865       # Double-quote double-evaled strings.
17866       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17867       ;;
17868     *)
17869       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17870       ;;
17871     esac
17872   done
17873
17874   case $lt_echo in
17875   *'\$0 --fallback-echo"')
17876     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17877     ;;
17878   esac
17879
17880 cfgfile="${ofile}T"
17881   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17882   $rm -f "$cfgfile"
17883   { echo "$as_me:$LINENO: creating $ofile" >&5
17884 echo "$as_me: creating $ofile" >&6;}
17885
17886   cat <<__EOF__ >> "$cfgfile"
17887 #! $SHELL
17888
17889 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17890 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17892 #
17893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17894 # Free Software Foundation, Inc.
17895 #
17896 # This file is part of GNU Libtool:
17897 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17898 #
17899 # This program is free software; you can redistribute it and/or modify
17900 # it under the terms of the GNU General Public License as published by
17901 # the Free Software Foundation; either version 2 of the License, or
17902 # (at your option) any later version.
17903 #
17904 # This program is distributed in the hope that it will be useful, but
17905 # WITHOUT ANY WARRANTY; without even the implied warranty of
17906 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17907 # General Public License for more details.
17908 #
17909 # You should have received a copy of the GNU General Public License
17910 # along with this program; if not, write to the Free Software
17911 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17912 #
17913 # As a special exception to the GNU General Public License, if you
17914 # distribute this file as part of a program that contains a
17915 # configuration script generated by Autoconf, you may include it under
17916 # the same distribution terms that you use for the rest of that program.
17917
17918 # A sed program that does not truncate output.
17919 SED=$lt_SED
17920
17921 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17922 Xsed="$SED -e 1s/^X//"
17923
17924 # The HP-UX ksh and POSIX shell print the target directory to stdout
17925 # if CDPATH is set.
17926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17927
17928 # The names of the tagged configurations supported by this script.
17929 available_tags=
17930
17931 # ### BEGIN LIBTOOL CONFIG
17932
17933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17934
17935 # Shell to use when invoking shell scripts.
17936 SHELL=$lt_SHELL
17937
17938 # Whether or not to build shared libraries.
17939 build_libtool_libs=$enable_shared
17940
17941 # Whether or not to build static libraries.
17942 build_old_libs=$enable_static
17943
17944 # Whether or not to add -lc for building shared libraries.
17945 build_libtool_need_lc=$archive_cmds_need_lc
17946
17947 # Whether or not to disallow shared libs when runtime libs are static
17948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17949
17950 # Whether or not to optimize for fast installation.
17951 fast_install=$enable_fast_install
17952
17953 # The host system.
17954 host_alias=$host_alias
17955 host=$host
17956 host_os=$host_os
17957
17958 # The build system.
17959 build_alias=$build_alias
17960 build=$build
17961 build_os=$build_os
17962
17963 # An echo program that does not interpret backslashes.
17964 echo=$lt_echo
17965
17966 # The archiver.
17967 AR=$lt_AR
17968 AR_FLAGS=$lt_AR_FLAGS
17969
17970 # A C compiler.
17971 LTCC=$lt_LTCC
17972
17973 # LTCC compiler flags.
17974 LTCFLAGS=$lt_LTCFLAGS
17975
17976 # A language-specific compiler.
17977 CC=$lt_compiler
17978
17979 # Is the compiler the GNU C compiler?
17980 with_gcc=$GCC
17981
17982 # An ERE matcher.
17983 EGREP=$lt_EGREP
17984
17985 # The linker used to build libraries.
17986 LD=$lt_LD
17987
17988 # Whether we need hard or soft links.
17989 LN_S=$lt_LN_S
17990
17991 # A BSD-compatible nm program.
17992 NM=$lt_NM
17993
17994 # A symbol stripping program
17995 STRIP=$lt_STRIP
17996
17997 # Used to examine libraries when file_magic_cmd begins "file"
17998 MAGIC_CMD=$MAGIC_CMD
17999
18000 # Used on cygwin: DLL creation program.
18001 DLLTOOL="$DLLTOOL"
18002
18003 # Used on cygwin: object dumper.
18004 OBJDUMP="$OBJDUMP"
18005
18006 # Used on cygwin: assembler.
18007 AS="$AS"
18008
18009 # The name of the directory that contains temporary libtool files.
18010 objdir=$objdir
18011
18012 # How to create reloadable object files.
18013 reload_flag=$lt_reload_flag
18014 reload_cmds=$lt_reload_cmds
18015
18016 # How to pass a linker flag through the compiler.
18017 wl=$lt_lt_prog_compiler_wl
18018
18019 # Object file suffix (normally "o").
18020 objext="$ac_objext"
18021
18022 # Old archive suffix (normally "a").
18023 libext="$libext"
18024
18025 # Shared library suffix (normally ".so").
18026 shrext_cmds='$shrext_cmds'
18027
18028 # Executable file suffix (normally "").
18029 exeext="$exeext"
18030
18031 # Additional compiler flags for building library objects.
18032 pic_flag=$lt_lt_prog_compiler_pic
18033 pic_mode=$pic_mode
18034
18035 # What is the maximum length of a command?
18036 max_cmd_len=$lt_cv_sys_max_cmd_len
18037
18038 # Does compiler simultaneously support -c and -o options?
18039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18040
18041 # Must we lock files when doing compilation?
18042 need_locks=$lt_need_locks
18043
18044 # Do we need the lib prefix for modules?
18045 need_lib_prefix=$need_lib_prefix
18046
18047 # Do we need a version for libraries?
18048 need_version=$need_version
18049
18050 # Whether dlopen is supported.
18051 dlopen_support=$enable_dlopen
18052
18053 # Whether dlopen of programs is supported.
18054 dlopen_self=$enable_dlopen_self
18055
18056 # Whether dlopen of statically linked programs is supported.
18057 dlopen_self_static=$enable_dlopen_self_static
18058
18059 # Compiler flag to prevent dynamic linking.
18060 link_static_flag=$lt_lt_prog_compiler_static
18061
18062 # Compiler flag to turn off builtin functions.
18063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18064
18065 # Compiler flag to allow reflexive dlopens.
18066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18067
18068 # Compiler flag to generate shared objects directly from archives.
18069 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18070
18071 # Compiler flag to generate thread-safe objects.
18072 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18073
18074 # Library versioning type.
18075 version_type=$version_type
18076
18077 # Format of library name prefix.
18078 libname_spec=$lt_libname_spec
18079
18080 # List of archive names.  First name is the real one, the rest are links.
18081 # The last name is the one that the linker finds with -lNAME.
18082 library_names_spec=$lt_library_names_spec
18083
18084 # The coded name of the library, if different from the real name.
18085 soname_spec=$lt_soname_spec
18086
18087 # Commands used to build and install an old-style archive.
18088 RANLIB=$lt_RANLIB
18089 old_archive_cmds=$lt_old_archive_cmds
18090 old_postinstall_cmds=$lt_old_postinstall_cmds
18091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18092
18093 # Create an old-style archive from a shared archive.
18094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18095
18096 # Create a temporary old-style archive to link instead of a shared archive.
18097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18098
18099 # Commands used to build and install a shared archive.
18100 archive_cmds=$lt_archive_cmds
18101 archive_expsym_cmds=$lt_archive_expsym_cmds
18102 postinstall_cmds=$lt_postinstall_cmds
18103 postuninstall_cmds=$lt_postuninstall_cmds
18104
18105 # Commands used to build a loadable module (assumed same as above if empty)
18106 module_cmds=$lt_module_cmds
18107 module_expsym_cmds=$lt_module_expsym_cmds
18108
18109 # Commands to strip libraries.
18110 old_striplib=$lt_old_striplib
18111 striplib=$lt_striplib
18112
18113 # Dependencies to place before the objects being linked to create a
18114 # shared library.
18115 predep_objects=$lt_predep_objects
18116
18117 # Dependencies to place after the objects being linked to create a
18118 # shared library.
18119 postdep_objects=$lt_postdep_objects
18120
18121 # Dependencies to place before the objects being linked to create a
18122 # shared library.
18123 predeps=$lt_predeps
18124
18125 # Dependencies to place after the objects being linked to create a
18126 # shared library.
18127 postdeps=$lt_postdeps
18128
18129 # The library search path used internally by the compiler when linking
18130 # a shared library.
18131 compiler_lib_search_path=$lt_compiler_lib_search_path
18132
18133 # Method to check whether dependent libraries are shared objects.
18134 deplibs_check_method=$lt_deplibs_check_method
18135
18136 # Command to use when deplibs_check_method == file_magic.
18137 file_magic_cmd=$lt_file_magic_cmd
18138
18139 # Flag that allows shared libraries with undefined symbols to be built.
18140 allow_undefined_flag=$lt_allow_undefined_flag
18141
18142 # Flag that forces no undefined symbols.
18143 no_undefined_flag=$lt_no_undefined_flag
18144
18145 # Commands used to finish a libtool library installation in a directory.
18146 finish_cmds=$lt_finish_cmds
18147
18148 # Same as above, but a single script fragment to be evaled but not shown.
18149 finish_eval=$lt_finish_eval
18150
18151 # Take the output of nm and produce a listing of raw symbols and C names.
18152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18153
18154 # Transform the output of nm in a proper C declaration
18155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18156
18157 # Transform the output of nm in a C name address pair
18158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18159
18160 # This is the shared library runtime path variable.
18161 runpath_var=$runpath_var
18162
18163 # This is the shared library path variable.
18164 shlibpath_var=$shlibpath_var
18165
18166 # Is shlibpath searched before the hard-coded library search path?
18167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18168
18169 # How to hardcode a shared library path into an executable.
18170 hardcode_action=$hardcode_action
18171
18172 # Whether we should hardcode library paths into libraries.
18173 hardcode_into_libs=$hardcode_into_libs
18174
18175 # Flag to hardcode \$libdir into a binary during linking.
18176 # This must work even if \$libdir does not exist.
18177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18178
18179 # If ld is used when linking, flag to hardcode \$libdir into
18180 # a binary during linking. This must work even if \$libdir does
18181 # not exist.
18182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18183
18184 # Whether we need a single -rpath flag with a separated argument.
18185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18186
18187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18188 # resulting binary.
18189 hardcode_direct=$hardcode_direct
18190
18191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18192 # resulting binary.
18193 hardcode_minus_L=$hardcode_minus_L
18194
18195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18196 # the resulting binary.
18197 hardcode_shlibpath_var=$hardcode_shlibpath_var
18198
18199 # Set to yes if building a shared library automatically hardcodes DIR into the library
18200 # and all subsequent libraries and executables linked against it.
18201 hardcode_automatic=$hardcode_automatic
18202
18203 # Variables whose values should be saved in libtool wrapper scripts and
18204 # restored at relink time.
18205 variables_saved_for_relink="$variables_saved_for_relink"
18206
18207 # Whether libtool must link a program against all its dependency libraries.
18208 link_all_deplibs=$link_all_deplibs
18209
18210 # Compile-time system search path for libraries
18211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18212
18213 # Run-time system search path for libraries
18214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18215
18216 # Fix the shell variable \$srcfile for the compiler.
18217 fix_srcfile_path="$fix_srcfile_path"
18218
18219 # Set to yes if exported symbols are required.
18220 always_export_symbols=$always_export_symbols
18221
18222 # The commands to list exported symbols.
18223 export_symbols_cmds=$lt_export_symbols_cmds
18224
18225 # The commands to extract the exported symbol list from a shared archive.
18226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18227
18228 # Symbols that should not be listed in the preloaded symbols.
18229 exclude_expsyms=$lt_exclude_expsyms
18230
18231 # Symbols that must always be exported.
18232 include_expsyms=$lt_include_expsyms
18233
18234 # ### END LIBTOOL CONFIG
18235
18236 __EOF__
18237
18238
18239   case $host_os in
18240   aix3*)
18241     cat <<\EOF >> "$cfgfile"
18242
18243 # AIX sometimes has problems with the GCC collect2 program.  For some
18244 # reason, if we set the COLLECT_NAMES environment variable, the problems
18245 # vanish in a puff of smoke.
18246 if test "X${COLLECT_NAMES+set}" != Xset; then
18247   COLLECT_NAMES=
18248   export COLLECT_NAMES
18249 fi
18250 EOF
18251     ;;
18252   esac
18253
18254   # We use sed instead of cat because bash on DJGPP gets confused if
18255   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18256   # text mode, it properly converts lines to CR/LF.  This bash problem
18257   # is reportedly fixed, but why not run on old versions too?
18258   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18259
18260   mv -f "$cfgfile" "$ofile" || \
18261     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18262   chmod +x "$ofile"
18263
18264 else
18265   # If there is no Makefile yet, we rely on a make rule to execute
18266   # `config.status --recheck' to rerun these tests and create the
18267   # libtool script then.
18268   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18269   if test -f "$ltmain_in"; then
18270     test -f Makefile && make "$ltmain"
18271   fi
18272 fi
18273
18274
18275 ac_ext=c
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18280
18281 CC="$lt_save_CC"
18282
18283
18284 # Check whether --with-tags was given.
18285 if test "${with_tags+set}" = set; then
18286   withval=$with_tags; tagnames="$withval"
18287 fi
18288
18289
18290 if test -f "$ltmain" && test -n "$tagnames"; then
18291   if test ! -f "${ofile}"; then
18292     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18293 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18294   fi
18295
18296   if test -z "$LTCC"; then
18297     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18298     if test -z "$LTCC"; then
18299       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18300 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18301     else
18302       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18303 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18304     fi
18305   fi
18306   if test -z "$LTCFLAGS"; then
18307     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18308   fi
18309
18310   # Extract list of available tagged configurations in $ofile.
18311   # Note that this assumes the entire list is on one line.
18312   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18313
18314   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18315   for tagname in $tagnames; do
18316     IFS="$lt_save_ifs"
18317     # Check whether tagname contains only valid characters
18318     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18319     "") ;;
18320     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18321 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18322    { (exit 1); exit 1; }; }
18323         ;;
18324     esac
18325
18326     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18327     then
18328       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18329 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18330    { (exit 1); exit 1; }; }
18331     fi
18332
18333     # Update the list of available tags.
18334     if test -n "$tagname"; then
18335       echo appending configuration tag \"$tagname\" to $ofile
18336
18337       case $tagname in
18338       CXX)
18339         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18340             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18341             (test "X$CXX" != "Xg++"))) ; then
18342           ac_ext=cpp
18343 ac_cpp='$CXXCPP $CPPFLAGS'
18344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18347
18348
18349
18350
18351 archive_cmds_need_lc_CXX=no
18352 allow_undefined_flag_CXX=
18353 always_export_symbols_CXX=no
18354 archive_expsym_cmds_CXX=
18355 export_dynamic_flag_spec_CXX=
18356 hardcode_direct_CXX=no
18357 hardcode_libdir_flag_spec_CXX=
18358 hardcode_libdir_flag_spec_ld_CXX=
18359 hardcode_libdir_separator_CXX=
18360 hardcode_minus_L_CXX=no
18361 hardcode_shlibpath_var_CXX=unsupported
18362 hardcode_automatic_CXX=no
18363 module_cmds_CXX=
18364 module_expsym_cmds_CXX=
18365 link_all_deplibs_CXX=unknown
18366 old_archive_cmds_CXX=$old_archive_cmds
18367 no_undefined_flag_CXX=
18368 whole_archive_flag_spec_CXX=
18369 enable_shared_with_static_runtimes_CXX=no
18370
18371 # Dependencies to place before and after the object being linked:
18372 predep_objects_CXX=
18373 postdep_objects_CXX=
18374 predeps_CXX=
18375 postdeps_CXX=
18376 compiler_lib_search_path_CXX=
18377
18378 # Source file extension for C++ test sources.
18379 ac_ext=cpp
18380
18381 # Object file extension for compiled C++ test sources.
18382 objext=o
18383 objext_CXX=$objext
18384
18385 # Code to be used in simple compile tests
18386 lt_simple_compile_test_code="int some_variable = 0;\n"
18387
18388 # Code to be used in simple link tests
18389 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18390
18391 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18392
18393 # If no C compiler was specified, use CC.
18394 LTCC=${LTCC-"$CC"}
18395
18396 # If no C compiler flags were specified, use CFLAGS.
18397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18398
18399 # Allow CC to be a program name with arguments.
18400 compiler=$CC
18401
18402
18403 # save warnings/boilerplate of simple test code
18404 ac_outfile=conftest.$ac_objext
18405 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18407 _lt_compiler_boilerplate=`cat conftest.err`
18408 $rm conftest*
18409
18410 ac_outfile=conftest.$ac_objext
18411 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18413 _lt_linker_boilerplate=`cat conftest.err`
18414 $rm conftest*
18415
18416
18417 # Allow CC to be a program name with arguments.
18418 lt_save_CC=$CC
18419 lt_save_LD=$LD
18420 lt_save_GCC=$GCC
18421 GCC=$GXX
18422 lt_save_with_gnu_ld=$with_gnu_ld
18423 lt_save_path_LD=$lt_cv_path_LD
18424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18426 else
18427   $as_unset lt_cv_prog_gnu_ld
18428 fi
18429 if test -n "${lt_cv_path_LDCXX+set}"; then
18430   lt_cv_path_LD=$lt_cv_path_LDCXX
18431 else
18432   $as_unset lt_cv_path_LD
18433 fi
18434 test -z "${LDCXX+set}" || LD=$LDCXX
18435 CC=${CXX-"c++"}
18436 compiler=$CC
18437 compiler_CXX=$CC
18438 for cc_temp in $compiler""; do
18439   case $cc_temp in
18440     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442     \-*) ;;
18443     *) break;;
18444   esac
18445 done
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
18448
18449 # We don't want -fno-exception wen compiling C++ code, so set the
18450 # no_builtin_flag separately
18451 if test "$GXX" = yes; then
18452   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18453 else
18454   lt_prog_compiler_no_builtin_flag_CXX=
18455 fi
18456
18457 if test "$GXX" = yes; then
18458   # Set up default GNU C++ configuration
18459
18460
18461 # Check whether --with-gnu-ld was given.
18462 if test "${with_gnu_ld+set}" = set; then
18463   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18464 else
18465   with_gnu_ld=no
18466 fi
18467
18468 ac_prog=ld
18469 if test "$GCC" = yes; then
18470   # Check if gcc -print-prog-name=ld gives a path.
18471   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18472 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18473   case $host in
18474   *-*-mingw*)
18475     # gcc leaves a trailing carriage return which upsets mingw
18476     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18477   *)
18478     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18479   esac
18480   case $ac_prog in
18481     # Accept absolute paths.
18482     [\\/]* | ?:[\\/]*)
18483       re_direlt='/[^/][^/]*/\.\./'
18484       # Canonicalize the pathname of ld
18485       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18486       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18487         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18488       done
18489       test -z "$LD" && LD="$ac_prog"
18490       ;;
18491   "")
18492     # If it fails, then pretend we aren't using GCC.
18493     ac_prog=ld
18494     ;;
18495   *)
18496     # If it is relative, then search for the first ld in PATH.
18497     with_gnu_ld=unknown
18498     ;;
18499   esac
18500 elif test "$with_gnu_ld" = yes; then
18501   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18503 else
18504   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18506 fi
18507 if test "${lt_cv_path_LD+set}" = set; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   if test -z "$LD"; then
18511   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18512   for ac_dir in $PATH; do
18513     IFS="$lt_save_ifs"
18514     test -z "$ac_dir" && ac_dir=.
18515     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18516       lt_cv_path_LD="$ac_dir/$ac_prog"
18517       # Check to see if the program is GNU ld.  I'd rather use --version,
18518       # but apparently some variants of GNU ld only accept -v.
18519       # Break only if it was the GNU/non-GNU ld that we prefer.
18520       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18521       *GNU* | *'with BFD'*)
18522         test "$with_gnu_ld" != no && break
18523         ;;
18524       *)
18525         test "$with_gnu_ld" != yes && break
18526         ;;
18527       esac
18528     fi
18529   done
18530   IFS="$lt_save_ifs"
18531 else
18532   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18533 fi
18534 fi
18535
18536 LD="$lt_cv_path_LD"
18537 if test -n "$LD"; then
18538   { echo "$as_me:$LINENO: result: $LD" >&5
18539 echo "${ECHO_T}$LD" >&6; }
18540 else
18541   { echo "$as_me:$LINENO: result: no" >&5
18542 echo "${ECHO_T}no" >&6; }
18543 fi
18544 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18545 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18546    { (exit 1); exit 1; }; }
18547 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18548 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18549 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18553 case `$LD -v 2>&1 </dev/null` in
18554 *GNU* | *'with BFD'*)
18555   lt_cv_prog_gnu_ld=yes
18556   ;;
18557 *)
18558   lt_cv_prog_gnu_ld=no
18559   ;;
18560 esac
18561 fi
18562 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18563 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18564 with_gnu_ld=$lt_cv_prog_gnu_ld
18565
18566
18567
18568   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18569   # archiving commands below assume that GNU ld is being used.
18570   if test "$with_gnu_ld" = yes; then
18571     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572     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'
18573
18574     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18575     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18576
18577     # If archive_cmds runs LD, not CC, wlarc should be empty
18578     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18579     #     investigate it a little bit more. (MM)
18580     wlarc='${wl}'
18581
18582     # ancient GNU ld didn't support --whole-archive et. al.
18583     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18584         grep 'no-whole-archive' > /dev/null; then
18585       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18586     else
18587       whole_archive_flag_spec_CXX=
18588     fi
18589   else
18590     with_gnu_ld=no
18591     wlarc=
18592
18593     # A generic and very simple default shared library creation
18594     # command for GNU C++ for the case where it uses the native
18595     # linker, instead of GNU ld.  If possible, this setting should
18596     # overridden to take advantage of the native linker features on
18597     # the platform it is being used on.
18598     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18599   fi
18600
18601   # Commands to make compiler produce verbose output that lists
18602   # what "hidden" libraries, object files and flags are used when
18603   # linking a shared library.
18604   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18605
18606 else
18607   GXX=no
18608   with_gnu_ld=no
18609   wlarc=
18610 fi
18611
18612 # PORTME: fill in a description of your system's C++ link characteristics
18613 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18615 ld_shlibs_CXX=yes
18616 case $host_os in
18617   aix3*)
18618     # FIXME: insert proper C++ library support
18619     ld_shlibs_CXX=no
18620     ;;
18621   aix4* | aix5*)
18622     if test "$host_cpu" = ia64; then
18623       # On IA64, the linker does run time linking by default, so we don't
18624       # have to do anything special.
18625       aix_use_runtimelinking=no
18626       exp_sym_flag='-Bexport'
18627       no_entry_flag=""
18628     else
18629       aix_use_runtimelinking=no
18630
18631       # Test if we are trying to use run time linking or normal
18632       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18633       # need to do runtime linking.
18634       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18635         for ld_flag in $LDFLAGS; do
18636           case $ld_flag in
18637           *-brtl*)
18638             aix_use_runtimelinking=yes
18639             break
18640             ;;
18641           esac
18642         done
18643         ;;
18644       esac
18645
18646       exp_sym_flag='-bexport'
18647       no_entry_flag='-bnoentry'
18648     fi
18649
18650     # When large executables or shared objects are built, AIX ld can
18651     # have problems creating the table of contents.  If linking a library
18652     # or program results in "error TOC overflow" add -mminimal-toc to
18653     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18654     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18655
18656     archive_cmds_CXX=''
18657     hardcode_direct_CXX=yes
18658     hardcode_libdir_separator_CXX=':'
18659     link_all_deplibs_CXX=yes
18660
18661     if test "$GXX" = yes; then
18662       case $host_os in aix4.[012]|aix4.[012].*)
18663       # We only want to do this on AIX 4.2 and lower, the check
18664       # below for broken collect2 doesn't work under 4.3+
18665         collect2name=`${CC} -print-prog-name=collect2`
18666         if test -f "$collect2name" && \
18667            strings "$collect2name" | grep resolve_lib_name >/dev/null
18668         then
18669           # We have reworked collect2
18670           hardcode_direct_CXX=yes
18671         else
18672           # We have old collect2
18673           hardcode_direct_CXX=unsupported
18674           # It fails to find uninstalled libraries when the uninstalled
18675           # path is not listed in the libpath.  Setting hardcode_minus_L
18676           # to unsupported forces relinking
18677           hardcode_minus_L_CXX=yes
18678           hardcode_libdir_flag_spec_CXX='-L$libdir'
18679           hardcode_libdir_separator_CXX=
18680         fi
18681         ;;
18682       esac
18683       shared_flag='-shared'
18684       if test "$aix_use_runtimelinking" = yes; then
18685         shared_flag="$shared_flag "'${wl}-G'
18686       fi
18687     else
18688       # not using gcc
18689       if test "$host_cpu" = ia64; then
18690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691         # chokes on -Wl,-G. The following line is correct:
18692         shared_flag='-G'
18693       else
18694         if test "$aix_use_runtimelinking" = yes; then
18695           shared_flag='${wl}-G'
18696         else
18697           shared_flag='${wl}-bM:SRE'
18698         fi
18699       fi
18700     fi
18701
18702     # It seems that -bexpall does not export symbols beginning with
18703     # underscore (_), so it is better to generate a list of symbols to export.
18704     always_export_symbols_CXX=yes
18705     if test "$aix_use_runtimelinking" = yes; then
18706       # Warning - without using the other runtime loading flags (-brtl),
18707       # -berok will link without error, but may produce a broken library.
18708       allow_undefined_flag_CXX='-berok'
18709       # Determine the default libpath from the value encoded in an empty executable.
18710       cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 int
18718 main ()
18719 {
18720
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732   (eval "$ac_link") 2>conftest.er1
18733   ac_status=$?
18734   grep -v '^ *+' conftest.er1 >conftest.err
18735   rm -f conftest.er1
18736   cat conftest.err >&5
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } &&
18739          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740   { (case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_try") 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; } &&
18749          { ac_try='test -s conftest$ac_exeext'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; }; then
18759
18760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18761 }'`
18762 # Check for a 64-bit object if we didn't find anything.
18763 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; }
18764 }'`; fi
18765 else
18766   echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769
18770 fi
18771
18772 rm -f core conftest.err conftest.$ac_objext \
18773       conftest$ac_exeext conftest.$ac_ext
18774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18775
18776       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18777
18778       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"
18779      else
18780       if test "$host_cpu" = ia64; then
18781         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18782         allow_undefined_flag_CXX="-z nodefs"
18783         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"
18784       else
18785         # Determine the default libpath from the value encoded in an empty executable.
18786         cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792
18793 int
18794 main ()
18795 {
18796
18797   ;
18798   return 0;
18799 }
18800 _ACEOF
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_link") 2>conftest.er1
18809   ac_status=$?
18810   grep -v '^ *+' conftest.er1 >conftest.err
18811   rm -f conftest.er1
18812   cat conftest.err >&5
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } &&
18815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18816   { (case "(($ac_try" in
18817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818   *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821   (eval "$ac_try") 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; } &&
18825          { ac_try='test -s conftest$ac_exeext'
18826   { (case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_try") 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; }; then
18835
18836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18837 }'`
18838 # Check for a 64-bit object if we didn't find anything.
18839 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; }
18840 }'`; fi
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext \
18849       conftest$ac_exeext conftest.$ac_ext
18850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18851
18852         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18853         # Warning - without using the other run time loading flags,
18854         # -berok will link without error, but may produce a broken library.
18855         no_undefined_flag_CXX=' ${wl}-bernotok'
18856         allow_undefined_flag_CXX=' ${wl}-berok'
18857         # Exported symbols can be pulled into shared objects from archives
18858         whole_archive_flag_spec_CXX='$convenience'
18859         archive_cmds_need_lc_CXX=yes
18860         # This is similar to how AIX traditionally builds its shared libraries.
18861         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'
18862       fi
18863     fi
18864     ;;
18865
18866   beos*)
18867     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18868       allow_undefined_flag_CXX=unsupported
18869       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18870       # support --undefined.  This deserves some investigation.  FIXME
18871       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872     else
18873       ld_shlibs_CXX=no
18874     fi
18875     ;;
18876
18877   chorus*)
18878     case $cc_basename in
18879       *)
18880         # FIXME: insert proper C++ library support
18881         ld_shlibs_CXX=no
18882         ;;
18883     esac
18884     ;;
18885
18886   cygwin* | mingw* | pw32*)
18887     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18888     # as there is no search path for DLLs.
18889     hardcode_libdir_flag_spec_CXX='-L$libdir'
18890     allow_undefined_flag_CXX=unsupported
18891     always_export_symbols_CXX=no
18892     enable_shared_with_static_runtimes_CXX=yes
18893
18894     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18895       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'
18896       # If the export-symbols file already is a .def file (1st line
18897       # is EXPORTS), use it as is; otherwise, prepend...
18898       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18899         cp $export_symbols $output_objdir/$soname.def;
18900       else
18901         echo EXPORTS > $output_objdir/$soname.def;
18902         cat $export_symbols >> $output_objdir/$soname.def;
18903       fi~
18904       $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'
18905     else
18906       ld_shlibs_CXX=no
18907     fi
18908   ;;
18909       darwin* | rhapsody*)
18910         case $host_os in
18911         rhapsody* | darwin1.[012])
18912          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18913          ;;
18914        *) # Darwin 1.3 on
18915          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18916            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18917          else
18918            case ${MACOSX_DEPLOYMENT_TARGET} in
18919              10.[012])
18920                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18921                ;;
18922              10.*)
18923                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18924                ;;
18925            esac
18926          fi
18927          ;;
18928         esac
18929       archive_cmds_need_lc_CXX=no
18930       hardcode_direct_CXX=no
18931       hardcode_automatic_CXX=yes
18932       hardcode_shlibpath_var_CXX=unsupported
18933       whole_archive_flag_spec_CXX=''
18934       link_all_deplibs_CXX=yes
18935
18936     if test "$GXX" = yes ; then
18937       lt_int_apple_cc_single_mod=no
18938       output_verbose_link_cmd='echo'
18939       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18940        lt_int_apple_cc_single_mod=yes
18941       fi
18942       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18943        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18944       else
18945           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'
18946         fi
18947         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18948         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18949           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18950             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}'
18951           else
18952             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}'
18953           fi
18954             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}'
18955       else
18956       case $cc_basename in
18957         xlc*)
18958          output_verbose_link_cmd='echo'
18959           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'
18960           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18961           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18962           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}'
18963           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}'
18964           ;;
18965        *)
18966          ld_shlibs_CXX=no
18967           ;;
18968       esac
18969       fi
18970         ;;
18971
18972   dgux*)
18973     case $cc_basename in
18974       ec++*)
18975         # FIXME: insert proper C++ library support
18976         ld_shlibs_CXX=no
18977         ;;
18978       ghcx*)
18979         # Green Hills C++ Compiler
18980         # FIXME: insert proper C++ library support
18981         ld_shlibs_CXX=no
18982         ;;
18983       *)
18984         # FIXME: insert proper C++ library support
18985         ld_shlibs_CXX=no
18986         ;;
18987     esac
18988     ;;
18989   freebsd[12]*)
18990     # C++ shared libraries reported to be fairly broken before switch to ELF
18991     ld_shlibs_CXX=no
18992     ;;
18993   freebsd-elf*)
18994     archive_cmds_need_lc_CXX=no
18995     ;;
18996   freebsd* | kfreebsd*-gnu | dragonfly*)
18997     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18998     # conventions
18999     ld_shlibs_CXX=yes
19000     ;;
19001   gnu*)
19002     ;;
19003   hpux9*)
19004     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19005     hardcode_libdir_separator_CXX=:
19006     export_dynamic_flag_spec_CXX='${wl}-E'
19007     hardcode_direct_CXX=yes
19008     hardcode_minus_L_CXX=yes # Not in the search PATH,
19009                                 # but as the default
19010                                 # location of the library.
19011
19012     case $cc_basename in
19013     CC*)
19014       # FIXME: insert proper C++ library support
19015       ld_shlibs_CXX=no
19016       ;;
19017     aCC*)
19018       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'
19019       # Commands to make compiler produce verbose output that lists
19020       # what "hidden" libraries, object files and flags are used when
19021       # linking a shared library.
19022       #
19023       # There doesn't appear to be a way to prevent this compiler from
19024       # explicitly linking system object files so we need to strip them
19025       # from the output so that they don't get included in the library
19026       # dependencies.
19027       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'
19028       ;;
19029     *)
19030       if test "$GXX" = yes; then
19031         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'
19032       else
19033         # FIXME: insert proper C++ library support
19034         ld_shlibs_CXX=no
19035       fi
19036       ;;
19037     esac
19038     ;;
19039   hpux10*|hpux11*)
19040     if test $with_gnu_ld = no; then
19041       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042       hardcode_libdir_separator_CXX=:
19043
19044       case $host_cpu in
19045       hppa*64*|ia64*)
19046         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19047         ;;
19048       *)
19049         export_dynamic_flag_spec_CXX='${wl}-E'
19050         ;;
19051       esac
19052     fi
19053     case $host_cpu in
19054     hppa*64*|ia64*)
19055       hardcode_direct_CXX=no
19056       hardcode_shlibpath_var_CXX=no
19057       ;;
19058     *)
19059       hardcode_direct_CXX=yes
19060       hardcode_minus_L_CXX=yes # Not in the search PATH,
19061                                               # but as the default
19062                                               # location of the library.
19063       ;;
19064     esac
19065
19066     case $cc_basename in
19067       CC*)
19068         # FIXME: insert proper C++ library support
19069         ld_shlibs_CXX=no
19070         ;;
19071       aCC*)
19072         case $host_cpu in
19073         hppa*64*)
19074           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075           ;;
19076         ia64*)
19077           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19078           ;;
19079         *)
19080           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19081           ;;
19082         esac
19083         # Commands to make compiler produce verbose output that lists
19084         # what "hidden" libraries, object files and flags are used when
19085         # linking a shared library.
19086         #
19087         # There doesn't appear to be a way to prevent this compiler from
19088         # explicitly linking system object files so we need to strip them
19089         # from the output so that they don't get included in the library
19090         # dependencies.
19091         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'
19092         ;;
19093       *)
19094         if test "$GXX" = yes; then
19095           if test $with_gnu_ld = no; then
19096             case $host_cpu in
19097             hppa*64*)
19098               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19099               ;;
19100             ia64*)
19101               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19102               ;;
19103             *)
19104               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'
19105               ;;
19106             esac
19107           fi
19108         else
19109           # FIXME: insert proper C++ library support
19110           ld_shlibs_CXX=no
19111         fi
19112         ;;
19113     esac
19114     ;;
19115   interix3*)
19116     hardcode_direct_CXX=no
19117     hardcode_shlibpath_var_CXX=no
19118     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119     export_dynamic_flag_spec_CXX='${wl}-E'
19120     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19121     # Instead, shared libraries are loaded at an image base (0x10000000 by
19122     # default) and relocated if they conflict, which is a slow very memory
19123     # consuming and fragmenting process.  To avoid this, we pick a random,
19124     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19125     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19126     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'
19127     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'
19128     ;;
19129   irix5* | irix6*)
19130     case $cc_basename in
19131       CC*)
19132         # SGI C++
19133         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'
19134
19135         # Archives containing C++ object files must be created using
19136         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19137         # necessary to make sure instantiated templates are included
19138         # in the archive.
19139         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19140         ;;
19141       *)
19142         if test "$GXX" = yes; then
19143           if test "$with_gnu_ld" = no; then
19144             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'
19145           else
19146             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'
19147           fi
19148         fi
19149         link_all_deplibs_CXX=yes
19150         ;;
19151     esac
19152     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19153     hardcode_libdir_separator_CXX=:
19154     ;;
19155   linux*)
19156     case $cc_basename in
19157       KCC*)
19158         # Kuck and Associates, Inc. (KAI) C++ Compiler
19159
19160         # KCC will only create a shared library if the output file
19161         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19162         # to its proper name (with version) after linking.
19163         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'
19164         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'
19165         # Commands to make compiler produce verbose output that lists
19166         # what "hidden" libraries, object files and flags are used when
19167         # linking a shared library.
19168         #
19169         # There doesn't appear to be a way to prevent this compiler from
19170         # explicitly linking system object files so we need to strip them
19171         # from the output so that they don't get included in the library
19172         # dependencies.
19173         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'
19174
19175         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19176         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19177
19178         # Archives containing C++ object files must be created using
19179         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19180         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19181         ;;
19182       icpc*)
19183         # Intel C++
19184         with_gnu_ld=yes
19185         # version 8.0 and above of icpc choke on multiply defined symbols
19186         # if we add $predep_objects and $postdep_objects, however 7.1 and
19187         # earlier do not add the objects themselves.
19188         case `$CC -V 2>&1` in
19189         *"Version 7."*)
19190           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191           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'
19192           ;;
19193         *)  # Version 8.0 or newer
19194           tmp_idyn=
19195           case $host_cpu in
19196             ia64*) tmp_idyn=' -i_dynamic';;
19197           esac
19198           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199           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'
19200           ;;
19201         esac
19202         archive_cmds_need_lc_CXX=no
19203         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19204         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19206         ;;
19207       pgCC*)
19208         # Portland Group C++ compiler
19209         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19210         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'
19211
19212         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19213         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214         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'
19215         ;;
19216       cxx*)
19217         # Compaq C++
19218         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219         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'
19220
19221         runpath_var=LD_RUN_PATH
19222         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19223         hardcode_libdir_separator_CXX=:
19224
19225         # Commands to make compiler produce verbose output that lists
19226         # what "hidden" libraries, object files and flags are used when
19227         # linking a shared library.
19228         #
19229         # There doesn't appear to be a way to prevent this compiler from
19230         # explicitly linking system object files so we need to strip them
19231         # from the output so that they don't get included in the library
19232         # dependencies.
19233         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'
19234         ;;
19235     esac
19236     ;;
19237   lynxos*)
19238     # FIXME: insert proper C++ library support
19239     ld_shlibs_CXX=no
19240     ;;
19241   m88k*)
19242     # FIXME: insert proper C++ library support
19243     ld_shlibs_CXX=no
19244     ;;
19245   mvs*)
19246     case $cc_basename in
19247       cxx*)
19248         # FIXME: insert proper C++ library support
19249         ld_shlibs_CXX=no
19250         ;;
19251       *)
19252         # FIXME: insert proper C++ library support
19253         ld_shlibs_CXX=no
19254         ;;
19255     esac
19256     ;;
19257   netbsd*)
19258     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19259       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19260       wlarc=
19261       hardcode_libdir_flag_spec_CXX='-R$libdir'
19262       hardcode_direct_CXX=yes
19263       hardcode_shlibpath_var_CXX=no
19264     fi
19265     # Workaround some broken pre-1.5 toolchains
19266     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19267     ;;
19268   openbsd2*)
19269     # C++ shared libraries are fairly broken
19270     ld_shlibs_CXX=no
19271     ;;
19272   openbsd*)
19273     hardcode_direct_CXX=yes
19274     hardcode_shlibpath_var_CXX=no
19275     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19276     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19278       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19279       export_dynamic_flag_spec_CXX='${wl}-E'
19280       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19281     fi
19282     output_verbose_link_cmd='echo'
19283     ;;
19284   osf3*)
19285     case $cc_basename in
19286       KCC*)
19287         # Kuck and Associates, Inc. (KAI) C++ Compiler
19288
19289         # KCC will only create a shared library if the output file
19290         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19291         # to its proper name (with version) after linking.
19292         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'
19293
19294         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19295         hardcode_libdir_separator_CXX=:
19296
19297         # Archives containing C++ object files must be created using
19298         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19300
19301         ;;
19302       RCC*)
19303         # Rational C++ 2.4.1
19304         # FIXME: insert proper C++ library support
19305         ld_shlibs_CXX=no
19306         ;;
19307       cxx*)
19308         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19309         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'
19310
19311         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312         hardcode_libdir_separator_CXX=:
19313
19314         # Commands to make compiler produce verbose output that lists
19315         # what "hidden" libraries, object files and flags are used when
19316         # linking a shared library.
19317         #
19318         # There doesn't appear to be a way to prevent this compiler from
19319         # explicitly linking system object files so we need to strip them
19320         # from the output so that they don't get included in the library
19321         # dependencies.
19322         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'
19323         ;;
19324       *)
19325         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19326           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19327           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'
19328
19329           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19330           hardcode_libdir_separator_CXX=:
19331
19332           # Commands to make compiler produce verbose output that lists
19333           # what "hidden" libraries, object files and flags are used when
19334           # linking a shared library.
19335           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19336
19337         else
19338           # FIXME: insert proper C++ library support
19339           ld_shlibs_CXX=no
19340         fi
19341         ;;
19342     esac
19343     ;;
19344   osf4* | osf5*)
19345     case $cc_basename in
19346       KCC*)
19347         # Kuck and Associates, Inc. (KAI) C++ Compiler
19348
19349         # KCC will only create a shared library if the output file
19350         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19351         # to its proper name (with version) after linking.
19352         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'
19353
19354         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19355         hardcode_libdir_separator_CXX=:
19356
19357         # Archives containing C++ object files must be created using
19358         # the KAI C++ compiler.
19359         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19360         ;;
19361       RCC*)
19362         # Rational C++ 2.4.1
19363         # FIXME: insert proper C++ library support
19364         ld_shlibs_CXX=no
19365         ;;
19366       cxx*)
19367         allow_undefined_flag_CXX=' -expect_unresolved \*'
19368         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'
19369         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370           echo "-hidden">> $lib.exp~
19371           $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~
19372           $rm $lib.exp'
19373
19374         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375         hardcode_libdir_separator_CXX=:
19376
19377         # Commands to make compiler produce verbose output that lists
19378         # what "hidden" libraries, object files and flags are used when
19379         # linking a shared library.
19380         #
19381         # There doesn't appear to be a way to prevent this compiler from
19382         # explicitly linking system object files so we need to strip them
19383         # from the output so that they don't get included in the library
19384         # dependencies.
19385         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'
19386         ;;
19387       *)
19388         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19390          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'
19391
19392           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393           hardcode_libdir_separator_CXX=:
19394
19395           # Commands to make compiler produce verbose output that lists
19396           # what "hidden" libraries, object files and flags are used when
19397           # linking a shared library.
19398           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19399
19400         else
19401           # FIXME: insert proper C++ library support
19402           ld_shlibs_CXX=no
19403         fi
19404         ;;
19405     esac
19406     ;;
19407   psos*)
19408     # FIXME: insert proper C++ library support
19409     ld_shlibs_CXX=no
19410     ;;
19411   sunos4*)
19412     case $cc_basename in
19413       CC*)
19414         # Sun C++ 4.x
19415         # FIXME: insert proper C++ library support
19416         ld_shlibs_CXX=no
19417         ;;
19418       lcc*)
19419         # Lucid
19420         # FIXME: insert proper C++ library support
19421         ld_shlibs_CXX=no
19422         ;;
19423       *)
19424         # FIXME: insert proper C++ library support
19425         ld_shlibs_CXX=no
19426         ;;
19427     esac
19428     ;;
19429   solaris*)
19430     case $cc_basename in
19431       CC*)
19432         # Sun C++ 4.2, 5.x and Centerline C++
19433         archive_cmds_need_lc_CXX=yes
19434         no_undefined_flag_CXX=' -zdefs'
19435         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19436         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19437         $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'
19438
19439         hardcode_libdir_flag_spec_CXX='-R$libdir'
19440         hardcode_shlibpath_var_CXX=no
19441         case $host_os in
19442           solaris2.[0-5] | solaris2.[0-5].*) ;;
19443           *)
19444             # The C++ compiler is used as linker so we must use $wl
19445             # flag to pass the commands to the underlying system
19446             # linker. We must also pass each convience library through
19447             # to the system linker between allextract/defaultextract.
19448             # The C++ compiler will combine linker options so we
19449             # cannot just pass the convience library names through
19450             # without $wl.
19451             # Supported since Solaris 2.6 (maybe 2.5.1?)
19452             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'
19453             ;;
19454         esac
19455         link_all_deplibs_CXX=yes
19456
19457         output_verbose_link_cmd='echo'
19458
19459         # Archives containing C++ object files must be created using
19460         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19461         # necessary to make sure instantiated templates are included
19462         # in the archive.
19463         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19464         ;;
19465       gcx*)
19466         # Green Hills C++ Compiler
19467         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19468
19469         # The C++ compiler must be used to create the archive.
19470         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19471         ;;
19472       *)
19473         # GNU C++ compiler with Solaris linker
19474         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19475           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19476           if $CC --version | grep -v '^2\.7' > /dev/null; then
19477             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19478             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19479                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19480
19481             # Commands to make compiler produce verbose output that lists
19482             # what "hidden" libraries, object files and flags are used when
19483             # linking a shared library.
19484             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19485           else
19486             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19487             # platform.
19488             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19489             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19490                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19491
19492             # Commands to make compiler produce verbose output that lists
19493             # what "hidden" libraries, object files and flags are used when
19494             # linking a shared library.
19495             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19496           fi
19497
19498           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19499         fi
19500         ;;
19501     esac
19502     ;;
19503   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19504     no_undefined_flag_CXX='${wl}-z,text'
19505     archive_cmds_need_lc_CXX=no
19506     hardcode_shlibpath_var_CXX=no
19507     runpath_var='LD_RUN_PATH'
19508
19509     case $cc_basename in
19510       CC*)
19511         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19513         ;;
19514       *)
19515         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19517         ;;
19518     esac
19519     ;;
19520   sysv5* | sco3.2v5* | sco5v6*)
19521     # Note: We can NOT use -z defs as we might desire, because we do not
19522     # link with -lc, and that would cause any symbols used from libc to
19523     # always be unresolved, which means just about no library would
19524     # ever link correctly.  If we're not using GNU ld we use -z text
19525     # though, which does catch some bad symbols but isn't as heavy-handed
19526     # as -z defs.
19527     # For security reasons, it is highly recommended that you always
19528     # use absolute paths for naming shared libraries, and exclude the
19529     # DT_RUNPATH tag from executables and libraries.  But doing so
19530     # requires that you compile everything twice, which is a pain.
19531     # So that behaviour is only enabled if SCOABSPATH is set to a
19532     # non-empty value in the environment.  Most likely only useful for
19533     # creating official distributions of packages.
19534     # This is a hack until libtool officially supports absolute path
19535     # names for shared libraries.
19536     no_undefined_flag_CXX='${wl}-z,text'
19537     allow_undefined_flag_CXX='${wl}-z,nodefs'
19538     archive_cmds_need_lc_CXX=no
19539     hardcode_shlibpath_var_CXX=no
19540     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19541     hardcode_libdir_separator_CXX=':'
19542     link_all_deplibs_CXX=yes
19543     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19544     runpath_var='LD_RUN_PATH'
19545
19546     case $cc_basename in
19547       CC*)
19548         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19550         ;;
19551       *)
19552         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19554         ;;
19555     esac
19556     ;;
19557   tandem*)
19558     case $cc_basename in
19559       NCC*)
19560         # NonStop-UX NCC 3.20
19561         # FIXME: insert proper C++ library support
19562         ld_shlibs_CXX=no
19563         ;;
19564       *)
19565         # FIXME: insert proper C++ library support
19566         ld_shlibs_CXX=no
19567         ;;
19568     esac
19569     ;;
19570   vxworks*)
19571     # FIXME: insert proper C++ library support
19572     ld_shlibs_CXX=no
19573     ;;
19574   *)
19575     # FIXME: insert proper C++ library support
19576     ld_shlibs_CXX=no
19577     ;;
19578 esac
19579 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19580 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19581 test "$ld_shlibs_CXX" = no && can_build_shared=no
19582
19583 GCC_CXX="$GXX"
19584 LD_CXX="$LD"
19585
19586
19587 cat > conftest.$ac_ext <<EOF
19588 class Foo
19589 {
19590 public:
19591   Foo (void) { a = 0; }
19592 private:
19593   int a;
19594 };
19595 EOF
19596
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598   (eval $ac_compile) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; then
19602   # Parse the compiler output and extract the necessary
19603   # objects, libraries and library flags.
19604
19605   # Sentinel used to keep track of whether or not we are before
19606   # the conftest object file.
19607   pre_test_object_deps_done=no
19608
19609   # The `*' in the case matches for architectures that use `case' in
19610   # $output_verbose_cmd can trigger glob expansion during the loop
19611   # eval without this substitution.
19612   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19613
19614   for p in `eval $output_verbose_link_cmd`; do
19615     case $p in
19616
19617     -L* | -R* | -l*)
19618        # Some compilers place space between "-{L,R}" and the path.
19619        # Remove the space.
19620        if test $p = "-L" \
19621           || test $p = "-R"; then
19622          prev=$p
19623          continue
19624        else
19625          prev=
19626        fi
19627
19628        if test "$pre_test_object_deps_done" = no; then
19629          case $p in
19630          -L* | -R*)
19631            # Internal compiler library paths should come after those
19632            # provided the user.  The postdeps already come after the
19633            # user supplied libs so there is no need to process them.
19634            if test -z "$compiler_lib_search_path_CXX"; then
19635              compiler_lib_search_path_CXX="${prev}${p}"
19636            else
19637              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19638            fi
19639            ;;
19640          # The "-l" case would never come before the object being
19641          # linked, so don't bother handling this case.
19642          esac
19643        else
19644          if test -z "$postdeps_CXX"; then
19645            postdeps_CXX="${prev}${p}"
19646          else
19647            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19648          fi
19649        fi
19650        ;;
19651
19652     *.$objext)
19653        # This assumes that the test object file only shows up
19654        # once in the compiler output.
19655        if test "$p" = "conftest.$objext"; then
19656          pre_test_object_deps_done=yes
19657          continue
19658        fi
19659
19660        if test "$pre_test_object_deps_done" = no; then
19661          if test -z "$predep_objects_CXX"; then
19662            predep_objects_CXX="$p"
19663          else
19664            predep_objects_CXX="$predep_objects_CXX $p"
19665          fi
19666        else
19667          if test -z "$postdep_objects_CXX"; then
19668            postdep_objects_CXX="$p"
19669          else
19670            postdep_objects_CXX="$postdep_objects_CXX $p"
19671          fi
19672        fi
19673        ;;
19674
19675     *) ;; # Ignore the rest.
19676
19677     esac
19678   done
19679
19680   # Clean up.
19681   rm -f a.out a.exe
19682 else
19683   echo "libtool.m4: error: problem compiling CXX test program"
19684 fi
19685
19686 $rm -f confest.$objext
19687
19688 # PORTME: override above test on systems where it is broken
19689 case $host_os in
19690 interix3*)
19691   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19692   # hack all around it, let's just trust "g++" to DTRT.
19693   predep_objects_CXX=
19694   postdep_objects_CXX=
19695   postdeps_CXX=
19696   ;;
19697
19698 solaris*)
19699   case $cc_basename in
19700   CC*)
19701     # Adding this requires a known-good setup of shared libraries for
19702     # Sun compiler versions before 5.6, else PIC objects from an old
19703     # archive will be linked into the output, leading to subtle bugs.
19704     postdeps_CXX='-lCstd -lCrun'
19705     ;;
19706   esac
19707   ;;
19708 esac
19709
19710
19711 case " $postdeps_CXX " in
19712 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19713 esac
19714
19715 lt_prog_compiler_wl_CXX=
19716 lt_prog_compiler_pic_CXX=
19717 lt_prog_compiler_static_CXX=
19718
19719 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19720 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19721
19722   # C++ specific cases for pic, static, wl, etc.
19723   if test "$GXX" = yes; then
19724     lt_prog_compiler_wl_CXX='-Wl,'
19725     lt_prog_compiler_static_CXX='-static'
19726
19727     case $host_os in
19728     aix*)
19729       # All AIX code is PIC.
19730       if test "$host_cpu" = ia64; then
19731         # AIX 5 now supports IA64 processor
19732         lt_prog_compiler_static_CXX='-Bstatic'
19733       fi
19734       ;;
19735     amigaos*)
19736       # FIXME: we need at least 68020 code to build shared libraries, but
19737       # adding the `-m68020' flag to GCC prevents building anything better,
19738       # like `-m68040'.
19739       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19740       ;;
19741     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19742       # PIC is the default for these OSes.
19743       ;;
19744     mingw* | os2* | pw32*)
19745       # This hack is so that the source file can tell whether it is being
19746       # built for inclusion in a dll (and should export symbols for example).
19747       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19748       ;;
19749     darwin* | rhapsody*)
19750       # PIC is the default on this platform
19751       # Common symbols not allowed in MH_DYLIB files
19752       lt_prog_compiler_pic_CXX='-fno-common'
19753       ;;
19754     *djgpp*)
19755       # DJGPP does not support shared libraries at all
19756       lt_prog_compiler_pic_CXX=
19757       ;;
19758     interix3*)
19759       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19760       # Instead, we relocate shared libraries at runtime.
19761       ;;
19762     sysv4*MP*)
19763       if test -d /usr/nec; then
19764         lt_prog_compiler_pic_CXX=-Kconform_pic
19765       fi
19766       ;;
19767     hpux*)
19768       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19769       # not for PA HP-UX.
19770       case $host_cpu in
19771       hppa*64*|ia64*)
19772         ;;
19773       *)
19774         lt_prog_compiler_pic_CXX='-fPIC'
19775         ;;
19776       esac
19777       ;;
19778     *)
19779       lt_prog_compiler_pic_CXX='-fPIC'
19780       ;;
19781     esac
19782   else
19783     case $host_os in
19784       aix4* | aix5*)
19785         # All AIX code is PIC.
19786         if test "$host_cpu" = ia64; then
19787           # AIX 5 now supports IA64 processor
19788           lt_prog_compiler_static_CXX='-Bstatic'
19789         else
19790           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19791         fi
19792         ;;
19793       chorus*)
19794         case $cc_basename in
19795         cxch68*)
19796           # Green Hills C++ Compiler
19797           # _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"
19798           ;;
19799         esac
19800         ;;
19801        darwin*)
19802          # PIC is the default on this platform
19803          # Common symbols not allowed in MH_DYLIB files
19804          case $cc_basename in
19805            xlc*)
19806            lt_prog_compiler_pic_CXX='-qnocommon'
19807            lt_prog_compiler_wl_CXX='-Wl,'
19808            ;;
19809          esac
19810        ;;
19811       dgux*)
19812         case $cc_basename in
19813           ec++*)
19814             lt_prog_compiler_pic_CXX='-KPIC'
19815             ;;
19816           ghcx*)
19817             # Green Hills C++ Compiler
19818             lt_prog_compiler_pic_CXX='-pic'
19819             ;;
19820           *)
19821             ;;
19822         esac
19823         ;;
19824       freebsd* | kfreebsd*-gnu | dragonfly*)
19825         # FreeBSD uses GNU C++
19826         ;;
19827       hpux9* | hpux10* | hpux11*)
19828         case $cc_basename in
19829           CC*)
19830             lt_prog_compiler_wl_CXX='-Wl,'
19831             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19832             if test "$host_cpu" != ia64; then
19833               lt_prog_compiler_pic_CXX='+Z'
19834             fi
19835             ;;
19836           aCC*)
19837             lt_prog_compiler_wl_CXX='-Wl,'
19838             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19839             case $host_cpu in
19840             hppa*64*|ia64*)
19841               # +Z the default
19842               ;;
19843             *)
19844               lt_prog_compiler_pic_CXX='+Z'
19845               ;;
19846             esac
19847             ;;
19848           *)
19849             ;;
19850         esac
19851         ;;
19852       interix*)
19853         # This is c89, which is MS Visual C++ (no shared libs)
19854         # Anyone wants to do a port?
19855         ;;
19856       irix5* | irix6* | nonstopux*)
19857         case $cc_basename in
19858           CC*)
19859             lt_prog_compiler_wl_CXX='-Wl,'
19860             lt_prog_compiler_static_CXX='-non_shared'
19861             # CC pic flag -KPIC is the default.
19862             ;;
19863           *)
19864             ;;
19865         esac
19866         ;;
19867       linux*)
19868         case $cc_basename in
19869           KCC*)
19870             # KAI C++ Compiler
19871             lt_prog_compiler_wl_CXX='--backend -Wl,'
19872             lt_prog_compiler_pic_CXX='-fPIC'
19873             ;;
19874           icpc* | ecpc*)
19875             # Intel C++
19876             lt_prog_compiler_wl_CXX='-Wl,'
19877             lt_prog_compiler_pic_CXX='-KPIC'
19878             lt_prog_compiler_static_CXX='-static'
19879             ;;
19880           pgCC*)
19881             # Portland Group C++ compiler.
19882             lt_prog_compiler_wl_CXX='-Wl,'
19883             lt_prog_compiler_pic_CXX='-fpic'
19884             lt_prog_compiler_static_CXX='-Bstatic'
19885             ;;
19886           cxx*)
19887             # Compaq C++
19888             # Make sure the PIC flag is empty.  It appears that all Alpha
19889             # Linux and Compaq Tru64 Unix objects are PIC.
19890             lt_prog_compiler_pic_CXX=
19891             lt_prog_compiler_static_CXX='-non_shared'
19892             ;;
19893           *)
19894             ;;
19895         esac
19896         ;;
19897       lynxos*)
19898         ;;
19899       m88k*)
19900         ;;
19901       mvs*)
19902         case $cc_basename in
19903           cxx*)
19904             lt_prog_compiler_pic_CXX='-W c,exportall'
19905             ;;
19906           *)
19907             ;;
19908         esac
19909         ;;
19910       netbsd*)
19911         ;;
19912       osf3* | osf4* | osf5*)
19913         case $cc_basename in
19914           KCC*)
19915             lt_prog_compiler_wl_CXX='--backend -Wl,'
19916             ;;
19917           RCC*)
19918             # Rational C++ 2.4.1
19919             lt_prog_compiler_pic_CXX='-pic'
19920             ;;
19921           cxx*)
19922             # Digital/Compaq C++
19923             lt_prog_compiler_wl_CXX='-Wl,'
19924             # Make sure the PIC flag is empty.  It appears that all Alpha
19925             # Linux and Compaq Tru64 Unix objects are PIC.
19926             lt_prog_compiler_pic_CXX=
19927             lt_prog_compiler_static_CXX='-non_shared'
19928             ;;
19929           *)
19930             ;;
19931         esac
19932         ;;
19933       psos*)
19934         ;;
19935       solaris*)
19936         case $cc_basename in
19937           CC*)
19938             # Sun C++ 4.2, 5.x and Centerline C++
19939             lt_prog_compiler_pic_CXX='-KPIC'
19940             lt_prog_compiler_static_CXX='-Bstatic'
19941             lt_prog_compiler_wl_CXX='-Qoption ld '
19942             ;;
19943           gcx*)
19944             # Green Hills C++ Compiler
19945             lt_prog_compiler_pic_CXX='-PIC'
19946             ;;
19947           *)
19948             ;;
19949         esac
19950         ;;
19951       sunos4*)
19952         case $cc_basename in
19953           CC*)
19954             # Sun C++ 4.x
19955             lt_prog_compiler_pic_CXX='-pic'
19956             lt_prog_compiler_static_CXX='-Bstatic'
19957             ;;
19958           lcc*)
19959             # Lucid
19960             lt_prog_compiler_pic_CXX='-pic'
19961             ;;
19962           *)
19963             ;;
19964         esac
19965         ;;
19966       tandem*)
19967         case $cc_basename in
19968           NCC*)
19969             # NonStop-UX NCC 3.20
19970             lt_prog_compiler_pic_CXX='-KPIC'
19971             ;;
19972           *)
19973             ;;
19974         esac
19975         ;;
19976       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19977         case $cc_basename in
19978           CC*)
19979             lt_prog_compiler_wl_CXX='-Wl,'
19980             lt_prog_compiler_pic_CXX='-KPIC'
19981             lt_prog_compiler_static_CXX='-Bstatic'
19982             ;;
19983         esac
19984         ;;
19985       vxworks*)
19986         ;;
19987       *)
19988         lt_prog_compiler_can_build_shared_CXX=no
19989         ;;
19990     esac
19991   fi
19992
19993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19994 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19995
19996 #
19997 # Check to make sure the PIC flag actually works.
19998 #
19999 if test -n "$lt_prog_compiler_pic_CXX"; then
20000
20001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   lt_prog_compiler_pic_works_CXX=no
20007   ac_outfile=conftest.$ac_objext
20008    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20009    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20010    # Insert the option either (1) after the last *FLAGS variable, or
20011    # (2) before a word containing "conftest.", or (3) at the end.
20012    # Note that $ac_compile itself does not contain backslashes and begins
20013    # with a dollar sign (not a hyphen), so the echo should work correctly.
20014    # The option is referenced via a variable to avoid confusing sed.
20015    lt_compile=`echo "$ac_compile" | $SED \
20016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20018    -e 's:$: $lt_compiler_flag:'`
20019    (eval echo "\"\$as_me:20019: $lt_compile\"" >&5)
20020    (eval "$lt_compile" 2>conftest.err)
20021    ac_status=$?
20022    cat conftest.err >&5
20023    echo "$as_me:20023: \$? = $ac_status" >&5
20024    if (exit $ac_status) && test -s "$ac_outfile"; then
20025      # The compiler can only warn and ignore the option if not recognized
20026      # So say no if there are warnings other than the usual output.
20027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20030        lt_prog_compiler_pic_works_CXX=yes
20031      fi
20032    fi
20033    $rm conftest*
20034
20035 fi
20036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20038
20039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20040     case $lt_prog_compiler_pic_CXX in
20041      "" | " "*) ;;
20042      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20043      esac
20044 else
20045     lt_prog_compiler_pic_CXX=
20046      lt_prog_compiler_can_build_shared_CXX=no
20047 fi
20048
20049 fi
20050 case $host_os in
20051   # For platforms which do not support PIC, -DPIC is meaningless:
20052   *djgpp*)
20053     lt_prog_compiler_pic_CXX=
20054     ;;
20055   *)
20056     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20057     ;;
20058 esac
20059
20060 #
20061 # Check to make sure the static flag actually works.
20062 #
20063 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20066 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   lt_prog_compiler_static_works_CXX=no
20070    save_LDFLAGS="$LDFLAGS"
20071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20072    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20074      # The linker can only warn and ignore the option if not recognized
20075      # So say no if there are warnings
20076      if test -s conftest.err; then
20077        # Append any errors to the config.log.
20078        cat conftest.err 1>&5
20079        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081        if diff conftest.exp conftest.er2 >/dev/null; then
20082          lt_prog_compiler_static_works_CXX=yes
20083        fi
20084      else
20085        lt_prog_compiler_static_works_CXX=yes
20086      fi
20087    fi
20088    $rm conftest*
20089    LDFLAGS="$save_LDFLAGS"
20090
20091 fi
20092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20093 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20094
20095 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20096     :
20097 else
20098     lt_prog_compiler_static_CXX=
20099 fi
20100
20101
20102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20104 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   lt_cv_prog_compiler_c_o_CXX=no
20108    $rm -r conftest 2>/dev/null
20109    mkdir conftest
20110    cd conftest
20111    mkdir out
20112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20113
20114    lt_compiler_flag="-o out/conftest2.$ac_objext"
20115    # Insert the option either (1) after the last *FLAGS variable, or
20116    # (2) before a word containing "conftest.", or (3) at the end.
20117    # Note that $ac_compile itself does not contain backslashes and begins
20118    # with a dollar sign (not a hyphen), so the echo should work correctly.
20119    lt_compile=`echo "$ac_compile" | $SED \
20120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20122    -e 's:$: $lt_compiler_flag:'`
20123    (eval echo "\"\$as_me:20123: $lt_compile\"" >&5)
20124    (eval "$lt_compile" 2>out/conftest.err)
20125    ac_status=$?
20126    cat out/conftest.err >&5
20127    echo "$as_me:20127: \$? = $ac_status" >&5
20128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20129    then
20130      # The compiler can only warn and ignore the option if not recognized
20131      # So say no if there are warnings
20132      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20135        lt_cv_prog_compiler_c_o_CXX=yes
20136      fi
20137    fi
20138    chmod u+w . 2>&5
20139    $rm conftest*
20140    # SGI C++ compiler will create directory out/ii_files/ for
20141    # template instantiation
20142    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20143    $rm out/* && rmdir out
20144    cd ..
20145    rmdir conftest
20146    $rm conftest*
20147
20148 fi
20149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20151
20152
20153 hard_links="nottested"
20154 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20155   # do not overwrite the value of need_locks provided by the user
20156   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20158   hard_links=yes
20159   $rm conftest*
20160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20161   touch conftest.a
20162   ln conftest.a conftest.b 2>&5 || hard_links=no
20163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20164   { echo "$as_me:$LINENO: result: $hard_links" >&5
20165 echo "${ECHO_T}$hard_links" >&6; }
20166   if test "$hard_links" = no; then
20167     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20169     need_locks=warn
20170   fi
20171 else
20172   need_locks=no
20173 fi
20174
20175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20177
20178   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20179   case $host_os in
20180   aix4* | aix5*)
20181     # If we're using GNU nm, then we don't want the "-C" option.
20182     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20183     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20184       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'
20185     else
20186       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'
20187     fi
20188     ;;
20189   pw32*)
20190     export_symbols_cmds_CXX="$ltdll_cmds"
20191   ;;
20192   cygwin* | mingw*)
20193     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'
20194   ;;
20195   *)
20196     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20197   ;;
20198   esac
20199
20200 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20201 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20202 test "$ld_shlibs_CXX" = no && can_build_shared=no
20203
20204 #
20205 # Do we need to explicitly link libc?
20206 #
20207 case "x$archive_cmds_need_lc_CXX" in
20208 x|xyes)
20209   # Assume -lc should be added
20210   archive_cmds_need_lc_CXX=yes
20211
20212   if test "$enable_shared" = yes && test "$GCC" = yes; then
20213     case $archive_cmds_CXX in
20214     *'~'*)
20215       # FIXME: we may have to deal with multi-command sequences.
20216       ;;
20217     '$CC '*)
20218       # Test whether the compiler implicitly links with -lc since on some
20219       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220       # to ld, don't add -lc before -lgcc.
20221       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20222 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20223       $rm conftest*
20224       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225
20226       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227   (eval $ac_compile) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } 2>conftest.err; then
20231         soname=conftest
20232         lib=conftest
20233         libobjs=conftest.$ac_objext
20234         deplibs=
20235         wl=$lt_prog_compiler_wl_CXX
20236         pic_flag=$lt_prog_compiler_pic_CXX
20237         compiler_flags=-v
20238         linker_flags=-v
20239         verstring=
20240         output_objdir=.
20241         libname=conftest
20242         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20243         allow_undefined_flag_CXX=
20244         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20245   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }
20249         then
20250           archive_cmds_need_lc_CXX=no
20251         else
20252           archive_cmds_need_lc_CXX=yes
20253         fi
20254         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20255       else
20256         cat conftest.err 1>&5
20257       fi
20258       $rm conftest*
20259       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20260 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20261       ;;
20262     esac
20263   fi
20264   ;;
20265 esac
20266
20267 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20269 library_names_spec=
20270 libname_spec='lib$name'
20271 soname_spec=
20272 shrext_cmds=".so"
20273 postinstall_cmds=
20274 postuninstall_cmds=
20275 finish_cmds=
20276 finish_eval=
20277 shlibpath_var=
20278 shlibpath_overrides_runpath=unknown
20279 version_type=none
20280 dynamic_linker="$host_os ld.so"
20281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20282 if test "$GCC" = yes; then
20283   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20284   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20285     # if the path contains ";" then we assume it to be the separator
20286     # otherwise default to the standard path separator (i.e. ":") - it is
20287     # assumed that no part of a normal pathname contains ";" but that should
20288     # okay in the real world where ";" in dirpaths is itself problematic.
20289     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20290   else
20291     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20292   fi
20293 else
20294   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20295 fi
20296 need_lib_prefix=unknown
20297 hardcode_into_libs=no
20298
20299 # when you set need_version to no, make sure it does not cause -set_version
20300 # flags to be left without arguments
20301 need_version=unknown
20302
20303 case $host_os in
20304 aix3*)
20305   version_type=linux
20306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20307   shlibpath_var=LIBPATH
20308
20309   # AIX 3 has no versioning support, so we append a major version to the name.
20310   soname_spec='${libname}${release}${shared_ext}$major'
20311   ;;
20312
20313 aix4* | aix5*)
20314   version_type=linux
20315   need_lib_prefix=no
20316   need_version=no
20317   hardcode_into_libs=yes
20318   if test "$host_cpu" = ia64; then
20319     # AIX 5 supports IA64
20320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20321     shlibpath_var=LD_LIBRARY_PATH
20322   else
20323     # With GCC up to 2.95.x, collect2 would create an import file
20324     # for dependence libraries.  The import file would start with
20325     # the line `#! .'.  This would cause the generated library to
20326     # depend on `.', always an invalid library.  This was fixed in
20327     # development snapshots of GCC prior to 3.0.
20328     case $host_os in
20329       aix4 | aix4.[01] | aix4.[01].*)
20330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20331            echo ' yes '
20332            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20333         :
20334       else
20335         can_build_shared=no
20336       fi
20337       ;;
20338     esac
20339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20340     # soname into executable. Probably we can add versioning support to
20341     # collect2, so additional links can be useful in future.
20342     if test "$aix_use_runtimelinking" = yes; then
20343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20344       # instead of lib<name>.a to let people know that these are not
20345       # typical AIX shared libraries.
20346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347     else
20348       # We preserve .a as extension for shared libraries through AIX4.2
20349       # and later when we are not doing run time linking.
20350       library_names_spec='${libname}${release}.a $libname.a'
20351       soname_spec='${libname}${release}${shared_ext}$major'
20352     fi
20353     shlibpath_var=LIBPATH
20354   fi
20355   ;;
20356
20357 amigaos*)
20358   library_names_spec='$libname.ixlibrary $libname.a'
20359   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20360   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'
20361   ;;
20362
20363 beos*)
20364   library_names_spec='${libname}${shared_ext}'
20365   dynamic_linker="$host_os ld.so"
20366   shlibpath_var=LIBRARY_PATH
20367   ;;
20368
20369 bsdi[45]*)
20370   version_type=linux
20371   need_version=no
20372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20375   shlibpath_var=LD_LIBRARY_PATH
20376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20378   # the default ld.so.conf also contains /usr/contrib/lib and
20379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20380   # libtool to hard-code these into programs
20381   ;;
20382
20383 cygwin* | mingw* | pw32*)
20384   version_type=windows
20385   shrext_cmds=".dll"
20386   need_version=no
20387   need_lib_prefix=no
20388
20389   case $GCC,$host_os in
20390   yes,cygwin* | yes,mingw* | yes,pw32*)
20391     library_names_spec='$libname.dll.a'
20392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20393     postinstall_cmds='base_file=`basename \${file}`~
20394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20395       dldir=$destdir/`dirname \$dlpath`~
20396       test -d \$dldir || mkdir -p \$dldir~
20397       $install_prog $dir/$dlname \$dldir/$dlname~
20398       chmod a+x \$dldir/$dlname'
20399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20400       dlpath=$dir/\$dldll~
20401        $rm \$dlpath'
20402     shlibpath_overrides_runpath=yes
20403
20404     case $host_os in
20405     cygwin*)
20406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20409       ;;
20410     mingw*)
20411       # MinGW DLLs use traditional 'lib' prefix
20412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20415         # It is most probably a Windows format PATH printed by
20416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20417         # path with ; separators, and with drive letters. We can handle the
20418         # drive letters (cygwin fileutils understands them), so leave them,
20419         # especially as we might pass files found there to a mingw objdump,
20420         # which wouldn't understand a cygwinified path. Ahh.
20421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422       else
20423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20424       fi
20425       ;;
20426     pw32*)
20427       # pw32 DLLs use 'pw' prefix rather than 'lib'
20428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20429       ;;
20430     esac
20431     ;;
20432
20433   *)
20434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20435     ;;
20436   esac
20437   dynamic_linker='Win32 ld.exe'
20438   # FIXME: first we should search . and the directory the executable is in
20439   shlibpath_var=PATH
20440   ;;
20441
20442 darwin* | rhapsody*)
20443   dynamic_linker="$host_os dyld"
20444   version_type=darwin
20445   need_lib_prefix=no
20446   need_version=no
20447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20448   soname_spec='${libname}${release}${major}$shared_ext'
20449   shlibpath_overrides_runpath=yes
20450   shlibpath_var=DYLD_LIBRARY_PATH
20451   shrext_cmds='.dylib'
20452   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20453   if test "$GCC" = yes; then
20454     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"`
20455   else
20456     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20457   fi
20458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20459   ;;
20460
20461 dgux*)
20462   version_type=linux
20463   need_lib_prefix=no
20464   need_version=no
20465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20466   soname_spec='${libname}${release}${shared_ext}$major'
20467   shlibpath_var=LD_LIBRARY_PATH
20468   ;;
20469
20470 freebsd1*)
20471   dynamic_linker=no
20472   ;;
20473
20474 kfreebsd*-gnu)
20475   version_type=linux
20476   need_lib_prefix=no
20477   need_version=no
20478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20479   soname_spec='${libname}${release}${shared_ext}$major'
20480   shlibpath_var=LD_LIBRARY_PATH
20481   shlibpath_overrides_runpath=no
20482   hardcode_into_libs=yes
20483   dynamic_linker='GNU ld.so'
20484   ;;
20485
20486 freebsd* | dragonfly*)
20487   # DragonFly does not have aout.  When/if they implement a new
20488   # versioning mechanism, adjust this.
20489   if test -x /usr/bin/objformat; then
20490     objformat=`/usr/bin/objformat`
20491   else
20492     case $host_os in
20493     freebsd[123]*) objformat=aout ;;
20494     *) objformat=elf ;;
20495     esac
20496   fi
20497   version_type=freebsd-$objformat
20498   case $version_type in
20499     freebsd-elf*)
20500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20501       need_version=no
20502       need_lib_prefix=no
20503       ;;
20504     freebsd-*)
20505       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20506       need_version=yes
20507       ;;
20508   esac
20509   shlibpath_var=LD_LIBRARY_PATH
20510   case $host_os in
20511   freebsd2*)
20512     shlibpath_overrides_runpath=yes
20513     ;;
20514   freebsd3.[01]* | freebsdelf3.[01]*)
20515     shlibpath_overrides_runpath=yes
20516     hardcode_into_libs=yes
20517     ;;
20518   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20519   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20520     shlibpath_overrides_runpath=no
20521     hardcode_into_libs=yes
20522     ;;
20523   freebsd*) # from 4.6 on
20524     shlibpath_overrides_runpath=yes
20525     hardcode_into_libs=yes
20526     ;;
20527   esac
20528   ;;
20529
20530 gnu*)
20531   version_type=linux
20532   need_lib_prefix=no
20533   need_version=no
20534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20535   soname_spec='${libname}${release}${shared_ext}$major'
20536   shlibpath_var=LD_LIBRARY_PATH
20537   hardcode_into_libs=yes
20538   ;;
20539
20540 hpux9* | hpux10* | hpux11*)
20541   # Give a soname corresponding to the major version so that dld.sl refuses to
20542   # link against other versions.
20543   version_type=sunos
20544   need_lib_prefix=no
20545   need_version=no
20546   case $host_cpu in
20547   ia64*)
20548     shrext_cmds='.so'
20549     hardcode_into_libs=yes
20550     dynamic_linker="$host_os dld.so"
20551     shlibpath_var=LD_LIBRARY_PATH
20552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554     soname_spec='${libname}${release}${shared_ext}$major'
20555     if test "X$HPUX_IA64_MODE" = X32; then
20556       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20557     else
20558       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20559     fi
20560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20561     ;;
20562    hppa*64*)
20563      shrext_cmds='.sl'
20564      hardcode_into_libs=yes
20565      dynamic_linker="$host_os dld.sl"
20566      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20567      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569      soname_spec='${libname}${release}${shared_ext}$major'
20570      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20571      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20572      ;;
20573    *)
20574     shrext_cmds='.sl'
20575     dynamic_linker="$host_os dld.sl"
20576     shlibpath_var=SHLIB_PATH
20577     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579     soname_spec='${libname}${release}${shared_ext}$major'
20580     ;;
20581   esac
20582   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20583   postinstall_cmds='chmod 555 $lib'
20584   ;;
20585
20586 interix3*)
20587   version_type=linux
20588   need_lib_prefix=no
20589   need_version=no
20590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20591   soname_spec='${libname}${release}${shared_ext}$major'
20592   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20593   shlibpath_var=LD_LIBRARY_PATH
20594   shlibpath_overrides_runpath=no
20595   hardcode_into_libs=yes
20596   ;;
20597
20598 irix5* | irix6* | nonstopux*)
20599   case $host_os in
20600     nonstopux*) version_type=nonstopux ;;
20601     *)
20602         if test "$lt_cv_prog_gnu_ld" = yes; then
20603                 version_type=linux
20604         else
20605                 version_type=irix
20606         fi ;;
20607   esac
20608   need_lib_prefix=no
20609   need_version=no
20610   soname_spec='${libname}${release}${shared_ext}$major'
20611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20612   case $host_os in
20613   irix5* | nonstopux*)
20614     libsuff= shlibsuff=
20615     ;;
20616   *)
20617     case $LD in # libtool.m4 will add one of these switches to LD
20618     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20619       libsuff= shlibsuff= libmagic=32-bit;;
20620     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20621       libsuff=32 shlibsuff=N32 libmagic=N32;;
20622     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20623       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20624     *) libsuff= shlibsuff= libmagic=never-match;;
20625     esac
20626     ;;
20627   esac
20628   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20629   shlibpath_overrides_runpath=no
20630   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20631   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20632   hardcode_into_libs=yes
20633   ;;
20634
20635 # No shared lib support for Linux oldld, aout, or coff.
20636 linux*oldld* | linux*aout* | linux*coff*)
20637   dynamic_linker=no
20638   ;;
20639
20640 # This must be Linux ELF.
20641 linux*)
20642   version_type=linux
20643   need_lib_prefix=no
20644   need_version=no
20645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646   soname_spec='${libname}${release}${shared_ext}$major'
20647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20648   shlibpath_var=LD_LIBRARY_PATH
20649   shlibpath_overrides_runpath=no
20650   # This implies no fast_install, which is unacceptable.
20651   # Some rework will be needed to allow for fast_install
20652   # before this can be enabled.
20653   hardcode_into_libs=yes
20654
20655   # Append ld.so.conf contents to the search path
20656   if test -f /etc/ld.so.conf; then
20657     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' ' '`
20658     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20659   fi
20660
20661   # We used to test for /lib/ld.so.1 and disable shared libraries on
20662   # powerpc, because MkLinux only supported shared libraries with the
20663   # GNU dynamic linker.  Since this was broken with cross compilers,
20664   # most powerpc-linux boxes support dynamic linking these days and
20665   # people can always --disable-shared, the test was removed, and we
20666   # assume the GNU/Linux dynamic linker is in use.
20667   dynamic_linker='GNU/Linux ld.so'
20668   ;;
20669
20670 knetbsd*-gnu)
20671   version_type=linux
20672   need_lib_prefix=no
20673   need_version=no
20674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20675   soname_spec='${libname}${release}${shared_ext}$major'
20676   shlibpath_var=LD_LIBRARY_PATH
20677   shlibpath_overrides_runpath=no
20678   hardcode_into_libs=yes
20679   dynamic_linker='GNU ld.so'
20680   ;;
20681
20682 netbsd*)
20683   version_type=sunos
20684   need_lib_prefix=no
20685   need_version=no
20686   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20688     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20689     dynamic_linker='NetBSD (a.out) ld.so'
20690   else
20691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20692     soname_spec='${libname}${release}${shared_ext}$major'
20693     dynamic_linker='NetBSD ld.elf_so'
20694   fi
20695   shlibpath_var=LD_LIBRARY_PATH
20696   shlibpath_overrides_runpath=yes
20697   hardcode_into_libs=yes
20698   ;;
20699
20700 newsos6)
20701   version_type=linux
20702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703   shlibpath_var=LD_LIBRARY_PATH
20704   shlibpath_overrides_runpath=yes
20705   ;;
20706
20707 nto-qnx*)
20708   version_type=linux
20709   need_lib_prefix=no
20710   need_version=no
20711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712   soname_spec='${libname}${release}${shared_ext}$major'
20713   shlibpath_var=LD_LIBRARY_PATH
20714   shlibpath_overrides_runpath=yes
20715   ;;
20716
20717 openbsd*)
20718   version_type=sunos
20719   sys_lib_dlsearch_path_spec="/usr/lib"
20720   need_lib_prefix=no
20721   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20722   case $host_os in
20723     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20724     *)                         need_version=no  ;;
20725   esac
20726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20728   shlibpath_var=LD_LIBRARY_PATH
20729   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20730     case $host_os in
20731       openbsd2.[89] | openbsd2.[89].*)
20732         shlibpath_overrides_runpath=no
20733         ;;
20734       *)
20735         shlibpath_overrides_runpath=yes
20736         ;;
20737       esac
20738   else
20739     shlibpath_overrides_runpath=yes
20740   fi
20741   ;;
20742
20743 os2*)
20744   libname_spec='$name'
20745   shrext_cmds=".dll"
20746   need_lib_prefix=no
20747   library_names_spec='$libname${shared_ext} $libname.a'
20748   dynamic_linker='OS/2 ld.exe'
20749   shlibpath_var=LIBPATH
20750   ;;
20751
20752 osf3* | osf4* | osf5*)
20753   version_type=osf
20754   need_lib_prefix=no
20755   need_version=no
20756   soname_spec='${libname}${release}${shared_ext}$major'
20757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758   shlibpath_var=LD_LIBRARY_PATH
20759   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20760   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20761   ;;
20762
20763 solaris*)
20764   version_type=linux
20765   need_lib_prefix=no
20766   need_version=no
20767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768   soname_spec='${libname}${release}${shared_ext}$major'
20769   shlibpath_var=LD_LIBRARY_PATH
20770   shlibpath_overrides_runpath=yes
20771   hardcode_into_libs=yes
20772   # ldd complains unless libraries are executable
20773   postinstall_cmds='chmod +x $lib'
20774   ;;
20775
20776 sunos4*)
20777   version_type=sunos
20778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20780   shlibpath_var=LD_LIBRARY_PATH
20781   shlibpath_overrides_runpath=yes
20782   if test "$with_gnu_ld" = yes; then
20783     need_lib_prefix=no
20784   fi
20785   need_version=yes
20786   ;;
20787
20788 sysv4 | sysv4.3*)
20789   version_type=linux
20790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791   soname_spec='${libname}${release}${shared_ext}$major'
20792   shlibpath_var=LD_LIBRARY_PATH
20793   case $host_vendor in
20794     sni)
20795       shlibpath_overrides_runpath=no
20796       need_lib_prefix=no
20797       export_dynamic_flag_spec='${wl}-Blargedynsym'
20798       runpath_var=LD_RUN_PATH
20799       ;;
20800     siemens)
20801       need_lib_prefix=no
20802       ;;
20803     motorola)
20804       need_lib_prefix=no
20805       need_version=no
20806       shlibpath_overrides_runpath=no
20807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20808       ;;
20809   esac
20810   ;;
20811
20812 sysv4*MP*)
20813   if test -d /usr/nec ;then
20814     version_type=linux
20815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20816     soname_spec='$libname${shared_ext}.$major'
20817     shlibpath_var=LD_LIBRARY_PATH
20818   fi
20819   ;;
20820
20821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20822   version_type=freebsd-elf
20823   need_lib_prefix=no
20824   need_version=no
20825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20826   soname_spec='${libname}${release}${shared_ext}$major'
20827   shlibpath_var=LD_LIBRARY_PATH
20828   hardcode_into_libs=yes
20829   if test "$with_gnu_ld" = yes; then
20830     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20831     shlibpath_overrides_runpath=no
20832   else
20833     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20834     shlibpath_overrides_runpath=yes
20835     case $host_os in
20836       sco3.2v5*)
20837         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20838         ;;
20839     esac
20840   fi
20841   sys_lib_dlsearch_path_spec='/usr/lib'
20842   ;;
20843
20844 uts4*)
20845   version_type=linux
20846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847   soname_spec='${libname}${release}${shared_ext}$major'
20848   shlibpath_var=LD_LIBRARY_PATH
20849   ;;
20850
20851 *)
20852   dynamic_linker=no
20853   ;;
20854 esac
20855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20856 echo "${ECHO_T}$dynamic_linker" >&6; }
20857 test "$dynamic_linker" = no && can_build_shared=no
20858
20859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20860 if test "$GCC" = yes; then
20861   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20862 fi
20863
20864 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20865 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20866 hardcode_action_CXX=
20867 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20868    test -n "$runpath_var_CXX" || \
20869    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20870
20871   # We can hardcode non-existant directories.
20872   if test "$hardcode_direct_CXX" != no &&
20873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20874      # have to relink, otherwise we might link with an installed library
20875      # when we should be linking with a yet-to-be-installed one
20876      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20877      test "$hardcode_minus_L_CXX" != no; then
20878     # Linking always hardcodes the temporary library directory.
20879     hardcode_action_CXX=relink
20880   else
20881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20882     hardcode_action_CXX=immediate
20883   fi
20884 else
20885   # We cannot hardcode anything, or else we can only hardcode existing
20886   # directories.
20887   hardcode_action_CXX=unsupported
20888 fi
20889 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20890 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20891
20892 if test "$hardcode_action_CXX" = relink; then
20893   # Fast installation is not supported
20894   enable_fast_install=no
20895 elif test "$shlibpath_overrides_runpath" = yes ||
20896      test "$enable_shared" = no; then
20897   # Fast installation is not necessary
20898   enable_fast_install=needless
20899 fi
20900
20901
20902 # The else clause should only fire when bootstrapping the
20903 # libtool distribution, otherwise you forgot to ship ltmain.sh
20904 # with your package, and you will get complaints that there are
20905 # no rules to generate ltmain.sh.
20906 if test -f "$ltmain"; then
20907   # See if we are running on zsh, and set the options which allow our commands through
20908   # without removal of \ escapes.
20909   if test -n "${ZSH_VERSION+set}" ; then
20910     setopt NO_GLOB_SUBST
20911   fi
20912   # Now quote all the things that may contain metacharacters while being
20913   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20914   # variables and quote the copies for generation of the libtool script.
20915   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20916     SED SHELL STRIP \
20917     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20918     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20919     deplibs_check_method reload_flag reload_cmds need_locks \
20920     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20921     lt_cv_sys_global_symbol_to_c_name_address \
20922     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20923     old_postinstall_cmds old_postuninstall_cmds \
20924     compiler_CXX \
20925     CC_CXX \
20926     LD_CXX \
20927     lt_prog_compiler_wl_CXX \
20928     lt_prog_compiler_pic_CXX \
20929     lt_prog_compiler_static_CXX \
20930     lt_prog_compiler_no_builtin_flag_CXX \
20931     export_dynamic_flag_spec_CXX \
20932     thread_safe_flag_spec_CXX \
20933     whole_archive_flag_spec_CXX \
20934     enable_shared_with_static_runtimes_CXX \
20935     old_archive_cmds_CXX \
20936     old_archive_from_new_cmds_CXX \
20937     predep_objects_CXX \
20938     postdep_objects_CXX \
20939     predeps_CXX \
20940     postdeps_CXX \
20941     compiler_lib_search_path_CXX \
20942     archive_cmds_CXX \
20943     archive_expsym_cmds_CXX \
20944     postinstall_cmds_CXX \
20945     postuninstall_cmds_CXX \
20946     old_archive_from_expsyms_cmds_CXX \
20947     allow_undefined_flag_CXX \
20948     no_undefined_flag_CXX \
20949     export_symbols_cmds_CXX \
20950     hardcode_libdir_flag_spec_CXX \
20951     hardcode_libdir_flag_spec_ld_CXX \
20952     hardcode_libdir_separator_CXX \
20953     hardcode_automatic_CXX \
20954     module_cmds_CXX \
20955     module_expsym_cmds_CXX \
20956     lt_cv_prog_compiler_c_o_CXX \
20957     exclude_expsyms_CXX \
20958     include_expsyms_CXX; do
20959
20960     case $var in
20961     old_archive_cmds_CXX | \
20962     old_archive_from_new_cmds_CXX | \
20963     archive_cmds_CXX | \
20964     archive_expsym_cmds_CXX | \
20965     module_cmds_CXX | \
20966     module_expsym_cmds_CXX | \
20967     old_archive_from_expsyms_cmds_CXX | \
20968     export_symbols_cmds_CXX | \
20969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20970     postinstall_cmds | postuninstall_cmds | \
20971     old_postinstall_cmds | old_postuninstall_cmds | \
20972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20973       # Double-quote double-evaled strings.
20974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20975       ;;
20976     *)
20977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20978       ;;
20979     esac
20980   done
20981
20982   case $lt_echo in
20983   *'\$0 --fallback-echo"')
20984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20985     ;;
20986   esac
20987
20988 cfgfile="$ofile"
20989
20990   cat <<__EOF__ >> "$cfgfile"
20991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20992
20993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20994
20995 # Shell to use when invoking shell scripts.
20996 SHELL=$lt_SHELL
20997
20998 # Whether or not to build shared libraries.
20999 build_libtool_libs=$enable_shared
21000
21001 # Whether or not to build static libraries.
21002 build_old_libs=$enable_static
21003
21004 # Whether or not to add -lc for building shared libraries.
21005 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21006
21007 # Whether or not to disallow shared libs when runtime libs are static
21008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21009
21010 # Whether or not to optimize for fast installation.
21011 fast_install=$enable_fast_install
21012
21013 # The host system.
21014 host_alias=$host_alias
21015 host=$host
21016 host_os=$host_os
21017
21018 # The build system.
21019 build_alias=$build_alias
21020 build=$build
21021 build_os=$build_os
21022
21023 # An echo program that does not interpret backslashes.
21024 echo=$lt_echo
21025
21026 # The archiver.
21027 AR=$lt_AR
21028 AR_FLAGS=$lt_AR_FLAGS
21029
21030 # A C compiler.
21031 LTCC=$lt_LTCC
21032
21033 # LTCC compiler flags.
21034 LTCFLAGS=$lt_LTCFLAGS
21035
21036 # A language-specific compiler.
21037 CC=$lt_compiler_CXX
21038
21039 # Is the compiler the GNU C compiler?
21040 with_gcc=$GCC_CXX
21041
21042 # An ERE matcher.
21043 EGREP=$lt_EGREP
21044
21045 # The linker used to build libraries.
21046 LD=$lt_LD_CXX
21047
21048 # Whether we need hard or soft links.
21049 LN_S=$lt_LN_S
21050
21051 # A BSD-compatible nm program.
21052 NM=$lt_NM
21053
21054 # A symbol stripping program
21055 STRIP=$lt_STRIP
21056
21057 # Used to examine libraries when file_magic_cmd begins "file"
21058 MAGIC_CMD=$MAGIC_CMD
21059
21060 # Used on cygwin: DLL creation program.
21061 DLLTOOL="$DLLTOOL"
21062
21063 # Used on cygwin: object dumper.
21064 OBJDUMP="$OBJDUMP"
21065
21066 # Used on cygwin: assembler.
21067 AS="$AS"
21068
21069 # The name of the directory that contains temporary libtool files.
21070 objdir=$objdir
21071
21072 # How to create reloadable object files.
21073 reload_flag=$lt_reload_flag
21074 reload_cmds=$lt_reload_cmds
21075
21076 # How to pass a linker flag through the compiler.
21077 wl=$lt_lt_prog_compiler_wl_CXX
21078
21079 # Object file suffix (normally "o").
21080 objext="$ac_objext"
21081
21082 # Old archive suffix (normally "a").
21083 libext="$libext"
21084
21085 # Shared library suffix (normally ".so").
21086 shrext_cmds='$shrext_cmds'
21087
21088 # Executable file suffix (normally "").
21089 exeext="$exeext"
21090
21091 # Additional compiler flags for building library objects.
21092 pic_flag=$lt_lt_prog_compiler_pic_CXX
21093 pic_mode=$pic_mode
21094
21095 # What is the maximum length of a command?
21096 max_cmd_len=$lt_cv_sys_max_cmd_len
21097
21098 # Does compiler simultaneously support -c and -o options?
21099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21100
21101 # Must we lock files when doing compilation?
21102 need_locks=$lt_need_locks
21103
21104 # Do we need the lib prefix for modules?
21105 need_lib_prefix=$need_lib_prefix
21106
21107 # Do we need a version for libraries?
21108 need_version=$need_version
21109
21110 # Whether dlopen is supported.
21111 dlopen_support=$enable_dlopen
21112
21113 # Whether dlopen of programs is supported.
21114 dlopen_self=$enable_dlopen_self
21115
21116 # Whether dlopen of statically linked programs is supported.
21117 dlopen_self_static=$enable_dlopen_self_static
21118
21119 # Compiler flag to prevent dynamic linking.
21120 link_static_flag=$lt_lt_prog_compiler_static_CXX
21121
21122 # Compiler flag to turn off builtin functions.
21123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21124
21125 # Compiler flag to allow reflexive dlopens.
21126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21127
21128 # Compiler flag to generate shared objects directly from archives.
21129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21130
21131 # Compiler flag to generate thread-safe objects.
21132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21133
21134 # Library versioning type.
21135 version_type=$version_type
21136
21137 # Format of library name prefix.
21138 libname_spec=$lt_libname_spec
21139
21140 # List of archive names.  First name is the real one, the rest are links.
21141 # The last name is the one that the linker finds with -lNAME.
21142 library_names_spec=$lt_library_names_spec
21143
21144 # The coded name of the library, if different from the real name.
21145 soname_spec=$lt_soname_spec
21146
21147 # Commands used to build and install an old-style archive.
21148 RANLIB=$lt_RANLIB
21149 old_archive_cmds=$lt_old_archive_cmds_CXX
21150 old_postinstall_cmds=$lt_old_postinstall_cmds
21151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21152
21153 # Create an old-style archive from a shared archive.
21154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21155
21156 # Create a temporary old-style archive to link instead of a shared archive.
21157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21158
21159 # Commands used to build and install a shared archive.
21160 archive_cmds=$lt_archive_cmds_CXX
21161 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21162 postinstall_cmds=$lt_postinstall_cmds
21163 postuninstall_cmds=$lt_postuninstall_cmds
21164
21165 # Commands used to build a loadable module (assumed same as above if empty)
21166 module_cmds=$lt_module_cmds_CXX
21167 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21168
21169 # Commands to strip libraries.
21170 old_striplib=$lt_old_striplib
21171 striplib=$lt_striplib
21172
21173 # Dependencies to place before the objects being linked to create a
21174 # shared library.
21175 predep_objects=$lt_predep_objects_CXX
21176
21177 # Dependencies to place after the objects being linked to create a
21178 # shared library.
21179 postdep_objects=$lt_postdep_objects_CXX
21180
21181 # Dependencies to place before the objects being linked to create a
21182 # shared library.
21183 predeps=$lt_predeps_CXX
21184
21185 # Dependencies to place after the objects being linked to create a
21186 # shared library.
21187 postdeps=$lt_postdeps_CXX
21188
21189 # The library search path used internally by the compiler when linking
21190 # a shared library.
21191 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21192
21193 # Method to check whether dependent libraries are shared objects.
21194 deplibs_check_method=$lt_deplibs_check_method
21195
21196 # Command to use when deplibs_check_method == file_magic.
21197 file_magic_cmd=$lt_file_magic_cmd
21198
21199 # Flag that allows shared libraries with undefined symbols to be built.
21200 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21201
21202 # Flag that forces no undefined symbols.
21203 no_undefined_flag=$lt_no_undefined_flag_CXX
21204
21205 # Commands used to finish a libtool library installation in a directory.
21206 finish_cmds=$lt_finish_cmds
21207
21208 # Same as above, but a single script fragment to be evaled but not shown.
21209 finish_eval=$lt_finish_eval
21210
21211 # Take the output of nm and produce a listing of raw symbols and C names.
21212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21213
21214 # Transform the output of nm in a proper C declaration
21215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21216
21217 # Transform the output of nm in a C name address pair
21218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21219
21220 # This is the shared library runtime path variable.
21221 runpath_var=$runpath_var
21222
21223 # This is the shared library path variable.
21224 shlibpath_var=$shlibpath_var
21225
21226 # Is shlibpath searched before the hard-coded library search path?
21227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21228
21229 # How to hardcode a shared library path into an executable.
21230 hardcode_action=$hardcode_action_CXX
21231
21232 # Whether we should hardcode library paths into libraries.
21233 hardcode_into_libs=$hardcode_into_libs
21234
21235 # Flag to hardcode \$libdir into a binary during linking.
21236 # This must work even if \$libdir does not exist.
21237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21238
21239 # If ld is used when linking, flag to hardcode \$libdir into
21240 # a binary during linking. This must work even if \$libdir does
21241 # not exist.
21242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21243
21244 # Whether we need a single -rpath flag with a separated argument.
21245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21246
21247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21248 # resulting binary.
21249 hardcode_direct=$hardcode_direct_CXX
21250
21251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21252 # resulting binary.
21253 hardcode_minus_L=$hardcode_minus_L_CXX
21254
21255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21256 # the resulting binary.
21257 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21258
21259 # Set to yes if building a shared library automatically hardcodes DIR into the library
21260 # and all subsequent libraries and executables linked against it.
21261 hardcode_automatic=$hardcode_automatic_CXX
21262
21263 # Variables whose values should be saved in libtool wrapper scripts and
21264 # restored at relink time.
21265 variables_saved_for_relink="$variables_saved_for_relink"
21266
21267 # Whether libtool must link a program against all its dependency libraries.
21268 link_all_deplibs=$link_all_deplibs_CXX
21269
21270 # Compile-time system search path for libraries
21271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21272
21273 # Run-time system search path for libraries
21274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21275
21276 # Fix the shell variable \$srcfile for the compiler.
21277 fix_srcfile_path="$fix_srcfile_path_CXX"
21278
21279 # Set to yes if exported symbols are required.
21280 always_export_symbols=$always_export_symbols_CXX
21281
21282 # The commands to list exported symbols.
21283 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21284
21285 # The commands to extract the exported symbol list from a shared archive.
21286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21287
21288 # Symbols that should not be listed in the preloaded symbols.
21289 exclude_expsyms=$lt_exclude_expsyms_CXX
21290
21291 # Symbols that must always be exported.
21292 include_expsyms=$lt_include_expsyms_CXX
21293
21294 # ### END LIBTOOL TAG CONFIG: $tagname
21295
21296 __EOF__
21297
21298
21299 else
21300   # If there is no Makefile yet, we rely on a make rule to execute
21301   # `config.status --recheck' to rerun these tests and create the
21302   # libtool script then.
21303   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21304   if test -f "$ltmain_in"; then
21305     test -f Makefile && make "$ltmain"
21306   fi
21307 fi
21308
21309
21310 ac_ext=c
21311 ac_cpp='$CPP $CPPFLAGS'
21312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316 CC=$lt_save_CC
21317 LDCXX=$LD
21318 LD=$lt_save_LD
21319 GCC=$lt_save_GCC
21320 with_gnu_ldcxx=$with_gnu_ld
21321 with_gnu_ld=$lt_save_with_gnu_ld
21322 lt_cv_path_LDCXX=$lt_cv_path_LD
21323 lt_cv_path_LD=$lt_save_path_LD
21324 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21325 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21326
21327         else
21328           tagname=""
21329         fi
21330         ;;
21331
21332       F77)
21333         if test -n "$F77" && test "X$F77" != "Xno"; then
21334
21335 ac_ext=f
21336 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21337 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21339
21340
21341 archive_cmds_need_lc_F77=no
21342 allow_undefined_flag_F77=
21343 always_export_symbols_F77=no
21344 archive_expsym_cmds_F77=
21345 export_dynamic_flag_spec_F77=
21346 hardcode_direct_F77=no
21347 hardcode_libdir_flag_spec_F77=
21348 hardcode_libdir_flag_spec_ld_F77=
21349 hardcode_libdir_separator_F77=
21350 hardcode_minus_L_F77=no
21351 hardcode_automatic_F77=no
21352 module_cmds_F77=
21353 module_expsym_cmds_F77=
21354 link_all_deplibs_F77=unknown
21355 old_archive_cmds_F77=$old_archive_cmds
21356 no_undefined_flag_F77=
21357 whole_archive_flag_spec_F77=
21358 enable_shared_with_static_runtimes_F77=no
21359
21360 # Source file extension for f77 test sources.
21361 ac_ext=f
21362
21363 # Object file extension for compiled f77 test sources.
21364 objext=o
21365 objext_F77=$objext
21366
21367 # Code to be used in simple compile tests
21368 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21369
21370 # Code to be used in simple link tests
21371 lt_simple_link_test_code="      program t\n      end\n"
21372
21373 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21374
21375 # If no C compiler was specified, use CC.
21376 LTCC=${LTCC-"$CC"}
21377
21378 # If no C compiler flags were specified, use CFLAGS.
21379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21380
21381 # Allow CC to be a program name with arguments.
21382 compiler=$CC
21383
21384
21385 # save warnings/boilerplate of simple test code
21386 ac_outfile=conftest.$ac_objext
21387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21389 _lt_compiler_boilerplate=`cat conftest.err`
21390 $rm conftest*
21391
21392 ac_outfile=conftest.$ac_objext
21393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21395 _lt_linker_boilerplate=`cat conftest.err`
21396 $rm conftest*
21397
21398
21399 # Allow CC to be a program name with arguments.
21400 lt_save_CC="$CC"
21401 CC=${F77-"f77"}
21402 compiler=$CC
21403 compiler_F77=$CC
21404 for cc_temp in $compiler""; do
21405   case $cc_temp in
21406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21408     \-*) ;;
21409     *) break;;
21410   esac
21411 done
21412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21413
21414
21415 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21417 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21418 echo "${ECHO_T}$can_build_shared" >&6; }
21419
21420 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21422 test "$can_build_shared" = "no" && enable_shared=no
21423
21424 # On AIX, shared libraries and static libraries use the same namespace, and
21425 # are all built from PIC.
21426 case $host_os in
21427 aix3*)
21428   test "$enable_shared" = yes && enable_static=no
21429   if test -n "$RANLIB"; then
21430     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21431     postinstall_cmds='$RANLIB $lib'
21432   fi
21433   ;;
21434 aix4* | aix5*)
21435   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21436     test "$enable_shared" = yes && enable_static=no
21437   fi
21438   ;;
21439 esac
21440 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21441 echo "${ECHO_T}$enable_shared" >&6; }
21442
21443 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21445 # Make sure either enable_shared or enable_static is yes.
21446 test "$enable_shared" = yes || enable_static=yes
21447 { echo "$as_me:$LINENO: result: $enable_static" >&5
21448 echo "${ECHO_T}$enable_static" >&6; }
21449
21450 GCC_F77="$G77"
21451 LD_F77="$LD"
21452
21453 lt_prog_compiler_wl_F77=
21454 lt_prog_compiler_pic_F77=
21455 lt_prog_compiler_static_F77=
21456
21457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21459
21460   if test "$GCC" = yes; then
21461     lt_prog_compiler_wl_F77='-Wl,'
21462     lt_prog_compiler_static_F77='-static'
21463
21464     case $host_os in
21465       aix*)
21466       # All AIX code is PIC.
21467       if test "$host_cpu" = ia64; then
21468         # AIX 5 now supports IA64 processor
21469         lt_prog_compiler_static_F77='-Bstatic'
21470       fi
21471       ;;
21472
21473     amigaos*)
21474       # FIXME: we need at least 68020 code to build shared libraries, but
21475       # adding the `-m68020' flag to GCC prevents building anything better,
21476       # like `-m68040'.
21477       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21478       ;;
21479
21480     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21481       # PIC is the default for these OSes.
21482       ;;
21483
21484     mingw* | pw32* | os2*)
21485       # This hack is so that the source file can tell whether it is being
21486       # built for inclusion in a dll (and should export symbols for example).
21487       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21488       ;;
21489
21490     darwin* | rhapsody*)
21491       # PIC is the default on this platform
21492       # Common symbols not allowed in MH_DYLIB files
21493       lt_prog_compiler_pic_F77='-fno-common'
21494       ;;
21495
21496     interix3*)
21497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21498       # Instead, we relocate shared libraries at runtime.
21499       ;;
21500
21501     msdosdjgpp*)
21502       # Just because we use GCC doesn't mean we suddenly get shared libraries
21503       # on systems that don't support them.
21504       lt_prog_compiler_can_build_shared_F77=no
21505       enable_shared=no
21506       ;;
21507
21508     sysv4*MP*)
21509       if test -d /usr/nec; then
21510         lt_prog_compiler_pic_F77=-Kconform_pic
21511       fi
21512       ;;
21513
21514     hpux*)
21515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21516       # not for PA HP-UX.
21517       case $host_cpu in
21518       hppa*64*|ia64*)
21519         # +Z the default
21520         ;;
21521       *)
21522         lt_prog_compiler_pic_F77='-fPIC'
21523         ;;
21524       esac
21525       ;;
21526
21527     *)
21528       lt_prog_compiler_pic_F77='-fPIC'
21529       ;;
21530     esac
21531   else
21532     # PORTME Check for flag to pass linker flags through the system compiler.
21533     case $host_os in
21534     aix*)
21535       lt_prog_compiler_wl_F77='-Wl,'
21536       if test "$host_cpu" = ia64; then
21537         # AIX 5 now supports IA64 processor
21538         lt_prog_compiler_static_F77='-Bstatic'
21539       else
21540         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21541       fi
21542       ;;
21543       darwin*)
21544         # PIC is the default on this platform
21545         # Common symbols not allowed in MH_DYLIB files
21546        case $cc_basename in
21547          xlc*)
21548          lt_prog_compiler_pic_F77='-qnocommon'
21549          lt_prog_compiler_wl_F77='-Wl,'
21550          ;;
21551        esac
21552        ;;
21553
21554     mingw* | pw32* | os2*)
21555       # This hack is so that the source file can tell whether it is being
21556       # built for inclusion in a dll (and should export symbols for example).
21557       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21558       ;;
21559
21560     hpux9* | hpux10* | hpux11*)
21561       lt_prog_compiler_wl_F77='-Wl,'
21562       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21563       # not for PA HP-UX.
21564       case $host_cpu in
21565       hppa*64*|ia64*)
21566         # +Z the default
21567         ;;
21568       *)
21569         lt_prog_compiler_pic_F77='+Z'
21570         ;;
21571       esac
21572       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21573       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21574       ;;
21575
21576     irix5* | irix6* | nonstopux*)
21577       lt_prog_compiler_wl_F77='-Wl,'
21578       # PIC (with -KPIC) is the default.
21579       lt_prog_compiler_static_F77='-non_shared'
21580       ;;
21581
21582     newsos6)
21583       lt_prog_compiler_pic_F77='-KPIC'
21584       lt_prog_compiler_static_F77='-Bstatic'
21585       ;;
21586
21587     linux*)
21588       case $cc_basename in
21589       icc* | ecc*)
21590         lt_prog_compiler_wl_F77='-Wl,'
21591         lt_prog_compiler_pic_F77='-KPIC'
21592         lt_prog_compiler_static_F77='-static'
21593         ;;
21594       pgcc* | pgf77* | pgf90* | pgf95*)
21595         # Portland Group compilers (*not* the Pentium gcc compiler,
21596         # which looks to be a dead project)
21597         lt_prog_compiler_wl_F77='-Wl,'
21598         lt_prog_compiler_pic_F77='-fpic'
21599         lt_prog_compiler_static_F77='-Bstatic'
21600         ;;
21601       ccc*)
21602         lt_prog_compiler_wl_F77='-Wl,'
21603         # All Alpha code is PIC.
21604         lt_prog_compiler_static_F77='-non_shared'
21605         ;;
21606       esac
21607       ;;
21608
21609     osf3* | osf4* | osf5*)
21610       lt_prog_compiler_wl_F77='-Wl,'
21611       # All OSF/1 code is PIC.
21612       lt_prog_compiler_static_F77='-non_shared'
21613       ;;
21614
21615     solaris*)
21616       lt_prog_compiler_pic_F77='-KPIC'
21617       lt_prog_compiler_static_F77='-Bstatic'
21618       case $cc_basename in
21619       f77* | f90* | f95*)
21620         lt_prog_compiler_wl_F77='-Qoption ld ';;
21621       *)
21622         lt_prog_compiler_wl_F77='-Wl,';;
21623       esac
21624       ;;
21625
21626     sunos4*)
21627       lt_prog_compiler_wl_F77='-Qoption ld '
21628       lt_prog_compiler_pic_F77='-PIC'
21629       lt_prog_compiler_static_F77='-Bstatic'
21630       ;;
21631
21632     sysv4 | sysv4.2uw2* | sysv4.3*)
21633       lt_prog_compiler_wl_F77='-Wl,'
21634       lt_prog_compiler_pic_F77='-KPIC'
21635       lt_prog_compiler_static_F77='-Bstatic'
21636       ;;
21637
21638     sysv4*MP*)
21639       if test -d /usr/nec ;then
21640         lt_prog_compiler_pic_F77='-Kconform_pic'
21641         lt_prog_compiler_static_F77='-Bstatic'
21642       fi
21643       ;;
21644
21645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21646       lt_prog_compiler_wl_F77='-Wl,'
21647       lt_prog_compiler_pic_F77='-KPIC'
21648       lt_prog_compiler_static_F77='-Bstatic'
21649       ;;
21650
21651     unicos*)
21652       lt_prog_compiler_wl_F77='-Wl,'
21653       lt_prog_compiler_can_build_shared_F77=no
21654       ;;
21655
21656     uts4*)
21657       lt_prog_compiler_pic_F77='-pic'
21658       lt_prog_compiler_static_F77='-Bstatic'
21659       ;;
21660
21661     *)
21662       lt_prog_compiler_can_build_shared_F77=no
21663       ;;
21664     esac
21665   fi
21666
21667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21668 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21669
21670 #
21671 # Check to make sure the PIC flag actually works.
21672 #
21673 if test -n "$lt_prog_compiler_pic_F77"; then
21674
21675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21677 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   lt_prog_compiler_pic_works_F77=no
21681   ac_outfile=conftest.$ac_objext
21682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21683    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21684    # Insert the option either (1) after the last *FLAGS variable, or
21685    # (2) before a word containing "conftest.", or (3) at the end.
21686    # Note that $ac_compile itself does not contain backslashes and begins
21687    # with a dollar sign (not a hyphen), so the echo should work correctly.
21688    # The option is referenced via a variable to avoid confusing sed.
21689    lt_compile=`echo "$ac_compile" | $SED \
21690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21692    -e 's:$: $lt_compiler_flag:'`
21693    (eval echo "\"\$as_me:21693: $lt_compile\"" >&5)
21694    (eval "$lt_compile" 2>conftest.err)
21695    ac_status=$?
21696    cat conftest.err >&5
21697    echo "$as_me:21697: \$? = $ac_status" >&5
21698    if (exit $ac_status) && test -s "$ac_outfile"; then
21699      # The compiler can only warn and ignore the option if not recognized
21700      # So say no if there are warnings other than the usual output.
21701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21704        lt_prog_compiler_pic_works_F77=yes
21705      fi
21706    fi
21707    $rm conftest*
21708
21709 fi
21710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21711 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21712
21713 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21714     case $lt_prog_compiler_pic_F77 in
21715      "" | " "*) ;;
21716      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21717      esac
21718 else
21719     lt_prog_compiler_pic_F77=
21720      lt_prog_compiler_can_build_shared_F77=no
21721 fi
21722
21723 fi
21724 case $host_os in
21725   # For platforms which do not support PIC, -DPIC is meaningless:
21726   *djgpp*)
21727     lt_prog_compiler_pic_F77=
21728     ;;
21729   *)
21730     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21731     ;;
21732 esac
21733
21734 #
21735 # Check to make sure the static flag actually works.
21736 #
21737 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21740 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   lt_prog_compiler_static_works_F77=no
21744    save_LDFLAGS="$LDFLAGS"
21745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21746    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21748      # The linker can only warn and ignore the option if not recognized
21749      # So say no if there are warnings
21750      if test -s conftest.err; then
21751        # Append any errors to the config.log.
21752        cat conftest.err 1>&5
21753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21755        if diff conftest.exp conftest.er2 >/dev/null; then
21756          lt_prog_compiler_static_works_F77=yes
21757        fi
21758      else
21759        lt_prog_compiler_static_works_F77=yes
21760      fi
21761    fi
21762    $rm conftest*
21763    LDFLAGS="$save_LDFLAGS"
21764
21765 fi
21766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21767 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21768
21769 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21770     :
21771 else
21772     lt_prog_compiler_static_F77=
21773 fi
21774
21775
21776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21778 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781   lt_cv_prog_compiler_c_o_F77=no
21782    $rm -r conftest 2>/dev/null
21783    mkdir conftest
21784    cd conftest
21785    mkdir out
21786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21787
21788    lt_compiler_flag="-o out/conftest2.$ac_objext"
21789    # Insert the option either (1) after the last *FLAGS variable, or
21790    # (2) before a word containing "conftest.", or (3) at the end.
21791    # Note that $ac_compile itself does not contain backslashes and begins
21792    # with a dollar sign (not a hyphen), so the echo should work correctly.
21793    lt_compile=`echo "$ac_compile" | $SED \
21794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21796    -e 's:$: $lt_compiler_flag:'`
21797    (eval echo "\"\$as_me:21797: $lt_compile\"" >&5)
21798    (eval "$lt_compile" 2>out/conftest.err)
21799    ac_status=$?
21800    cat out/conftest.err >&5
21801    echo "$as_me:21801: \$? = $ac_status" >&5
21802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21803    then
21804      # The compiler can only warn and ignore the option if not recognized
21805      # So say no if there are warnings
21806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21809        lt_cv_prog_compiler_c_o_F77=yes
21810      fi
21811    fi
21812    chmod u+w . 2>&5
21813    $rm conftest*
21814    # SGI C++ compiler will create directory out/ii_files/ for
21815    # template instantiation
21816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21817    $rm out/* && rmdir out
21818    cd ..
21819    rmdir conftest
21820    $rm conftest*
21821
21822 fi
21823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21825
21826
21827 hard_links="nottested"
21828 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21829   # do not overwrite the value of need_locks provided by the user
21830   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21832   hard_links=yes
21833   $rm conftest*
21834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21835   touch conftest.a
21836   ln conftest.a conftest.b 2>&5 || hard_links=no
21837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21838   { echo "$as_me:$LINENO: result: $hard_links" >&5
21839 echo "${ECHO_T}$hard_links" >&6; }
21840   if test "$hard_links" = no; then
21841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21843     need_locks=warn
21844   fi
21845 else
21846   need_locks=no
21847 fi
21848
21849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21851
21852   runpath_var=
21853   allow_undefined_flag_F77=
21854   enable_shared_with_static_runtimes_F77=no
21855   archive_cmds_F77=
21856   archive_expsym_cmds_F77=
21857   old_archive_From_new_cmds_F77=
21858   old_archive_from_expsyms_cmds_F77=
21859   export_dynamic_flag_spec_F77=
21860   whole_archive_flag_spec_F77=
21861   thread_safe_flag_spec_F77=
21862   hardcode_libdir_flag_spec_F77=
21863   hardcode_libdir_flag_spec_ld_F77=
21864   hardcode_libdir_separator_F77=
21865   hardcode_direct_F77=no
21866   hardcode_minus_L_F77=no
21867   hardcode_shlibpath_var_F77=unsupported
21868   link_all_deplibs_F77=unknown
21869   hardcode_automatic_F77=no
21870   module_cmds_F77=
21871   module_expsym_cmds_F77=
21872   always_export_symbols_F77=no
21873   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21874   # include_expsyms should be a list of space-separated symbols to be *always*
21875   # included in the symbol list
21876   include_expsyms_F77=
21877   # exclude_expsyms can be an extended regexp of symbols to exclude
21878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21880   # as well as any symbol that contains `d'.
21881   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21883   # platforms (ab)use it in PIC code, but their linkers get confused if
21884   # the symbol is explicitly referenced.  Since portable code cannot
21885   # rely on this symbol name, it's probably fine to never include it in
21886   # preloaded symbol tables.
21887   extract_expsyms_cmds=
21888   # Just being paranoid about ensuring that cc_basename is set.
21889   for cc_temp in $compiler""; do
21890   case $cc_temp in
21891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21893     \-*) ;;
21894     *) break;;
21895   esac
21896 done
21897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21898
21899   case $host_os in
21900   cygwin* | mingw* | pw32*)
21901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21902     # When not using gcc, we currently assume that we are using
21903     # Microsoft Visual C++.
21904     if test "$GCC" != yes; then
21905       with_gnu_ld=no
21906     fi
21907     ;;
21908   interix*)
21909     # we just hope/assume this is gcc and not c89 (= MSVC++)
21910     with_gnu_ld=yes
21911     ;;
21912   openbsd*)
21913     with_gnu_ld=no
21914     ;;
21915   esac
21916
21917   ld_shlibs_F77=yes
21918   if test "$with_gnu_ld" = yes; then
21919     # If archive_cmds runs LD, not CC, wlarc should be empty
21920     wlarc='${wl}'
21921
21922     # Set some defaults for GNU ld with shared library support. These
21923     # are reset later if shared libraries are not supported. Putting them
21924     # here allows them to be overridden if necessary.
21925     runpath_var=LD_RUN_PATH
21926     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21927     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21928     # ancient GNU ld didn't support --whole-archive et. al.
21929     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21930         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21931       else
21932         whole_archive_flag_spec_F77=
21933     fi
21934     supports_anon_versioning=no
21935     case `$LD -v 2>/dev/null` in
21936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21939       *\ 2.11.*) ;; # other 2.11 versions
21940       *) supports_anon_versioning=yes ;;
21941     esac
21942
21943     # See if GNU ld supports shared libraries.
21944     case $host_os in
21945     aix3* | aix4* | aix5*)
21946       # On AIX/PPC, the GNU linker is very broken
21947       if test "$host_cpu" != ia64; then
21948         ld_shlibs_F77=no
21949         cat <<EOF 1>&2
21950
21951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21952 *** to be unable to reliably create shared libraries on AIX.
21953 *** Therefore, libtool is disabling shared libraries support.  If you
21954 *** really care for shared libraries, you may want to modify your PATH
21955 *** so that a non-GNU linker is found, and then restart.
21956
21957 EOF
21958       fi
21959       ;;
21960
21961     amigaos*)
21962       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)'
21963       hardcode_libdir_flag_spec_F77='-L$libdir'
21964       hardcode_minus_L_F77=yes
21965
21966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21967       # that the semantics of dynamic libraries on AmigaOS, at least up
21968       # to version 4, is to share data among multiple programs linked
21969       # with the same dynamic library.  Since this doesn't match the
21970       # behavior of shared libraries on other platforms, we can't use
21971       # them.
21972       ld_shlibs_F77=no
21973       ;;
21974
21975     beos*)
21976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21977         allow_undefined_flag_F77=unsupported
21978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21979         # support --undefined.  This deserves some investigation.  FIXME
21980         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21981       else
21982         ld_shlibs_F77=no
21983       fi
21984       ;;
21985
21986     cygwin* | mingw* | pw32*)
21987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21988       # as there is no search path for DLLs.
21989       hardcode_libdir_flag_spec_F77='-L$libdir'
21990       allow_undefined_flag_F77=unsupported
21991       always_export_symbols_F77=no
21992       enable_shared_with_static_runtimes_F77=yes
21993       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21994
21995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21996         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21997         # If the export-symbols file already is a .def file (1st line
21998         # is EXPORTS), use it as is; otherwise, prepend...
21999         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22000           cp $export_symbols $output_objdir/$soname.def;
22001         else
22002           echo EXPORTS > $output_objdir/$soname.def;
22003           cat $export_symbols >> $output_objdir/$soname.def;
22004         fi~
22005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22006       else
22007         ld_shlibs_F77=no
22008       fi
22009       ;;
22010
22011     interix3*)
22012       hardcode_direct_F77=no
22013       hardcode_shlibpath_var_F77=no
22014       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22015       export_dynamic_flag_spec_F77='${wl}-E'
22016       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22017       # Instead, shared libraries are loaded at an image base (0x10000000 by
22018       # default) and relocated if they conflict, which is a slow very memory
22019       # consuming and fragmenting process.  To avoid this, we pick a random,
22020       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22021       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22022       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'
22023       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'
22024       ;;
22025
22026     linux*)
22027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028         tmp_addflag=
22029         case $cc_basename,$host_cpu in
22030         pgcc*)                          # Portland Group C compiler
22031           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'
22032           tmp_addflag=' $pic_flag'
22033           ;;
22034         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22035           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'
22036           tmp_addflag=' $pic_flag -Mnomain' ;;
22037         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22038           tmp_addflag=' -i_dynamic' ;;
22039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22040           tmp_addflag=' -i_dynamic -nofor_main' ;;
22041         ifc* | ifort*)                  # Intel Fortran compiler
22042           tmp_addflag=' -nofor_main' ;;
22043         esac
22044         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22045
22046         if test $supports_anon_versioning = yes; then
22047           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22048   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22049   $echo "local: *; };" >> $output_objdir/$libname.ver~
22050           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22051         fi
22052       else
22053         ld_shlibs_F77=no
22054       fi
22055       ;;
22056
22057     netbsd*)
22058       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22059         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22060         wlarc=
22061       else
22062         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22063         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22064       fi
22065       ;;
22066
22067     solaris*)
22068       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22069         ld_shlibs_F77=no
22070         cat <<EOF 1>&2
22071
22072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22073 *** create shared libraries on Solaris systems.  Therefore, libtool
22074 *** is disabling shared libraries support.  We urge you to upgrade GNU
22075 *** binutils to release 2.9.1 or newer.  Another option is to modify
22076 *** your PATH or compiler configuration so that the native linker is
22077 *** used, and then restart.
22078
22079 EOF
22080       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22083       else
22084         ld_shlibs_F77=no
22085       fi
22086       ;;
22087
22088     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22089       case `$LD -v 2>&1` in
22090         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22091         ld_shlibs_F77=no
22092         cat <<_LT_EOF 1>&2
22093
22094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22095 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22096 *** is disabling shared libraries support.  We urge you to upgrade GNU
22097 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22098 *** your PATH or compiler configuration so that the native linker is
22099 *** used, and then restart.
22100
22101 _LT_EOF
22102         ;;
22103         *)
22104           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22105             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22106             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22107             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22108           else
22109             ld_shlibs_F77=no
22110           fi
22111         ;;
22112       esac
22113       ;;
22114
22115     sunos4*)
22116       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22117       wlarc=
22118       hardcode_direct_F77=yes
22119       hardcode_shlibpath_var_F77=no
22120       ;;
22121
22122     *)
22123       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22124         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22125         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22126       else
22127         ld_shlibs_F77=no
22128       fi
22129       ;;
22130     esac
22131
22132     if test "$ld_shlibs_F77" = no; then
22133       runpath_var=
22134       hardcode_libdir_flag_spec_F77=
22135       export_dynamic_flag_spec_F77=
22136       whole_archive_flag_spec_F77=
22137     fi
22138   else
22139     # PORTME fill in a description of your system's linker (not GNU ld)
22140     case $host_os in
22141     aix3*)
22142       allow_undefined_flag_F77=unsupported
22143       always_export_symbols_F77=yes
22144       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'
22145       # Note: this linker hardcodes the directories in LIBPATH if there
22146       # are no directories specified by -L.
22147       hardcode_minus_L_F77=yes
22148       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22149         # Neither direct hardcoding nor static linking is supported with a
22150         # broken collect2.
22151         hardcode_direct_F77=unsupported
22152       fi
22153       ;;
22154
22155     aix4* | aix5*)
22156       if test "$host_cpu" = ia64; then
22157         # On IA64, the linker does run time linking by default, so we don't
22158         # have to do anything special.
22159         aix_use_runtimelinking=no
22160         exp_sym_flag='-Bexport'
22161         no_entry_flag=""
22162       else
22163         # If we're using GNU nm, then we don't want the "-C" option.
22164         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22165         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22166           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'
22167         else
22168           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'
22169         fi
22170         aix_use_runtimelinking=no
22171
22172         # Test if we are trying to use run time linking or normal
22173         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22174         # need to do runtime linking.
22175         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22176           for ld_flag in $LDFLAGS; do
22177           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22178             aix_use_runtimelinking=yes
22179             break
22180           fi
22181           done
22182           ;;
22183         esac
22184
22185         exp_sym_flag='-bexport'
22186         no_entry_flag='-bnoentry'
22187       fi
22188
22189       # When large executables or shared objects are built, AIX ld can
22190       # have problems creating the table of contents.  If linking a library
22191       # or program results in "error TOC overflow" add -mminimal-toc to
22192       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22193       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22194
22195       archive_cmds_F77=''
22196       hardcode_direct_F77=yes
22197       hardcode_libdir_separator_F77=':'
22198       link_all_deplibs_F77=yes
22199
22200       if test "$GCC" = yes; then
22201         case $host_os in aix4.[012]|aix4.[012].*)
22202         # We only want to do this on AIX 4.2 and lower, the check
22203         # below for broken collect2 doesn't work under 4.3+
22204           collect2name=`${CC} -print-prog-name=collect2`
22205           if test -f "$collect2name" && \
22206            strings "$collect2name" | grep resolve_lib_name >/dev/null
22207           then
22208           # We have reworked collect2
22209           hardcode_direct_F77=yes
22210           else
22211           # We have old collect2
22212           hardcode_direct_F77=unsupported
22213           # It fails to find uninstalled libraries when the uninstalled
22214           # path is not listed in the libpath.  Setting hardcode_minus_L
22215           # to unsupported forces relinking
22216           hardcode_minus_L_F77=yes
22217           hardcode_libdir_flag_spec_F77='-L$libdir'
22218           hardcode_libdir_separator_F77=
22219           fi
22220           ;;
22221         esac
22222         shared_flag='-shared'
22223         if test "$aix_use_runtimelinking" = yes; then
22224           shared_flag="$shared_flag "'${wl}-G'
22225         fi
22226       else
22227         # not using gcc
22228         if test "$host_cpu" = ia64; then
22229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22230         # chokes on -Wl,-G. The following line is correct:
22231           shared_flag='-G'
22232         else
22233           if test "$aix_use_runtimelinking" = yes; then
22234             shared_flag='${wl}-G'
22235           else
22236             shared_flag='${wl}-bM:SRE'
22237           fi
22238         fi
22239       fi
22240
22241       # It seems that -bexpall does not export symbols beginning with
22242       # underscore (_), so it is better to generate a list of symbols to export.
22243       always_export_symbols_F77=yes
22244       if test "$aix_use_runtimelinking" = yes; then
22245         # Warning - without using the other runtime loading flags (-brtl),
22246         # -berok will link without error, but may produce a broken library.
22247         allow_undefined_flag_F77='-berok'
22248        # Determine the default libpath from the value encoded in an empty executable.
22249        cat >conftest.$ac_ext <<_ACEOF
22250       program main
22251
22252       end
22253 _ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261   (eval "$ac_link") 2>conftest.er1
22262   ac_status=$?
22263   grep -v '^ *+' conftest.er1 >conftest.err
22264   rm -f conftest.er1
22265   cat conftest.err >&5
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); } &&
22268          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22269   { (case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_try") 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; } &&
22278          { ac_try='test -s conftest$ac_exeext'
22279   { (case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_try") 2>&5
22285   ac_status=$?
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); }; }; then
22288
22289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22290 }'`
22291 # Check for a 64-bit object if we didn't find anything.
22292 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; }
22293 }'`; fi
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298
22299 fi
22300
22301 rm -f core conftest.err conftest.$ac_objext \
22302       conftest$ac_exeext conftest.$ac_ext
22303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22304
22305        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22306         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"
22307        else
22308         if test "$host_cpu" = ia64; then
22309           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22310           allow_undefined_flag_F77="-z nodefs"
22311           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"
22312         else
22313          # Determine the default libpath from the value encoded in an empty executable.
22314          cat >conftest.$ac_ext <<_ACEOF
22315       program main
22316
22317       end
22318 _ACEOF
22319 rm -f conftest.$ac_objext conftest$ac_exeext
22320 if { (ac_try="$ac_link"
22321 case "(($ac_try" in
22322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323   *) ac_try_echo=$ac_try;;
22324 esac
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326   (eval "$ac_link") 2>conftest.er1
22327   ac_status=$?
22328   grep -v '^ *+' conftest.er1 >conftest.err
22329   rm -f conftest.er1
22330   cat conftest.err >&5
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); } &&
22333          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22334   { (case "(($ac_try" in
22335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336   *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339   (eval "$ac_try") 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; } &&
22343          { ac_try='test -s conftest$ac_exeext'
22344   { (case "(($ac_try" in
22345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346   *) ac_try_echo=$ac_try;;
22347 esac
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349   (eval "$ac_try") 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353
22354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22355 }'`
22356 # Check for a 64-bit object if we didn't find anything.
22357 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; }
22358 }'`; fi
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363
22364 fi
22365
22366 rm -f core conftest.err conftest.$ac_objext \
22367       conftest$ac_exeext conftest.$ac_ext
22368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22369
22370          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22371           # Warning - without using the other run time loading flags,
22372           # -berok will link without error, but may produce a broken library.
22373           no_undefined_flag_F77=' ${wl}-bernotok'
22374           allow_undefined_flag_F77=' ${wl}-berok'
22375           # Exported symbols can be pulled into shared objects from archives
22376           whole_archive_flag_spec_F77='$convenience'
22377           archive_cmds_need_lc_F77=yes
22378           # This is similar to how AIX traditionally builds its shared libraries.
22379           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'
22380         fi
22381       fi
22382       ;;
22383
22384     amigaos*)
22385       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)'
22386       hardcode_libdir_flag_spec_F77='-L$libdir'
22387       hardcode_minus_L_F77=yes
22388       # see comment about different semantics on the GNU ld section
22389       ld_shlibs_F77=no
22390       ;;
22391
22392     bsdi[45]*)
22393       export_dynamic_flag_spec_F77=-rdynamic
22394       ;;
22395
22396     cygwin* | mingw* | pw32*)
22397       # When not using gcc, we currently assume that we are using
22398       # Microsoft Visual C++.
22399       # hardcode_libdir_flag_spec is actually meaningless, as there is
22400       # no search path for DLLs.
22401       hardcode_libdir_flag_spec_F77=' '
22402       allow_undefined_flag_F77=unsupported
22403       # Tell ltmain to make .lib files, not .a files.
22404       libext=lib
22405       # Tell ltmain to make .dll files, not .so files.
22406       shrext_cmds=".dll"
22407       # FIXME: Setting linknames here is a bad hack.
22408       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22409       # The linker will automatically build a .lib file if we build a DLL.
22410       old_archive_From_new_cmds_F77='true'
22411       # FIXME: Should let the user specify the lib program.
22412       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22413       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22414       enable_shared_with_static_runtimes_F77=yes
22415       ;;
22416
22417     darwin* | rhapsody*)
22418       case $host_os in
22419         rhapsody* | darwin1.[012])
22420          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22421          ;;
22422        *) # Darwin 1.3 on
22423          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22424            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22425          else
22426            case ${MACOSX_DEPLOYMENT_TARGET} in
22427              10.[012])
22428                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22429                ;;
22430              10.*)
22431                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22432                ;;
22433            esac
22434          fi
22435          ;;
22436       esac
22437       archive_cmds_need_lc_F77=no
22438       hardcode_direct_F77=no
22439       hardcode_automatic_F77=yes
22440       hardcode_shlibpath_var_F77=unsupported
22441       whole_archive_flag_spec_F77=''
22442       link_all_deplibs_F77=yes
22443     if test "$GCC" = yes ; then
22444         output_verbose_link_cmd='echo'
22445         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22446       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22447       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22448       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}'
22449       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}'
22450     else
22451       case $cc_basename in
22452         xlc*)
22453          output_verbose_link_cmd='echo'
22454          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22455          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22456           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22457          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}'
22458           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}'
22459           ;;
22460        *)
22461          ld_shlibs_F77=no
22462           ;;
22463       esac
22464     fi
22465       ;;
22466
22467     dgux*)
22468       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469       hardcode_libdir_flag_spec_F77='-L$libdir'
22470       hardcode_shlibpath_var_F77=no
22471       ;;
22472
22473     freebsd1*)
22474       ld_shlibs_F77=no
22475       ;;
22476
22477     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22478     # support.  Future versions do this automatically, but an explicit c++rt0.o
22479     # does not break anything, and helps significantly (at the cost of a little
22480     # extra space).
22481     freebsd2.2*)
22482       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22483       hardcode_libdir_flag_spec_F77='-R$libdir'
22484       hardcode_direct_F77=yes
22485       hardcode_shlibpath_var_F77=no
22486       ;;
22487
22488     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22489     freebsd2*)
22490       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22491       hardcode_direct_F77=yes
22492       hardcode_minus_L_F77=yes
22493       hardcode_shlibpath_var_F77=no
22494       ;;
22495
22496     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22497     freebsd* | kfreebsd*-gnu | dragonfly*)
22498       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22499       hardcode_libdir_flag_spec_F77='-R$libdir'
22500       hardcode_direct_F77=yes
22501       hardcode_shlibpath_var_F77=no
22502       ;;
22503
22504     hpux9*)
22505       if test "$GCC" = yes; then
22506         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'
22507       else
22508         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'
22509       fi
22510       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22511       hardcode_libdir_separator_F77=:
22512       hardcode_direct_F77=yes
22513
22514       # hardcode_minus_L: Not really in the search PATH,
22515       # but as the default location of the library.
22516       hardcode_minus_L_F77=yes
22517       export_dynamic_flag_spec_F77='${wl}-E'
22518       ;;
22519
22520     hpux10*)
22521       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22522         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22523       else
22524         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22525       fi
22526       if test "$with_gnu_ld" = no; then
22527         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22528         hardcode_libdir_separator_F77=:
22529
22530         hardcode_direct_F77=yes
22531         export_dynamic_flag_spec_F77='${wl}-E'
22532
22533         # hardcode_minus_L: Not really in the search PATH,
22534         # but as the default location of the library.
22535         hardcode_minus_L_F77=yes
22536       fi
22537       ;;
22538
22539     hpux11*)
22540       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22541         case $host_cpu in
22542         hppa*64*)
22543           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22544           ;;
22545         ia64*)
22546           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22547           ;;
22548         *)
22549           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22550           ;;
22551         esac
22552       else
22553         case $host_cpu in
22554         hppa*64*)
22555           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22556           ;;
22557         ia64*)
22558           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22559           ;;
22560         *)
22561           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22562           ;;
22563         esac
22564       fi
22565       if test "$with_gnu_ld" = no; then
22566         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22567         hardcode_libdir_separator_F77=:
22568
22569         case $host_cpu in
22570         hppa*64*|ia64*)
22571           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22572           hardcode_direct_F77=no
22573           hardcode_shlibpath_var_F77=no
22574           ;;
22575         *)
22576           hardcode_direct_F77=yes
22577           export_dynamic_flag_spec_F77='${wl}-E'
22578
22579           # hardcode_minus_L: Not really in the search PATH,
22580           # but as the default location of the library.
22581           hardcode_minus_L_F77=yes
22582           ;;
22583         esac
22584       fi
22585       ;;
22586
22587     irix5* | irix6* | nonstopux*)
22588       if test "$GCC" = yes; then
22589         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'
22590       else
22591         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'
22592         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22593       fi
22594       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22595       hardcode_libdir_separator_F77=:
22596       link_all_deplibs_F77=yes
22597       ;;
22598
22599     netbsd*)
22600       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22601         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22602       else
22603         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22604       fi
22605       hardcode_libdir_flag_spec_F77='-R$libdir'
22606       hardcode_direct_F77=yes
22607       hardcode_shlibpath_var_F77=no
22608       ;;
22609
22610     newsos6)
22611       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612       hardcode_direct_F77=yes
22613       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22614       hardcode_libdir_separator_F77=:
22615       hardcode_shlibpath_var_F77=no
22616       ;;
22617
22618     openbsd*)
22619       hardcode_direct_F77=yes
22620       hardcode_shlibpath_var_F77=no
22621       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22622         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22623         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22624         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22625         export_dynamic_flag_spec_F77='${wl}-E'
22626       else
22627        case $host_os in
22628          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22629            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630            hardcode_libdir_flag_spec_F77='-R$libdir'
22631            ;;
22632          *)
22633            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22634            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22635            ;;
22636        esac
22637       fi
22638       ;;
22639
22640     os2*)
22641       hardcode_libdir_flag_spec_F77='-L$libdir'
22642       hardcode_minus_L_F77=yes
22643       allow_undefined_flag_F77=unsupported
22644       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'
22645       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22646       ;;
22647
22648     osf3*)
22649       if test "$GCC" = yes; then
22650         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22651         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'
22652       else
22653         allow_undefined_flag_F77=' -expect_unresolved \*'
22654         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'
22655       fi
22656       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22657       hardcode_libdir_separator_F77=:
22658       ;;
22659
22660     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22661       if test "$GCC" = yes; then
22662         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22663         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'
22664         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22665       else
22666         allow_undefined_flag_F77=' -expect_unresolved \*'
22667         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'
22668         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~
22669         $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'
22670
22671         # Both c and cxx compiler support -rpath directly
22672         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22673       fi
22674       hardcode_libdir_separator_F77=:
22675       ;;
22676
22677     solaris*)
22678       no_undefined_flag_F77=' -z text'
22679       if test "$GCC" = yes; then
22680         wlarc='${wl}'
22681         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22682         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22683           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22684       else
22685         wlarc=''
22686         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22687         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22688         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22689       fi
22690       hardcode_libdir_flag_spec_F77='-R$libdir'
22691       hardcode_shlibpath_var_F77=no
22692       case $host_os in
22693       solaris2.[0-5] | solaris2.[0-5].*) ;;
22694       *)
22695         # The compiler driver will combine linker options so we
22696         # cannot just pass the convience library names through
22697         # without $wl, iff we do not link with $LD.
22698         # Luckily, gcc supports the same syntax we need for Sun Studio.
22699         # Supported since Solaris 2.6 (maybe 2.5.1?)
22700         case $wlarc in
22701         '')
22702           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22703         *)
22704           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' ;;
22705         esac ;;
22706       esac
22707       link_all_deplibs_F77=yes
22708       ;;
22709
22710     sunos4*)
22711       if test "x$host_vendor" = xsequent; then
22712         # Use $CC to link under sequent, because it throws in some extra .o
22713         # files that make .init and .fini sections work.
22714         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22715       else
22716         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22717       fi
22718       hardcode_libdir_flag_spec_F77='-L$libdir'
22719       hardcode_direct_F77=yes
22720       hardcode_minus_L_F77=yes
22721       hardcode_shlibpath_var_F77=no
22722       ;;
22723
22724     sysv4)
22725       case $host_vendor in
22726         sni)
22727           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22728           hardcode_direct_F77=yes # is this really true???
22729         ;;
22730         siemens)
22731           ## LD is ld it makes a PLAMLIB
22732           ## CC just makes a GrossModule.
22733           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22734           reload_cmds_F77='$CC -r -o $output$reload_objs'
22735           hardcode_direct_F77=no
22736         ;;
22737         motorola)
22738           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22739           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22740         ;;
22741       esac
22742       runpath_var='LD_RUN_PATH'
22743       hardcode_shlibpath_var_F77=no
22744       ;;
22745
22746     sysv4.3*)
22747       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22748       hardcode_shlibpath_var_F77=no
22749       export_dynamic_flag_spec_F77='-Bexport'
22750       ;;
22751
22752     sysv4*MP*)
22753       if test -d /usr/nec; then
22754         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22755         hardcode_shlibpath_var_F77=no
22756         runpath_var=LD_RUN_PATH
22757         hardcode_runpath_var=yes
22758         ld_shlibs_F77=yes
22759       fi
22760       ;;
22761
22762     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22763       no_undefined_flag_F77='${wl}-z,text'
22764       archive_cmds_need_lc_F77=no
22765       hardcode_shlibpath_var_F77=no
22766       runpath_var='LD_RUN_PATH'
22767
22768       if test "$GCC" = yes; then
22769         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22771       else
22772         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22773         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22774       fi
22775       ;;
22776
22777     sysv5* | sco3.2v5* | sco5v6*)
22778       # Note: We can NOT use -z defs as we might desire, because we do not
22779       # link with -lc, and that would cause any symbols used from libc to
22780       # always be unresolved, which means just about no library would
22781       # ever link correctly.  If we're not using GNU ld we use -z text
22782       # though, which does catch some bad symbols but isn't as heavy-handed
22783       # as -z defs.
22784       no_undefined_flag_F77='${wl}-z,text'
22785       allow_undefined_flag_F77='${wl}-z,nodefs'
22786       archive_cmds_need_lc_F77=no
22787       hardcode_shlibpath_var_F77=no
22788       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22789       hardcode_libdir_separator_F77=':'
22790       link_all_deplibs_F77=yes
22791       export_dynamic_flag_spec_F77='${wl}-Bexport'
22792       runpath_var='LD_RUN_PATH'
22793
22794       if test "$GCC" = yes; then
22795         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22797       else
22798         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22800       fi
22801       ;;
22802
22803     uts4*)
22804       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22805       hardcode_libdir_flag_spec_F77='-L$libdir'
22806       hardcode_shlibpath_var_F77=no
22807       ;;
22808
22809     *)
22810       ld_shlibs_F77=no
22811       ;;
22812     esac
22813   fi
22814
22815 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22816 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22817 test "$ld_shlibs_F77" = no && can_build_shared=no
22818
22819 #
22820 # Do we need to explicitly link libc?
22821 #
22822 case "x$archive_cmds_need_lc_F77" in
22823 x|xyes)
22824   # Assume -lc should be added
22825   archive_cmds_need_lc_F77=yes
22826
22827   if test "$enable_shared" = yes && test "$GCC" = yes; then
22828     case $archive_cmds_F77 in
22829     *'~'*)
22830       # FIXME: we may have to deal with multi-command sequences.
22831       ;;
22832     '$CC '*)
22833       # Test whether the compiler implicitly links with -lc since on some
22834       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22835       # to ld, don't add -lc before -lgcc.
22836       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22837 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22838       $rm conftest*
22839       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22840
22841       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842   (eval $ac_compile) 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); } 2>conftest.err; then
22846         soname=conftest
22847         lib=conftest
22848         libobjs=conftest.$ac_objext
22849         deplibs=
22850         wl=$lt_prog_compiler_wl_F77
22851         pic_flag=$lt_prog_compiler_pic_F77
22852         compiler_flags=-v
22853         linker_flags=-v
22854         verstring=
22855         output_objdir=.
22856         libname=conftest
22857         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22858         allow_undefined_flag_F77=
22859         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22860   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }
22864         then
22865           archive_cmds_need_lc_F77=no
22866         else
22867           archive_cmds_need_lc_F77=yes
22868         fi
22869         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22870       else
22871         cat conftest.err 1>&5
22872       fi
22873       $rm conftest*
22874       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22875 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22876       ;;
22877     esac
22878   fi
22879   ;;
22880 esac
22881
22882 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22883 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22884 library_names_spec=
22885 libname_spec='lib$name'
22886 soname_spec=
22887 shrext_cmds=".so"
22888 postinstall_cmds=
22889 postuninstall_cmds=
22890 finish_cmds=
22891 finish_eval=
22892 shlibpath_var=
22893 shlibpath_overrides_runpath=unknown
22894 version_type=none
22895 dynamic_linker="$host_os ld.so"
22896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22897 if test "$GCC" = yes; then
22898   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22899   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22900     # if the path contains ";" then we assume it to be the separator
22901     # otherwise default to the standard path separator (i.e. ":") - it is
22902     # assumed that no part of a normal pathname contains ";" but that should
22903     # okay in the real world where ";" in dirpaths is itself problematic.
22904     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22905   else
22906     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22907   fi
22908 else
22909   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22910 fi
22911 need_lib_prefix=unknown
22912 hardcode_into_libs=no
22913
22914 # when you set need_version to no, make sure it does not cause -set_version
22915 # flags to be left without arguments
22916 need_version=unknown
22917
22918 case $host_os in
22919 aix3*)
22920   version_type=linux
22921   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22922   shlibpath_var=LIBPATH
22923
22924   # AIX 3 has no versioning support, so we append a major version to the name.
22925   soname_spec='${libname}${release}${shared_ext}$major'
22926   ;;
22927
22928 aix4* | aix5*)
22929   version_type=linux
22930   need_lib_prefix=no
22931   need_version=no
22932   hardcode_into_libs=yes
22933   if test "$host_cpu" = ia64; then
22934     # AIX 5 supports IA64
22935     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22936     shlibpath_var=LD_LIBRARY_PATH
22937   else
22938     # With GCC up to 2.95.x, collect2 would create an import file
22939     # for dependence libraries.  The import file would start with
22940     # the line `#! .'.  This would cause the generated library to
22941     # depend on `.', always an invalid library.  This was fixed in
22942     # development snapshots of GCC prior to 3.0.
22943     case $host_os in
22944       aix4 | aix4.[01] | aix4.[01].*)
22945       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22946            echo ' yes '
22947            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22948         :
22949       else
22950         can_build_shared=no
22951       fi
22952       ;;
22953     esac
22954     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22955     # soname into executable. Probably we can add versioning support to
22956     # collect2, so additional links can be useful in future.
22957     if test "$aix_use_runtimelinking" = yes; then
22958       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22959       # instead of lib<name>.a to let people know that these are not
22960       # typical AIX shared libraries.
22961       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962     else
22963       # We preserve .a as extension for shared libraries through AIX4.2
22964       # and later when we are not doing run time linking.
22965       library_names_spec='${libname}${release}.a $libname.a'
22966       soname_spec='${libname}${release}${shared_ext}$major'
22967     fi
22968     shlibpath_var=LIBPATH
22969   fi
22970   ;;
22971
22972 amigaos*)
22973   library_names_spec='$libname.ixlibrary $libname.a'
22974   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22975   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'
22976   ;;
22977
22978 beos*)
22979   library_names_spec='${libname}${shared_ext}'
22980   dynamic_linker="$host_os ld.so"
22981   shlibpath_var=LIBRARY_PATH
22982   ;;
22983
22984 bsdi[45]*)
22985   version_type=linux
22986   need_version=no
22987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22988   soname_spec='${libname}${release}${shared_ext}$major'
22989   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22990   shlibpath_var=LD_LIBRARY_PATH
22991   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22992   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22993   # the default ld.so.conf also contains /usr/contrib/lib and
22994   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22995   # libtool to hard-code these into programs
22996   ;;
22997
22998 cygwin* | mingw* | pw32*)
22999   version_type=windows
23000   shrext_cmds=".dll"
23001   need_version=no
23002   need_lib_prefix=no
23003
23004   case $GCC,$host_os in
23005   yes,cygwin* | yes,mingw* | yes,pw32*)
23006     library_names_spec='$libname.dll.a'
23007     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23008     postinstall_cmds='base_file=`basename \${file}`~
23009       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23010       dldir=$destdir/`dirname \$dlpath`~
23011       test -d \$dldir || mkdir -p \$dldir~
23012       $install_prog $dir/$dlname \$dldir/$dlname~
23013       chmod a+x \$dldir/$dlname'
23014     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23015       dlpath=$dir/\$dldll~
23016        $rm \$dlpath'
23017     shlibpath_overrides_runpath=yes
23018
23019     case $host_os in
23020     cygwin*)
23021       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23022       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23023       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23024       ;;
23025     mingw*)
23026       # MinGW DLLs use traditional 'lib' prefix
23027       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23028       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23029       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23030         # It is most probably a Windows format PATH printed by
23031         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23032         # path with ; separators, and with drive letters. We can handle the
23033         # drive letters (cygwin fileutils understands them), so leave them,
23034         # especially as we might pass files found there to a mingw objdump,
23035         # which wouldn't understand a cygwinified path. Ahh.
23036         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037       else
23038         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23039       fi
23040       ;;
23041     pw32*)
23042       # pw32 DLLs use 'pw' prefix rather than 'lib'
23043       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23044       ;;
23045     esac
23046     ;;
23047
23048   *)
23049     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23050     ;;
23051   esac
23052   dynamic_linker='Win32 ld.exe'
23053   # FIXME: first we should search . and the directory the executable is in
23054   shlibpath_var=PATH
23055   ;;
23056
23057 darwin* | rhapsody*)
23058   dynamic_linker="$host_os dyld"
23059   version_type=darwin
23060   need_lib_prefix=no
23061   need_version=no
23062   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23063   soname_spec='${libname}${release}${major}$shared_ext'
23064   shlibpath_overrides_runpath=yes
23065   shlibpath_var=DYLD_LIBRARY_PATH
23066   shrext_cmds='.dylib'
23067   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23068   if test "$GCC" = yes; then
23069     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"`
23070   else
23071     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23072   fi
23073   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23074   ;;
23075
23076 dgux*)
23077   version_type=linux
23078   need_lib_prefix=no
23079   need_version=no
23080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23081   soname_spec='${libname}${release}${shared_ext}$major'
23082   shlibpath_var=LD_LIBRARY_PATH
23083   ;;
23084
23085 freebsd1*)
23086   dynamic_linker=no
23087   ;;
23088
23089 kfreebsd*-gnu)
23090   version_type=linux
23091   need_lib_prefix=no
23092   need_version=no
23093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23094   soname_spec='${libname}${release}${shared_ext}$major'
23095   shlibpath_var=LD_LIBRARY_PATH
23096   shlibpath_overrides_runpath=no
23097   hardcode_into_libs=yes
23098   dynamic_linker='GNU ld.so'
23099   ;;
23100
23101 freebsd* | dragonfly*)
23102   # DragonFly does not have aout.  When/if they implement a new
23103   # versioning mechanism, adjust this.
23104   if test -x /usr/bin/objformat; then
23105     objformat=`/usr/bin/objformat`
23106   else
23107     case $host_os in
23108     freebsd[123]*) objformat=aout ;;
23109     *) objformat=elf ;;
23110     esac
23111   fi
23112   version_type=freebsd-$objformat
23113   case $version_type in
23114     freebsd-elf*)
23115       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23116       need_version=no
23117       need_lib_prefix=no
23118       ;;
23119     freebsd-*)
23120       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23121       need_version=yes
23122       ;;
23123   esac
23124   shlibpath_var=LD_LIBRARY_PATH
23125   case $host_os in
23126   freebsd2*)
23127     shlibpath_overrides_runpath=yes
23128     ;;
23129   freebsd3.[01]* | freebsdelf3.[01]*)
23130     shlibpath_overrides_runpath=yes
23131     hardcode_into_libs=yes
23132     ;;
23133   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23134   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23135     shlibpath_overrides_runpath=no
23136     hardcode_into_libs=yes
23137     ;;
23138   freebsd*) # from 4.6 on
23139     shlibpath_overrides_runpath=yes
23140     hardcode_into_libs=yes
23141     ;;
23142   esac
23143   ;;
23144
23145 gnu*)
23146   version_type=linux
23147   need_lib_prefix=no
23148   need_version=no
23149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23150   soname_spec='${libname}${release}${shared_ext}$major'
23151   shlibpath_var=LD_LIBRARY_PATH
23152   hardcode_into_libs=yes
23153   ;;
23154
23155 hpux9* | hpux10* | hpux11*)
23156   # Give a soname corresponding to the major version so that dld.sl refuses to
23157   # link against other versions.
23158   version_type=sunos
23159   need_lib_prefix=no
23160   need_version=no
23161   case $host_cpu in
23162   ia64*)
23163     shrext_cmds='.so'
23164     hardcode_into_libs=yes
23165     dynamic_linker="$host_os dld.so"
23166     shlibpath_var=LD_LIBRARY_PATH
23167     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23169     soname_spec='${libname}${release}${shared_ext}$major'
23170     if test "X$HPUX_IA64_MODE" = X32; then
23171       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23172     else
23173       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23174     fi
23175     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23176     ;;
23177    hppa*64*)
23178      shrext_cmds='.sl'
23179      hardcode_into_libs=yes
23180      dynamic_linker="$host_os dld.sl"
23181      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23182      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184      soname_spec='${libname}${release}${shared_ext}$major'
23185      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23186      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23187      ;;
23188    *)
23189     shrext_cmds='.sl'
23190     dynamic_linker="$host_os dld.sl"
23191     shlibpath_var=SHLIB_PATH
23192     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194     soname_spec='${libname}${release}${shared_ext}$major'
23195     ;;
23196   esac
23197   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23198   postinstall_cmds='chmod 555 $lib'
23199   ;;
23200
23201 interix3*)
23202   version_type=linux
23203   need_lib_prefix=no
23204   need_version=no
23205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23206   soname_spec='${libname}${release}${shared_ext}$major'
23207   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23208   shlibpath_var=LD_LIBRARY_PATH
23209   shlibpath_overrides_runpath=no
23210   hardcode_into_libs=yes
23211   ;;
23212
23213 irix5* | irix6* | nonstopux*)
23214   case $host_os in
23215     nonstopux*) version_type=nonstopux ;;
23216     *)
23217         if test "$lt_cv_prog_gnu_ld" = yes; then
23218                 version_type=linux
23219         else
23220                 version_type=irix
23221         fi ;;
23222   esac
23223   need_lib_prefix=no
23224   need_version=no
23225   soname_spec='${libname}${release}${shared_ext}$major'
23226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23227   case $host_os in
23228   irix5* | nonstopux*)
23229     libsuff= shlibsuff=
23230     ;;
23231   *)
23232     case $LD in # libtool.m4 will add one of these switches to LD
23233     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23234       libsuff= shlibsuff= libmagic=32-bit;;
23235     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23236       libsuff=32 shlibsuff=N32 libmagic=N32;;
23237     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23238       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23239     *) libsuff= shlibsuff= libmagic=never-match;;
23240     esac
23241     ;;
23242   esac
23243   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23244   shlibpath_overrides_runpath=no
23245   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23246   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23247   hardcode_into_libs=yes
23248   ;;
23249
23250 # No shared lib support for Linux oldld, aout, or coff.
23251 linux*oldld* | linux*aout* | linux*coff*)
23252   dynamic_linker=no
23253   ;;
23254
23255 # This must be Linux ELF.
23256 linux*)
23257   version_type=linux
23258   need_lib_prefix=no
23259   need_version=no
23260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261   soname_spec='${libname}${release}${shared_ext}$major'
23262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23263   shlibpath_var=LD_LIBRARY_PATH
23264   shlibpath_overrides_runpath=no
23265   # This implies no fast_install, which is unacceptable.
23266   # Some rework will be needed to allow for fast_install
23267   # before this can be enabled.
23268   hardcode_into_libs=yes
23269
23270   # Append ld.so.conf contents to the search path
23271   if test -f /etc/ld.so.conf; then
23272     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' ' '`
23273     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23274   fi
23275
23276   # We used to test for /lib/ld.so.1 and disable shared libraries on
23277   # powerpc, because MkLinux only supported shared libraries with the
23278   # GNU dynamic linker.  Since this was broken with cross compilers,
23279   # most powerpc-linux boxes support dynamic linking these days and
23280   # people can always --disable-shared, the test was removed, and we
23281   # assume the GNU/Linux dynamic linker is in use.
23282   dynamic_linker='GNU/Linux ld.so'
23283   ;;
23284
23285 knetbsd*-gnu)
23286   version_type=linux
23287   need_lib_prefix=no
23288   need_version=no
23289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23290   soname_spec='${libname}${release}${shared_ext}$major'
23291   shlibpath_var=LD_LIBRARY_PATH
23292   shlibpath_overrides_runpath=no
23293   hardcode_into_libs=yes
23294   dynamic_linker='GNU ld.so'
23295   ;;
23296
23297 netbsd*)
23298   version_type=sunos
23299   need_lib_prefix=no
23300   need_version=no
23301   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23303     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23304     dynamic_linker='NetBSD (a.out) ld.so'
23305   else
23306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23307     soname_spec='${libname}${release}${shared_ext}$major'
23308     dynamic_linker='NetBSD ld.elf_so'
23309   fi
23310   shlibpath_var=LD_LIBRARY_PATH
23311   shlibpath_overrides_runpath=yes
23312   hardcode_into_libs=yes
23313   ;;
23314
23315 newsos6)
23316   version_type=linux
23317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23318   shlibpath_var=LD_LIBRARY_PATH
23319   shlibpath_overrides_runpath=yes
23320   ;;
23321
23322 nto-qnx*)
23323   version_type=linux
23324   need_lib_prefix=no
23325   need_version=no
23326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23327   soname_spec='${libname}${release}${shared_ext}$major'
23328   shlibpath_var=LD_LIBRARY_PATH
23329   shlibpath_overrides_runpath=yes
23330   ;;
23331
23332 openbsd*)
23333   version_type=sunos
23334   sys_lib_dlsearch_path_spec="/usr/lib"
23335   need_lib_prefix=no
23336   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23337   case $host_os in
23338     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23339     *)                         need_version=no  ;;
23340   esac
23341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23343   shlibpath_var=LD_LIBRARY_PATH
23344   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23345     case $host_os in
23346       openbsd2.[89] | openbsd2.[89].*)
23347         shlibpath_overrides_runpath=no
23348         ;;
23349       *)
23350         shlibpath_overrides_runpath=yes
23351         ;;
23352       esac
23353   else
23354     shlibpath_overrides_runpath=yes
23355   fi
23356   ;;
23357
23358 os2*)
23359   libname_spec='$name'
23360   shrext_cmds=".dll"
23361   need_lib_prefix=no
23362   library_names_spec='$libname${shared_ext} $libname.a'
23363   dynamic_linker='OS/2 ld.exe'
23364   shlibpath_var=LIBPATH
23365   ;;
23366
23367 osf3* | osf4* | osf5*)
23368   version_type=osf
23369   need_lib_prefix=no
23370   need_version=no
23371   soname_spec='${libname}${release}${shared_ext}$major'
23372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373   shlibpath_var=LD_LIBRARY_PATH
23374   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23375   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23376   ;;
23377
23378 solaris*)
23379   version_type=linux
23380   need_lib_prefix=no
23381   need_version=no
23382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23383   soname_spec='${libname}${release}${shared_ext}$major'
23384   shlibpath_var=LD_LIBRARY_PATH
23385   shlibpath_overrides_runpath=yes
23386   hardcode_into_libs=yes
23387   # ldd complains unless libraries are executable
23388   postinstall_cmds='chmod +x $lib'
23389   ;;
23390
23391 sunos4*)
23392   version_type=sunos
23393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23395   shlibpath_var=LD_LIBRARY_PATH
23396   shlibpath_overrides_runpath=yes
23397   if test "$with_gnu_ld" = yes; then
23398     need_lib_prefix=no
23399   fi
23400   need_version=yes
23401   ;;
23402
23403 sysv4 | sysv4.3*)
23404   version_type=linux
23405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23406   soname_spec='${libname}${release}${shared_ext}$major'
23407   shlibpath_var=LD_LIBRARY_PATH
23408   case $host_vendor in
23409     sni)
23410       shlibpath_overrides_runpath=no
23411       need_lib_prefix=no
23412       export_dynamic_flag_spec='${wl}-Blargedynsym'
23413       runpath_var=LD_RUN_PATH
23414       ;;
23415     siemens)
23416       need_lib_prefix=no
23417       ;;
23418     motorola)
23419       need_lib_prefix=no
23420       need_version=no
23421       shlibpath_overrides_runpath=no
23422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23423       ;;
23424   esac
23425   ;;
23426
23427 sysv4*MP*)
23428   if test -d /usr/nec ;then
23429     version_type=linux
23430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23431     soname_spec='$libname${shared_ext}.$major'
23432     shlibpath_var=LD_LIBRARY_PATH
23433   fi
23434   ;;
23435
23436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23437   version_type=freebsd-elf
23438   need_lib_prefix=no
23439   need_version=no
23440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23441   soname_spec='${libname}${release}${shared_ext}$major'
23442   shlibpath_var=LD_LIBRARY_PATH
23443   hardcode_into_libs=yes
23444   if test "$with_gnu_ld" = yes; then
23445     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23446     shlibpath_overrides_runpath=no
23447   else
23448     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23449     shlibpath_overrides_runpath=yes
23450     case $host_os in
23451       sco3.2v5*)
23452         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23453         ;;
23454     esac
23455   fi
23456   sys_lib_dlsearch_path_spec='/usr/lib'
23457   ;;
23458
23459 uts4*)
23460   version_type=linux
23461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23462   soname_spec='${libname}${release}${shared_ext}$major'
23463   shlibpath_var=LD_LIBRARY_PATH
23464   ;;
23465
23466 *)
23467   dynamic_linker=no
23468   ;;
23469 esac
23470 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23471 echo "${ECHO_T}$dynamic_linker" >&6; }
23472 test "$dynamic_linker" = no && can_build_shared=no
23473
23474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23475 if test "$GCC" = yes; then
23476   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23477 fi
23478
23479 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23480 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23481 hardcode_action_F77=
23482 if test -n "$hardcode_libdir_flag_spec_F77" || \
23483    test -n "$runpath_var_F77" || \
23484    test "X$hardcode_automatic_F77" = "Xyes" ; then
23485
23486   # We can hardcode non-existant directories.
23487   if test "$hardcode_direct_F77" != no &&
23488      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23489      # have to relink, otherwise we might link with an installed library
23490      # when we should be linking with a yet-to-be-installed one
23491      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23492      test "$hardcode_minus_L_F77" != no; then
23493     # Linking always hardcodes the temporary library directory.
23494     hardcode_action_F77=relink
23495   else
23496     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23497     hardcode_action_F77=immediate
23498   fi
23499 else
23500   # We cannot hardcode anything, or else we can only hardcode existing
23501   # directories.
23502   hardcode_action_F77=unsupported
23503 fi
23504 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23505 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23506
23507 if test "$hardcode_action_F77" = relink; then
23508   # Fast installation is not supported
23509   enable_fast_install=no
23510 elif test "$shlibpath_overrides_runpath" = yes ||
23511      test "$enable_shared" = no; then
23512   # Fast installation is not necessary
23513   enable_fast_install=needless
23514 fi
23515
23516
23517 # The else clause should only fire when bootstrapping the
23518 # libtool distribution, otherwise you forgot to ship ltmain.sh
23519 # with your package, and you will get complaints that there are
23520 # no rules to generate ltmain.sh.
23521 if test -f "$ltmain"; then
23522   # See if we are running on zsh, and set the options which allow our commands through
23523   # without removal of \ escapes.
23524   if test -n "${ZSH_VERSION+set}" ; then
23525     setopt NO_GLOB_SUBST
23526   fi
23527   # Now quote all the things that may contain metacharacters while being
23528   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23529   # variables and quote the copies for generation of the libtool script.
23530   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23531     SED SHELL STRIP \
23532     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23533     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23534     deplibs_check_method reload_flag reload_cmds need_locks \
23535     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23536     lt_cv_sys_global_symbol_to_c_name_address \
23537     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23538     old_postinstall_cmds old_postuninstall_cmds \
23539     compiler_F77 \
23540     CC_F77 \
23541     LD_F77 \
23542     lt_prog_compiler_wl_F77 \
23543     lt_prog_compiler_pic_F77 \
23544     lt_prog_compiler_static_F77 \
23545     lt_prog_compiler_no_builtin_flag_F77 \
23546     export_dynamic_flag_spec_F77 \
23547     thread_safe_flag_spec_F77 \
23548     whole_archive_flag_spec_F77 \
23549     enable_shared_with_static_runtimes_F77 \
23550     old_archive_cmds_F77 \
23551     old_archive_from_new_cmds_F77 \
23552     predep_objects_F77 \
23553     postdep_objects_F77 \
23554     predeps_F77 \
23555     postdeps_F77 \
23556     compiler_lib_search_path_F77 \
23557     archive_cmds_F77 \
23558     archive_expsym_cmds_F77 \
23559     postinstall_cmds_F77 \
23560     postuninstall_cmds_F77 \
23561     old_archive_from_expsyms_cmds_F77 \
23562     allow_undefined_flag_F77 \
23563     no_undefined_flag_F77 \
23564     export_symbols_cmds_F77 \
23565     hardcode_libdir_flag_spec_F77 \
23566     hardcode_libdir_flag_spec_ld_F77 \
23567     hardcode_libdir_separator_F77 \
23568     hardcode_automatic_F77 \
23569     module_cmds_F77 \
23570     module_expsym_cmds_F77 \
23571     lt_cv_prog_compiler_c_o_F77 \
23572     exclude_expsyms_F77 \
23573     include_expsyms_F77; do
23574
23575     case $var in
23576     old_archive_cmds_F77 | \
23577     old_archive_from_new_cmds_F77 | \
23578     archive_cmds_F77 | \
23579     archive_expsym_cmds_F77 | \
23580     module_cmds_F77 | \
23581     module_expsym_cmds_F77 | \
23582     old_archive_from_expsyms_cmds_F77 | \
23583     export_symbols_cmds_F77 | \
23584     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23585     postinstall_cmds | postuninstall_cmds | \
23586     old_postinstall_cmds | old_postuninstall_cmds | \
23587     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23588       # Double-quote double-evaled strings.
23589       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23590       ;;
23591     *)
23592       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23593       ;;
23594     esac
23595   done
23596
23597   case $lt_echo in
23598   *'\$0 --fallback-echo"')
23599     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23600     ;;
23601   esac
23602
23603 cfgfile="$ofile"
23604
23605   cat <<__EOF__ >> "$cfgfile"
23606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23607
23608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23609
23610 # Shell to use when invoking shell scripts.
23611 SHELL=$lt_SHELL
23612
23613 # Whether or not to build shared libraries.
23614 build_libtool_libs=$enable_shared
23615
23616 # Whether or not to build static libraries.
23617 build_old_libs=$enable_static
23618
23619 # Whether or not to add -lc for building shared libraries.
23620 build_libtool_need_lc=$archive_cmds_need_lc_F77
23621
23622 # Whether or not to disallow shared libs when runtime libs are static
23623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23624
23625 # Whether or not to optimize for fast installation.
23626 fast_install=$enable_fast_install
23627
23628 # The host system.
23629 host_alias=$host_alias
23630 host=$host
23631 host_os=$host_os
23632
23633 # The build system.
23634 build_alias=$build_alias
23635 build=$build
23636 build_os=$build_os
23637
23638 # An echo program that does not interpret backslashes.
23639 echo=$lt_echo
23640
23641 # The archiver.
23642 AR=$lt_AR
23643 AR_FLAGS=$lt_AR_FLAGS
23644
23645 # A C compiler.
23646 LTCC=$lt_LTCC
23647
23648 # LTCC compiler flags.
23649 LTCFLAGS=$lt_LTCFLAGS
23650
23651 # A language-specific compiler.
23652 CC=$lt_compiler_F77
23653
23654 # Is the compiler the GNU C compiler?
23655 with_gcc=$GCC_F77
23656
23657 # An ERE matcher.
23658 EGREP=$lt_EGREP
23659
23660 # The linker used to build libraries.
23661 LD=$lt_LD_F77
23662
23663 # Whether we need hard or soft links.
23664 LN_S=$lt_LN_S
23665
23666 # A BSD-compatible nm program.
23667 NM=$lt_NM
23668
23669 # A symbol stripping program
23670 STRIP=$lt_STRIP
23671
23672 # Used to examine libraries when file_magic_cmd begins "file"
23673 MAGIC_CMD=$MAGIC_CMD
23674
23675 # Used on cygwin: DLL creation program.
23676 DLLTOOL="$DLLTOOL"
23677
23678 # Used on cygwin: object dumper.
23679 OBJDUMP="$OBJDUMP"
23680
23681 # Used on cygwin: assembler.
23682 AS="$AS"
23683
23684 # The name of the directory that contains temporary libtool files.
23685 objdir=$objdir
23686
23687 # How to create reloadable object files.
23688 reload_flag=$lt_reload_flag
23689 reload_cmds=$lt_reload_cmds
23690
23691 # How to pass a linker flag through the compiler.
23692 wl=$lt_lt_prog_compiler_wl_F77
23693
23694 # Object file suffix (normally "o").
23695 objext="$ac_objext"
23696
23697 # Old archive suffix (normally "a").
23698 libext="$libext"
23699
23700 # Shared library suffix (normally ".so").
23701 shrext_cmds='$shrext_cmds'
23702
23703 # Executable file suffix (normally "").
23704 exeext="$exeext"
23705
23706 # Additional compiler flags for building library objects.
23707 pic_flag=$lt_lt_prog_compiler_pic_F77
23708 pic_mode=$pic_mode
23709
23710 # What is the maximum length of a command?
23711 max_cmd_len=$lt_cv_sys_max_cmd_len
23712
23713 # Does compiler simultaneously support -c and -o options?
23714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23715
23716 # Must we lock files when doing compilation?
23717 need_locks=$lt_need_locks
23718
23719 # Do we need the lib prefix for modules?
23720 need_lib_prefix=$need_lib_prefix
23721
23722 # Do we need a version for libraries?
23723 need_version=$need_version
23724
23725 # Whether dlopen is supported.
23726 dlopen_support=$enable_dlopen
23727
23728 # Whether dlopen of programs is supported.
23729 dlopen_self=$enable_dlopen_self
23730
23731 # Whether dlopen of statically linked programs is supported.
23732 dlopen_self_static=$enable_dlopen_self_static
23733
23734 # Compiler flag to prevent dynamic linking.
23735 link_static_flag=$lt_lt_prog_compiler_static_F77
23736
23737 # Compiler flag to turn off builtin functions.
23738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23739
23740 # Compiler flag to allow reflexive dlopens.
23741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23742
23743 # Compiler flag to generate shared objects directly from archives.
23744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23745
23746 # Compiler flag to generate thread-safe objects.
23747 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23748
23749 # Library versioning type.
23750 version_type=$version_type
23751
23752 # Format of library name prefix.
23753 libname_spec=$lt_libname_spec
23754
23755 # List of archive names.  First name is the real one, the rest are links.
23756 # The last name is the one that the linker finds with -lNAME.
23757 library_names_spec=$lt_library_names_spec
23758
23759 # The coded name of the library, if different from the real name.
23760 soname_spec=$lt_soname_spec
23761
23762 # Commands used to build and install an old-style archive.
23763 RANLIB=$lt_RANLIB
23764 old_archive_cmds=$lt_old_archive_cmds_F77
23765 old_postinstall_cmds=$lt_old_postinstall_cmds
23766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23767
23768 # Create an old-style archive from a shared archive.
23769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23770
23771 # Create a temporary old-style archive to link instead of a shared archive.
23772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23773
23774 # Commands used to build and install a shared archive.
23775 archive_cmds=$lt_archive_cmds_F77
23776 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23777 postinstall_cmds=$lt_postinstall_cmds
23778 postuninstall_cmds=$lt_postuninstall_cmds
23779
23780 # Commands used to build a loadable module (assumed same as above if empty)
23781 module_cmds=$lt_module_cmds_F77
23782 module_expsym_cmds=$lt_module_expsym_cmds_F77
23783
23784 # Commands to strip libraries.
23785 old_striplib=$lt_old_striplib
23786 striplib=$lt_striplib
23787
23788 # Dependencies to place before the objects being linked to create a
23789 # shared library.
23790 predep_objects=$lt_predep_objects_F77
23791
23792 # Dependencies to place after the objects being linked to create a
23793 # shared library.
23794 postdep_objects=$lt_postdep_objects_F77
23795
23796 # Dependencies to place before the objects being linked to create a
23797 # shared library.
23798 predeps=$lt_predeps_F77
23799
23800 # Dependencies to place after the objects being linked to create a
23801 # shared library.
23802 postdeps=$lt_postdeps_F77
23803
23804 # The library search path used internally by the compiler when linking
23805 # a shared library.
23806 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23807
23808 # Method to check whether dependent libraries are shared objects.
23809 deplibs_check_method=$lt_deplibs_check_method
23810
23811 # Command to use when deplibs_check_method == file_magic.
23812 file_magic_cmd=$lt_file_magic_cmd
23813
23814 # Flag that allows shared libraries with undefined symbols to be built.
23815 allow_undefined_flag=$lt_allow_undefined_flag_F77
23816
23817 # Flag that forces no undefined symbols.
23818 no_undefined_flag=$lt_no_undefined_flag_F77
23819
23820 # Commands used to finish a libtool library installation in a directory.
23821 finish_cmds=$lt_finish_cmds
23822
23823 # Same as above, but a single script fragment to be evaled but not shown.
23824 finish_eval=$lt_finish_eval
23825
23826 # Take the output of nm and produce a listing of raw symbols and C names.
23827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23828
23829 # Transform the output of nm in a proper C declaration
23830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23831
23832 # Transform the output of nm in a C name address pair
23833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23834
23835 # This is the shared library runtime path variable.
23836 runpath_var=$runpath_var
23837
23838 # This is the shared library path variable.
23839 shlibpath_var=$shlibpath_var
23840
23841 # Is shlibpath searched before the hard-coded library search path?
23842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23843
23844 # How to hardcode a shared library path into an executable.
23845 hardcode_action=$hardcode_action_F77
23846
23847 # Whether we should hardcode library paths into libraries.
23848 hardcode_into_libs=$hardcode_into_libs
23849
23850 # Flag to hardcode \$libdir into a binary during linking.
23851 # This must work even if \$libdir does not exist.
23852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23853
23854 # If ld is used when linking, flag to hardcode \$libdir into
23855 # a binary during linking. This must work even if \$libdir does
23856 # not exist.
23857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23858
23859 # Whether we need a single -rpath flag with a separated argument.
23860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23861
23862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23863 # resulting binary.
23864 hardcode_direct=$hardcode_direct_F77
23865
23866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23867 # resulting binary.
23868 hardcode_minus_L=$hardcode_minus_L_F77
23869
23870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23871 # the resulting binary.
23872 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23873
23874 # Set to yes if building a shared library automatically hardcodes DIR into the library
23875 # and all subsequent libraries and executables linked against it.
23876 hardcode_automatic=$hardcode_automatic_F77
23877
23878 # Variables whose values should be saved in libtool wrapper scripts and
23879 # restored at relink time.
23880 variables_saved_for_relink="$variables_saved_for_relink"
23881
23882 # Whether libtool must link a program against all its dependency libraries.
23883 link_all_deplibs=$link_all_deplibs_F77
23884
23885 # Compile-time system search path for libraries
23886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23887
23888 # Run-time system search path for libraries
23889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23890
23891 # Fix the shell variable \$srcfile for the compiler.
23892 fix_srcfile_path="$fix_srcfile_path_F77"
23893
23894 # Set to yes if exported symbols are required.
23895 always_export_symbols=$always_export_symbols_F77
23896
23897 # The commands to list exported symbols.
23898 export_symbols_cmds=$lt_export_symbols_cmds_F77
23899
23900 # The commands to extract the exported symbol list from a shared archive.
23901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23902
23903 # Symbols that should not be listed in the preloaded symbols.
23904 exclude_expsyms=$lt_exclude_expsyms_F77
23905
23906 # Symbols that must always be exported.
23907 include_expsyms=$lt_include_expsyms_F77
23908
23909 # ### END LIBTOOL TAG CONFIG: $tagname
23910
23911 __EOF__
23912
23913
23914 else
23915   # If there is no Makefile yet, we rely on a make rule to execute
23916   # `config.status --recheck' to rerun these tests and create the
23917   # libtool script then.
23918   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23919   if test -f "$ltmain_in"; then
23920     test -f Makefile && make "$ltmain"
23921   fi
23922 fi
23923
23924
23925 ac_ext=c
23926 ac_cpp='$CPP $CPPFLAGS'
23927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23930
23931 CC="$lt_save_CC"
23932
23933         else
23934           tagname=""
23935         fi
23936         ;;
23937
23938       GCJ)
23939         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23940           ac_ext=c
23941 ac_cpp='$CPP $CPPFLAGS'
23942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23945
23946
23947 # Source file extension for Java test sources.
23948 ac_ext=java
23949
23950 # Object file extension for compiled Java test sources.
23951 objext=o
23952 objext_GCJ=$objext
23953
23954 # Code to be used in simple compile tests
23955 lt_simple_compile_test_code="class foo {}\n"
23956
23957 # Code to be used in simple link tests
23958 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23959
23960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23961
23962 # If no C compiler was specified, use CC.
23963 LTCC=${LTCC-"$CC"}
23964
23965 # If no C compiler flags were specified, use CFLAGS.
23966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23967
23968 # Allow CC to be a program name with arguments.
23969 compiler=$CC
23970
23971
23972 # save warnings/boilerplate of simple test code
23973 ac_outfile=conftest.$ac_objext
23974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23976 _lt_compiler_boilerplate=`cat conftest.err`
23977 $rm conftest*
23978
23979 ac_outfile=conftest.$ac_objext
23980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23982 _lt_linker_boilerplate=`cat conftest.err`
23983 $rm conftest*
23984
23985
23986 # Allow CC to be a program name with arguments.
23987 lt_save_CC="$CC"
23988 CC=${GCJ-"gcj"}
23989 compiler=$CC
23990 compiler_GCJ=$CC
23991 for cc_temp in $compiler""; do
23992   case $cc_temp in
23993     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23994     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23995     \-*) ;;
23996     *) break;;
23997   esac
23998 done
23999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24000
24001
24002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24003 archive_cmds_need_lc_GCJ=no
24004
24005 old_archive_cmds_GCJ=$old_archive_cmds
24006
24007
24008 lt_prog_compiler_no_builtin_flag_GCJ=
24009
24010 if test "$GCC" = yes; then
24011   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24012
24013
24014 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24015 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24016 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24017   echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019   lt_cv_prog_compiler_rtti_exceptions=no
24020   ac_outfile=conftest.$ac_objext
24021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022    lt_compiler_flag="-fno-rtti -fno-exceptions"
24023    # Insert the option either (1) after the last *FLAGS variable, or
24024    # (2) before a word containing "conftest.", or (3) at the end.
24025    # Note that $ac_compile itself does not contain backslashes and begins
24026    # with a dollar sign (not a hyphen), so the echo should work correctly.
24027    # The option is referenced via a variable to avoid confusing sed.
24028    lt_compile=`echo "$ac_compile" | $SED \
24029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031    -e 's:$: $lt_compiler_flag:'`
24032    (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
24033    (eval "$lt_compile" 2>conftest.err)
24034    ac_status=$?
24035    cat conftest.err >&5
24036    echo "$as_me:24036: \$? = $ac_status" >&5
24037    if (exit $ac_status) && test -s "$ac_outfile"; then
24038      # The compiler can only warn and ignore the option if not recognized
24039      # So say no if there are warnings other than the usual output.
24040      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24043        lt_cv_prog_compiler_rtti_exceptions=yes
24044      fi
24045    fi
24046    $rm conftest*
24047
24048 fi
24049 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24050 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24051
24052 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24053     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24054 else
24055     :
24056 fi
24057
24058 fi
24059
24060 lt_prog_compiler_wl_GCJ=
24061 lt_prog_compiler_pic_GCJ=
24062 lt_prog_compiler_static_GCJ=
24063
24064 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24065 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24066
24067   if test "$GCC" = yes; then
24068     lt_prog_compiler_wl_GCJ='-Wl,'
24069     lt_prog_compiler_static_GCJ='-static'
24070
24071     case $host_os in
24072       aix*)
24073       # All AIX code is PIC.
24074       if test "$host_cpu" = ia64; then
24075         # AIX 5 now supports IA64 processor
24076         lt_prog_compiler_static_GCJ='-Bstatic'
24077       fi
24078       ;;
24079
24080     amigaos*)
24081       # FIXME: we need at least 68020 code to build shared libraries, but
24082       # adding the `-m68020' flag to GCC prevents building anything better,
24083       # like `-m68040'.
24084       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24085       ;;
24086
24087     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24088       # PIC is the default for these OSes.
24089       ;;
24090
24091     mingw* | pw32* | os2*)
24092       # This hack is so that the source file can tell whether it is being
24093       # built for inclusion in a dll (and should export symbols for example).
24094       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24095       ;;
24096
24097     darwin* | rhapsody*)
24098       # PIC is the default on this platform
24099       # Common symbols not allowed in MH_DYLIB files
24100       lt_prog_compiler_pic_GCJ='-fno-common'
24101       ;;
24102
24103     interix3*)
24104       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24105       # Instead, we relocate shared libraries at runtime.
24106       ;;
24107
24108     msdosdjgpp*)
24109       # Just because we use GCC doesn't mean we suddenly get shared libraries
24110       # on systems that don't support them.
24111       lt_prog_compiler_can_build_shared_GCJ=no
24112       enable_shared=no
24113       ;;
24114
24115     sysv4*MP*)
24116       if test -d /usr/nec; then
24117         lt_prog_compiler_pic_GCJ=-Kconform_pic
24118       fi
24119       ;;
24120
24121     hpux*)
24122       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24123       # not for PA HP-UX.
24124       case $host_cpu in
24125       hppa*64*|ia64*)
24126         # +Z the default
24127         ;;
24128       *)
24129         lt_prog_compiler_pic_GCJ='-fPIC'
24130         ;;
24131       esac
24132       ;;
24133
24134     *)
24135       lt_prog_compiler_pic_GCJ='-fPIC'
24136       ;;
24137     esac
24138   else
24139     # PORTME Check for flag to pass linker flags through the system compiler.
24140     case $host_os in
24141     aix*)
24142       lt_prog_compiler_wl_GCJ='-Wl,'
24143       if test "$host_cpu" = ia64; then
24144         # AIX 5 now supports IA64 processor
24145         lt_prog_compiler_static_GCJ='-Bstatic'
24146       else
24147         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24148       fi
24149       ;;
24150       darwin*)
24151         # PIC is the default on this platform
24152         # Common symbols not allowed in MH_DYLIB files
24153        case $cc_basename in
24154          xlc*)
24155          lt_prog_compiler_pic_GCJ='-qnocommon'
24156          lt_prog_compiler_wl_GCJ='-Wl,'
24157          ;;
24158        esac
24159        ;;
24160
24161     mingw* | pw32* | os2*)
24162       # This hack is so that the source file can tell whether it is being
24163       # built for inclusion in a dll (and should export symbols for example).
24164       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24165       ;;
24166
24167     hpux9* | hpux10* | hpux11*)
24168       lt_prog_compiler_wl_GCJ='-Wl,'
24169       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24170       # not for PA HP-UX.
24171       case $host_cpu in
24172       hppa*64*|ia64*)
24173         # +Z the default
24174         ;;
24175       *)
24176         lt_prog_compiler_pic_GCJ='+Z'
24177         ;;
24178       esac
24179       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24180       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24181       ;;
24182
24183     irix5* | irix6* | nonstopux*)
24184       lt_prog_compiler_wl_GCJ='-Wl,'
24185       # PIC (with -KPIC) is the default.
24186       lt_prog_compiler_static_GCJ='-non_shared'
24187       ;;
24188
24189     newsos6)
24190       lt_prog_compiler_pic_GCJ='-KPIC'
24191       lt_prog_compiler_static_GCJ='-Bstatic'
24192       ;;
24193
24194     linux*)
24195       case $cc_basename in
24196       icc* | ecc*)
24197         lt_prog_compiler_wl_GCJ='-Wl,'
24198         lt_prog_compiler_pic_GCJ='-KPIC'
24199         lt_prog_compiler_static_GCJ='-static'
24200         ;;
24201       pgcc* | pgf77* | pgf90* | pgf95*)
24202         # Portland Group compilers (*not* the Pentium gcc compiler,
24203         # which looks to be a dead project)
24204         lt_prog_compiler_wl_GCJ='-Wl,'
24205         lt_prog_compiler_pic_GCJ='-fpic'
24206         lt_prog_compiler_static_GCJ='-Bstatic'
24207         ;;
24208       ccc*)
24209         lt_prog_compiler_wl_GCJ='-Wl,'
24210         # All Alpha code is PIC.
24211         lt_prog_compiler_static_GCJ='-non_shared'
24212         ;;
24213       esac
24214       ;;
24215
24216     osf3* | osf4* | osf5*)
24217       lt_prog_compiler_wl_GCJ='-Wl,'
24218       # All OSF/1 code is PIC.
24219       lt_prog_compiler_static_GCJ='-non_shared'
24220       ;;
24221
24222     solaris*)
24223       lt_prog_compiler_pic_GCJ='-KPIC'
24224       lt_prog_compiler_static_GCJ='-Bstatic'
24225       case $cc_basename in
24226       f77* | f90* | f95*)
24227         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24228       *)
24229         lt_prog_compiler_wl_GCJ='-Wl,';;
24230       esac
24231       ;;
24232
24233     sunos4*)
24234       lt_prog_compiler_wl_GCJ='-Qoption ld '
24235       lt_prog_compiler_pic_GCJ='-PIC'
24236       lt_prog_compiler_static_GCJ='-Bstatic'
24237       ;;
24238
24239     sysv4 | sysv4.2uw2* | sysv4.3*)
24240       lt_prog_compiler_wl_GCJ='-Wl,'
24241       lt_prog_compiler_pic_GCJ='-KPIC'
24242       lt_prog_compiler_static_GCJ='-Bstatic'
24243       ;;
24244
24245     sysv4*MP*)
24246       if test -d /usr/nec ;then
24247         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24248         lt_prog_compiler_static_GCJ='-Bstatic'
24249       fi
24250       ;;
24251
24252     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24253       lt_prog_compiler_wl_GCJ='-Wl,'
24254       lt_prog_compiler_pic_GCJ='-KPIC'
24255       lt_prog_compiler_static_GCJ='-Bstatic'
24256       ;;
24257
24258     unicos*)
24259       lt_prog_compiler_wl_GCJ='-Wl,'
24260       lt_prog_compiler_can_build_shared_GCJ=no
24261       ;;
24262
24263     uts4*)
24264       lt_prog_compiler_pic_GCJ='-pic'
24265       lt_prog_compiler_static_GCJ='-Bstatic'
24266       ;;
24267
24268     *)
24269       lt_prog_compiler_can_build_shared_GCJ=no
24270       ;;
24271     esac
24272   fi
24273
24274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24275 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24276
24277 #
24278 # Check to make sure the PIC flag actually works.
24279 #
24280 if test -n "$lt_prog_compiler_pic_GCJ"; then
24281
24282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24284 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24285   echo $ECHO_N "(cached) $ECHO_C" >&6
24286 else
24287   lt_prog_compiler_pic_works_GCJ=no
24288   ac_outfile=conftest.$ac_objext
24289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24290    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24291    # Insert the option either (1) after the last *FLAGS variable, or
24292    # (2) before a word containing "conftest.", or (3) at the end.
24293    # Note that $ac_compile itself does not contain backslashes and begins
24294    # with a dollar sign (not a hyphen), so the echo should work correctly.
24295    # The option is referenced via a variable to avoid confusing sed.
24296    lt_compile=`echo "$ac_compile" | $SED \
24297    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24299    -e 's:$: $lt_compiler_flag:'`
24300    (eval echo "\"\$as_me:24300: $lt_compile\"" >&5)
24301    (eval "$lt_compile" 2>conftest.err)
24302    ac_status=$?
24303    cat conftest.err >&5
24304    echo "$as_me:24304: \$? = $ac_status" >&5
24305    if (exit $ac_status) && test -s "$ac_outfile"; then
24306      # The compiler can only warn and ignore the option if not recognized
24307      # So say no if there are warnings other than the usual output.
24308      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24309      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24310      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24311        lt_prog_compiler_pic_works_GCJ=yes
24312      fi
24313    fi
24314    $rm conftest*
24315
24316 fi
24317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24318 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24319
24320 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24321     case $lt_prog_compiler_pic_GCJ in
24322      "" | " "*) ;;
24323      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24324      esac
24325 else
24326     lt_prog_compiler_pic_GCJ=
24327      lt_prog_compiler_can_build_shared_GCJ=no
24328 fi
24329
24330 fi
24331 case $host_os in
24332   # For platforms which do not support PIC, -DPIC is meaningless:
24333   *djgpp*)
24334     lt_prog_compiler_pic_GCJ=
24335     ;;
24336   *)
24337     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24338     ;;
24339 esac
24340
24341 #
24342 # Check to make sure the static flag actually works.
24343 #
24344 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24347 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350   lt_prog_compiler_static_works_GCJ=no
24351    save_LDFLAGS="$LDFLAGS"
24352    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24353    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24354    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24355      # The linker can only warn and ignore the option if not recognized
24356      # So say no if there are warnings
24357      if test -s conftest.err; then
24358        # Append any errors to the config.log.
24359        cat conftest.err 1>&5
24360        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24361        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24362        if diff conftest.exp conftest.er2 >/dev/null; then
24363          lt_prog_compiler_static_works_GCJ=yes
24364        fi
24365      else
24366        lt_prog_compiler_static_works_GCJ=yes
24367      fi
24368    fi
24369    $rm conftest*
24370    LDFLAGS="$save_LDFLAGS"
24371
24372 fi
24373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24374 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24375
24376 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24377     :
24378 else
24379     lt_prog_compiler_static_GCJ=
24380 fi
24381
24382
24383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24385 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388   lt_cv_prog_compiler_c_o_GCJ=no
24389    $rm -r conftest 2>/dev/null
24390    mkdir conftest
24391    cd conftest
24392    mkdir out
24393    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24394
24395    lt_compiler_flag="-o out/conftest2.$ac_objext"
24396    # Insert the option either (1) after the last *FLAGS variable, or
24397    # (2) before a word containing "conftest.", or (3) at the end.
24398    # Note that $ac_compile itself does not contain backslashes and begins
24399    # with a dollar sign (not a hyphen), so the echo should work correctly.
24400    lt_compile=`echo "$ac_compile" | $SED \
24401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24403    -e 's:$: $lt_compiler_flag:'`
24404    (eval echo "\"\$as_me:24404: $lt_compile\"" >&5)
24405    (eval "$lt_compile" 2>out/conftest.err)
24406    ac_status=$?
24407    cat out/conftest.err >&5
24408    echo "$as_me:24408: \$? = $ac_status" >&5
24409    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24410    then
24411      # The compiler can only warn and ignore the option if not recognized
24412      # So say no if there are warnings
24413      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24414      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24415      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24416        lt_cv_prog_compiler_c_o_GCJ=yes
24417      fi
24418    fi
24419    chmod u+w . 2>&5
24420    $rm conftest*
24421    # SGI C++ compiler will create directory out/ii_files/ for
24422    # template instantiation
24423    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24424    $rm out/* && rmdir out
24425    cd ..
24426    rmdir conftest
24427    $rm conftest*
24428
24429 fi
24430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24432
24433
24434 hard_links="nottested"
24435 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24436   # do not overwrite the value of need_locks provided by the user
24437   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24439   hard_links=yes
24440   $rm conftest*
24441   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24442   touch conftest.a
24443   ln conftest.a conftest.b 2>&5 || hard_links=no
24444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24445   { echo "$as_me:$LINENO: result: $hard_links" >&5
24446 echo "${ECHO_T}$hard_links" >&6; }
24447   if test "$hard_links" = no; then
24448     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24450     need_locks=warn
24451   fi
24452 else
24453   need_locks=no
24454 fi
24455
24456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24458
24459   runpath_var=
24460   allow_undefined_flag_GCJ=
24461   enable_shared_with_static_runtimes_GCJ=no
24462   archive_cmds_GCJ=
24463   archive_expsym_cmds_GCJ=
24464   old_archive_From_new_cmds_GCJ=
24465   old_archive_from_expsyms_cmds_GCJ=
24466   export_dynamic_flag_spec_GCJ=
24467   whole_archive_flag_spec_GCJ=
24468   thread_safe_flag_spec_GCJ=
24469   hardcode_libdir_flag_spec_GCJ=
24470   hardcode_libdir_flag_spec_ld_GCJ=
24471   hardcode_libdir_separator_GCJ=
24472   hardcode_direct_GCJ=no
24473   hardcode_minus_L_GCJ=no
24474   hardcode_shlibpath_var_GCJ=unsupported
24475   link_all_deplibs_GCJ=unknown
24476   hardcode_automatic_GCJ=no
24477   module_cmds_GCJ=
24478   module_expsym_cmds_GCJ=
24479   always_export_symbols_GCJ=no
24480   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24481   # include_expsyms should be a list of space-separated symbols to be *always*
24482   # included in the symbol list
24483   include_expsyms_GCJ=
24484   # exclude_expsyms can be an extended regexp of symbols to exclude
24485   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24486   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24487   # as well as any symbol that contains `d'.
24488   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24489   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24490   # platforms (ab)use it in PIC code, but their linkers get confused if
24491   # the symbol is explicitly referenced.  Since portable code cannot
24492   # rely on this symbol name, it's probably fine to never include it in
24493   # preloaded symbol tables.
24494   extract_expsyms_cmds=
24495   # Just being paranoid about ensuring that cc_basename is set.
24496   for cc_temp in $compiler""; do
24497   case $cc_temp in
24498     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24499     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24500     \-*) ;;
24501     *) break;;
24502   esac
24503 done
24504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24505
24506   case $host_os in
24507   cygwin* | mingw* | pw32*)
24508     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24509     # When not using gcc, we currently assume that we are using
24510     # Microsoft Visual C++.
24511     if test "$GCC" != yes; then
24512       with_gnu_ld=no
24513     fi
24514     ;;
24515   interix*)
24516     # we just hope/assume this is gcc and not c89 (= MSVC++)
24517     with_gnu_ld=yes
24518     ;;
24519   openbsd*)
24520     with_gnu_ld=no
24521     ;;
24522   esac
24523
24524   ld_shlibs_GCJ=yes
24525   if test "$with_gnu_ld" = yes; then
24526     # If archive_cmds runs LD, not CC, wlarc should be empty
24527     wlarc='${wl}'
24528
24529     # Set some defaults for GNU ld with shared library support. These
24530     # are reset later if shared libraries are not supported. Putting them
24531     # here allows them to be overridden if necessary.
24532     runpath_var=LD_RUN_PATH
24533     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24534     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24535     # ancient GNU ld didn't support --whole-archive et. al.
24536     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24537         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24538       else
24539         whole_archive_flag_spec_GCJ=
24540     fi
24541     supports_anon_versioning=no
24542     case `$LD -v 2>/dev/null` in
24543       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24544       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24545       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24546       *\ 2.11.*) ;; # other 2.11 versions
24547       *) supports_anon_versioning=yes ;;
24548     esac
24549
24550     # See if GNU ld supports shared libraries.
24551     case $host_os in
24552     aix3* | aix4* | aix5*)
24553       # On AIX/PPC, the GNU linker is very broken
24554       if test "$host_cpu" != ia64; then
24555         ld_shlibs_GCJ=no
24556         cat <<EOF 1>&2
24557
24558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24559 *** to be unable to reliably create shared libraries on AIX.
24560 *** Therefore, libtool is disabling shared libraries support.  If you
24561 *** really care for shared libraries, you may want to modify your PATH
24562 *** so that a non-GNU linker is found, and then restart.
24563
24564 EOF
24565       fi
24566       ;;
24567
24568     amigaos*)
24569       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)'
24570       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24571       hardcode_minus_L_GCJ=yes
24572
24573       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24574       # that the semantics of dynamic libraries on AmigaOS, at least up
24575       # to version 4, is to share data among multiple programs linked
24576       # with the same dynamic library.  Since this doesn't match the
24577       # behavior of shared libraries on other platforms, we can't use
24578       # them.
24579       ld_shlibs_GCJ=no
24580       ;;
24581
24582     beos*)
24583       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24584         allow_undefined_flag_GCJ=unsupported
24585         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24586         # support --undefined.  This deserves some investigation.  FIXME
24587         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24588       else
24589         ld_shlibs_GCJ=no
24590       fi
24591       ;;
24592
24593     cygwin* | mingw* | pw32*)
24594       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24595       # as there is no search path for DLLs.
24596       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24597       allow_undefined_flag_GCJ=unsupported
24598       always_export_symbols_GCJ=no
24599       enable_shared_with_static_runtimes_GCJ=yes
24600       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24601
24602       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24603         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24604         # If the export-symbols file already is a .def file (1st line
24605         # is EXPORTS), use it as is; otherwise, prepend...
24606         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24607           cp $export_symbols $output_objdir/$soname.def;
24608         else
24609           echo EXPORTS > $output_objdir/$soname.def;
24610           cat $export_symbols >> $output_objdir/$soname.def;
24611         fi~
24612         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24613       else
24614         ld_shlibs_GCJ=no
24615       fi
24616       ;;
24617
24618     interix3*)
24619       hardcode_direct_GCJ=no
24620       hardcode_shlibpath_var_GCJ=no
24621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24622       export_dynamic_flag_spec_GCJ='${wl}-E'
24623       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24624       # Instead, shared libraries are loaded at an image base (0x10000000 by
24625       # default) and relocated if they conflict, which is a slow very memory
24626       # consuming and fragmenting process.  To avoid this, we pick a random,
24627       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24628       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24629       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'
24630       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'
24631       ;;
24632
24633     linux*)
24634       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24635         tmp_addflag=
24636         case $cc_basename,$host_cpu in
24637         pgcc*)                          # Portland Group C compiler
24638           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'
24639           tmp_addflag=' $pic_flag'
24640           ;;
24641         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24642           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'
24643           tmp_addflag=' $pic_flag -Mnomain' ;;
24644         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24645           tmp_addflag=' -i_dynamic' ;;
24646         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24647           tmp_addflag=' -i_dynamic -nofor_main' ;;
24648         ifc* | ifort*)                  # Intel Fortran compiler
24649           tmp_addflag=' -nofor_main' ;;
24650         esac
24651         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24652
24653         if test $supports_anon_versioning = yes; then
24654           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24655   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24656   $echo "local: *; };" >> $output_objdir/$libname.ver~
24657           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24658         fi
24659       else
24660         ld_shlibs_GCJ=no
24661       fi
24662       ;;
24663
24664     netbsd*)
24665       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24666         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24667         wlarc=
24668       else
24669         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24670         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24671       fi
24672       ;;
24673
24674     solaris*)
24675       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24676         ld_shlibs_GCJ=no
24677         cat <<EOF 1>&2
24678
24679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24680 *** create shared libraries on Solaris systems.  Therefore, libtool
24681 *** is disabling shared libraries support.  We urge you to upgrade GNU
24682 *** binutils to release 2.9.1 or newer.  Another option is to modify
24683 *** your PATH or compiler configuration so that the native linker is
24684 *** used, and then restart.
24685
24686 EOF
24687       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24688         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24690       else
24691         ld_shlibs_GCJ=no
24692       fi
24693       ;;
24694
24695     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24696       case `$LD -v 2>&1` in
24697         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24698         ld_shlibs_GCJ=no
24699         cat <<_LT_EOF 1>&2
24700
24701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24702 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24703 *** is disabling shared libraries support.  We urge you to upgrade GNU
24704 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24705 *** your PATH or compiler configuration so that the native linker is
24706 *** used, and then restart.
24707
24708 _LT_EOF
24709         ;;
24710         *)
24711           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24712             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24713             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24714             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24715           else
24716             ld_shlibs_GCJ=no
24717           fi
24718         ;;
24719       esac
24720       ;;
24721
24722     sunos4*)
24723       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724       wlarc=
24725       hardcode_direct_GCJ=yes
24726       hardcode_shlibpath_var_GCJ=no
24727       ;;
24728
24729     *)
24730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24731         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24732         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24733       else
24734         ld_shlibs_GCJ=no
24735       fi
24736       ;;
24737     esac
24738
24739     if test "$ld_shlibs_GCJ" = no; then
24740       runpath_var=
24741       hardcode_libdir_flag_spec_GCJ=
24742       export_dynamic_flag_spec_GCJ=
24743       whole_archive_flag_spec_GCJ=
24744     fi
24745   else
24746     # PORTME fill in a description of your system's linker (not GNU ld)
24747     case $host_os in
24748     aix3*)
24749       allow_undefined_flag_GCJ=unsupported
24750       always_export_symbols_GCJ=yes
24751       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'
24752       # Note: this linker hardcodes the directories in LIBPATH if there
24753       # are no directories specified by -L.
24754       hardcode_minus_L_GCJ=yes
24755       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24756         # Neither direct hardcoding nor static linking is supported with a
24757         # broken collect2.
24758         hardcode_direct_GCJ=unsupported
24759       fi
24760       ;;
24761
24762     aix4* | aix5*)
24763       if test "$host_cpu" = ia64; then
24764         # On IA64, the linker does run time linking by default, so we don't
24765         # have to do anything special.
24766         aix_use_runtimelinking=no
24767         exp_sym_flag='-Bexport'
24768         no_entry_flag=""
24769       else
24770         # If we're using GNU nm, then we don't want the "-C" option.
24771         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24772         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24773           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'
24774         else
24775           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'
24776         fi
24777         aix_use_runtimelinking=no
24778
24779         # Test if we are trying to use run time linking or normal
24780         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24781         # need to do runtime linking.
24782         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24783           for ld_flag in $LDFLAGS; do
24784           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24785             aix_use_runtimelinking=yes
24786             break
24787           fi
24788           done
24789           ;;
24790         esac
24791
24792         exp_sym_flag='-bexport'
24793         no_entry_flag='-bnoentry'
24794       fi
24795
24796       # When large executables or shared objects are built, AIX ld can
24797       # have problems creating the table of contents.  If linking a library
24798       # or program results in "error TOC overflow" add -mminimal-toc to
24799       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24800       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24801
24802       archive_cmds_GCJ=''
24803       hardcode_direct_GCJ=yes
24804       hardcode_libdir_separator_GCJ=':'
24805       link_all_deplibs_GCJ=yes
24806
24807       if test "$GCC" = yes; then
24808         case $host_os in aix4.[012]|aix4.[012].*)
24809         # We only want to do this on AIX 4.2 and lower, the check
24810         # below for broken collect2 doesn't work under 4.3+
24811           collect2name=`${CC} -print-prog-name=collect2`
24812           if test -f "$collect2name" && \
24813            strings "$collect2name" | grep resolve_lib_name >/dev/null
24814           then
24815           # We have reworked collect2
24816           hardcode_direct_GCJ=yes
24817           else
24818           # We have old collect2
24819           hardcode_direct_GCJ=unsupported
24820           # It fails to find uninstalled libraries when the uninstalled
24821           # path is not listed in the libpath.  Setting hardcode_minus_L
24822           # to unsupported forces relinking
24823           hardcode_minus_L_GCJ=yes
24824           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24825           hardcode_libdir_separator_GCJ=
24826           fi
24827           ;;
24828         esac
24829         shared_flag='-shared'
24830         if test "$aix_use_runtimelinking" = yes; then
24831           shared_flag="$shared_flag "'${wl}-G'
24832         fi
24833       else
24834         # not using gcc
24835         if test "$host_cpu" = ia64; then
24836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24837         # chokes on -Wl,-G. The following line is correct:
24838           shared_flag='-G'
24839         else
24840           if test "$aix_use_runtimelinking" = yes; then
24841             shared_flag='${wl}-G'
24842           else
24843             shared_flag='${wl}-bM:SRE'
24844           fi
24845         fi
24846       fi
24847
24848       # It seems that -bexpall does not export symbols beginning with
24849       # underscore (_), so it is better to generate a list of symbols to export.
24850       always_export_symbols_GCJ=yes
24851       if test "$aix_use_runtimelinking" = yes; then
24852         # Warning - without using the other runtime loading flags (-brtl),
24853         # -berok will link without error, but may produce a broken library.
24854         allow_undefined_flag_GCJ='-berok'
24855        # Determine the default libpath from the value encoded in an empty executable.
24856        cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862
24863 int
24864 main ()
24865 {
24866
24867   ;
24868   return 0;
24869 }
24870 _ACEOF
24871 rm -f conftest.$ac_objext conftest$ac_exeext
24872 if { (ac_try="$ac_link"
24873 case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878   (eval "$ac_link") 2>conftest.er1
24879   ac_status=$?
24880   grep -v '^ *+' conftest.er1 >conftest.err
24881   rm -f conftest.er1
24882   cat conftest.err >&5
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } &&
24885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886   { (case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_try") 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; } &&
24895          { ac_try='test -s conftest$ac_exeext'
24896   { (case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_try") 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); }; }; then
24905
24906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24907 }'`
24908 # Check for a 64-bit object if we didn't find anything.
24909 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; }
24910 }'`; fi
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915
24916 fi
24917
24918 rm -f core conftest.err conftest.$ac_objext \
24919       conftest$ac_exeext conftest.$ac_ext
24920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24921
24922        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24923         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"
24924        else
24925         if test "$host_cpu" = ia64; then
24926           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24927           allow_undefined_flag_GCJ="-z nodefs"
24928           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"
24929         else
24930          # Determine the default libpath from the value encoded in an empty executable.
24931          cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937
24938 int
24939 main ()
24940 {
24941
24942   ;
24943   return 0;
24944 }
24945 _ACEOF
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950   *) ac_try_echo=$ac_try;;
24951 esac
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953   (eval "$ac_link") 2>conftest.er1
24954   ac_status=$?
24955   grep -v '^ *+' conftest.er1 >conftest.err
24956   rm -f conftest.er1
24957   cat conftest.err >&5
24958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959   (exit $ac_status); } &&
24960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961   { (case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966   (eval "$ac_try") 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; } &&
24970          { ac_try='test -s conftest$ac_exeext'
24971   { (case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_try") 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980
24981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24982 }'`
24983 # Check for a 64-bit object if we didn't find anything.
24984 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; }
24985 }'`; fi
24986 else
24987   echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24989
24990
24991 fi
24992
24993 rm -f core conftest.err conftest.$ac_objext \
24994       conftest$ac_exeext conftest.$ac_ext
24995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24996
24997          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24998           # Warning - without using the other run time loading flags,
24999           # -berok will link without error, but may produce a broken library.
25000           no_undefined_flag_GCJ=' ${wl}-bernotok'
25001           allow_undefined_flag_GCJ=' ${wl}-berok'
25002           # Exported symbols can be pulled into shared objects from archives
25003           whole_archive_flag_spec_GCJ='$convenience'
25004           archive_cmds_need_lc_GCJ=yes
25005           # This is similar to how AIX traditionally builds its shared libraries.
25006           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'
25007         fi
25008       fi
25009       ;;
25010
25011     amigaos*)
25012       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)'
25013       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25014       hardcode_minus_L_GCJ=yes
25015       # see comment about different semantics on the GNU ld section
25016       ld_shlibs_GCJ=no
25017       ;;
25018
25019     bsdi[45]*)
25020       export_dynamic_flag_spec_GCJ=-rdynamic
25021       ;;
25022
25023     cygwin* | mingw* | pw32*)
25024       # When not using gcc, we currently assume that we are using
25025       # Microsoft Visual C++.
25026       # hardcode_libdir_flag_spec is actually meaningless, as there is
25027       # no search path for DLLs.
25028       hardcode_libdir_flag_spec_GCJ=' '
25029       allow_undefined_flag_GCJ=unsupported
25030       # Tell ltmain to make .lib files, not .a files.
25031       libext=lib
25032       # Tell ltmain to make .dll files, not .so files.
25033       shrext_cmds=".dll"
25034       # FIXME: Setting linknames here is a bad hack.
25035       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25036       # The linker will automatically build a .lib file if we build a DLL.
25037       old_archive_From_new_cmds_GCJ='true'
25038       # FIXME: Should let the user specify the lib program.
25039       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25040       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25041       enable_shared_with_static_runtimes_GCJ=yes
25042       ;;
25043
25044     darwin* | rhapsody*)
25045       case $host_os in
25046         rhapsody* | darwin1.[012])
25047          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25048          ;;
25049        *) # Darwin 1.3 on
25050          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25051            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25052          else
25053            case ${MACOSX_DEPLOYMENT_TARGET} in
25054              10.[012])
25055                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25056                ;;
25057              10.*)
25058                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25059                ;;
25060            esac
25061          fi
25062          ;;
25063       esac
25064       archive_cmds_need_lc_GCJ=no
25065       hardcode_direct_GCJ=no
25066       hardcode_automatic_GCJ=yes
25067       hardcode_shlibpath_var_GCJ=unsupported
25068       whole_archive_flag_spec_GCJ=''
25069       link_all_deplibs_GCJ=yes
25070     if test "$GCC" = yes ; then
25071         output_verbose_link_cmd='echo'
25072         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25073       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25074       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25075       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}'
25076       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}'
25077     else
25078       case $cc_basename in
25079         xlc*)
25080          output_verbose_link_cmd='echo'
25081          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25082          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25083           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25084          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}'
25085           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}'
25086           ;;
25087        *)
25088          ld_shlibs_GCJ=no
25089           ;;
25090       esac
25091     fi
25092       ;;
25093
25094     dgux*)
25095       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097       hardcode_shlibpath_var_GCJ=no
25098       ;;
25099
25100     freebsd1*)
25101       ld_shlibs_GCJ=no
25102       ;;
25103
25104     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25105     # support.  Future versions do this automatically, but an explicit c++rt0.o
25106     # does not break anything, and helps significantly (at the cost of a little
25107     # extra space).
25108     freebsd2.2*)
25109       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25110       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25111       hardcode_direct_GCJ=yes
25112       hardcode_shlibpath_var_GCJ=no
25113       ;;
25114
25115     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25116     freebsd2*)
25117       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25118       hardcode_direct_GCJ=yes
25119       hardcode_minus_L_GCJ=yes
25120       hardcode_shlibpath_var_GCJ=no
25121       ;;
25122
25123     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25124     freebsd* | kfreebsd*-gnu | dragonfly*)
25125       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25126       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127       hardcode_direct_GCJ=yes
25128       hardcode_shlibpath_var_GCJ=no
25129       ;;
25130
25131     hpux9*)
25132       if test "$GCC" = yes; then
25133         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'
25134       else
25135         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'
25136       fi
25137       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25138       hardcode_libdir_separator_GCJ=:
25139       hardcode_direct_GCJ=yes
25140
25141       # hardcode_minus_L: Not really in the search PATH,
25142       # but as the default location of the library.
25143       hardcode_minus_L_GCJ=yes
25144       export_dynamic_flag_spec_GCJ='${wl}-E'
25145       ;;
25146
25147     hpux10*)
25148       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25149         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25150       else
25151         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25152       fi
25153       if test "$with_gnu_ld" = no; then
25154         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25155         hardcode_libdir_separator_GCJ=:
25156
25157         hardcode_direct_GCJ=yes
25158         export_dynamic_flag_spec_GCJ='${wl}-E'
25159
25160         # hardcode_minus_L: Not really in the search PATH,
25161         # but as the default location of the library.
25162         hardcode_minus_L_GCJ=yes
25163       fi
25164       ;;
25165
25166     hpux11*)
25167       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25168         case $host_cpu in
25169         hppa*64*)
25170           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25171           ;;
25172         ia64*)
25173           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25174           ;;
25175         *)
25176           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25177           ;;
25178         esac
25179       else
25180         case $host_cpu in
25181         hppa*64*)
25182           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25183           ;;
25184         ia64*)
25185           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25186           ;;
25187         *)
25188           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25189           ;;
25190         esac
25191       fi
25192       if test "$with_gnu_ld" = no; then
25193         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25194         hardcode_libdir_separator_GCJ=:
25195
25196         case $host_cpu in
25197         hppa*64*|ia64*)
25198           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25199           hardcode_direct_GCJ=no
25200           hardcode_shlibpath_var_GCJ=no
25201           ;;
25202         *)
25203           hardcode_direct_GCJ=yes
25204           export_dynamic_flag_spec_GCJ='${wl}-E'
25205
25206           # hardcode_minus_L: Not really in the search PATH,
25207           # but as the default location of the library.
25208           hardcode_minus_L_GCJ=yes
25209           ;;
25210         esac
25211       fi
25212       ;;
25213
25214     irix5* | irix6* | nonstopux*)
25215       if test "$GCC" = yes; then
25216         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'
25217       else
25218         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'
25219         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25220       fi
25221       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25222       hardcode_libdir_separator_GCJ=:
25223       link_all_deplibs_GCJ=yes
25224       ;;
25225
25226     netbsd*)
25227       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25228         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25229       else
25230         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25231       fi
25232       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233       hardcode_direct_GCJ=yes
25234       hardcode_shlibpath_var_GCJ=no
25235       ;;
25236
25237     newsos6)
25238       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25239       hardcode_direct_GCJ=yes
25240       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25241       hardcode_libdir_separator_GCJ=:
25242       hardcode_shlibpath_var_GCJ=no
25243       ;;
25244
25245     openbsd*)
25246       hardcode_direct_GCJ=yes
25247       hardcode_shlibpath_var_GCJ=no
25248       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25249         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25250         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25251         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25252         export_dynamic_flag_spec_GCJ='${wl}-E'
25253       else
25254        case $host_os in
25255          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25256            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25258            ;;
25259          *)
25260            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25261            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25262            ;;
25263        esac
25264       fi
25265       ;;
25266
25267     os2*)
25268       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25269       hardcode_minus_L_GCJ=yes
25270       allow_undefined_flag_GCJ=unsupported
25271       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'
25272       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25273       ;;
25274
25275     osf3*)
25276       if test "$GCC" = yes; then
25277         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25278         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'
25279       else
25280         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25281         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'
25282       fi
25283       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25284       hardcode_libdir_separator_GCJ=:
25285       ;;
25286
25287     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25288       if test "$GCC" = yes; then
25289         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25290         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'
25291         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25292       else
25293         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25294         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'
25295         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~
25296         $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'
25297
25298         # Both c and cxx compiler support -rpath directly
25299         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25300       fi
25301       hardcode_libdir_separator_GCJ=:
25302       ;;
25303
25304     solaris*)
25305       no_undefined_flag_GCJ=' -z text'
25306       if test "$GCC" = yes; then
25307         wlarc='${wl}'
25308         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25309         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25310           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25311       else
25312         wlarc=''
25313         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25314         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25315         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25316       fi
25317       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25318       hardcode_shlibpath_var_GCJ=no
25319       case $host_os in
25320       solaris2.[0-5] | solaris2.[0-5].*) ;;
25321       *)
25322         # The compiler driver will combine linker options so we
25323         # cannot just pass the convience library names through
25324         # without $wl, iff we do not link with $LD.
25325         # Luckily, gcc supports the same syntax we need for Sun Studio.
25326         # Supported since Solaris 2.6 (maybe 2.5.1?)
25327         case $wlarc in
25328         '')
25329           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25330         *)
25331           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' ;;
25332         esac ;;
25333       esac
25334       link_all_deplibs_GCJ=yes
25335       ;;
25336
25337     sunos4*)
25338       if test "x$host_vendor" = xsequent; then
25339         # Use $CC to link under sequent, because it throws in some extra .o
25340         # files that make .init and .fini sections work.
25341         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25342       else
25343         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25344       fi
25345       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25346       hardcode_direct_GCJ=yes
25347       hardcode_minus_L_GCJ=yes
25348       hardcode_shlibpath_var_GCJ=no
25349       ;;
25350
25351     sysv4)
25352       case $host_vendor in
25353         sni)
25354           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25355           hardcode_direct_GCJ=yes # is this really true???
25356         ;;
25357         siemens)
25358           ## LD is ld it makes a PLAMLIB
25359           ## CC just makes a GrossModule.
25360           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25361           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25362           hardcode_direct_GCJ=no
25363         ;;
25364         motorola)
25365           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25366           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25367         ;;
25368       esac
25369       runpath_var='LD_RUN_PATH'
25370       hardcode_shlibpath_var_GCJ=no
25371       ;;
25372
25373     sysv4.3*)
25374       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25375       hardcode_shlibpath_var_GCJ=no
25376       export_dynamic_flag_spec_GCJ='-Bexport'
25377       ;;
25378
25379     sysv4*MP*)
25380       if test -d /usr/nec; then
25381         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25382         hardcode_shlibpath_var_GCJ=no
25383         runpath_var=LD_RUN_PATH
25384         hardcode_runpath_var=yes
25385         ld_shlibs_GCJ=yes
25386       fi
25387       ;;
25388
25389     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25390       no_undefined_flag_GCJ='${wl}-z,text'
25391       archive_cmds_need_lc_GCJ=no
25392       hardcode_shlibpath_var_GCJ=no
25393       runpath_var='LD_RUN_PATH'
25394
25395       if test "$GCC" = yes; then
25396         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25397         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25398       else
25399         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25400         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25401       fi
25402       ;;
25403
25404     sysv5* | sco3.2v5* | sco5v6*)
25405       # Note: We can NOT use -z defs as we might desire, because we do not
25406       # link with -lc, and that would cause any symbols used from libc to
25407       # always be unresolved, which means just about no library would
25408       # ever link correctly.  If we're not using GNU ld we use -z text
25409       # though, which does catch some bad symbols but isn't as heavy-handed
25410       # as -z defs.
25411       no_undefined_flag_GCJ='${wl}-z,text'
25412       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25413       archive_cmds_need_lc_GCJ=no
25414       hardcode_shlibpath_var_GCJ=no
25415       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25416       hardcode_libdir_separator_GCJ=':'
25417       link_all_deplibs_GCJ=yes
25418       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25419       runpath_var='LD_RUN_PATH'
25420
25421       if test "$GCC" = yes; then
25422         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25424       else
25425         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25427       fi
25428       ;;
25429
25430     uts4*)
25431       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25432       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433       hardcode_shlibpath_var_GCJ=no
25434       ;;
25435
25436     *)
25437       ld_shlibs_GCJ=no
25438       ;;
25439     esac
25440   fi
25441
25442 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25443 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25444 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25445
25446 #
25447 # Do we need to explicitly link libc?
25448 #
25449 case "x$archive_cmds_need_lc_GCJ" in
25450 x|xyes)
25451   # Assume -lc should be added
25452   archive_cmds_need_lc_GCJ=yes
25453
25454   if test "$enable_shared" = yes && test "$GCC" = yes; then
25455     case $archive_cmds_GCJ in
25456     *'~'*)
25457       # FIXME: we may have to deal with multi-command sequences.
25458       ;;
25459     '$CC '*)
25460       # Test whether the compiler implicitly links with -lc since on some
25461       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25462       # to ld, don't add -lc before -lgcc.
25463       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25464 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25465       $rm conftest*
25466       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25467
25468       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469   (eval $ac_compile) 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); } 2>conftest.err; then
25473         soname=conftest
25474         lib=conftest
25475         libobjs=conftest.$ac_objext
25476         deplibs=
25477         wl=$lt_prog_compiler_wl_GCJ
25478         pic_flag=$lt_prog_compiler_pic_GCJ
25479         compiler_flags=-v
25480         linker_flags=-v
25481         verstring=
25482         output_objdir=.
25483         libname=conftest
25484         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25485         allow_undefined_flag_GCJ=
25486         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25487   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }
25491         then
25492           archive_cmds_need_lc_GCJ=no
25493         else
25494           archive_cmds_need_lc_GCJ=yes
25495         fi
25496         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25497       else
25498         cat conftest.err 1>&5
25499       fi
25500       $rm conftest*
25501       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25502 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25503       ;;
25504     esac
25505   fi
25506   ;;
25507 esac
25508
25509 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25510 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25511 library_names_spec=
25512 libname_spec='lib$name'
25513 soname_spec=
25514 shrext_cmds=".so"
25515 postinstall_cmds=
25516 postuninstall_cmds=
25517 finish_cmds=
25518 finish_eval=
25519 shlibpath_var=
25520 shlibpath_overrides_runpath=unknown
25521 version_type=none
25522 dynamic_linker="$host_os ld.so"
25523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25524 if test "$GCC" = yes; then
25525   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25526   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25527     # if the path contains ";" then we assume it to be the separator
25528     # otherwise default to the standard path separator (i.e. ":") - it is
25529     # assumed that no part of a normal pathname contains ";" but that should
25530     # okay in the real world where ";" in dirpaths is itself problematic.
25531     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25532   else
25533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25534   fi
25535 else
25536   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25537 fi
25538 need_lib_prefix=unknown
25539 hardcode_into_libs=no
25540
25541 # when you set need_version to no, make sure it does not cause -set_version
25542 # flags to be left without arguments
25543 need_version=unknown
25544
25545 case $host_os in
25546 aix3*)
25547   version_type=linux
25548   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25549   shlibpath_var=LIBPATH
25550
25551   # AIX 3 has no versioning support, so we append a major version to the name.
25552   soname_spec='${libname}${release}${shared_ext}$major'
25553   ;;
25554
25555 aix4* | aix5*)
25556   version_type=linux
25557   need_lib_prefix=no
25558   need_version=no
25559   hardcode_into_libs=yes
25560   if test "$host_cpu" = ia64; then
25561     # AIX 5 supports IA64
25562     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25563     shlibpath_var=LD_LIBRARY_PATH
25564   else
25565     # With GCC up to 2.95.x, collect2 would create an import file
25566     # for dependence libraries.  The import file would start with
25567     # the line `#! .'.  This would cause the generated library to
25568     # depend on `.', always an invalid library.  This was fixed in
25569     # development snapshots of GCC prior to 3.0.
25570     case $host_os in
25571       aix4 | aix4.[01] | aix4.[01].*)
25572       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25573            echo ' yes '
25574            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25575         :
25576       else
25577         can_build_shared=no
25578       fi
25579       ;;
25580     esac
25581     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25582     # soname into executable. Probably we can add versioning support to
25583     # collect2, so additional links can be useful in future.
25584     if test "$aix_use_runtimelinking" = yes; then
25585       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25586       # instead of lib<name>.a to let people know that these are not
25587       # typical AIX shared libraries.
25588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589     else
25590       # We preserve .a as extension for shared libraries through AIX4.2
25591       # and later when we are not doing run time linking.
25592       library_names_spec='${libname}${release}.a $libname.a'
25593       soname_spec='${libname}${release}${shared_ext}$major'
25594     fi
25595     shlibpath_var=LIBPATH
25596   fi
25597   ;;
25598
25599 amigaos*)
25600   library_names_spec='$libname.ixlibrary $libname.a'
25601   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25602   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'
25603   ;;
25604
25605 beos*)
25606   library_names_spec='${libname}${shared_ext}'
25607   dynamic_linker="$host_os ld.so"
25608   shlibpath_var=LIBRARY_PATH
25609   ;;
25610
25611 bsdi[45]*)
25612   version_type=linux
25613   need_version=no
25614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25615   soname_spec='${libname}${release}${shared_ext}$major'
25616   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25617   shlibpath_var=LD_LIBRARY_PATH
25618   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25619   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25620   # the default ld.so.conf also contains /usr/contrib/lib and
25621   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25622   # libtool to hard-code these into programs
25623   ;;
25624
25625 cygwin* | mingw* | pw32*)
25626   version_type=windows
25627   shrext_cmds=".dll"
25628   need_version=no
25629   need_lib_prefix=no
25630
25631   case $GCC,$host_os in
25632   yes,cygwin* | yes,mingw* | yes,pw32*)
25633     library_names_spec='$libname.dll.a'
25634     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25635     postinstall_cmds='base_file=`basename \${file}`~
25636       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25637       dldir=$destdir/`dirname \$dlpath`~
25638       test -d \$dldir || mkdir -p \$dldir~
25639       $install_prog $dir/$dlname \$dldir/$dlname~
25640       chmod a+x \$dldir/$dlname'
25641     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25642       dlpath=$dir/\$dldll~
25643        $rm \$dlpath'
25644     shlibpath_overrides_runpath=yes
25645
25646     case $host_os in
25647     cygwin*)
25648       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25649       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25650       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25651       ;;
25652     mingw*)
25653       # MinGW DLLs use traditional 'lib' prefix
25654       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25655       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25656       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25657         # It is most probably a Windows format PATH printed by
25658         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25659         # path with ; separators, and with drive letters. We can handle the
25660         # drive letters (cygwin fileutils understands them), so leave them,
25661         # especially as we might pass files found there to a mingw objdump,
25662         # which wouldn't understand a cygwinified path. Ahh.
25663         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664       else
25665         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25666       fi
25667       ;;
25668     pw32*)
25669       # pw32 DLLs use 'pw' prefix rather than 'lib'
25670       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25671       ;;
25672     esac
25673     ;;
25674
25675   *)
25676     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25677     ;;
25678   esac
25679   dynamic_linker='Win32 ld.exe'
25680   # FIXME: first we should search . and the directory the executable is in
25681   shlibpath_var=PATH
25682   ;;
25683
25684 darwin* | rhapsody*)
25685   dynamic_linker="$host_os dyld"
25686   version_type=darwin
25687   need_lib_prefix=no
25688   need_version=no
25689   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25690   soname_spec='${libname}${release}${major}$shared_ext'
25691   shlibpath_overrides_runpath=yes
25692   shlibpath_var=DYLD_LIBRARY_PATH
25693   shrext_cmds='.dylib'
25694   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25695   if test "$GCC" = yes; then
25696     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"`
25697   else
25698     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25699   fi
25700   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25701   ;;
25702
25703 dgux*)
25704   version_type=linux
25705   need_lib_prefix=no
25706   need_version=no
25707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25708   soname_spec='${libname}${release}${shared_ext}$major'
25709   shlibpath_var=LD_LIBRARY_PATH
25710   ;;
25711
25712 freebsd1*)
25713   dynamic_linker=no
25714   ;;
25715
25716 kfreebsd*-gnu)
25717   version_type=linux
25718   need_lib_prefix=no
25719   need_version=no
25720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25721   soname_spec='${libname}${release}${shared_ext}$major'
25722   shlibpath_var=LD_LIBRARY_PATH
25723   shlibpath_overrides_runpath=no
25724   hardcode_into_libs=yes
25725   dynamic_linker='GNU ld.so'
25726   ;;
25727
25728 freebsd* | dragonfly*)
25729   # DragonFly does not have aout.  When/if they implement a new
25730   # versioning mechanism, adjust this.
25731   if test -x /usr/bin/objformat; then
25732     objformat=`/usr/bin/objformat`
25733   else
25734     case $host_os in
25735     freebsd[123]*) objformat=aout ;;
25736     *) objformat=elf ;;
25737     esac
25738   fi
25739   version_type=freebsd-$objformat
25740   case $version_type in
25741     freebsd-elf*)
25742       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25743       need_version=no
25744       need_lib_prefix=no
25745       ;;
25746     freebsd-*)
25747       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25748       need_version=yes
25749       ;;
25750   esac
25751   shlibpath_var=LD_LIBRARY_PATH
25752   case $host_os in
25753   freebsd2*)
25754     shlibpath_overrides_runpath=yes
25755     ;;
25756   freebsd3.[01]* | freebsdelf3.[01]*)
25757     shlibpath_overrides_runpath=yes
25758     hardcode_into_libs=yes
25759     ;;
25760   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25761   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25762     shlibpath_overrides_runpath=no
25763     hardcode_into_libs=yes
25764     ;;
25765   freebsd*) # from 4.6 on
25766     shlibpath_overrides_runpath=yes
25767     hardcode_into_libs=yes
25768     ;;
25769   esac
25770   ;;
25771
25772 gnu*)
25773   version_type=linux
25774   need_lib_prefix=no
25775   need_version=no
25776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25777   soname_spec='${libname}${release}${shared_ext}$major'
25778   shlibpath_var=LD_LIBRARY_PATH
25779   hardcode_into_libs=yes
25780   ;;
25781
25782 hpux9* | hpux10* | hpux11*)
25783   # Give a soname corresponding to the major version so that dld.sl refuses to
25784   # link against other versions.
25785   version_type=sunos
25786   need_lib_prefix=no
25787   need_version=no
25788   case $host_cpu in
25789   ia64*)
25790     shrext_cmds='.so'
25791     hardcode_into_libs=yes
25792     dynamic_linker="$host_os dld.so"
25793     shlibpath_var=LD_LIBRARY_PATH
25794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25796     soname_spec='${libname}${release}${shared_ext}$major'
25797     if test "X$HPUX_IA64_MODE" = X32; then
25798       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25799     else
25800       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25801     fi
25802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25803     ;;
25804    hppa*64*)
25805      shrext_cmds='.sl'
25806      hardcode_into_libs=yes
25807      dynamic_linker="$host_os dld.sl"
25808      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25809      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811      soname_spec='${libname}${release}${shared_ext}$major'
25812      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25813      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25814      ;;
25815    *)
25816     shrext_cmds='.sl'
25817     dynamic_linker="$host_os dld.sl"
25818     shlibpath_var=SHLIB_PATH
25819     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821     soname_spec='${libname}${release}${shared_ext}$major'
25822     ;;
25823   esac
25824   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25825   postinstall_cmds='chmod 555 $lib'
25826   ;;
25827
25828 interix3*)
25829   version_type=linux
25830   need_lib_prefix=no
25831   need_version=no
25832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25833   soname_spec='${libname}${release}${shared_ext}$major'
25834   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25835   shlibpath_var=LD_LIBRARY_PATH
25836   shlibpath_overrides_runpath=no
25837   hardcode_into_libs=yes
25838   ;;
25839
25840 irix5* | irix6* | nonstopux*)
25841   case $host_os in
25842     nonstopux*) version_type=nonstopux ;;
25843     *)
25844         if test "$lt_cv_prog_gnu_ld" = yes; then
25845                 version_type=linux
25846         else
25847                 version_type=irix
25848         fi ;;
25849   esac
25850   need_lib_prefix=no
25851   need_version=no
25852   soname_spec='${libname}${release}${shared_ext}$major'
25853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25854   case $host_os in
25855   irix5* | nonstopux*)
25856     libsuff= shlibsuff=
25857     ;;
25858   *)
25859     case $LD in # libtool.m4 will add one of these switches to LD
25860     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25861       libsuff= shlibsuff= libmagic=32-bit;;
25862     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25863       libsuff=32 shlibsuff=N32 libmagic=N32;;
25864     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25865       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25866     *) libsuff= shlibsuff= libmagic=never-match;;
25867     esac
25868     ;;
25869   esac
25870   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25871   shlibpath_overrides_runpath=no
25872   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25873   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25874   hardcode_into_libs=yes
25875   ;;
25876
25877 # No shared lib support for Linux oldld, aout, or coff.
25878 linux*oldld* | linux*aout* | linux*coff*)
25879   dynamic_linker=no
25880   ;;
25881
25882 # This must be Linux ELF.
25883 linux*)
25884   version_type=linux
25885   need_lib_prefix=no
25886   need_version=no
25887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888   soname_spec='${libname}${release}${shared_ext}$major'
25889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25890   shlibpath_var=LD_LIBRARY_PATH
25891   shlibpath_overrides_runpath=no
25892   # This implies no fast_install, which is unacceptable.
25893   # Some rework will be needed to allow for fast_install
25894   # before this can be enabled.
25895   hardcode_into_libs=yes
25896
25897   # Append ld.so.conf contents to the search path
25898   if test -f /etc/ld.so.conf; then
25899     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' ' '`
25900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25901   fi
25902
25903   # We used to test for /lib/ld.so.1 and disable shared libraries on
25904   # powerpc, because MkLinux only supported shared libraries with the
25905   # GNU dynamic linker.  Since this was broken with cross compilers,
25906   # most powerpc-linux boxes support dynamic linking these days and
25907   # people can always --disable-shared, the test was removed, and we
25908   # assume the GNU/Linux dynamic linker is in use.
25909   dynamic_linker='GNU/Linux ld.so'
25910   ;;
25911
25912 knetbsd*-gnu)
25913   version_type=linux
25914   need_lib_prefix=no
25915   need_version=no
25916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25917   soname_spec='${libname}${release}${shared_ext}$major'
25918   shlibpath_var=LD_LIBRARY_PATH
25919   shlibpath_overrides_runpath=no
25920   hardcode_into_libs=yes
25921   dynamic_linker='GNU ld.so'
25922   ;;
25923
25924 netbsd*)
25925   version_type=sunos
25926   need_lib_prefix=no
25927   need_version=no
25928   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25931     dynamic_linker='NetBSD (a.out) ld.so'
25932   else
25933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25934     soname_spec='${libname}${release}${shared_ext}$major'
25935     dynamic_linker='NetBSD ld.elf_so'
25936   fi
25937   shlibpath_var=LD_LIBRARY_PATH
25938   shlibpath_overrides_runpath=yes
25939   hardcode_into_libs=yes
25940   ;;
25941
25942 newsos6)
25943   version_type=linux
25944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25945   shlibpath_var=LD_LIBRARY_PATH
25946   shlibpath_overrides_runpath=yes
25947   ;;
25948
25949 nto-qnx*)
25950   version_type=linux
25951   need_lib_prefix=no
25952   need_version=no
25953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25954   soname_spec='${libname}${release}${shared_ext}$major'
25955   shlibpath_var=LD_LIBRARY_PATH
25956   shlibpath_overrides_runpath=yes
25957   ;;
25958
25959 openbsd*)
25960   version_type=sunos
25961   sys_lib_dlsearch_path_spec="/usr/lib"
25962   need_lib_prefix=no
25963   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25964   case $host_os in
25965     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25966     *)                         need_version=no  ;;
25967   esac
25968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25969   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25970   shlibpath_var=LD_LIBRARY_PATH
25971   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25972     case $host_os in
25973       openbsd2.[89] | openbsd2.[89].*)
25974         shlibpath_overrides_runpath=no
25975         ;;
25976       *)
25977         shlibpath_overrides_runpath=yes
25978         ;;
25979       esac
25980   else
25981     shlibpath_overrides_runpath=yes
25982   fi
25983   ;;
25984
25985 os2*)
25986   libname_spec='$name'
25987   shrext_cmds=".dll"
25988   need_lib_prefix=no
25989   library_names_spec='$libname${shared_ext} $libname.a'
25990   dynamic_linker='OS/2 ld.exe'
25991   shlibpath_var=LIBPATH
25992   ;;
25993
25994 osf3* | osf4* | osf5*)
25995   version_type=osf
25996   need_lib_prefix=no
25997   need_version=no
25998   soname_spec='${libname}${release}${shared_ext}$major'
25999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000   shlibpath_var=LD_LIBRARY_PATH
26001   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26002   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26003   ;;
26004
26005 solaris*)
26006   version_type=linux
26007   need_lib_prefix=no
26008   need_version=no
26009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26010   soname_spec='${libname}${release}${shared_ext}$major'
26011   shlibpath_var=LD_LIBRARY_PATH
26012   shlibpath_overrides_runpath=yes
26013   hardcode_into_libs=yes
26014   # ldd complains unless libraries are executable
26015   postinstall_cmds='chmod +x $lib'
26016   ;;
26017
26018 sunos4*)
26019   version_type=sunos
26020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26022   shlibpath_var=LD_LIBRARY_PATH
26023   shlibpath_overrides_runpath=yes
26024   if test "$with_gnu_ld" = yes; then
26025     need_lib_prefix=no
26026   fi
26027   need_version=yes
26028   ;;
26029
26030 sysv4 | sysv4.3*)
26031   version_type=linux
26032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26033   soname_spec='${libname}${release}${shared_ext}$major'
26034   shlibpath_var=LD_LIBRARY_PATH
26035   case $host_vendor in
26036     sni)
26037       shlibpath_overrides_runpath=no
26038       need_lib_prefix=no
26039       export_dynamic_flag_spec='${wl}-Blargedynsym'
26040       runpath_var=LD_RUN_PATH
26041       ;;
26042     siemens)
26043       need_lib_prefix=no
26044       ;;
26045     motorola)
26046       need_lib_prefix=no
26047       need_version=no
26048       shlibpath_overrides_runpath=no
26049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26050       ;;
26051   esac
26052   ;;
26053
26054 sysv4*MP*)
26055   if test -d /usr/nec ;then
26056     version_type=linux
26057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26058     soname_spec='$libname${shared_ext}.$major'
26059     shlibpath_var=LD_LIBRARY_PATH
26060   fi
26061   ;;
26062
26063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26064   version_type=freebsd-elf
26065   need_lib_prefix=no
26066   need_version=no
26067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26068   soname_spec='${libname}${release}${shared_ext}$major'
26069   shlibpath_var=LD_LIBRARY_PATH
26070   hardcode_into_libs=yes
26071   if test "$with_gnu_ld" = yes; then
26072     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26073     shlibpath_overrides_runpath=no
26074   else
26075     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26076     shlibpath_overrides_runpath=yes
26077     case $host_os in
26078       sco3.2v5*)
26079         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26080         ;;
26081     esac
26082   fi
26083   sys_lib_dlsearch_path_spec='/usr/lib'
26084   ;;
26085
26086 uts4*)
26087   version_type=linux
26088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26089   soname_spec='${libname}${release}${shared_ext}$major'
26090   shlibpath_var=LD_LIBRARY_PATH
26091   ;;
26092
26093 *)
26094   dynamic_linker=no
26095   ;;
26096 esac
26097 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26098 echo "${ECHO_T}$dynamic_linker" >&6; }
26099 test "$dynamic_linker" = no && can_build_shared=no
26100
26101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26102 if test "$GCC" = yes; then
26103   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26104 fi
26105
26106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26108 hardcode_action_GCJ=
26109 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26110    test -n "$runpath_var_GCJ" || \
26111    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26112
26113   # We can hardcode non-existant directories.
26114   if test "$hardcode_direct_GCJ" != no &&
26115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26116      # have to relink, otherwise we might link with an installed library
26117      # when we should be linking with a yet-to-be-installed one
26118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26119      test "$hardcode_minus_L_GCJ" != no; then
26120     # Linking always hardcodes the temporary library directory.
26121     hardcode_action_GCJ=relink
26122   else
26123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26124     hardcode_action_GCJ=immediate
26125   fi
26126 else
26127   # We cannot hardcode anything, or else we can only hardcode existing
26128   # directories.
26129   hardcode_action_GCJ=unsupported
26130 fi
26131 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26132 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26133
26134 if test "$hardcode_action_GCJ" = relink; then
26135   # Fast installation is not supported
26136   enable_fast_install=no
26137 elif test "$shlibpath_overrides_runpath" = yes ||
26138      test "$enable_shared" = no; then
26139   # Fast installation is not necessary
26140   enable_fast_install=needless
26141 fi
26142
26143
26144 # The else clause should only fire when bootstrapping the
26145 # libtool distribution, otherwise you forgot to ship ltmain.sh
26146 # with your package, and you will get complaints that there are
26147 # no rules to generate ltmain.sh.
26148 if test -f "$ltmain"; then
26149   # See if we are running on zsh, and set the options which allow our commands through
26150   # without removal of \ escapes.
26151   if test -n "${ZSH_VERSION+set}" ; then
26152     setopt NO_GLOB_SUBST
26153   fi
26154   # Now quote all the things that may contain metacharacters while being
26155   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26156   # variables and quote the copies for generation of the libtool script.
26157   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26158     SED SHELL STRIP \
26159     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26160     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26161     deplibs_check_method reload_flag reload_cmds need_locks \
26162     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26163     lt_cv_sys_global_symbol_to_c_name_address \
26164     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26165     old_postinstall_cmds old_postuninstall_cmds \
26166     compiler_GCJ \
26167     CC_GCJ \
26168     LD_GCJ \
26169     lt_prog_compiler_wl_GCJ \
26170     lt_prog_compiler_pic_GCJ \
26171     lt_prog_compiler_static_GCJ \
26172     lt_prog_compiler_no_builtin_flag_GCJ \
26173     export_dynamic_flag_spec_GCJ \
26174     thread_safe_flag_spec_GCJ \
26175     whole_archive_flag_spec_GCJ \
26176     enable_shared_with_static_runtimes_GCJ \
26177     old_archive_cmds_GCJ \
26178     old_archive_from_new_cmds_GCJ \
26179     predep_objects_GCJ \
26180     postdep_objects_GCJ \
26181     predeps_GCJ \
26182     postdeps_GCJ \
26183     compiler_lib_search_path_GCJ \
26184     archive_cmds_GCJ \
26185     archive_expsym_cmds_GCJ \
26186     postinstall_cmds_GCJ \
26187     postuninstall_cmds_GCJ \
26188     old_archive_from_expsyms_cmds_GCJ \
26189     allow_undefined_flag_GCJ \
26190     no_undefined_flag_GCJ \
26191     export_symbols_cmds_GCJ \
26192     hardcode_libdir_flag_spec_GCJ \
26193     hardcode_libdir_flag_spec_ld_GCJ \
26194     hardcode_libdir_separator_GCJ \
26195     hardcode_automatic_GCJ \
26196     module_cmds_GCJ \
26197     module_expsym_cmds_GCJ \
26198     lt_cv_prog_compiler_c_o_GCJ \
26199     exclude_expsyms_GCJ \
26200     include_expsyms_GCJ; do
26201
26202     case $var in
26203     old_archive_cmds_GCJ | \
26204     old_archive_from_new_cmds_GCJ | \
26205     archive_cmds_GCJ | \
26206     archive_expsym_cmds_GCJ | \
26207     module_cmds_GCJ | \
26208     module_expsym_cmds_GCJ | \
26209     old_archive_from_expsyms_cmds_GCJ | \
26210     export_symbols_cmds_GCJ | \
26211     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26212     postinstall_cmds | postuninstall_cmds | \
26213     old_postinstall_cmds | old_postuninstall_cmds | \
26214     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26215       # Double-quote double-evaled strings.
26216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26217       ;;
26218     *)
26219       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26220       ;;
26221     esac
26222   done
26223
26224   case $lt_echo in
26225   *'\$0 --fallback-echo"')
26226     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26227     ;;
26228   esac
26229
26230 cfgfile="$ofile"
26231
26232   cat <<__EOF__ >> "$cfgfile"
26233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26234
26235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26236
26237 # Shell to use when invoking shell scripts.
26238 SHELL=$lt_SHELL
26239
26240 # Whether or not to build shared libraries.
26241 build_libtool_libs=$enable_shared
26242
26243 # Whether or not to build static libraries.
26244 build_old_libs=$enable_static
26245
26246 # Whether or not to add -lc for building shared libraries.
26247 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26248
26249 # Whether or not to disallow shared libs when runtime libs are static
26250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26251
26252 # Whether or not to optimize for fast installation.
26253 fast_install=$enable_fast_install
26254
26255 # The host system.
26256 host_alias=$host_alias
26257 host=$host
26258 host_os=$host_os
26259
26260 # The build system.
26261 build_alias=$build_alias
26262 build=$build
26263 build_os=$build_os
26264
26265 # An echo program that does not interpret backslashes.
26266 echo=$lt_echo
26267
26268 # The archiver.
26269 AR=$lt_AR
26270 AR_FLAGS=$lt_AR_FLAGS
26271
26272 # A C compiler.
26273 LTCC=$lt_LTCC
26274
26275 # LTCC compiler flags.
26276 LTCFLAGS=$lt_LTCFLAGS
26277
26278 # A language-specific compiler.
26279 CC=$lt_compiler_GCJ
26280
26281 # Is the compiler the GNU C compiler?
26282 with_gcc=$GCC_GCJ
26283
26284 # An ERE matcher.
26285 EGREP=$lt_EGREP
26286
26287 # The linker used to build libraries.
26288 LD=$lt_LD_GCJ
26289
26290 # Whether we need hard or soft links.
26291 LN_S=$lt_LN_S
26292
26293 # A BSD-compatible nm program.
26294 NM=$lt_NM
26295
26296 # A symbol stripping program
26297 STRIP=$lt_STRIP
26298
26299 # Used to examine libraries when file_magic_cmd begins "file"
26300 MAGIC_CMD=$MAGIC_CMD
26301
26302 # Used on cygwin: DLL creation program.
26303 DLLTOOL="$DLLTOOL"
26304
26305 # Used on cygwin: object dumper.
26306 OBJDUMP="$OBJDUMP"
26307
26308 # Used on cygwin: assembler.
26309 AS="$AS"
26310
26311 # The name of the directory that contains temporary libtool files.
26312 objdir=$objdir
26313
26314 # How to create reloadable object files.
26315 reload_flag=$lt_reload_flag
26316 reload_cmds=$lt_reload_cmds
26317
26318 # How to pass a linker flag through the compiler.
26319 wl=$lt_lt_prog_compiler_wl_GCJ
26320
26321 # Object file suffix (normally "o").
26322 objext="$ac_objext"
26323
26324 # Old archive suffix (normally "a").
26325 libext="$libext"
26326
26327 # Shared library suffix (normally ".so").
26328 shrext_cmds='$shrext_cmds'
26329
26330 # Executable file suffix (normally "").
26331 exeext="$exeext"
26332
26333 # Additional compiler flags for building library objects.
26334 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26335 pic_mode=$pic_mode
26336
26337 # What is the maximum length of a command?
26338 max_cmd_len=$lt_cv_sys_max_cmd_len
26339
26340 # Does compiler simultaneously support -c and -o options?
26341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26342
26343 # Must we lock files when doing compilation?
26344 need_locks=$lt_need_locks
26345
26346 # Do we need the lib prefix for modules?
26347 need_lib_prefix=$need_lib_prefix
26348
26349 # Do we need a version for libraries?
26350 need_version=$need_version
26351
26352 # Whether dlopen is supported.
26353 dlopen_support=$enable_dlopen
26354
26355 # Whether dlopen of programs is supported.
26356 dlopen_self=$enable_dlopen_self
26357
26358 # Whether dlopen of statically linked programs is supported.
26359 dlopen_self_static=$enable_dlopen_self_static
26360
26361 # Compiler flag to prevent dynamic linking.
26362 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26363
26364 # Compiler flag to turn off builtin functions.
26365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26366
26367 # Compiler flag to allow reflexive dlopens.
26368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26369
26370 # Compiler flag to generate shared objects directly from archives.
26371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26372
26373 # Compiler flag to generate thread-safe objects.
26374 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26375
26376 # Library versioning type.
26377 version_type=$version_type
26378
26379 # Format of library name prefix.
26380 libname_spec=$lt_libname_spec
26381
26382 # List of archive names.  First name is the real one, the rest are links.
26383 # The last name is the one that the linker finds with -lNAME.
26384 library_names_spec=$lt_library_names_spec
26385
26386 # The coded name of the library, if different from the real name.
26387 soname_spec=$lt_soname_spec
26388
26389 # Commands used to build and install an old-style archive.
26390 RANLIB=$lt_RANLIB
26391 old_archive_cmds=$lt_old_archive_cmds_GCJ
26392 old_postinstall_cmds=$lt_old_postinstall_cmds
26393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26394
26395 # Create an old-style archive from a shared archive.
26396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26397
26398 # Create a temporary old-style archive to link instead of a shared archive.
26399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26400
26401 # Commands used to build and install a shared archive.
26402 archive_cmds=$lt_archive_cmds_GCJ
26403 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26404 postinstall_cmds=$lt_postinstall_cmds
26405 postuninstall_cmds=$lt_postuninstall_cmds
26406
26407 # Commands used to build a loadable module (assumed same as above if empty)
26408 module_cmds=$lt_module_cmds_GCJ
26409 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26410
26411 # Commands to strip libraries.
26412 old_striplib=$lt_old_striplib
26413 striplib=$lt_striplib
26414
26415 # Dependencies to place before the objects being linked to create a
26416 # shared library.
26417 predep_objects=$lt_predep_objects_GCJ
26418
26419 # Dependencies to place after the objects being linked to create a
26420 # shared library.
26421 postdep_objects=$lt_postdep_objects_GCJ
26422
26423 # Dependencies to place before the objects being linked to create a
26424 # shared library.
26425 predeps=$lt_predeps_GCJ
26426
26427 # Dependencies to place after the objects being linked to create a
26428 # shared library.
26429 postdeps=$lt_postdeps_GCJ
26430
26431 # The library search path used internally by the compiler when linking
26432 # a shared library.
26433 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26434
26435 # Method to check whether dependent libraries are shared objects.
26436 deplibs_check_method=$lt_deplibs_check_method
26437
26438 # Command to use when deplibs_check_method == file_magic.
26439 file_magic_cmd=$lt_file_magic_cmd
26440
26441 # Flag that allows shared libraries with undefined symbols to be built.
26442 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26443
26444 # Flag that forces no undefined symbols.
26445 no_undefined_flag=$lt_no_undefined_flag_GCJ
26446
26447 # Commands used to finish a libtool library installation in a directory.
26448 finish_cmds=$lt_finish_cmds
26449
26450 # Same as above, but a single script fragment to be evaled but not shown.
26451 finish_eval=$lt_finish_eval
26452
26453 # Take the output of nm and produce a listing of raw symbols and C names.
26454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26455
26456 # Transform the output of nm in a proper C declaration
26457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26458
26459 # Transform the output of nm in a C name address pair
26460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26461
26462 # This is the shared library runtime path variable.
26463 runpath_var=$runpath_var
26464
26465 # This is the shared library path variable.
26466 shlibpath_var=$shlibpath_var
26467
26468 # Is shlibpath searched before the hard-coded library search path?
26469 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26470
26471 # How to hardcode a shared library path into an executable.
26472 hardcode_action=$hardcode_action_GCJ
26473
26474 # Whether we should hardcode library paths into libraries.
26475 hardcode_into_libs=$hardcode_into_libs
26476
26477 # Flag to hardcode \$libdir into a binary during linking.
26478 # This must work even if \$libdir does not exist.
26479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26480
26481 # If ld is used when linking, flag to hardcode \$libdir into
26482 # a binary during linking. This must work even if \$libdir does
26483 # not exist.
26484 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26485
26486 # Whether we need a single -rpath flag with a separated argument.
26487 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26488
26489 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26490 # resulting binary.
26491 hardcode_direct=$hardcode_direct_GCJ
26492
26493 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26494 # resulting binary.
26495 hardcode_minus_L=$hardcode_minus_L_GCJ
26496
26497 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26498 # the resulting binary.
26499 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26500
26501 # Set to yes if building a shared library automatically hardcodes DIR into the library
26502 # and all subsequent libraries and executables linked against it.
26503 hardcode_automatic=$hardcode_automatic_GCJ
26504
26505 # Variables whose values should be saved in libtool wrapper scripts and
26506 # restored at relink time.
26507 variables_saved_for_relink="$variables_saved_for_relink"
26508
26509 # Whether libtool must link a program against all its dependency libraries.
26510 link_all_deplibs=$link_all_deplibs_GCJ
26511
26512 # Compile-time system search path for libraries
26513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26514
26515 # Run-time system search path for libraries
26516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26517
26518 # Fix the shell variable \$srcfile for the compiler.
26519 fix_srcfile_path="$fix_srcfile_path_GCJ"
26520
26521 # Set to yes if exported symbols are required.
26522 always_export_symbols=$always_export_symbols_GCJ
26523
26524 # The commands to list exported symbols.
26525 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26526
26527 # The commands to extract the exported symbol list from a shared archive.
26528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26529
26530 # Symbols that should not be listed in the preloaded symbols.
26531 exclude_expsyms=$lt_exclude_expsyms_GCJ
26532
26533 # Symbols that must always be exported.
26534 include_expsyms=$lt_include_expsyms_GCJ
26535
26536 # ### END LIBTOOL TAG CONFIG: $tagname
26537
26538 __EOF__
26539
26540
26541 else
26542   # If there is no Makefile yet, we rely on a make rule to execute
26543   # `config.status --recheck' to rerun these tests and create the
26544   # libtool script then.
26545   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26546   if test -f "$ltmain_in"; then
26547     test -f Makefile && make "$ltmain"
26548   fi
26549 fi
26550
26551
26552 ac_ext=c
26553 ac_cpp='$CPP $CPPFLAGS'
26554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26557
26558 CC="$lt_save_CC"
26559
26560         else
26561           tagname=""
26562         fi
26563         ;;
26564
26565       RC)
26566         ac_ext=c
26567 ac_cpp='$CPP $CPPFLAGS'
26568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26571
26572
26573 # Source file extension for RC test sources.
26574 ac_ext=rc
26575
26576 # Object file extension for compiled RC test sources.
26577 objext=o
26578 objext_RC=$objext
26579
26580 # Code to be used in simple compile tests
26581 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26582
26583 # Code to be used in simple link tests
26584 lt_simple_link_test_code="$lt_simple_compile_test_code"
26585
26586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26587
26588 # If no C compiler was specified, use CC.
26589 LTCC=${LTCC-"$CC"}
26590
26591 # If no C compiler flags were specified, use CFLAGS.
26592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26593
26594 # Allow CC to be a program name with arguments.
26595 compiler=$CC
26596
26597
26598 # save warnings/boilerplate of simple test code
26599 ac_outfile=conftest.$ac_objext
26600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26602 _lt_compiler_boilerplate=`cat conftest.err`
26603 $rm conftest*
26604
26605 ac_outfile=conftest.$ac_objext
26606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26608 _lt_linker_boilerplate=`cat conftest.err`
26609 $rm conftest*
26610
26611
26612 # Allow CC to be a program name with arguments.
26613 lt_save_CC="$CC"
26614 CC=${RC-"windres"}
26615 compiler=$CC
26616 compiler_RC=$CC
26617 for cc_temp in $compiler""; do
26618   case $cc_temp in
26619     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26620     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26621     \-*) ;;
26622     *) break;;
26623   esac
26624 done
26625 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26626
26627 lt_cv_prog_compiler_c_o_RC=yes
26628
26629 # The else clause should only fire when bootstrapping the
26630 # libtool distribution, otherwise you forgot to ship ltmain.sh
26631 # with your package, and you will get complaints that there are
26632 # no rules to generate ltmain.sh.
26633 if test -f "$ltmain"; then
26634   # See if we are running on zsh, and set the options which allow our commands through
26635   # without removal of \ escapes.
26636   if test -n "${ZSH_VERSION+set}" ; then
26637     setopt NO_GLOB_SUBST
26638   fi
26639   # Now quote all the things that may contain metacharacters while being
26640   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26641   # variables and quote the copies for generation of the libtool script.
26642   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26643     SED SHELL STRIP \
26644     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26645     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26646     deplibs_check_method reload_flag reload_cmds need_locks \
26647     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26648     lt_cv_sys_global_symbol_to_c_name_address \
26649     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26650     old_postinstall_cmds old_postuninstall_cmds \
26651     compiler_RC \
26652     CC_RC \
26653     LD_RC \
26654     lt_prog_compiler_wl_RC \
26655     lt_prog_compiler_pic_RC \
26656     lt_prog_compiler_static_RC \
26657     lt_prog_compiler_no_builtin_flag_RC \
26658     export_dynamic_flag_spec_RC \
26659     thread_safe_flag_spec_RC \
26660     whole_archive_flag_spec_RC \
26661     enable_shared_with_static_runtimes_RC \
26662     old_archive_cmds_RC \
26663     old_archive_from_new_cmds_RC \
26664     predep_objects_RC \
26665     postdep_objects_RC \
26666     predeps_RC \
26667     postdeps_RC \
26668     compiler_lib_search_path_RC \
26669     archive_cmds_RC \
26670     archive_expsym_cmds_RC \
26671     postinstall_cmds_RC \
26672     postuninstall_cmds_RC \
26673     old_archive_from_expsyms_cmds_RC \
26674     allow_undefined_flag_RC \
26675     no_undefined_flag_RC \
26676     export_symbols_cmds_RC \
26677     hardcode_libdir_flag_spec_RC \
26678     hardcode_libdir_flag_spec_ld_RC \
26679     hardcode_libdir_separator_RC \
26680     hardcode_automatic_RC \
26681     module_cmds_RC \
26682     module_expsym_cmds_RC \
26683     lt_cv_prog_compiler_c_o_RC \
26684     exclude_expsyms_RC \
26685     include_expsyms_RC; do
26686
26687     case $var in
26688     old_archive_cmds_RC | \
26689     old_archive_from_new_cmds_RC | \
26690     archive_cmds_RC | \
26691     archive_expsym_cmds_RC | \
26692     module_cmds_RC | \
26693     module_expsym_cmds_RC | \
26694     old_archive_from_expsyms_cmds_RC | \
26695     export_symbols_cmds_RC | \
26696     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26697     postinstall_cmds | postuninstall_cmds | \
26698     old_postinstall_cmds | old_postuninstall_cmds | \
26699     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26700       # Double-quote double-evaled strings.
26701       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26702       ;;
26703     *)
26704       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26705       ;;
26706     esac
26707   done
26708
26709   case $lt_echo in
26710   *'\$0 --fallback-echo"')
26711     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26712     ;;
26713   esac
26714
26715 cfgfile="$ofile"
26716
26717   cat <<__EOF__ >> "$cfgfile"
26718 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26719
26720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26721
26722 # Shell to use when invoking shell scripts.
26723 SHELL=$lt_SHELL
26724
26725 # Whether or not to build shared libraries.
26726 build_libtool_libs=$enable_shared
26727
26728 # Whether or not to build static libraries.
26729 build_old_libs=$enable_static
26730
26731 # Whether or not to add -lc for building shared libraries.
26732 build_libtool_need_lc=$archive_cmds_need_lc_RC
26733
26734 # Whether or not to disallow shared libs when runtime libs are static
26735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26736
26737 # Whether or not to optimize for fast installation.
26738 fast_install=$enable_fast_install
26739
26740 # The host system.
26741 host_alias=$host_alias
26742 host=$host
26743 host_os=$host_os
26744
26745 # The build system.
26746 build_alias=$build_alias
26747 build=$build
26748 build_os=$build_os
26749
26750 # An echo program that does not interpret backslashes.
26751 echo=$lt_echo
26752
26753 # The archiver.
26754 AR=$lt_AR
26755 AR_FLAGS=$lt_AR_FLAGS
26756
26757 # A C compiler.
26758 LTCC=$lt_LTCC
26759
26760 # LTCC compiler flags.
26761 LTCFLAGS=$lt_LTCFLAGS
26762
26763 # A language-specific compiler.
26764 CC=$lt_compiler_RC
26765
26766 # Is the compiler the GNU C compiler?
26767 with_gcc=$GCC_RC
26768
26769 # An ERE matcher.
26770 EGREP=$lt_EGREP
26771
26772 # The linker used to build libraries.
26773 LD=$lt_LD_RC
26774
26775 # Whether we need hard or soft links.
26776 LN_S=$lt_LN_S
26777
26778 # A BSD-compatible nm program.
26779 NM=$lt_NM
26780
26781 # A symbol stripping program
26782 STRIP=$lt_STRIP
26783
26784 # Used to examine libraries when file_magic_cmd begins "file"
26785 MAGIC_CMD=$MAGIC_CMD
26786
26787 # Used on cygwin: DLL creation program.
26788 DLLTOOL="$DLLTOOL"
26789
26790 # Used on cygwin: object dumper.
26791 OBJDUMP="$OBJDUMP"
26792
26793 # Used on cygwin: assembler.
26794 AS="$AS"
26795
26796 # The name of the directory that contains temporary libtool files.
26797 objdir=$objdir
26798
26799 # How to create reloadable object files.
26800 reload_flag=$lt_reload_flag
26801 reload_cmds=$lt_reload_cmds
26802
26803 # How to pass a linker flag through the compiler.
26804 wl=$lt_lt_prog_compiler_wl_RC
26805
26806 # Object file suffix (normally "o").
26807 objext="$ac_objext"
26808
26809 # Old archive suffix (normally "a").
26810 libext="$libext"
26811
26812 # Shared library suffix (normally ".so").
26813 shrext_cmds='$shrext_cmds'
26814
26815 # Executable file suffix (normally "").
26816 exeext="$exeext"
26817
26818 # Additional compiler flags for building library objects.
26819 pic_flag=$lt_lt_prog_compiler_pic_RC
26820 pic_mode=$pic_mode
26821
26822 # What is the maximum length of a command?
26823 max_cmd_len=$lt_cv_sys_max_cmd_len
26824
26825 # Does compiler simultaneously support -c and -o options?
26826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26827
26828 # Must we lock files when doing compilation?
26829 need_locks=$lt_need_locks
26830
26831 # Do we need the lib prefix for modules?
26832 need_lib_prefix=$need_lib_prefix
26833
26834 # Do we need a version for libraries?
26835 need_version=$need_version
26836
26837 # Whether dlopen is supported.
26838 dlopen_support=$enable_dlopen
26839
26840 # Whether dlopen of programs is supported.
26841 dlopen_self=$enable_dlopen_self
26842
26843 # Whether dlopen of statically linked programs is supported.
26844 dlopen_self_static=$enable_dlopen_self_static
26845
26846 # Compiler flag to prevent dynamic linking.
26847 link_static_flag=$lt_lt_prog_compiler_static_RC
26848
26849 # Compiler flag to turn off builtin functions.
26850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26851
26852 # Compiler flag to allow reflexive dlopens.
26853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26854
26855 # Compiler flag to generate shared objects directly from archives.
26856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26857
26858 # Compiler flag to generate thread-safe objects.
26859 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26860
26861 # Library versioning type.
26862 version_type=$version_type
26863
26864 # Format of library name prefix.
26865 libname_spec=$lt_libname_spec
26866
26867 # List of archive names.  First name is the real one, the rest are links.
26868 # The last name is the one that the linker finds with -lNAME.
26869 library_names_spec=$lt_library_names_spec
26870
26871 # The coded name of the library, if different from the real name.
26872 soname_spec=$lt_soname_spec
26873
26874 # Commands used to build and install an old-style archive.
26875 RANLIB=$lt_RANLIB
26876 old_archive_cmds=$lt_old_archive_cmds_RC
26877 old_postinstall_cmds=$lt_old_postinstall_cmds
26878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26879
26880 # Create an old-style archive from a shared archive.
26881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26882
26883 # Create a temporary old-style archive to link instead of a shared archive.
26884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26885
26886 # Commands used to build and install a shared archive.
26887 archive_cmds=$lt_archive_cmds_RC
26888 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26889 postinstall_cmds=$lt_postinstall_cmds
26890 postuninstall_cmds=$lt_postuninstall_cmds
26891
26892 # Commands used to build a loadable module (assumed same as above if empty)
26893 module_cmds=$lt_module_cmds_RC
26894 module_expsym_cmds=$lt_module_expsym_cmds_RC
26895
26896 # Commands to strip libraries.
26897 old_striplib=$lt_old_striplib
26898 striplib=$lt_striplib
26899
26900 # Dependencies to place before the objects being linked to create a
26901 # shared library.
26902 predep_objects=$lt_predep_objects_RC
26903
26904 # Dependencies to place after the objects being linked to create a
26905 # shared library.
26906 postdep_objects=$lt_postdep_objects_RC
26907
26908 # Dependencies to place before the objects being linked to create a
26909 # shared library.
26910 predeps=$lt_predeps_RC
26911
26912 # Dependencies to place after the objects being linked to create a
26913 # shared library.
26914 postdeps=$lt_postdeps_RC
26915
26916 # The library search path used internally by the compiler when linking
26917 # a shared library.
26918 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26919
26920 # Method to check whether dependent libraries are shared objects.
26921 deplibs_check_method=$lt_deplibs_check_method
26922
26923 # Command to use when deplibs_check_method == file_magic.
26924 file_magic_cmd=$lt_file_magic_cmd
26925
26926 # Flag that allows shared libraries with undefined symbols to be built.
26927 allow_undefined_flag=$lt_allow_undefined_flag_RC
26928
26929 # Flag that forces no undefined symbols.
26930 no_undefined_flag=$lt_no_undefined_flag_RC
26931
26932 # Commands used to finish a libtool library installation in a directory.
26933 finish_cmds=$lt_finish_cmds
26934
26935 # Same as above, but a single script fragment to be evaled but not shown.
26936 finish_eval=$lt_finish_eval
26937
26938 # Take the output of nm and produce a listing of raw symbols and C names.
26939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26940
26941 # Transform the output of nm in a proper C declaration
26942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26943
26944 # Transform the output of nm in a C name address pair
26945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26946
26947 # This is the shared library runtime path variable.
26948 runpath_var=$runpath_var
26949
26950 # This is the shared library path variable.
26951 shlibpath_var=$shlibpath_var
26952
26953 # Is shlibpath searched before the hard-coded library search path?
26954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26955
26956 # How to hardcode a shared library path into an executable.
26957 hardcode_action=$hardcode_action_RC
26958
26959 # Whether we should hardcode library paths into libraries.
26960 hardcode_into_libs=$hardcode_into_libs
26961
26962 # Flag to hardcode \$libdir into a binary during linking.
26963 # This must work even if \$libdir does not exist.
26964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26965
26966 # If ld is used when linking, flag to hardcode \$libdir into
26967 # a binary during linking. This must work even if \$libdir does
26968 # not exist.
26969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26970
26971 # Whether we need a single -rpath flag with a separated argument.
26972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26973
26974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26975 # resulting binary.
26976 hardcode_direct=$hardcode_direct_RC
26977
26978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26979 # resulting binary.
26980 hardcode_minus_L=$hardcode_minus_L_RC
26981
26982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26983 # the resulting binary.
26984 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26985
26986 # Set to yes if building a shared library automatically hardcodes DIR into the library
26987 # and all subsequent libraries and executables linked against it.
26988 hardcode_automatic=$hardcode_automatic_RC
26989
26990 # Variables whose values should be saved in libtool wrapper scripts and
26991 # restored at relink time.
26992 variables_saved_for_relink="$variables_saved_for_relink"
26993
26994 # Whether libtool must link a program against all its dependency libraries.
26995 link_all_deplibs=$link_all_deplibs_RC
26996
26997 # Compile-time system search path for libraries
26998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26999
27000 # Run-time system search path for libraries
27001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27002
27003 # Fix the shell variable \$srcfile for the compiler.
27004 fix_srcfile_path="$fix_srcfile_path_RC"
27005
27006 # Set to yes if exported symbols are required.
27007 always_export_symbols=$always_export_symbols_RC
27008
27009 # The commands to list exported symbols.
27010 export_symbols_cmds=$lt_export_symbols_cmds_RC
27011
27012 # The commands to extract the exported symbol list from a shared archive.
27013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27014
27015 # Symbols that should not be listed in the preloaded symbols.
27016 exclude_expsyms=$lt_exclude_expsyms_RC
27017
27018 # Symbols that must always be exported.
27019 include_expsyms=$lt_include_expsyms_RC
27020
27021 # ### END LIBTOOL TAG CONFIG: $tagname
27022
27023 __EOF__
27024
27025
27026 else
27027   # If there is no Makefile yet, we rely on a make rule to execute
27028   # `config.status --recheck' to rerun these tests and create the
27029   # libtool script then.
27030   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27031   if test -f "$ltmain_in"; then
27032     test -f Makefile && make "$ltmain"
27033   fi
27034 fi
27035
27036
27037 ac_ext=c
27038 ac_cpp='$CPP $CPPFLAGS'
27039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27042
27043 CC="$lt_save_CC"
27044
27045         ;;
27046
27047       *)
27048         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27049 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27050    { (exit 1); exit 1; }; }
27051         ;;
27052       esac
27053
27054       # Append the new tag name to the list of available tags.
27055       if test -n "$tagname" ; then
27056       available_tags="$available_tags $tagname"
27057     fi
27058     fi
27059   done
27060   IFS="$lt_save_ifs"
27061
27062   # Now substitute the updated list of available tags.
27063   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27064     mv "${ofile}T" "$ofile"
27065     chmod +x "$ofile"
27066   else
27067     rm -f "${ofile}T"
27068     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27069 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27070    { (exit 1); exit 1; }; }
27071   fi
27072 fi
27073
27074
27075
27076 # This can be used to rebuild libtool when needed
27077 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27078
27079 # Always use our own libtool.
27080 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27081
27082 # Prevent multiple expansion
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104 if test "$lt_cv_dlopen_self" = "yes" ; then
27105
27106 cat >>confdefs.h <<\_ACEOF
27107 #define CAN_DLOPEN_SELF 1
27108 _ACEOF
27109
27110 fi
27111
27112 if test "$WITH_LLVMGCCDIR" = "default" ; then
27113   LLVMGCC="llvm-gcc${EXEEXT}"
27114   LLVMGXX="llvm-g++${EXEEXT}"
27115   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27116 set dummy $LLVMGCC; ac_word=$2
27117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27119 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   case $LLVMGCC in
27123   [\\/]* | ?:[\\/]*)
27124   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27125   ;;
27126   *)
27127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128 for as_dir in $PATH
27129 do
27130   IFS=$as_save_IFS
27131   test -z "$as_dir" && as_dir=.
27132   for ac_exec_ext in '' $ac_executable_extensions; do
27133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27134     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27136     break 2
27137   fi
27138 done
27139 done
27140 IFS=$as_save_IFS
27141
27142   ;;
27143 esac
27144 fi
27145 LLVMGCC=$ac_cv_path_LLVMGCC
27146 if test -n "$LLVMGCC"; then
27147   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27148 echo "${ECHO_T}$LLVMGCC" >&6; }
27149 else
27150   { echo "$as_me:$LINENO: result: no" >&5
27151 echo "${ECHO_T}no" >&6; }
27152 fi
27153
27154
27155   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27156 set dummy $LLVMGXX; ac_word=$2
27157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27159 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27160   echo $ECHO_N "(cached) $ECHO_C" >&6
27161 else
27162   case $LLVMGXX in
27163   [\\/]* | ?:[\\/]*)
27164   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27165   ;;
27166   *)
27167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27168 for as_dir in $PATH
27169 do
27170   IFS=$as_save_IFS
27171   test -z "$as_dir" && as_dir=.
27172   for ac_exec_ext in '' $ac_executable_extensions; do
27173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27174     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27176     break 2
27177   fi
27178 done
27179 done
27180 IFS=$as_save_IFS
27181
27182   ;;
27183 esac
27184 fi
27185 LLVMGXX=$ac_cv_path_LLVMGXX
27186 if test -n "$LLVMGXX"; then
27187   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27188 echo "${ECHO_T}$LLVMGXX" >&6; }
27189 else
27190   { echo "$as_me:$LINENO: result: no" >&5
27191 echo "${ECHO_T}no" >&6; }
27192 fi
27193
27194
27195 else
27196   if test -z "$LLVMGCC"; then
27197     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27198   fi
27199   if test -z "$LLVMGXX"; then
27200     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27201   fi
27202   LLVMGCC=$LLVMGCC
27203
27204   LLVMGXX=$LLVMGXX
27205
27206 fi
27207
27208 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27209 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27210
27211 ICC=no
27212 IXX=no
27213 case $CC in
27214   icc*|icpc*)
27215     ICC=yes
27216     IXX=yes
27217     ;;
27218    *)
27219     ;;
27220 esac
27221
27222 if test "$GCC" != "yes" && test "$ICC" != "yes"
27223 then
27224   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27225 echo "$as_me: error: gcc|icc required but not found" >&2;}
27226    { (exit 1); exit 1; }; }
27227 fi
27228
27229 if test "$GXX" != "yes" && test "$IXX" != "yes"
27230 then
27231   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27232 echo "$as_me: error: g++|icc required but not found" >&2;}
27233    { (exit 1); exit 1; }; }
27234 fi
27235
27236 if test "$GCC" = "yes"
27237 then
27238   cat >conftest.$ac_ext <<_ACEOF
27239 #if !defined(__GNUC__) || __GNUC__ < 3
27240 #error Unsupported GCC version
27241 #endif
27242
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (ac_try="$ac_compile"
27246 case "(($ac_try" in
27247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248   *) ac_try_echo=$ac_try;;
27249 esac
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251   (eval "$ac_compile") 2>conftest.er1
27252   ac_status=$?
27253   grep -v '^ *+' conftest.er1 >conftest.err
27254   rm -f conftest.er1
27255   cat conftest.err >&5
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); } &&
27258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27259   { (case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264   (eval "$ac_try") 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; } &&
27268          { ac_try='test -s conftest.$ac_objext'
27269   { (case "(($ac_try" in
27270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271   *) ac_try_echo=$ac_try;;
27272 esac
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274   (eval "$ac_try") 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); }; }; then
27278   :
27279 else
27280   echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27282
27283         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27285    { (exit 1); exit 1; }; }
27286 fi
27287
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289 fi
27290
27291 if test -z "$llvm_cv_gnu_make_command"
27292 then
27293   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27294 echo "$as_me: error: GNU Make required but not found" >&2;}
27295    { (exit 1); exit 1; }; }
27296 fi
27297
27298 { echo "$as_me:$LINENO: result: ok" >&5
27299 echo "${ECHO_T}ok" >&6; }
27300
27301
27302
27303 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27304 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27305 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27306   echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308   ac_check_lib_save_LIBS=$LIBS
27309 LIBS="-lelf  $LIBS"
27310 cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316
27317 /* Override any GCC internal prototype to avoid an error.
27318    Use char because int might match the return type of a GCC
27319    builtin and then its argument prototype would still apply.  */
27320 #ifdef __cplusplus
27321 extern "C"
27322 #endif
27323 char elf_begin ();
27324 int
27325 main ()
27326 {
27327 return elf_begin ();
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (ac_try="$ac_link"
27334 case "(($ac_try" in
27335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336   *) ac_try_echo=$ac_try;;
27337 esac
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339   (eval "$ac_link") 2>conftest.er1
27340   ac_status=$?
27341   grep -v '^ *+' conftest.er1 >conftest.err
27342   rm -f conftest.er1
27343   cat conftest.err >&5
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); } &&
27346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347   { (case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352   (eval "$ac_try") 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; } &&
27356          { ac_try='test -s conftest$ac_exeext'
27357   { (case "(($ac_try" in
27358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359   *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362   (eval "$ac_try") 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; }; then
27366   ac_cv_lib_elf_elf_begin=yes
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371         ac_cv_lib_elf_elf_begin=no
27372 fi
27373
27374 rm -f core conftest.err conftest.$ac_objext \
27375       conftest$ac_exeext conftest.$ac_ext
27376 LIBS=$ac_check_lib_save_LIBS
27377 fi
27378 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27379 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27380 if test $ac_cv_lib_elf_elf_begin = yes; then
27381   cat >>confdefs.h <<_ACEOF
27382 #define HAVE_LIBELF 1
27383 _ACEOF
27384
27385   LIBS="-lelf $LIBS"
27386
27387 fi
27388
27389
27390 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27391 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27392 if test "${ac_cv_lib_m_sin+set}" = set; then
27393   echo $ECHO_N "(cached) $ECHO_C" >&6
27394 else
27395   ac_check_lib_save_LIBS=$LIBS
27396 LIBS="-lm  $LIBS"
27397 cat >conftest.$ac_ext <<_ACEOF
27398 /* confdefs.h.  */
27399 _ACEOF
27400 cat confdefs.h >>conftest.$ac_ext
27401 cat >>conftest.$ac_ext <<_ACEOF
27402 /* end confdefs.h.  */
27403
27404 /* Override any GCC internal prototype to avoid an error.
27405    Use char because int might match the return type of a GCC
27406    builtin and then its argument prototype would still apply.  */
27407 #ifdef __cplusplus
27408 extern "C"
27409 #endif
27410 char sin ();
27411 int
27412 main ()
27413 {
27414 return sin ();
27415   ;
27416   return 0;
27417 }
27418 _ACEOF
27419 rm -f conftest.$ac_objext conftest$ac_exeext
27420 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27427   ac_status=$?
27428   grep -v '^ *+' conftest.er1 >conftest.err
27429   rm -f conftest.er1
27430   cat conftest.err >&5
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); } &&
27433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27434   { (case "(($ac_try" in
27435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436   *) ac_try_echo=$ac_try;;
27437 esac
27438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439   (eval "$ac_try") 2>&5
27440   ac_status=$?
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); }; } &&
27443          { ac_try='test -s conftest$ac_exeext'
27444   { (case "(($ac_try" in
27445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446   *) ac_try_echo=$ac_try;;
27447 esac
27448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449   (eval "$ac_try") 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; }; then
27453   ac_cv_lib_m_sin=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458         ac_cv_lib_m_sin=no
27459 fi
27460
27461 rm -f core conftest.err conftest.$ac_objext \
27462       conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27464 fi
27465 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27466 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27467 if test $ac_cv_lib_m_sin = yes; then
27468   cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBM 1
27470 _ACEOF
27471
27472   LIBS="-lm $LIBS"
27473
27474 fi
27475
27476 if test "$llvm_cv_os_type" = "MingW" ; then
27477
27478 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27479 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27480 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27481   echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483   ac_check_lib_save_LIBS=$LIBS
27484 LIBS="-limagehlp  $LIBS"
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491
27492
27493 int
27494 main ()
27495 {
27496 return main ();
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505   *) ac_try_echo=$ac_try;;
27506 esac
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508   (eval "$ac_link") 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516   { (case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521   (eval "$ac_try") 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; } &&
27525          { ac_try='test -s conftest$ac_exeext'
27526   { (case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_try") 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; }; then
27535   ac_cv_lib_imagehlp_main=yes
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540         ac_cv_lib_imagehlp_main=no
27541 fi
27542
27543 rm -f core conftest.err conftest.$ac_objext \
27544       conftest$ac_exeext conftest.$ac_ext
27545 LIBS=$ac_check_lib_save_LIBS
27546 fi
27547 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27548 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27549 if test $ac_cv_lib_imagehlp_main = yes; then
27550   cat >>confdefs.h <<_ACEOF
27551 #define HAVE_LIBIMAGEHLP 1
27552 _ACEOF
27553
27554   LIBS="-limagehlp $LIBS"
27555
27556 fi
27557
27558
27559 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27560 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27561 if test "${ac_cv_lib_psapi_main+set}" = set; then
27562   echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564   ac_check_lib_save_LIBS=$LIBS
27565 LIBS="-lpsapi  $LIBS"
27566 cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572
27573
27574 int
27575 main ()
27576 {
27577 return main ();
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_link") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } &&
27596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27597   { (case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_try") 2>&5
27603   ac_status=$?
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); }; } &&
27606          { ac_try='test -s conftest$ac_exeext'
27607   { (case "(($ac_try" in
27608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609   *) ac_try_echo=$ac_try;;
27610 esac
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612   (eval "$ac_try") 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); }; }; then
27616   ac_cv_lib_psapi_main=yes
27617 else
27618   echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27620
27621         ac_cv_lib_psapi_main=no
27622 fi
27623
27624 rm -f core conftest.err conftest.$ac_objext \
27625       conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27627 fi
27628 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27629 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27630 if test $ac_cv_lib_psapi_main = yes; then
27631   cat >>confdefs.h <<_ACEOF
27632 #define HAVE_LIBPSAPI 1
27633 _ACEOF
27634
27635   LIBS="-lpsapi $LIBS"
27636
27637 fi
27638
27639 fi
27640
27641 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27642 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27643 if test "${ac_cv_search_dlopen+set}" = set; then
27644   echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646   ac_func_search_save_LIBS=$LIBS
27647 cat >conftest.$ac_ext <<_ACEOF
27648 /* confdefs.h.  */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h.  */
27653
27654 /* Override any GCC internal prototype to avoid an error.
27655    Use char because int might match the return type of a GCC
27656    builtin and then its argument prototype would still apply.  */
27657 #ifdef __cplusplus
27658 extern "C"
27659 #endif
27660 char dlopen ();
27661 int
27662 main ()
27663 {
27664 return dlopen ();
27665   ;
27666   return 0;
27667 }
27668 _ACEOF
27669 for ac_lib in '' dl; do
27670   if test -z "$ac_lib"; then
27671     ac_res="none required"
27672   else
27673     ac_res=-l$ac_lib
27674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27675   fi
27676   rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (ac_try="$ac_link"
27678 case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_link") 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691   { (case "(($ac_try" in
27692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693   *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696   (eval "$ac_try") 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; } &&
27700          { ac_try='test -s conftest$ac_exeext'
27701   { (case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_try") 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; }; then
27710   ac_cv_search_dlopen=$ac_res
27711 else
27712   echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27714
27715
27716 fi
27717
27718 rm -f core conftest.err conftest.$ac_objext \
27719       conftest$ac_exeext
27720   if test "${ac_cv_search_dlopen+set}" = set; then
27721   break
27722 fi
27723 done
27724 if test "${ac_cv_search_dlopen+set}" = set; then
27725   :
27726 else
27727   ac_cv_search_dlopen=no
27728 fi
27729 rm conftest.$ac_ext
27730 LIBS=$ac_func_search_save_LIBS
27731 fi
27732 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27733 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27734 ac_res=$ac_cv_search_dlopen
27735 if test "$ac_res" != no; then
27736   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27737
27738 cat >>confdefs.h <<\_ACEOF
27739 #define HAVE_DLOPEN 1
27740 _ACEOF
27741
27742 else
27743   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27744 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27745 fi
27746
27747
27748 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27749 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27750 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27751   echo $ECHO_N "(cached) $ECHO_C" >&6
27752 else
27753   ac_check_lib_save_LIBS=$LIBS
27754 LIBS="-lffi  $LIBS"
27755 cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761
27762 /* Override any GCC internal prototype to avoid an error.
27763    Use char because int might match the return type of a GCC
27764    builtin and then its argument prototype would still apply.  */
27765 #ifdef __cplusplus
27766 extern "C"
27767 #endif
27768 char ffi_call ();
27769 int
27770 main ()
27771 {
27772 return ffi_call ();
27773   ;
27774   return 0;
27775 }
27776 _ACEOF
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_link") 2>conftest.er1
27785   ac_status=$?
27786   grep -v '^ *+' conftest.er1 >conftest.err
27787   rm -f conftest.er1
27788   cat conftest.err >&5
27789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790   (exit $ac_status); } &&
27791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792   { (case "(($ac_try" in
27793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794   *) ac_try_echo=$ac_try;;
27795 esac
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797   (eval "$ac_try") 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; } &&
27801          { ac_try='test -s conftest$ac_exeext'
27802   { (case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807   (eval "$ac_try") 2>&5
27808   ac_status=$?
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); }; }; then
27811   ac_cv_lib_ffi_ffi_call=yes
27812 else
27813   echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27815
27816         ac_cv_lib_ffi_ffi_call=no
27817 fi
27818
27819 rm -f core conftest.err conftest.$ac_objext \
27820       conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27822 fi
27823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27824 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27825 if test $ac_cv_lib_ffi_ffi_call = yes; then
27826   have_libffi=1
27827 else
27828   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27829 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27830 fi
27831
27832
27833 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27834 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27835 if test "${ac_cv_search_mallinfo+set}" = set; then
27836   echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838   ac_func_search_save_LIBS=$LIBS
27839 cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845
27846 /* Override any GCC internal prototype to avoid an error.
27847    Use char because int might match the return type of a GCC
27848    builtin and then its argument prototype would still apply.  */
27849 #ifdef __cplusplus
27850 extern "C"
27851 #endif
27852 char mallinfo ();
27853 int
27854 main ()
27855 {
27856 return mallinfo ();
27857   ;
27858   return 0;
27859 }
27860 _ACEOF
27861 for ac_lib in '' malloc; do
27862   if test -z "$ac_lib"; then
27863     ac_res="none required"
27864   else
27865     ac_res=-l$ac_lib
27866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27867   fi
27868   rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (ac_try="$ac_link"
27870 case "(($ac_try" in
27871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872   *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875   (eval "$ac_link") 2>conftest.er1
27876   ac_status=$?
27877   grep -v '^ *+' conftest.er1 >conftest.err
27878   rm -f conftest.er1
27879   cat conftest.err >&5
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } &&
27882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883   { (case "(($ac_try" in
27884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885   *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888   (eval "$ac_try") 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; } &&
27892          { ac_try='test -s conftest$ac_exeext'
27893   { (case "(($ac_try" in
27894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895   *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898   (eval "$ac_try") 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; }; then
27902   ac_cv_search_mallinfo=$ac_res
27903 else
27904   echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27906
27907
27908 fi
27909
27910 rm -f core conftest.err conftest.$ac_objext \
27911       conftest$ac_exeext
27912   if test "${ac_cv_search_mallinfo+set}" = set; then
27913   break
27914 fi
27915 done
27916 if test "${ac_cv_search_mallinfo+set}" = set; then
27917   :
27918 else
27919   ac_cv_search_mallinfo=no
27920 fi
27921 rm conftest.$ac_ext
27922 LIBS=$ac_func_search_save_LIBS
27923 fi
27924 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27925 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27926 ac_res=$ac_cv_search_mallinfo
27927 if test "$ac_res" != no; then
27928   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27929
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_MALLINFO 1
27932 _ACEOF
27933
27934 fi
27935
27936
27937 if test "$ENABLE_THREADS" -eq 1 ; then
27938
27939 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27940 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27941 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27942   echo $ECHO_N "(cached) $ECHO_C" >&6
27943 else
27944   ac_check_lib_save_LIBS=$LIBS
27945 LIBS="-lpthread  $LIBS"
27946 cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952
27953 /* Override any GCC internal prototype to avoid an error.
27954    Use char because int might match the return type of a GCC
27955    builtin and then its argument prototype would still apply.  */
27956 #ifdef __cplusplus
27957 extern "C"
27958 #endif
27959 char pthread_mutex_init ();
27960 int
27961 main ()
27962 {
27963 return pthread_mutex_init ();
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (ac_try="$ac_link"
27970 case "(($ac_try" in
27971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972   *) ac_try_echo=$ac_try;;
27973 esac
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975   (eval "$ac_link") 2>conftest.er1
27976   ac_status=$?
27977   grep -v '^ *+' conftest.er1 >conftest.err
27978   rm -f conftest.er1
27979   cat conftest.err >&5
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); } &&
27982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983   { (case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_try") 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (case "(($ac_try" in
27994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995   *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998   (eval "$ac_try") 2>&5
27999   ac_status=$?
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); }; }; then
28002   ac_cv_lib_pthread_pthread_mutex_init=yes
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007         ac_cv_lib_pthread_pthread_mutex_init=no
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext \
28011       conftest$ac_exeext conftest.$ac_ext
28012 LIBS=$ac_check_lib_save_LIBS
28013 fi
28014 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28015 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28016 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28017   cat >>confdefs.h <<_ACEOF
28018 #define HAVE_LIBPTHREAD 1
28019 _ACEOF
28020
28021   LIBS="-lpthread $LIBS"
28022
28023 fi
28024
28025   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28026 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28027 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28028   echo $ECHO_N "(cached) $ECHO_C" >&6
28029 else
28030   ac_func_search_save_LIBS=$LIBS
28031 cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h.  */
28033 _ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h.  */
28037
28038 /* Override any GCC internal prototype to avoid an error.
28039    Use char because int might match the return type of a GCC
28040    builtin and then its argument prototype would still apply.  */
28041 #ifdef __cplusplus
28042 extern "C"
28043 #endif
28044 char pthread_mutex_lock ();
28045 int
28046 main ()
28047 {
28048 return pthread_mutex_lock ();
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 for ac_lib in '' pthread; do
28054   if test -z "$ac_lib"; then
28055     ac_res="none required"
28056   else
28057     ac_res=-l$ac_lib
28058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28059   fi
28060   rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (ac_try="$ac_link"
28062 case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_link") 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } &&
28074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075   { (case "(($ac_try" in
28076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077   *) ac_try_echo=$ac_try;;
28078 esac
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080   (eval "$ac_try") 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; } &&
28084          { ac_try='test -s conftest$ac_exeext'
28085   { (case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_try") 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_search_pthread_mutex_lock=$ac_res
28095 else
28096   echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099
28100 fi
28101
28102 rm -f core conftest.err conftest.$ac_objext \
28103       conftest$ac_exeext
28104   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28105   break
28106 fi
28107 done
28108 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28109   :
28110 else
28111   ac_cv_search_pthread_mutex_lock=no
28112 fi
28113 rm conftest.$ac_ext
28114 LIBS=$ac_func_search_save_LIBS
28115 fi
28116 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28117 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28118 ac_res=$ac_cv_search_pthread_mutex_lock
28119 if test "$ac_res" != no; then
28120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28121
28122 cat >>confdefs.h <<\_ACEOF
28123 #define HAVE_PTHREAD_MUTEX_LOCK 1
28124 _ACEOF
28125
28126 fi
28127
28128 fi
28129
28130
28131 # Check whether --with-udis86 was given.
28132 if test "${with_udis86+set}" = set; then
28133   withval=$with_udis86;
28134       USE_UDIS86=1
28135
28136       case "$withval" in
28137         /usr/lib|yes) ;;
28138         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28139       esac
28140
28141 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28142 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28143 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28144   echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146   ac_check_lib_save_LIBS=$LIBS
28147 LIBS="-ludis86  $LIBS"
28148 cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154
28155 /* Override any GCC internal prototype to avoid an error.
28156    Use char because int might match the return type of a GCC
28157    builtin and then its argument prototype would still apply.  */
28158 #ifdef __cplusplus
28159 extern "C"
28160 #endif
28161 char ud_init ();
28162 int
28163 main ()
28164 {
28165 return ud_init ();
28166   ;
28167   return 0;
28168 }
28169 _ACEOF
28170 rm -f conftest.$ac_objext conftest$ac_exeext
28171 if { (ac_try="$ac_link"
28172 case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_link") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } &&
28184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185   { (case "(($ac_try" in
28186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187   *) ac_try_echo=$ac_try;;
28188 esac
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190   (eval "$ac_try") 2>&5
28191   ac_status=$?
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); }; } &&
28194          { ac_try='test -s conftest$ac_exeext'
28195   { (case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_try") 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); }; }; then
28204   ac_cv_lib_udis86_ud_init=yes
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209         ac_cv_lib_udis86_ud_init=no
28210 fi
28211
28212 rm -f core conftest.err conftest.$ac_objext \
28213       conftest$ac_exeext conftest.$ac_ext
28214 LIBS=$ac_check_lib_save_LIBS
28215 fi
28216 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28217 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28218 if test $ac_cv_lib_udis86_ud_init = yes; then
28219   cat >>confdefs.h <<_ACEOF
28220 #define HAVE_LIBUDIS86 1
28221 _ACEOF
28222
28223   LIBS="-ludis86 $LIBS"
28224
28225 else
28226
28227         echo "Error! You need to have libudis86 around."
28228         exit -1
28229
28230 fi
28231
28232
28233 else
28234   USE_UDIS86=0
28235
28236 fi
28237
28238
28239 cat >>confdefs.h <<_ACEOF
28240 #define USE_UDIS86 $USE_UDIS86
28241 _ACEOF
28242
28243
28244
28245
28246
28247
28248
28249
28250 ac_header_dirent=no
28251 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28252   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28253 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28254 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28256   echo $ECHO_N "(cached) $ECHO_C" >&6
28257 else
28258   cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h.  */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h.  */
28264 #include <sys/types.h>
28265 #include <$ac_hdr>
28266
28267 int
28268 main ()
28269 {
28270 if ((DIR *) 0)
28271 return 0;
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283   (eval "$ac_compile") 2>conftest.er1
28284   ac_status=$?
28285   grep -v '^ *+' conftest.er1 >conftest.err
28286   rm -f conftest.er1
28287   cat conftest.err >&5
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); } &&
28290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28291   { (case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_try") 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; } &&
28300          { ac_try='test -s conftest.$ac_objext'
28301   { (case "(($ac_try" in
28302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303   *) ac_try_echo=$ac_try;;
28304 esac
28305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306   (eval "$ac_try") 2>&5
28307   ac_status=$?
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); }; }; then
28310   eval "$as_ac_Header=yes"
28311 else
28312   echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315         eval "$as_ac_Header=no"
28316 fi
28317
28318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28319 fi
28320 ac_res=`eval echo '${'$as_ac_Header'}'`
28321                { echo "$as_me:$LINENO: result: $ac_res" >&5
28322 echo "${ECHO_T}$ac_res" >&6; }
28323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28324   cat >>confdefs.h <<_ACEOF
28325 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28326 _ACEOF
28327
28328 ac_header_dirent=$ac_hdr; break
28329 fi
28330
28331 done
28332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28333 if test $ac_header_dirent = dirent.h; then
28334   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28335 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28336 if test "${ac_cv_search_opendir+set}" = set; then
28337   echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339   ac_func_search_save_LIBS=$LIBS
28340 cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346
28347 /* Override any GCC internal prototype to avoid an error.
28348    Use char because int might match the return type of a GCC
28349    builtin and then its argument prototype would still apply.  */
28350 #ifdef __cplusplus
28351 extern "C"
28352 #endif
28353 char opendir ();
28354 int
28355 main ()
28356 {
28357 return opendir ();
28358   ;
28359   return 0;
28360 }
28361 _ACEOF
28362 for ac_lib in '' dir; do
28363   if test -z "$ac_lib"; then
28364     ac_res="none required"
28365   else
28366     ac_res=-l$ac_lib
28367     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28368   fi
28369   rm -f conftest.$ac_objext conftest$ac_exeext
28370 if { (ac_try="$ac_link"
28371 case "(($ac_try" in
28372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373   *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376   (eval "$ac_link") 2>conftest.er1
28377   ac_status=$?
28378   grep -v '^ *+' conftest.er1 >conftest.err
28379   rm -f conftest.er1
28380   cat conftest.err >&5
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); } &&
28383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384   { (case "(($ac_try" in
28385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386   *) ac_try_echo=$ac_try;;
28387 esac
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389   (eval "$ac_try") 2>&5
28390   ac_status=$?
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); }; } &&
28393          { ac_try='test -s conftest$ac_exeext'
28394   { (case "(($ac_try" in
28395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396   *) ac_try_echo=$ac_try;;
28397 esac
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399   (eval "$ac_try") 2>&5
28400   ac_status=$?
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); }; }; then
28403   ac_cv_search_opendir=$ac_res
28404 else
28405   echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28407
28408
28409 fi
28410
28411 rm -f core conftest.err conftest.$ac_objext \
28412       conftest$ac_exeext
28413   if test "${ac_cv_search_opendir+set}" = set; then
28414   break
28415 fi
28416 done
28417 if test "${ac_cv_search_opendir+set}" = set; then
28418   :
28419 else
28420   ac_cv_search_opendir=no
28421 fi
28422 rm conftest.$ac_ext
28423 LIBS=$ac_func_search_save_LIBS
28424 fi
28425 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28426 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28427 ac_res=$ac_cv_search_opendir
28428 if test "$ac_res" != no; then
28429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28430
28431 fi
28432
28433 else
28434   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28436 if test "${ac_cv_search_opendir+set}" = set; then
28437   echo $ECHO_N "(cached) $ECHO_C" >&6
28438 else
28439   ac_func_search_save_LIBS=$LIBS
28440 cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446
28447 /* Override any GCC internal prototype to avoid an error.
28448    Use char because int might match the return type of a GCC
28449    builtin and then its argument prototype would still apply.  */
28450 #ifdef __cplusplus
28451 extern "C"
28452 #endif
28453 char opendir ();
28454 int
28455 main ()
28456 {
28457 return opendir ();
28458   ;
28459   return 0;
28460 }
28461 _ACEOF
28462 for ac_lib in '' x; do
28463   if test -z "$ac_lib"; then
28464     ac_res="none required"
28465   else
28466     ac_res=-l$ac_lib
28467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28468   fi
28469   rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (ac_try="$ac_link"
28471 case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_link") 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } &&
28483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28484   { (case "(($ac_try" in
28485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486   *) ac_try_echo=$ac_try;;
28487 esac
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489   (eval "$ac_try") 2>&5
28490   ac_status=$?
28491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492   (exit $ac_status); }; } &&
28493          { ac_try='test -s conftest$ac_exeext'
28494   { (case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_try") 2>&5
28500   ac_status=$?
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); }; }; then
28503   ac_cv_search_opendir=$ac_res
28504 else
28505   echo "$as_me: failed program was:" >&5
28506 sed 's/^/| /' conftest.$ac_ext >&5
28507
28508
28509 fi
28510
28511 rm -f core conftest.err conftest.$ac_objext \
28512       conftest$ac_exeext
28513   if test "${ac_cv_search_opendir+set}" = set; then
28514   break
28515 fi
28516 done
28517 if test "${ac_cv_search_opendir+set}" = set; then
28518   :
28519 else
28520   ac_cv_search_opendir=no
28521 fi
28522 rm conftest.$ac_ext
28523 LIBS=$ac_func_search_save_LIBS
28524 fi
28525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28527 ac_res=$ac_cv_search_opendir
28528 if test "$ac_res" != no; then
28529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28530
28531 fi
28532
28533 fi
28534
28535 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28536 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28537 if test "${ac_cv_header_mmap_anon+set}" = set; then
28538   echo $ECHO_N "(cached) $ECHO_C" >&6
28539 else
28540    ac_ext=c
28541 ac_cpp='$CPP $CPPFLAGS'
28542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28545
28546   cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552 #include <sys/mman.h>
28553 #include <unistd.h>
28554 #include <fcntl.h>
28555 int
28556 main ()
28557 {
28558 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest.$ac_objext
28564 if { (ac_try="$ac_compile"
28565 case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_compile") 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } &&
28577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578   { (case "(($ac_try" in
28579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580   *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583   (eval "$ac_try") 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest.$ac_objext'
28588   { (case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_try") 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; }; then
28597   ac_cv_header_mmap_anon=yes
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602         ac_cv_header_mmap_anon=no
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606   ac_ext=c
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612
28613 fi
28614 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28615 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28616 if test "$ac_cv_header_mmap_anon" = yes; then
28617
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_MMAP_ANONYMOUS 1
28620 _ACEOF
28621
28622 fi
28623
28624 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28625 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28626 if test "${ac_cv_header_stat_broken+set}" = set; then
28627   echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28629   cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635 #include <sys/types.h>
28636 #include <sys/stat.h>
28637
28638 #if defined S_ISBLK && defined S_IFDIR
28639 # if S_ISBLK (S_IFDIR)
28640 You lose.
28641 # endif
28642 #endif
28643
28644 #if defined S_ISBLK && defined S_IFCHR
28645 # if S_ISBLK (S_IFCHR)
28646 You lose.
28647 # endif
28648 #endif
28649
28650 #if defined S_ISLNK && defined S_IFREG
28651 # if S_ISLNK (S_IFREG)
28652 You lose.
28653 # endif
28654 #endif
28655
28656 #if defined S_ISSOCK && defined S_IFREG
28657 # if S_ISSOCK (S_IFREG)
28658 You lose.
28659 # endif
28660 #endif
28661
28662 _ACEOF
28663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28664   $EGREP "You lose" >/dev/null 2>&1; then
28665   ac_cv_header_stat_broken=yes
28666 else
28667   ac_cv_header_stat_broken=no
28668 fi
28669 rm -f conftest*
28670
28671 fi
28672 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28673 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28674 if test $ac_cv_header_stat_broken = yes; then
28675
28676 cat >>confdefs.h <<\_ACEOF
28677 #define STAT_MACROS_BROKEN 1
28678 _ACEOF
28679
28680 fi
28681
28682 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28684 if test "${ac_cv_header_stdc+set}" = set; then
28685   echo $ECHO_N "(cached) $ECHO_C" >&6
28686 else
28687   cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693 #include <stdlib.h>
28694 #include <stdarg.h>
28695 #include <string.h>
28696 #include <float.h>
28697
28698 int
28699 main ()
28700 {
28701
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext
28707 if { (ac_try="$ac_compile"
28708 case "(($ac_try" in
28709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710   *) ac_try_echo=$ac_try;;
28711 esac
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713   (eval "$ac_compile") 2>conftest.er1
28714   ac_status=$?
28715   grep -v '^ *+' conftest.er1 >conftest.err
28716   rm -f conftest.er1
28717   cat conftest.err >&5
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); } &&
28720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28721   { (case "(($ac_try" in
28722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723   *) ac_try_echo=$ac_try;;
28724 esac
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726   (eval "$ac_try") 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; } &&
28730          { ac_try='test -s conftest.$ac_objext'
28731   { (case "(($ac_try" in
28732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733   *) ac_try_echo=$ac_try;;
28734 esac
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736   (eval "$ac_try") 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); }; }; then
28740   ac_cv_header_stdc=yes
28741 else
28742   echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28744
28745         ac_cv_header_stdc=no
28746 fi
28747
28748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749
28750 if test $ac_cv_header_stdc = yes; then
28751   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28752   cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h.  */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h.  */
28758 #include <string.h>
28759
28760 _ACEOF
28761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28762   $EGREP "memchr" >/dev/null 2>&1; then
28763   :
28764 else
28765   ac_cv_header_stdc=no
28766 fi
28767 rm -f conftest*
28768
28769 fi
28770
28771 if test $ac_cv_header_stdc = yes; then
28772   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28773   cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h.  */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h.  */
28779 #include <stdlib.h>
28780
28781 _ACEOF
28782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28783   $EGREP "free" >/dev/null 2>&1; then
28784   :
28785 else
28786   ac_cv_header_stdc=no
28787 fi
28788 rm -f conftest*
28789
28790 fi
28791
28792 if test $ac_cv_header_stdc = yes; then
28793   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28794   if test "$cross_compiling" = yes; then
28795   :
28796 else
28797   cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803 #include <ctype.h>
28804 #include <stdlib.h>
28805 #if ((' ' & 0x0FF) == 0x020)
28806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28808 #else
28809 # define ISLOWER(c) \
28810                    (('a' <= (c) && (c) <= 'i') \
28811                      || ('j' <= (c) && (c) <= 'r') \
28812                      || ('s' <= (c) && (c) <= 'z'))
28813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28814 #endif
28815
28816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28817 int
28818 main ()
28819 {
28820   int i;
28821   for (i = 0; i < 256; i++)
28822     if (XOR (islower (i), ISLOWER (i))
28823         || toupper (i) != TOUPPER (i))
28824       return 2;
28825   return 0;
28826 }
28827 _ACEOF
28828 rm -f conftest$ac_exeext
28829 if { (ac_try="$ac_link"
28830 case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_link") 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28839   { (case "(($ac_try" in
28840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841   *) ac_try_echo=$ac_try;;
28842 esac
28843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844   (eval "$ac_try") 2>&5
28845   ac_status=$?
28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847   (exit $ac_status); }; }; then
28848   :
28849 else
28850   echo "$as_me: program exited with status $ac_status" >&5
28851 echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28853
28854 ( exit $ac_status )
28855 ac_cv_header_stdc=no
28856 fi
28857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28858 fi
28859
28860
28861 fi
28862 fi
28863 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28864 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28865 if test $ac_cv_header_stdc = yes; then
28866
28867 cat >>confdefs.h <<\_ACEOF
28868 #define STDC_HEADERS 1
28869 _ACEOF
28870
28871 fi
28872
28873 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28874 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28875 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28876   echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878   cat >conftest.$ac_ext <<_ACEOF
28879 /* confdefs.h.  */
28880 _ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h.  */
28884 #include <sys/types.h>
28885 #include <sys/wait.h>
28886 #ifndef WEXITSTATUS
28887 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28888 #endif
28889 #ifndef WIFEXITED
28890 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28891 #endif
28892
28893 int
28894 main ()
28895 {
28896   int s;
28897   wait (&s);
28898   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28899   ;
28900   return 0;
28901 }
28902 _ACEOF
28903 rm -f conftest.$ac_objext
28904 if { (ac_try="$ac_compile"
28905 case "(($ac_try" in
28906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907   *) ac_try_echo=$ac_try;;
28908 esac
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910   (eval "$ac_compile") 2>conftest.er1
28911   ac_status=$?
28912   grep -v '^ *+' conftest.er1 >conftest.err
28913   rm -f conftest.er1
28914   cat conftest.err >&5
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); } &&
28917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918   { (case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923   (eval "$ac_try") 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; } &&
28927          { ac_try='test -s conftest.$ac_objext'
28928   { (case "(($ac_try" in
28929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930   *) ac_try_echo=$ac_try;;
28931 esac
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933   (eval "$ac_try") 2>&5
28934   ac_status=$?
28935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936   (exit $ac_status); }; }; then
28937   ac_cv_header_sys_wait_h=yes
28938 else
28939   echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28941
28942         ac_cv_header_sys_wait_h=no
28943 fi
28944
28945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946 fi
28947 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28949 if test $ac_cv_header_sys_wait_h = yes; then
28950
28951 cat >>confdefs.h <<\_ACEOF
28952 #define HAVE_SYS_WAIT_H 1
28953 _ACEOF
28954
28955 fi
28956
28957 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28958 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28959 if test "${ac_cv_header_time+set}" = set; then
28960   echo $ECHO_N "(cached) $ECHO_C" >&6
28961 else
28962   cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h.  */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h.  */
28968 #include <sys/types.h>
28969 #include <sys/time.h>
28970 #include <time.h>
28971
28972 int
28973 main ()
28974 {
28975 if ((struct tm *) 0)
28976 return 0;
28977   ;
28978   return 0;
28979 }
28980 _ACEOF
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_compile") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } &&
28995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996   { (case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_try") 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); }; } &&
29005          { ac_try='test -s conftest.$ac_objext'
29006   { (case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011   (eval "$ac_try") 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; }; then
29015   ac_cv_header_time=yes
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020         ac_cv_header_time=no
29021 fi
29022
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 fi
29025 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29026 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29027 if test $ac_cv_header_time = yes; then
29028
29029 cat >>confdefs.h <<\_ACEOF
29030 #define TIME_WITH_SYS_TIME 1
29031 _ACEOF
29032
29033 fi
29034
29035
29036
29037
29038
29039
29040
29041
29042 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29043 do
29044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 fi
29051 ac_res=`eval echo '${'$as_ac_Header'}'`
29052                { echo "$as_me:$LINENO: result: $ac_res" >&5
29053 echo "${ECHO_T}$ac_res" >&6; }
29054 else
29055   # Is the header compilable?
29056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29058 cat >conftest.$ac_ext <<_ACEOF
29059 /* confdefs.h.  */
29060 _ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h.  */
29064 $ac_includes_default
29065 #include <$ac_header>
29066 _ACEOF
29067 rm -f conftest.$ac_objext
29068 if { (ac_try="$ac_compile"
29069 case "(($ac_try" in
29070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29071   *) ac_try_echo=$ac_try;;
29072 esac
29073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29074   (eval "$ac_compile") 2>conftest.er1
29075   ac_status=$?
29076   grep -v '^ *+' conftest.er1 >conftest.err
29077   rm -f conftest.er1
29078   cat conftest.err >&5
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); } &&
29081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29082   { (case "(($ac_try" in
29083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084   *) ac_try_echo=$ac_try;;
29085 esac
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087   (eval "$ac_try") 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; } &&
29091          { ac_try='test -s conftest.$ac_objext'
29092   { (case "(($ac_try" in
29093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094   *) ac_try_echo=$ac_try;;
29095 esac
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097   (eval "$ac_try") 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); }; }; then
29101   ac_header_compiler=yes
29102 else
29103   echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29105
29106         ac_header_compiler=no
29107 fi
29108
29109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29111 echo "${ECHO_T}$ac_header_compiler" >&6; }
29112
29113 # Is the header present?
29114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29116 cat >conftest.$ac_ext <<_ACEOF
29117 /* confdefs.h.  */
29118 _ACEOF
29119 cat confdefs.h >>conftest.$ac_ext
29120 cat >>conftest.$ac_ext <<_ACEOF
29121 /* end confdefs.h.  */
29122 #include <$ac_header>
29123 _ACEOF
29124 if { (ac_try="$ac_cpp conftest.$ac_ext"
29125 case "(($ac_try" in
29126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127   *) ac_try_echo=$ac_try;;
29128 esac
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29131   ac_status=$?
29132   grep -v '^ *+' conftest.er1 >conftest.err
29133   rm -f conftest.er1
29134   cat conftest.err >&5
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); } >/dev/null; then
29137   if test -s conftest.err; then
29138     ac_cpp_err=$ac_c_preproc_warn_flag
29139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29140   else
29141     ac_cpp_err=
29142   fi
29143 else
29144   ac_cpp_err=yes
29145 fi
29146 if test -z "$ac_cpp_err"; then
29147   ac_header_preproc=yes
29148 else
29149   echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29151
29152   ac_header_preproc=no
29153 fi
29154
29155 rm -f conftest.err conftest.$ac_ext
29156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29157 echo "${ECHO_T}$ac_header_preproc" >&6; }
29158
29159 # So?  What about this header?
29160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29161   yes:no: )
29162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29166     ac_header_preproc=yes
29167     ;;
29168   no:yes:* )
29169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29181     ( cat <<\_ASBOX
29182 ## ----------------------------------- ##
29183 ## Report this to llvmbugs@cs.uiuc.edu ##
29184 ## ----------------------------------- ##
29185 _ASBOX
29186      ) | sed "s/^/$as_me: WARNING:     /" >&2
29187     ;;
29188 esac
29189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194   eval "$as_ac_Header=\$ac_header_preproc"
29195 fi
29196 ac_res=`eval echo '${'$as_ac_Header'}'`
29197                { echo "$as_me:$LINENO: result: $ac_res" >&5
29198 echo "${ECHO_T}$ac_res" >&6; }
29199
29200 fi
29201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202   cat >>confdefs.h <<_ACEOF
29203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29204 _ACEOF
29205
29206 fi
29207
29208 done
29209
29210
29211
29212
29213
29214
29215
29216 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29217 do
29218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223   echo $ECHO_N "(cached) $ECHO_C" >&6
29224 fi
29225 ac_res=`eval echo '${'$as_ac_Header'}'`
29226                { echo "$as_me:$LINENO: result: $ac_res" >&5
29227 echo "${ECHO_T}$ac_res" >&6; }
29228 else
29229   # Is the header compilable?
29230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29232 cat >conftest.$ac_ext <<_ACEOF
29233 /* confdefs.h.  */
29234 _ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h.  */
29238 $ac_includes_default
29239 #include <$ac_header>
29240 _ACEOF
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_compile") 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } &&
29255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256   { (case "(($ac_try" in
29257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258   *) ac_try_echo=$ac_try;;
29259 esac
29260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261   (eval "$ac_try") 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); }; } &&
29265          { ac_try='test -s conftest.$ac_objext'
29266   { (case "(($ac_try" in
29267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268   *) ac_try_echo=$ac_try;;
29269 esac
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271   (eval "$ac_try") 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; }; then
29275   ac_header_compiler=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280         ac_header_compiler=no
29281 fi
29282
29283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285 echo "${ECHO_T}$ac_header_compiler" >&6; }
29286
29287 # Is the header present?
29288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <$ac_header>
29297 _ACEOF
29298 if { (ac_try="$ac_cpp conftest.$ac_ext"
29299 case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } >/dev/null; then
29311   if test -s conftest.err; then
29312     ac_cpp_err=$ac_c_preproc_warn_flag
29313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29314   else
29315     ac_cpp_err=
29316   fi
29317 else
29318   ac_cpp_err=yes
29319 fi
29320 if test -z "$ac_cpp_err"; then
29321   ac_header_preproc=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326   ac_header_preproc=no
29327 fi
29328
29329 rm -f conftest.err conftest.$ac_ext
29330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331 echo "${ECHO_T}$ac_header_preproc" >&6; }
29332
29333 # So?  What about this header?
29334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335   yes:no: )
29336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340     ac_header_preproc=yes
29341     ;;
29342   no:yes:* )
29343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29355     ( cat <<\_ASBOX
29356 ## ----------------------------------- ##
29357 ## Report this to llvmbugs@cs.uiuc.edu ##
29358 ## ----------------------------------- ##
29359 _ASBOX
29360      ) | sed "s/^/$as_me: WARNING:     /" >&2
29361     ;;
29362 esac
29363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29366   echo $ECHO_N "(cached) $ECHO_C" >&6
29367 else
29368   eval "$as_ac_Header=\$ac_header_preproc"
29369 fi
29370 ac_res=`eval echo '${'$as_ac_Header'}'`
29371                { echo "$as_me:$LINENO: result: $ac_res" >&5
29372 echo "${ECHO_T}$ac_res" >&6; }
29373
29374 fi
29375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376   cat >>confdefs.h <<_ACEOF
29377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29378 _ACEOF
29379
29380 fi
29381
29382 done
29383
29384
29385 for ac_header in windows.h
29386 do
29387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392   echo $ECHO_N "(cached) $ECHO_C" >&6
29393 fi
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395                { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29397 else
29398   # Is the header compilable?
29399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29401 cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407 $ac_includes_default
29408 #include <$ac_header>
29409 _ACEOF
29410 rm -f conftest.$ac_objext
29411 if { (ac_try="$ac_compile"
29412 case "(($ac_try" in
29413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414   *) ac_try_echo=$ac_try;;
29415 esac
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417   (eval "$ac_compile") 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } &&
29424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425   { (case "(($ac_try" in
29426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427   *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430   (eval "$ac_try") 2>&5
29431   ac_status=$?
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); }; } &&
29434          { ac_try='test -s conftest.$ac_objext'
29435   { (case "(($ac_try" in
29436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437   *) ac_try_echo=$ac_try;;
29438 esac
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440   (eval "$ac_try") 2>&5
29441   ac_status=$?
29442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443   (exit $ac_status); }; }; then
29444   ac_header_compiler=yes
29445 else
29446   echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29448
29449         ac_header_compiler=no
29450 fi
29451
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29454 echo "${ECHO_T}$ac_header_compiler" >&6; }
29455
29456 # Is the header present?
29457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29459 cat >conftest.$ac_ext <<_ACEOF
29460 /* confdefs.h.  */
29461 _ACEOF
29462 cat confdefs.h >>conftest.$ac_ext
29463 cat >>conftest.$ac_ext <<_ACEOF
29464 /* end confdefs.h.  */
29465 #include <$ac_header>
29466 _ACEOF
29467 if { (ac_try="$ac_cpp conftest.$ac_ext"
29468 case "(($ac_try" in
29469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470   *) ac_try_echo=$ac_try;;
29471 esac
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } >/dev/null; then
29480   if test -s conftest.err; then
29481     ac_cpp_err=$ac_c_preproc_warn_flag
29482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29483   else
29484     ac_cpp_err=
29485   fi
29486 else
29487   ac_cpp_err=yes
29488 fi
29489 if test -z "$ac_cpp_err"; then
29490   ac_header_preproc=yes
29491 else
29492   echo "$as_me: failed program was:" >&5
29493 sed 's/^/| /' conftest.$ac_ext >&5
29494
29495   ac_header_preproc=no
29496 fi
29497
29498 rm -f conftest.err conftest.$ac_ext
29499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29500 echo "${ECHO_T}$ac_header_preproc" >&6; }
29501
29502 # So?  What about this header?
29503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29504   yes:no: )
29505     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29509     ac_header_preproc=yes
29510     ;;
29511   no:yes:* )
29512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29514     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29515 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29516     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29518     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29519 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29522     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29524     ( cat <<\_ASBOX
29525 ## ----------------------------------- ##
29526 ## Report this to llvmbugs@cs.uiuc.edu ##
29527 ## ----------------------------------- ##
29528 _ASBOX
29529      ) | sed "s/^/$as_me: WARNING:     /" >&2
29530     ;;
29531 esac
29532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535   echo $ECHO_N "(cached) $ECHO_C" >&6
29536 else
29537   eval "$as_ac_Header=\$ac_header_preproc"
29538 fi
29539 ac_res=`eval echo '${'$as_ac_Header'}'`
29540                { echo "$as_me:$LINENO: result: $ac_res" >&5
29541 echo "${ECHO_T}$ac_res" >&6; }
29542
29543 fi
29544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29545   cat >>confdefs.h <<_ACEOF
29546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29547 _ACEOF
29548
29549 fi
29550
29551 done
29552
29553
29554
29555
29556
29557 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29558 do
29559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29564   echo $ECHO_N "(cached) $ECHO_C" >&6
29565 fi
29566 ac_res=`eval echo '${'$as_ac_Header'}'`
29567                { echo "$as_me:$LINENO: result: $ac_res" >&5
29568 echo "${ECHO_T}$ac_res" >&6; }
29569 else
29570   # Is the header compilable?
29571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29573 cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579 $ac_includes_default
29580 #include <$ac_header>
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_compile") 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597   { (case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602   (eval "$ac_try") 2>&5
29603   ac_status=$?
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); }; } &&
29606          { ac_try='test -s conftest.$ac_objext'
29607   { (case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_try") 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; }; then
29616   ac_header_compiler=yes
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621         ac_header_compiler=no
29622 fi
29623
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626 echo "${ECHO_T}$ac_header_compiler" >&6; }
29627
29628 # Is the header present?
29629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29631 cat >conftest.$ac_ext <<_ACEOF
29632 /* confdefs.h.  */
29633 _ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h.  */
29637 #include <$ac_header>
29638 _ACEOF
29639 if { (ac_try="$ac_cpp conftest.$ac_ext"
29640 case "(($ac_try" in
29641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642   *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } >/dev/null; then
29652   if test -s conftest.err; then
29653     ac_cpp_err=$ac_c_preproc_warn_flag
29654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655   else
29656     ac_cpp_err=
29657   fi
29658 else
29659   ac_cpp_err=yes
29660 fi
29661 if test -z "$ac_cpp_err"; then
29662   ac_header_preproc=yes
29663 else
29664   echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29666
29667   ac_header_preproc=no
29668 fi
29669
29670 rm -f conftest.err conftest.$ac_ext
29671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672 echo "${ECHO_T}$ac_header_preproc" >&6; }
29673
29674 # So?  What about this header?
29675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676   yes:no: )
29677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29681     ac_header_preproc=yes
29682     ;;
29683   no:yes:* )
29684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29696     ( cat <<\_ASBOX
29697 ## ----------------------------------- ##
29698 ## Report this to llvmbugs@cs.uiuc.edu ##
29699 ## ----------------------------------- ##
29700 _ASBOX
29701      ) | sed "s/^/$as_me: WARNING:     /" >&2
29702     ;;
29703 esac
29704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707   echo $ECHO_N "(cached) $ECHO_C" >&6
29708 else
29709   eval "$as_ac_Header=\$ac_header_preproc"
29710 fi
29711 ac_res=`eval echo '${'$as_ac_Header'}'`
29712                { echo "$as_me:$LINENO: result: $ac_res" >&5
29713 echo "${ECHO_T}$ac_res" >&6; }
29714
29715 fi
29716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717   cat >>confdefs.h <<_ACEOF
29718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719 _ACEOF
29720
29721 fi
29722
29723 done
29724
29725
29726
29727
29728 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29729 do
29730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29735   echo $ECHO_N "(cached) $ECHO_C" >&6
29736 fi
29737 ac_res=`eval echo '${'$as_ac_Header'}'`
29738                { echo "$as_me:$LINENO: result: $ac_res" >&5
29739 echo "${ECHO_T}$ac_res" >&6; }
29740 else
29741   # Is the header compilable?
29742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29744 cat >conftest.$ac_ext <<_ACEOF
29745 /* confdefs.h.  */
29746 _ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h.  */
29750 $ac_includes_default
29751 #include <$ac_header>
29752 _ACEOF
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757   *) ac_try_echo=$ac_try;;
29758 esac
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760   (eval "$ac_compile") 2>conftest.er1
29761   ac_status=$?
29762   grep -v '^ *+' conftest.er1 >conftest.err
29763   rm -f conftest.er1
29764   cat conftest.err >&5
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); } &&
29767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768   { (case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_try") 2>&5
29774   ac_status=$?
29775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776   (exit $ac_status); }; } &&
29777          { ac_try='test -s conftest.$ac_objext'
29778   { (case "(($ac_try" in
29779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780   *) ac_try_echo=$ac_try;;
29781 esac
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783   (eval "$ac_try") 2>&5
29784   ac_status=$?
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); }; }; then
29787   ac_header_compiler=yes
29788 else
29789   echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29791
29792         ac_header_compiler=no
29793 fi
29794
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797 echo "${ECHO_T}$ac_header_compiler" >&6; }
29798
29799 # Is the header present?
29800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29802 cat >conftest.$ac_ext <<_ACEOF
29803 /* confdefs.h.  */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h.  */
29808 #include <$ac_header>
29809 _ACEOF
29810 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
29823   if test -s conftest.err; then
29824     ac_cpp_err=$ac_c_preproc_warn_flag
29825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29826   else
29827     ac_cpp_err=
29828   fi
29829 else
29830   ac_cpp_err=yes
29831 fi
29832 if test -z "$ac_cpp_err"; then
29833   ac_header_preproc=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838   ac_header_preproc=no
29839 fi
29840
29841 rm -f conftest.err conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843 echo "${ECHO_T}$ac_header_preproc" >&6; }
29844
29845 # So?  What about this header?
29846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29847   yes:no: )
29848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29852     ac_header_preproc=yes
29853     ;;
29854   no:yes:* )
29855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29867     ( cat <<\_ASBOX
29868 ## ----------------------------------- ##
29869 ## Report this to llvmbugs@cs.uiuc.edu ##
29870 ## ----------------------------------- ##
29871 _ASBOX
29872      ) | sed "s/^/$as_me: WARNING:     /" >&2
29873     ;;
29874 esac
29875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29878   echo $ECHO_N "(cached) $ECHO_C" >&6
29879 else
29880   eval "$as_ac_Header=\$ac_header_preproc"
29881 fi
29882 ac_res=`eval echo '${'$as_ac_Header'}'`
29883                { echo "$as_me:$LINENO: result: $ac_res" >&5
29884 echo "${ECHO_T}$ac_res" >&6; }
29885
29886 fi
29887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888   cat >>confdefs.h <<_ACEOF
29889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29890 _ACEOF
29891
29892 fi
29893
29894 done
29895
29896 if test "$ENABLE_THREADS" -eq 1 ; then
29897
29898 for ac_header in pthread.h
29899 do
29900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29905   echo $ECHO_N "(cached) $ECHO_C" >&6
29906 fi
29907 ac_res=`eval echo '${'$as_ac_Header'}'`
29908                { echo "$as_me:$LINENO: result: $ac_res" >&5
29909 echo "${ECHO_T}$ac_res" >&6; }
29910 else
29911   # Is the header compilable?
29912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29914 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h.  */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h.  */
29920 $ac_includes_default
29921 #include <$ac_header>
29922 _ACEOF
29923 rm -f conftest.$ac_objext
29924 if { (ac_try="$ac_compile"
29925 case "(($ac_try" in
29926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927   *) ac_try_echo=$ac_try;;
29928 esac
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930   (eval "$ac_compile") 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938   { (case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_try") 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; } &&
29947          { ac_try='test -s conftest.$ac_objext'
29948   { (case "(($ac_try" in
29949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950   *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953   (eval "$ac_try") 2>&5
29954   ac_status=$?
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); }; }; then
29957   ac_header_compiler=yes
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962         ac_header_compiler=no
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29967 echo "${ECHO_T}$ac_header_compiler" >&6; }
29968
29969 # Is the header present?
29970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29972 cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h.  */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h.  */
29978 #include <$ac_header>
29979 _ACEOF
29980 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
29993   if test -s conftest.err; then
29994     ac_cpp_err=$ac_c_preproc_warn_flag
29995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29996   else
29997     ac_cpp_err=
29998   fi
29999 else
30000   ac_cpp_err=yes
30001 fi
30002 if test -z "$ac_cpp_err"; then
30003   ac_header_preproc=yes
30004 else
30005   echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30007
30008   ac_header_preproc=no
30009 fi
30010
30011 rm -f conftest.err conftest.$ac_ext
30012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30013 echo "${ECHO_T}$ac_header_preproc" >&6; }
30014
30015 # So?  What about this header?
30016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30017   yes:no: )
30018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30022     ac_header_preproc=yes
30023     ;;
30024   no:yes:* )
30025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30037     ( cat <<\_ASBOX
30038 ## ----------------------------------- ##
30039 ## Report this to llvmbugs@cs.uiuc.edu ##
30040 ## ----------------------------------- ##
30041 _ASBOX
30042      ) | sed "s/^/$as_me: WARNING:     /" >&2
30043     ;;
30044 esac
30045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050   eval "$as_ac_Header=\$ac_header_preproc"
30051 fi
30052 ac_res=`eval echo '${'$as_ac_Header'}'`
30053                { echo "$as_me:$LINENO: result: $ac_res" >&5
30054 echo "${ECHO_T}$ac_res" >&6; }
30055
30056 fi
30057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30058   cat >>confdefs.h <<_ACEOF
30059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30060 _ACEOF
30061  HAVE_PTHREAD=1
30062
30063 else
30064   HAVE_PTHREAD=0
30065
30066 fi
30067
30068 done
30069
30070 else
30071   HAVE_PTHREAD=0
30072
30073 fi
30074
30075 if test -n "$have_libffi" ; then
30076
30077
30078 for ac_header in ffi.h ffi/ffi.h
30079 do
30080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30082   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30085   echo $ECHO_N "(cached) $ECHO_C" >&6
30086 fi
30087 ac_res=`eval echo '${'$as_ac_Header'}'`
30088                { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30090 else
30091   # Is the header compilable?
30092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30094 cat >conftest.$ac_ext <<_ACEOF
30095 /* confdefs.h.  */
30096 _ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h.  */
30100 $ac_includes_default
30101 #include <$ac_header>
30102 _ACEOF
30103 rm -f conftest.$ac_objext
30104 if { (ac_try="$ac_compile"
30105 case "(($ac_try" in
30106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30107   *) ac_try_echo=$ac_try;;
30108 esac
30109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30110   (eval "$ac_compile") 2>conftest.er1
30111   ac_status=$?
30112   grep -v '^ *+' conftest.er1 >conftest.err
30113   rm -f conftest.er1
30114   cat conftest.err >&5
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); } &&
30117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30118   { (case "(($ac_try" in
30119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120   *) ac_try_echo=$ac_try;;
30121 esac
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123   (eval "$ac_try") 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); }; } &&
30127          { ac_try='test -s conftest.$ac_objext'
30128   { (case "(($ac_try" in
30129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130   *) ac_try_echo=$ac_try;;
30131 esac
30132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133   (eval "$ac_try") 2>&5
30134   ac_status=$?
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); }; }; then
30137   ac_header_compiler=yes
30138 else
30139   echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30141
30142         ac_header_compiler=no
30143 fi
30144
30145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30147 echo "${ECHO_T}$ac_header_compiler" >&6; }
30148
30149 # Is the header present?
30150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30152 cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158 #include <$ac_header>
30159 _ACEOF
30160 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30173   if test -s conftest.err; then
30174     ac_cpp_err=$ac_c_preproc_warn_flag
30175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30176   else
30177     ac_cpp_err=
30178   fi
30179 else
30180   ac_cpp_err=yes
30181 fi
30182 if test -z "$ac_cpp_err"; then
30183   ac_header_preproc=yes
30184 else
30185   echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30187
30188   ac_header_preproc=no
30189 fi
30190
30191 rm -f conftest.err conftest.$ac_ext
30192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193 echo "${ECHO_T}$ac_header_preproc" >&6; }
30194
30195 # So?  What about this header?
30196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30197   yes:no: )
30198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202     ac_header_preproc=yes
30203     ;;
30204   no:yes:* )
30205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30217     ( cat <<\_ASBOX
30218 ## ----------------------------------- ##
30219 ## Report this to llvmbugs@cs.uiuc.edu ##
30220 ## ----------------------------------- ##
30221 _ASBOX
30222      ) | sed "s/^/$as_me: WARNING:     /" >&2
30223     ;;
30224 esac
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228   echo $ECHO_N "(cached) $ECHO_C" >&6
30229 else
30230   eval "$as_ac_Header=\$ac_header_preproc"
30231 fi
30232 ac_res=`eval echo '${'$as_ac_Header'}'`
30233                { echo "$as_me:$LINENO: result: $ac_res" >&5
30234 echo "${ECHO_T}$ac_res" >&6; }
30235
30236 fi
30237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238   cat >>confdefs.h <<_ACEOF
30239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30240 _ACEOF
30241  HAVE_FFI=1
30242
30243 fi
30244
30245 done
30246
30247 fi
30248
30249
30250
30251   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30252 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30253 if test "${ac_cv_huge_val_sanity+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256
30257     ac_ext=cpp
30258 ac_cpp='$CXXCPP $CPPFLAGS'
30259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30262
30263     CXXFLAGS=-pedantic
30264     if test "$cross_compiling" = yes; then
30265   ac_cv_huge_val_sanity=yes
30266 else
30267   cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273 #include <math.h>
30274 int
30275 main ()
30276 {
30277 double x = HUGE_VAL; return x != x;
30278   ;
30279   return 0;
30280 }
30281 _ACEOF
30282 rm -f conftest$ac_exeext
30283 if { (ac_try="$ac_link"
30284 case "(($ac_try" in
30285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286   *) ac_try_echo=$ac_try;;
30287 esac
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289   (eval "$ac_link") 2>&5
30290   ac_status=$?
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30293   { (case "(($ac_try" in
30294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295   *) ac_try_echo=$ac_try;;
30296 esac
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298   (eval "$ac_try") 2>&5
30299   ac_status=$?
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); }; }; then
30302   ac_cv_huge_val_sanity=yes
30303 else
30304   echo "$as_me: program exited with status $ac_status" >&5
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30307
30308 ( exit $ac_status )
30309 ac_cv_huge_val_sanity=no
30310 fi
30311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30312 fi
30313
30314
30315     ac_ext=c
30316 ac_cpp='$CPP $CPPFLAGS'
30317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320
30321
30322 fi
30323 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30324 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30325   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30326
30327
30328 { echo "$as_me:$LINENO: checking for pid_t" >&5
30329 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30330 if test "${ac_cv_type_pid_t+set}" = set; then
30331   echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333   cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h.  */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h.  */
30339 $ac_includes_default
30340 typedef pid_t ac__type_new_;
30341 int
30342 main ()
30343 {
30344 if ((ac__type_new_ *) 0)
30345   return 0;
30346 if (sizeof (ac__type_new_))
30347   return 0;
30348   ;
30349   return 0;
30350 }
30351 _ACEOF
30352 rm -f conftest.$ac_objext
30353 if { (ac_try="$ac_compile"
30354 case "(($ac_try" in
30355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356   *) ac_try_echo=$ac_try;;
30357 esac
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359   (eval "$ac_compile") 2>conftest.er1
30360   ac_status=$?
30361   grep -v '^ *+' conftest.er1 >conftest.err
30362   rm -f conftest.er1
30363   cat conftest.err >&5
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); } &&
30366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30367   { (case "(($ac_try" in
30368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369   *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372   (eval "$ac_try") 2>&5
30373   ac_status=$?
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); }; } &&
30376          { ac_try='test -s conftest.$ac_objext'
30377   { (case "(($ac_try" in
30378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379   *) ac_try_echo=$ac_try;;
30380 esac
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382   (eval "$ac_try") 2>&5
30383   ac_status=$?
30384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385   (exit $ac_status); }; }; then
30386   ac_cv_type_pid_t=yes
30387 else
30388   echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30390
30391         ac_cv_type_pid_t=no
30392 fi
30393
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 fi
30396 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30397 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30398 if test $ac_cv_type_pid_t = yes; then
30399   :
30400 else
30401
30402 cat >>confdefs.h <<_ACEOF
30403 #define pid_t int
30404 _ACEOF
30405
30406 fi
30407
30408 { echo "$as_me:$LINENO: checking for size_t" >&5
30409 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30410 if test "${ac_cv_type_size_t+set}" = set; then
30411   echo $ECHO_N "(cached) $ECHO_C" >&6
30412 else
30413   cat >conftest.$ac_ext <<_ACEOF
30414 /* confdefs.h.  */
30415 _ACEOF
30416 cat confdefs.h >>conftest.$ac_ext
30417 cat >>conftest.$ac_ext <<_ACEOF
30418 /* end confdefs.h.  */
30419 $ac_includes_default
30420 typedef size_t ac__type_new_;
30421 int
30422 main ()
30423 {
30424 if ((ac__type_new_ *) 0)
30425   return 0;
30426 if (sizeof (ac__type_new_))
30427   return 0;
30428   ;
30429   return 0;
30430 }
30431 _ACEOF
30432 rm -f conftest.$ac_objext
30433 if { (ac_try="$ac_compile"
30434 case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_compile") 2>conftest.er1
30440   ac_status=$?
30441   grep -v '^ *+' conftest.er1 >conftest.err
30442   rm -f conftest.er1
30443   cat conftest.err >&5
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); } &&
30446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30447   { (case "(($ac_try" in
30448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449   *) ac_try_echo=$ac_try;;
30450 esac
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452   (eval "$ac_try") 2>&5
30453   ac_status=$?
30454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455   (exit $ac_status); }; } &&
30456          { ac_try='test -s conftest.$ac_objext'
30457   { (case "(($ac_try" in
30458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459   *) ac_try_echo=$ac_try;;
30460 esac
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462   (eval "$ac_try") 2>&5
30463   ac_status=$?
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); }; }; then
30466   ac_cv_type_size_t=yes
30467 else
30468   echo "$as_me: failed program was:" >&5
30469 sed 's/^/| /' conftest.$ac_ext >&5
30470
30471         ac_cv_type_size_t=no
30472 fi
30473
30474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30475 fi
30476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30478 if test $ac_cv_type_size_t = yes; then
30479   :
30480 else
30481
30482 cat >>confdefs.h <<_ACEOF
30483 #define size_t unsigned int
30484 _ACEOF
30485
30486 fi
30487
30488 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30489 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30490 if test "${ac_cv_type_signal+set}" = set; then
30491   echo $ECHO_N "(cached) $ECHO_C" >&6
30492 else
30493   cat >conftest.$ac_ext <<_ACEOF
30494 /* confdefs.h.  */
30495 _ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h.  */
30499 #include <sys/types.h>
30500 #include <signal.h>
30501
30502 int
30503 main ()
30504 {
30505 return *(signal (0, 0)) (0) == 1;
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } &&
30524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525   { (case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_try") 2>&5
30531   ac_status=$?
30532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533   (exit $ac_status); }; } &&
30534          { ac_try='test -s conftest.$ac_objext'
30535   { (case "(($ac_try" in
30536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537   *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540   (eval "$ac_try") 2>&5
30541   ac_status=$?
30542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543   (exit $ac_status); }; }; then
30544   ac_cv_type_signal=int
30545 else
30546   echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30548
30549         ac_cv_type_signal=void
30550 fi
30551
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553 fi
30554 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30555 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30556
30557 cat >>confdefs.h <<_ACEOF
30558 #define RETSIGTYPE $ac_cv_type_signal
30559 _ACEOF
30560
30561
30562 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30563 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30564 if test "${ac_cv_struct_tm+set}" = set; then
30565   echo $ECHO_N "(cached) $ECHO_C" >&6
30566 else
30567   cat >conftest.$ac_ext <<_ACEOF
30568 /* confdefs.h.  */
30569 _ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h.  */
30573 #include <sys/types.h>
30574 #include <time.h>
30575
30576 int
30577 main ()
30578 {
30579 struct tm *tp; tp->tm_sec;
30580   ;
30581   return 0;
30582 }
30583 _ACEOF
30584 rm -f conftest.$ac_objext
30585 if { (ac_try="$ac_compile"
30586 case "(($ac_try" in
30587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588   *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591   (eval "$ac_compile") 2>conftest.er1
30592   ac_status=$?
30593   grep -v '^ *+' conftest.er1 >conftest.err
30594   rm -f conftest.er1
30595   cat conftest.err >&5
30596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597   (exit $ac_status); } &&
30598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599   { (case "(($ac_try" in
30600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601   *) ac_try_echo=$ac_try;;
30602 esac
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604   (eval "$ac_try") 2>&5
30605   ac_status=$?
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); }; } &&
30608          { ac_try='test -s conftest.$ac_objext'
30609   { (case "(($ac_try" in
30610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611   *) ac_try_echo=$ac_try;;
30612 esac
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614   (eval "$ac_try") 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); }; }; then
30618   ac_cv_struct_tm=time.h
30619 else
30620   echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30622
30623         ac_cv_struct_tm=sys/time.h
30624 fi
30625
30626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627 fi
30628 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30629 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30630 if test $ac_cv_struct_tm = sys/time.h; then
30631
30632 cat >>confdefs.h <<\_ACEOF
30633 #define TM_IN_SYS_TIME 1
30634 _ACEOF
30635
30636 fi
30637
30638 { echo "$as_me:$LINENO: checking for int64_t" >&5
30639 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30640 if test "${ac_cv_type_int64_t+set}" = set; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643   cat >conftest.$ac_ext <<_ACEOF
30644 /* confdefs.h.  */
30645 _ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h.  */
30649 $ac_includes_default
30650 typedef int64_t ac__type_new_;
30651 int
30652 main ()
30653 {
30654 if ((ac__type_new_ *) 0)
30655   return 0;
30656 if (sizeof (ac__type_new_))
30657   return 0;
30658   ;
30659   return 0;
30660 }
30661 _ACEOF
30662 rm -f conftest.$ac_objext
30663 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30670   ac_status=$?
30671   grep -v '^ *+' conftest.er1 >conftest.err
30672   rm -f conftest.er1
30673   cat conftest.err >&5
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30677   { (case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_try") 2>&5
30683   ac_status=$?
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); }; } &&
30686          { ac_try='test -s conftest.$ac_objext'
30687   { (case "(($ac_try" in
30688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689   *) ac_try_echo=$ac_try;;
30690 esac
30691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692   (eval "$ac_try") 2>&5
30693   ac_status=$?
30694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695   (exit $ac_status); }; }; then
30696   ac_cv_type_int64_t=yes
30697 else
30698   echo "$as_me: failed program was:" >&5
30699 sed 's/^/| /' conftest.$ac_ext >&5
30700
30701         ac_cv_type_int64_t=no
30702 fi
30703
30704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705 fi
30706 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30707 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30708 if test $ac_cv_type_int64_t = yes; then
30709
30710 cat >>confdefs.h <<_ACEOF
30711 #define HAVE_INT64_T 1
30712 _ACEOF
30713
30714
30715 else
30716   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30717 echo "$as_me: error: Type int64_t required but not found" >&2;}
30718    { (exit 1); exit 1; }; }
30719 fi
30720
30721 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30722 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30723 if test "${ac_cv_type_uint64_t+set}" = set; then
30724   echo $ECHO_N "(cached) $ECHO_C" >&6
30725 else
30726   cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732 $ac_includes_default
30733 typedef uint64_t ac__type_new_;
30734 int
30735 main ()
30736 {
30737 if ((ac__type_new_ *) 0)
30738   return 0;
30739 if (sizeof (ac__type_new_))
30740   return 0;
30741   ;
30742   return 0;
30743 }
30744 _ACEOF
30745 rm -f conftest.$ac_objext
30746 if { (ac_try="$ac_compile"
30747 case "(($ac_try" in
30748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749   *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752   (eval "$ac_compile") 2>conftest.er1
30753   ac_status=$?
30754   grep -v '^ *+' conftest.er1 >conftest.err
30755   rm -f conftest.er1
30756   cat conftest.err >&5
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } &&
30759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760   { (case "(($ac_try" in
30761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762   *) ac_try_echo=$ac_try;;
30763 esac
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765   (eval "$ac_try") 2>&5
30766   ac_status=$?
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); }; } &&
30769          { ac_try='test -s conftest.$ac_objext'
30770   { (case "(($ac_try" in
30771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772   *) ac_try_echo=$ac_try;;
30773 esac
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775   (eval "$ac_try") 2>&5
30776   ac_status=$?
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); }; }; then
30779   ac_cv_type_uint64_t=yes
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784         ac_cv_type_uint64_t=no
30785 fi
30786
30787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30788 fi
30789 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30790 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30791 if test $ac_cv_type_uint64_t = yes; then
30792
30793 cat >>confdefs.h <<_ACEOF
30794 #define HAVE_UINT64_T 1
30795 _ACEOF
30796
30797
30798 else
30799   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30800 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30801 if test "${ac_cv_type_u_int64_t+set}" = set; then
30802   echo $ECHO_N "(cached) $ECHO_C" >&6
30803 else
30804   cat >conftest.$ac_ext <<_ACEOF
30805 /* confdefs.h.  */
30806 _ACEOF
30807 cat confdefs.h >>conftest.$ac_ext
30808 cat >>conftest.$ac_ext <<_ACEOF
30809 /* end confdefs.h.  */
30810 $ac_includes_default
30811 typedef u_int64_t ac__type_new_;
30812 int
30813 main ()
30814 {
30815 if ((ac__type_new_ *) 0)
30816   return 0;
30817 if (sizeof (ac__type_new_))
30818   return 0;
30819   ;
30820   return 0;
30821 }
30822 _ACEOF
30823 rm -f conftest.$ac_objext
30824 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30831   ac_status=$?
30832   grep -v '^ *+' conftest.er1 >conftest.err
30833   rm -f conftest.er1
30834   cat conftest.err >&5
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); } &&
30837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838   { (case "(($ac_try" in
30839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840   *) ac_try_echo=$ac_try;;
30841 esac
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843   (eval "$ac_try") 2>&5
30844   ac_status=$?
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); }; } &&
30847          { ac_try='test -s conftest.$ac_objext'
30848   { (case "(($ac_try" in
30849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850   *) ac_try_echo=$ac_try;;
30851 esac
30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853   (eval "$ac_try") 2>&5
30854   ac_status=$?
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); }; }; then
30857   ac_cv_type_u_int64_t=yes
30858 else
30859   echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30861
30862         ac_cv_type_u_int64_t=no
30863 fi
30864
30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866 fi
30867 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30868 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30869 if test $ac_cv_type_u_int64_t = yes; then
30870
30871 cat >>confdefs.h <<_ACEOF
30872 #define HAVE_U_INT64_T 1
30873 _ACEOF
30874
30875
30876 else
30877   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30878 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30879    { (exit 1); exit 1; }; }
30880 fi
30881
30882 fi
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30894 do
30895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30899   echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901   cat >conftest.$ac_ext <<_ACEOF
30902 /* confdefs.h.  */
30903 _ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h.  */
30907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30909 #define $ac_func innocuous_$ac_func
30910
30911 /* System header to define __stub macros and hopefully few prototypes,
30912     which can conflict with char $ac_func (); below.
30913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30914     <limits.h> exists even on freestanding compilers.  */
30915
30916 #ifdef __STDC__
30917 # include <limits.h>
30918 #else
30919 # include <assert.h>
30920 #endif
30921
30922 #undef $ac_func
30923
30924 /* Override any GCC internal prototype to avoid an error.
30925    Use char because int might match the return type of a GCC
30926    builtin and then its argument prototype would still apply.  */
30927 #ifdef __cplusplus
30928 extern "C"
30929 #endif
30930 char $ac_func ();
30931 /* The GNU C library defines this for functions which it implements
30932     to always fail with ENOSYS.  Some functions are actually named
30933     something starting with __ and the normal name is an alias.  */
30934 #if defined __stub_$ac_func || defined __stub___$ac_func
30935 choke me
30936 #endif
30937
30938 int
30939 main ()
30940 {
30941 return $ac_func ();
30942   ;
30943   return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (ac_try="$ac_link"
30948 case "(($ac_try" in
30949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950   *) ac_try_echo=$ac_try;;
30951 esac
30952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953   (eval "$ac_link") 2>conftest.er1
30954   ac_status=$?
30955   grep -v '^ *+' conftest.er1 >conftest.err
30956   rm -f conftest.er1
30957   cat conftest.err >&5
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); } &&
30960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30961   { (case "(($ac_try" in
30962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963   *) ac_try_echo=$ac_try;;
30964 esac
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966   (eval "$ac_try") 2>&5
30967   ac_status=$?
30968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969   (exit $ac_status); }; } &&
30970          { ac_try='test -s conftest$ac_exeext'
30971   { (case "(($ac_try" in
30972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973   *) ac_try_echo=$ac_try;;
30974 esac
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976   (eval "$ac_try") 2>&5
30977   ac_status=$?
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); }; }; then
30980   eval "$as_ac_var=yes"
30981 else
30982   echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985         eval "$as_ac_var=no"
30986 fi
30987
30988 rm -f core conftest.err conftest.$ac_objext \
30989       conftest$ac_exeext conftest.$ac_ext
30990 fi
30991 ac_res=`eval echo '${'$as_ac_var'}'`
30992                { echo "$as_me:$LINENO: result: $ac_res" >&5
30993 echo "${ECHO_T}$ac_res" >&6; }
30994 if test `eval echo '${'$as_ac_var'}'` = yes; then
30995   cat >>confdefs.h <<_ACEOF
30996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30997 _ACEOF
30998
30999 fi
31000 done
31001
31002
31003
31004
31005
31006 for ac_func in powf fmodf strtof round
31007 do
31008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31012   echo $ECHO_N "(cached) $ECHO_C" >&6
31013 else
31014   cat >conftest.$ac_ext <<_ACEOF
31015 /* confdefs.h.  */
31016 _ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h.  */
31020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31022 #define $ac_func innocuous_$ac_func
31023
31024 /* System header to define __stub macros and hopefully few prototypes,
31025     which can conflict with char $ac_func (); below.
31026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027     <limits.h> exists even on freestanding compilers.  */
31028
31029 #ifdef __STDC__
31030 # include <limits.h>
31031 #else
31032 # include <assert.h>
31033 #endif
31034
31035 #undef $ac_func
31036
31037 /* Override any GCC internal prototype to avoid an error.
31038    Use char because int might match the return type of a GCC
31039    builtin and then its argument prototype would still apply.  */
31040 #ifdef __cplusplus
31041 extern "C"
31042 #endif
31043 char $ac_func ();
31044 /* The GNU C library defines this for functions which it implements
31045     to always fail with ENOSYS.  Some functions are actually named
31046     something starting with __ and the normal name is an alias.  */
31047 #if defined __stub_$ac_func || defined __stub___$ac_func
31048 choke me
31049 #endif
31050
31051 int
31052 main ()
31053 {
31054 return $ac_func ();
31055   ;
31056   return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (ac_try="$ac_link"
31061 case "(($ac_try" in
31062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063   *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066   (eval "$ac_link") 2>conftest.er1
31067   ac_status=$?
31068   grep -v '^ *+' conftest.er1 >conftest.err
31069   rm -f conftest.er1
31070   cat conftest.err >&5
31071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072   (exit $ac_status); } &&
31073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31074   { (case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_try") 2>&5
31080   ac_status=$?
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); }; } &&
31083          { ac_try='test -s conftest$ac_exeext'
31084   { (case "(($ac_try" in
31085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086   *) ac_try_echo=$ac_try;;
31087 esac
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089   (eval "$ac_try") 2>&5
31090   ac_status=$?
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); }; }; then
31093   eval "$as_ac_var=yes"
31094 else
31095   echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098         eval "$as_ac_var=no"
31099 fi
31100
31101 rm -f core conftest.err conftest.$ac_objext \
31102       conftest$ac_exeext conftest.$ac_ext
31103 fi
31104 ac_res=`eval echo '${'$as_ac_var'}'`
31105                { echo "$as_me:$LINENO: result: $ac_res" >&5
31106 echo "${ECHO_T}$ac_res" >&6; }
31107 if test `eval echo '${'$as_ac_var'}'` = yes; then
31108   cat >>confdefs.h <<_ACEOF
31109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31110 _ACEOF
31111
31112 fi
31113 done
31114
31115
31116
31117
31118
31119
31120 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31121 do
31122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31126   echo $ECHO_N "(cached) $ECHO_C" >&6
31127 else
31128   cat >conftest.$ac_ext <<_ACEOF
31129 /* confdefs.h.  */
31130 _ACEOF
31131 cat confdefs.h >>conftest.$ac_ext
31132 cat >>conftest.$ac_ext <<_ACEOF
31133 /* end confdefs.h.  */
31134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31136 #define $ac_func innocuous_$ac_func
31137
31138 /* System header to define __stub macros and hopefully few prototypes,
31139     which can conflict with char $ac_func (); below.
31140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31141     <limits.h> exists even on freestanding compilers.  */
31142
31143 #ifdef __STDC__
31144 # include <limits.h>
31145 #else
31146 # include <assert.h>
31147 #endif
31148
31149 #undef $ac_func
31150
31151 /* Override any GCC internal prototype to avoid an error.
31152    Use char because int might match the return type of a GCC
31153    builtin and then its argument prototype would still apply.  */
31154 #ifdef __cplusplus
31155 extern "C"
31156 #endif
31157 char $ac_func ();
31158 /* The GNU C library defines this for functions which it implements
31159     to always fail with ENOSYS.  Some functions are actually named
31160     something starting with __ and the normal name is an alias.  */
31161 #if defined __stub_$ac_func || defined __stub___$ac_func
31162 choke me
31163 #endif
31164
31165 int
31166 main ()
31167 {
31168 return $ac_func ();
31169   ;
31170   return 0;
31171 }
31172 _ACEOF
31173 rm -f conftest.$ac_objext conftest$ac_exeext
31174 if { (ac_try="$ac_link"
31175 case "(($ac_try" in
31176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177   *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180   (eval "$ac_link") 2>conftest.er1
31181   ac_status=$?
31182   grep -v '^ *+' conftest.er1 >conftest.err
31183   rm -f conftest.er1
31184   cat conftest.err >&5
31185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186   (exit $ac_status); } &&
31187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31188   { (case "(($ac_try" in
31189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190   *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193   (eval "$ac_try") 2>&5
31194   ac_status=$?
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); }; } &&
31197          { ac_try='test -s conftest$ac_exeext'
31198   { (case "(($ac_try" in
31199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200   *) ac_try_echo=$ac_try;;
31201 esac
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203   (eval "$ac_try") 2>&5
31204   ac_status=$?
31205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206   (exit $ac_status); }; }; then
31207   eval "$as_ac_var=yes"
31208 else
31209   echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31211
31212         eval "$as_ac_var=no"
31213 fi
31214
31215 rm -f core conftest.err conftest.$ac_objext \
31216       conftest$ac_exeext conftest.$ac_ext
31217 fi
31218 ac_res=`eval echo '${'$as_ac_var'}'`
31219                { echo "$as_me:$LINENO: result: $ac_res" >&5
31220 echo "${ECHO_T}$ac_res" >&6; }
31221 if test `eval echo '${'$as_ac_var'}'` = yes; then
31222   cat >>confdefs.h <<_ACEOF
31223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224 _ACEOF
31225
31226 fi
31227 done
31228
31229
31230
31231
31232 for ac_func in isatty mkdtemp mkstemp
31233 do
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238   echo $ECHO_N "(cached) $ECHO_C" >&6
31239 else
31240   cat >conftest.$ac_ext <<_ACEOF
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31248 #define $ac_func innocuous_$ac_func
31249
31250 /* System header to define __stub macros and hopefully few prototypes,
31251     which can conflict with char $ac_func (); below.
31252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253     <limits.h> exists even on freestanding compilers.  */
31254
31255 #ifdef __STDC__
31256 # include <limits.h>
31257 #else
31258 # include <assert.h>
31259 #endif
31260
31261 #undef $ac_func
31262
31263 /* Override any GCC internal prototype to avoid an error.
31264    Use char because int might match the return type of a GCC
31265    builtin and then its argument prototype would still apply.  */
31266 #ifdef __cplusplus
31267 extern "C"
31268 #endif
31269 char $ac_func ();
31270 /* The GNU C library defines this for functions which it implements
31271     to always fail with ENOSYS.  Some functions are actually named
31272     something starting with __ and the normal name is an alias.  */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31274 choke me
31275 #endif
31276
31277 int
31278 main ()
31279 {
31280 return $ac_func ();
31281   ;
31282   return 0;
31283 }
31284 _ACEOF
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_link") 2>conftest.er1
31293   ac_status=$?
31294   grep -v '^ *+' conftest.er1 >conftest.err
31295   rm -f conftest.er1
31296   cat conftest.err >&5
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); } &&
31299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300   { (case "(($ac_try" in
31301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302   *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305   (eval "$ac_try") 2>&5
31306   ac_status=$?
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); }; } &&
31309          { ac_try='test -s conftest$ac_exeext'
31310   { (case "(($ac_try" in
31311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312   *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315   (eval "$ac_try") 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); }; }; then
31319   eval "$as_ac_var=yes"
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324         eval "$as_ac_var=no"
31325 fi
31326
31327 rm -f core conftest.err conftest.$ac_objext \
31328       conftest$ac_exeext conftest.$ac_ext
31329 fi
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331                { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334   cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336 _ACEOF
31337
31338 fi
31339 done
31340
31341
31342
31343
31344
31345
31346
31347
31348 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31349 do
31350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   cat >conftest.$ac_ext <<_ACEOF
31357 /* confdefs.h.  */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h.  */
31362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31364 #define $ac_func innocuous_$ac_func
31365
31366 /* System header to define __stub macros and hopefully few prototypes,
31367     which can conflict with char $ac_func (); below.
31368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31369     <limits.h> exists even on freestanding compilers.  */
31370
31371 #ifdef __STDC__
31372 # include <limits.h>
31373 #else
31374 # include <assert.h>
31375 #endif
31376
31377 #undef $ac_func
31378
31379 /* Override any GCC internal prototype to avoid an error.
31380    Use char because int might match the return type of a GCC
31381    builtin and then its argument prototype would still apply.  */
31382 #ifdef __cplusplus
31383 extern "C"
31384 #endif
31385 char $ac_func ();
31386 /* The GNU C library defines this for functions which it implements
31387     to always fail with ENOSYS.  Some functions are actually named
31388     something starting with __ and the normal name is an alias.  */
31389 #if defined __stub_$ac_func || defined __stub___$ac_func
31390 choke me
31391 #endif
31392
31393 int
31394 main ()
31395 {
31396 return $ac_func ();
31397   ;
31398   return 0;
31399 }
31400 _ACEOF
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (ac_try="$ac_link"
31403 case "(($ac_try" in
31404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405   *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408   (eval "$ac_link") 2>conftest.er1
31409   ac_status=$?
31410   grep -v '^ *+' conftest.er1 >conftest.err
31411   rm -f conftest.er1
31412   cat conftest.err >&5
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); } &&
31415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31416   { (case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_try") 2>&5
31422   ac_status=$?
31423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424   (exit $ac_status); }; } &&
31425          { ac_try='test -s conftest$ac_exeext'
31426   { (case "(($ac_try" in
31427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428   *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431   (eval "$ac_try") 2>&5
31432   ac_status=$?
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); }; }; then
31435   eval "$as_ac_var=yes"
31436 else
31437   echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31439
31440         eval "$as_ac_var=no"
31441 fi
31442
31443 rm -f core conftest.err conftest.$ac_objext \
31444       conftest$ac_exeext conftest.$ac_ext
31445 fi
31446 ac_res=`eval echo '${'$as_ac_var'}'`
31447                { echo "$as_me:$LINENO: result: $ac_res" >&5
31448 echo "${ECHO_T}$ac_res" >&6; }
31449 if test `eval echo '${'$as_ac_var'}'` = yes; then
31450   cat >>confdefs.h <<_ACEOF
31451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31452 _ACEOF
31453
31454 fi
31455 done
31456
31457
31458
31459
31460
31461 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31462 do
31463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31467   echo $ECHO_N "(cached) $ECHO_C" >&6
31468 else
31469   cat >conftest.$ac_ext <<_ACEOF
31470 /* confdefs.h.  */
31471 _ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h.  */
31475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31477 #define $ac_func innocuous_$ac_func
31478
31479 /* System header to define __stub macros and hopefully few prototypes,
31480     which can conflict with char $ac_func (); below.
31481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482     <limits.h> exists even on freestanding compilers.  */
31483
31484 #ifdef __STDC__
31485 # include <limits.h>
31486 #else
31487 # include <assert.h>
31488 #endif
31489
31490 #undef $ac_func
31491
31492 /* Override any GCC internal prototype to avoid an error.
31493    Use char because int might match the return type of a GCC
31494    builtin and then its argument prototype would still apply.  */
31495 #ifdef __cplusplus
31496 extern "C"
31497 #endif
31498 char $ac_func ();
31499 /* The GNU C library defines this for functions which it implements
31500     to always fail with ENOSYS.  Some functions are actually named
31501     something starting with __ and the normal name is an alias.  */
31502 #if defined __stub_$ac_func || defined __stub___$ac_func
31503 choke me
31504 #endif
31505
31506 int
31507 main ()
31508 {
31509 return $ac_func ();
31510   ;
31511   return 0;
31512 }
31513 _ACEOF
31514 rm -f conftest.$ac_objext conftest$ac_exeext
31515 if { (ac_try="$ac_link"
31516 case "(($ac_try" in
31517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518   *) ac_try_echo=$ac_try;;
31519 esac
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521   (eval "$ac_link") 2>conftest.er1
31522   ac_status=$?
31523   grep -v '^ *+' conftest.er1 >conftest.err
31524   rm -f conftest.er1
31525   cat conftest.err >&5
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); } &&
31528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31529   { (case "(($ac_try" in
31530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531   *) ac_try_echo=$ac_try;;
31532 esac
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534   (eval "$ac_try") 2>&5
31535   ac_status=$?
31536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537   (exit $ac_status); }; } &&
31538          { ac_try='test -s conftest$ac_exeext'
31539   { (case "(($ac_try" in
31540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541   *) ac_try_echo=$ac_try;;
31542 esac
31543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544   (eval "$ac_try") 2>&5
31545   ac_status=$?
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); }; }; then
31548   eval "$as_ac_var=yes"
31549 else
31550   echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31552
31553         eval "$as_ac_var=no"
31554 fi
31555
31556 rm -f core conftest.err conftest.$ac_objext \
31557       conftest$ac_exeext conftest.$ac_ext
31558 fi
31559 ac_res=`eval echo '${'$as_ac_var'}'`
31560                { echo "$as_me:$LINENO: result: $ac_res" >&5
31561 echo "${ECHO_T}$ac_res" >&6; }
31562 if test `eval echo '${'$as_ac_var'}'` = yes; then
31563   cat >>confdefs.h <<_ACEOF
31564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31565 _ACEOF
31566
31567 fi
31568 done
31569
31570
31571
31572
31573
31574 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31575 do
31576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31580   echo $ECHO_N "(cached) $ECHO_C" >&6
31581 else
31582   cat >conftest.$ac_ext <<_ACEOF
31583 /* confdefs.h.  */
31584 _ACEOF
31585 cat confdefs.h >>conftest.$ac_ext
31586 cat >>conftest.$ac_ext <<_ACEOF
31587 /* end confdefs.h.  */
31588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31590 #define $ac_func innocuous_$ac_func
31591
31592 /* System header to define __stub macros and hopefully few prototypes,
31593     which can conflict with char $ac_func (); below.
31594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31595     <limits.h> exists even on freestanding compilers.  */
31596
31597 #ifdef __STDC__
31598 # include <limits.h>
31599 #else
31600 # include <assert.h>
31601 #endif
31602
31603 #undef $ac_func
31604
31605 /* Override any GCC internal prototype to avoid an error.
31606    Use char because int might match the return type of a GCC
31607    builtin and then its argument prototype would still apply.  */
31608 #ifdef __cplusplus
31609 extern "C"
31610 #endif
31611 char $ac_func ();
31612 /* The GNU C library defines this for functions which it implements
31613     to always fail with ENOSYS.  Some functions are actually named
31614     something starting with __ and the normal name is an alias.  */
31615 #if defined __stub_$ac_func || defined __stub___$ac_func
31616 choke me
31617 #endif
31618
31619 int
31620 main ()
31621 {
31622 return $ac_func ();
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 rm -f conftest.$ac_objext conftest$ac_exeext
31628 if { (ac_try="$ac_link"
31629 case "(($ac_try" in
31630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631   *) ac_try_echo=$ac_try;;
31632 esac
31633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634   (eval "$ac_link") 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } &&
31641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31642   { (case "(($ac_try" in
31643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644   *) ac_try_echo=$ac_try;;
31645 esac
31646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647   (eval "$ac_try") 2>&5
31648   ac_status=$?
31649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650   (exit $ac_status); }; } &&
31651          { ac_try='test -s conftest$ac_exeext'
31652   { (case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_try") 2>&5
31658   ac_status=$?
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); }; }; then
31661   eval "$as_ac_var=yes"
31662 else
31663   echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31665
31666         eval "$as_ac_var=no"
31667 fi
31668
31669 rm -f core conftest.err conftest.$ac_objext \
31670       conftest$ac_exeext conftest.$ac_ext
31671 fi
31672 ac_res=`eval echo '${'$as_ac_var'}'`
31673                { echo "$as_me:$LINENO: result: $ac_res" >&5
31674 echo "${ECHO_T}$ac_res" >&6; }
31675 if test `eval echo '${'$as_ac_var'}'` = yes; then
31676   cat >>confdefs.h <<_ACEOF
31677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31678 _ACEOF
31679
31680 fi
31681 done
31682
31683 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31684 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31685 if test "${llvm_cv_c_printf_a+set}" = set; then
31686   echo $ECHO_N "(cached) $ECHO_C" >&6
31687 else
31688   ac_ext=c
31689 ac_cpp='$CPP $CPPFLAGS'
31690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31693
31694  if test "$cross_compiling" = yes; then
31695   llvmac_cv_c_printf_a=no
31696 else
31697   cat >conftest.$ac_ext <<_ACEOF
31698
31699   /* confdefs.h.  */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h.  */
31704
31705 #include <stdio.h>
31706 #include <stdlib.h>
31707
31708 int
31709 main ()
31710 {
31711
31712 volatile double A, B;
31713 char Buffer[100];
31714 A = 1;
31715 A /= 10.0;
31716 sprintf(Buffer, "%a", A);
31717 B = atof(Buffer);
31718 if (A != B)
31719   return (1);
31720 if (A != 0x1.999999999999ap-4)
31721   return (1);
31722 return (0);
31723   ;
31724   return 0;
31725 }
31726 _ACEOF
31727 rm -f conftest$ac_exeext
31728 if { (ac_try="$ac_link"
31729 case "(($ac_try" in
31730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731   *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734   (eval "$ac_link") 2>&5
31735   ac_status=$?
31736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31738   { (case "(($ac_try" in
31739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740   *) ac_try_echo=$ac_try;;
31741 esac
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743   (eval "$ac_try") 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; }; then
31747   llvm_cv_c_printf_a=yes
31748 else
31749   echo "$as_me: program exited with status $ac_status" >&5
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31752
31753 ( exit $ac_status )
31754 llvmac_cv_c_printf_a=no
31755 fi
31756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31757 fi
31758
31759
31760  ac_ext=c
31761 ac_cpp='$CPP $CPPFLAGS'
31762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
31766 fi
31767 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31768 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31769  if test "$llvm_cv_c_printf_a" = "yes"; then
31770
31771 cat >>confdefs.h <<\_ACEOF
31772 #define HAVE_PRINTF_A 1
31773 _ACEOF
31774
31775  fi
31776
31777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31778 # for constant arguments.  Useless!
31779 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31780 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31781 if test "${ac_cv_working_alloca_h+set}" = set; then
31782   echo $ECHO_N "(cached) $ECHO_C" >&6
31783 else
31784   cat >conftest.$ac_ext <<_ACEOF
31785 /* confdefs.h.  */
31786 _ACEOF
31787 cat confdefs.h >>conftest.$ac_ext
31788 cat >>conftest.$ac_ext <<_ACEOF
31789 /* end confdefs.h.  */
31790 #include <alloca.h>
31791 int
31792 main ()
31793 {
31794 char *p = (char *) alloca (2 * sizeof (int));
31795                           if (p) return 0;
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext conftest$ac_exeext
31801 if { (ac_try="$ac_link"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_link") 2>conftest.er1
31808   ac_status=$?
31809   grep -v '^ *+' conftest.er1 >conftest.err
31810   rm -f conftest.er1
31811   cat conftest.err >&5
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); } &&
31814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815   { (case "(($ac_try" in
31816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817   *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820   (eval "$ac_try") 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; } &&
31824          { ac_try='test -s conftest$ac_exeext'
31825   { (case "(($ac_try" in
31826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827   *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830   (eval "$ac_try") 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   ac_cv_working_alloca_h=yes
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839         ac_cv_working_alloca_h=no
31840 fi
31841
31842 rm -f core conftest.err conftest.$ac_objext \
31843       conftest$ac_exeext conftest.$ac_ext
31844 fi
31845 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31846 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31847 if test $ac_cv_working_alloca_h = yes; then
31848
31849 cat >>confdefs.h <<\_ACEOF
31850 #define HAVE_ALLOCA_H 1
31851 _ACEOF
31852
31853 fi
31854
31855 { echo "$as_me:$LINENO: checking for alloca" >&5
31856 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31857 if test "${ac_cv_func_alloca_works+set}" = set; then
31858   echo $ECHO_N "(cached) $ECHO_C" >&6
31859 else
31860   cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h.  */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h.  */
31866 #ifdef __GNUC__
31867 # define alloca __builtin_alloca
31868 #else
31869 # ifdef _MSC_VER
31870 #  include <malloc.h>
31871 #  define alloca _alloca
31872 # else
31873 #  if HAVE_ALLOCA_H
31874 #   include <alloca.h>
31875 #  else
31876 #   ifdef _AIX
31877  #pragma alloca
31878 #   else
31879 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31880 char *alloca ();
31881 #    endif
31882 #   endif
31883 #  endif
31884 # endif
31885 #endif
31886
31887 int
31888 main ()
31889 {
31890 char *p = (char *) alloca (1);
31891                                     if (p) return 0;
31892   ;
31893   return 0;
31894 }
31895 _ACEOF
31896 rm -f conftest.$ac_objext conftest$ac_exeext
31897 if { (ac_try="$ac_link"
31898 case "(($ac_try" in
31899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900   *) ac_try_echo=$ac_try;;
31901 esac
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903   (eval "$ac_link") 2>conftest.er1
31904   ac_status=$?
31905   grep -v '^ *+' conftest.er1 >conftest.err
31906   rm -f conftest.er1
31907   cat conftest.err >&5
31908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909   (exit $ac_status); } &&
31910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31911   { (case "(($ac_try" in
31912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913   *) ac_try_echo=$ac_try;;
31914 esac
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916   (eval "$ac_try") 2>&5
31917   ac_status=$?
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); }; } &&
31920          { ac_try='test -s conftest$ac_exeext'
31921   { (case "(($ac_try" in
31922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923   *) ac_try_echo=$ac_try;;
31924 esac
31925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926   (eval "$ac_try") 2>&5
31927   ac_status=$?
31928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929   (exit $ac_status); }; }; then
31930   ac_cv_func_alloca_works=yes
31931 else
31932   echo "$as_me: failed program was:" >&5
31933 sed 's/^/| /' conftest.$ac_ext >&5
31934
31935         ac_cv_func_alloca_works=no
31936 fi
31937
31938 rm -f core conftest.err conftest.$ac_objext \
31939       conftest$ac_exeext conftest.$ac_ext
31940 fi
31941 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31942 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31943
31944 if test $ac_cv_func_alloca_works = yes; then
31945
31946 cat >>confdefs.h <<\_ACEOF
31947 #define HAVE_ALLOCA 1
31948 _ACEOF
31949
31950 else
31951   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31952 # that cause trouble.  Some versions do not even contain alloca or
31953 # contain a buggy version.  If you still want to use their alloca,
31954 # use ar to extract alloca.o from them instead of compiling alloca.c.
31955
31956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31957
31958 cat >>confdefs.h <<\_ACEOF
31959 #define C_ALLOCA 1
31960 _ACEOF
31961
31962
31963 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31964 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31965 if test "${ac_cv_os_cray+set}" = set; then
31966   echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968   cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974 #if defined CRAY && ! defined CRAY2
31975 webecray
31976 #else
31977 wenotbecray
31978 #endif
31979
31980 _ACEOF
31981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31982   $EGREP "webecray" >/dev/null 2>&1; then
31983   ac_cv_os_cray=yes
31984 else
31985   ac_cv_os_cray=no
31986 fi
31987 rm -f conftest*
31988
31989 fi
31990 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31991 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31992 if test $ac_cv_os_cray = yes; then
31993   for ac_func in _getb67 GETB67 getb67; do
31994     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998   echo $ECHO_N "(cached) $ECHO_C" >&6
31999 else
32000   cat >conftest.$ac_ext <<_ACEOF
32001 /* confdefs.h.  */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h.  */
32006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32008 #define $ac_func innocuous_$ac_func
32009
32010 /* System header to define __stub macros and hopefully few prototypes,
32011     which can conflict with char $ac_func (); below.
32012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013     <limits.h> exists even on freestanding compilers.  */
32014
32015 #ifdef __STDC__
32016 # include <limits.h>
32017 #else
32018 # include <assert.h>
32019 #endif
32020
32021 #undef $ac_func
32022
32023 /* Override any GCC internal prototype to avoid an error.
32024    Use char because int might match the return type of a GCC
32025    builtin and then its argument prototype would still apply.  */
32026 #ifdef __cplusplus
32027 extern "C"
32028 #endif
32029 char $ac_func ();
32030 /* The GNU C library defines this for functions which it implements
32031     to always fail with ENOSYS.  Some functions are actually named
32032     something starting with __ and the normal name is an alias.  */
32033 #if defined __stub_$ac_func || defined __stub___$ac_func
32034 choke me
32035 #endif
32036
32037 int
32038 main ()
32039 {
32040 return $ac_func ();
32041   ;
32042   return 0;
32043 }
32044 _ACEOF
32045 rm -f conftest.$ac_objext conftest$ac_exeext
32046 if { (ac_try="$ac_link"
32047 case "(($ac_try" in
32048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049   *) ac_try_echo=$ac_try;;
32050 esac
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052   (eval "$ac_link") 2>conftest.er1
32053   ac_status=$?
32054   grep -v '^ *+' conftest.er1 >conftest.err
32055   rm -f conftest.er1
32056   cat conftest.err >&5
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); } &&
32059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060   { (case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065   (eval "$ac_try") 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; } &&
32069          { ac_try='test -s conftest$ac_exeext'
32070   { (case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_try") 2>&5
32076   ac_status=$?
32077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078   (exit $ac_status); }; }; then
32079   eval "$as_ac_var=yes"
32080 else
32081   echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32083
32084         eval "$as_ac_var=no"
32085 fi
32086
32087 rm -f core conftest.err conftest.$ac_objext \
32088       conftest$ac_exeext conftest.$ac_ext
32089 fi
32090 ac_res=`eval echo '${'$as_ac_var'}'`
32091                { echo "$as_me:$LINENO: result: $ac_res" >&5
32092 echo "${ECHO_T}$ac_res" >&6; }
32093 if test `eval echo '${'$as_ac_var'}'` = yes; then
32094
32095 cat >>confdefs.h <<_ACEOF
32096 #define CRAY_STACKSEG_END $ac_func
32097 _ACEOF
32098
32099     break
32100 fi
32101
32102   done
32103 fi
32104
32105 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32106 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32107 if test "${ac_cv_c_stack_direction+set}" = set; then
32108   echo $ECHO_N "(cached) $ECHO_C" >&6
32109 else
32110   if test "$cross_compiling" = yes; then
32111   ac_cv_c_stack_direction=0
32112 else
32113   cat >conftest.$ac_ext <<_ACEOF
32114 /* confdefs.h.  */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h.  */
32119 $ac_includes_default
32120 int
32121 find_stack_direction ()
32122 {
32123   static char *addr = 0;
32124   auto char dummy;
32125   if (addr == 0)
32126     {
32127       addr = &dummy;
32128       return find_stack_direction ();
32129     }
32130   else
32131     return (&dummy > addr) ? 1 : -1;
32132 }
32133
32134 int
32135 main ()
32136 {
32137   return find_stack_direction () < 0;
32138 }
32139 _ACEOF
32140 rm -f conftest$ac_exeext
32141 if { (ac_try="$ac_link"
32142 case "(($ac_try" in
32143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144   *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147   (eval "$ac_link") 2>&5
32148   ac_status=$?
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32151   { (case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_try") 2>&5
32157   ac_status=$?
32158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159   (exit $ac_status); }; }; then
32160   ac_cv_c_stack_direction=1
32161 else
32162   echo "$as_me: program exited with status $ac_status" >&5
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166 ( exit $ac_status )
32167 ac_cv_c_stack_direction=-1
32168 fi
32169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32170 fi
32171
32172
32173 fi
32174 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32175 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32176
32177 cat >>confdefs.h <<_ACEOF
32178 #define STACK_DIRECTION $ac_cv_c_stack_direction
32179 _ACEOF
32180
32181
32182 fi
32183
32184
32185 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32186 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32187 if test "${ac_cv_func_rand48+set}" = set; then
32188   echo $ECHO_N "(cached) $ECHO_C" >&6
32189 else
32190   ac_ext=cpp
32191 ac_cpp='$CXXCPP $CPPFLAGS'
32192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32195
32196    cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h.  */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h.  */
32202 #include <stdlib.h>
32203 int
32204 main ()
32205 {
32206 srand48(0);lrand48();drand48();
32207   ;
32208   return 0;
32209 }
32210 _ACEOF
32211 rm -f conftest.$ac_objext
32212 if { (ac_try="$ac_compile"
32213 case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_compile") 2>conftest.er1
32219   ac_status=$?
32220   grep -v '^ *+' conftest.er1 >conftest.err
32221   rm -f conftest.er1
32222   cat conftest.err >&5
32223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224   (exit $ac_status); } &&
32225          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32226   { (case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_try") 2>&5
32232   ac_status=$?
32233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234   (exit $ac_status); }; } &&
32235          { ac_try='test -s conftest.$ac_objext'
32236   { (case "(($ac_try" in
32237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238   *) ac_try_echo=$ac_try;;
32239 esac
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241   (eval "$ac_try") 2>&5
32242   ac_status=$?
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); }; }; then
32245   ac_cv_func_rand48=yes
32246 else
32247   echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32249
32250         ac_cv_func_rand48=no
32251 fi
32252
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254   ac_ext=c
32255 ac_cpp='$CPP $CPPFLAGS'
32256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32259
32260 fi
32261 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32262 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32263
32264 if test "$ac_cv_func_rand48" = "yes" ; then
32265
32266 cat >>confdefs.h <<\_ACEOF
32267 #define HAVE_RAND48 1
32268 _ACEOF
32269
32270 fi
32271
32272
32273 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32274 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32275 if test "${ac_cv_cxx_namespaces+set}" = set; then
32276   echo $ECHO_N "(cached) $ECHO_C" >&6
32277 else
32278   ac_ext=cpp
32279 ac_cpp='$CXXCPP $CPPFLAGS'
32280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283
32284  cat >conftest.$ac_ext <<_ACEOF
32285 /* confdefs.h.  */
32286 _ACEOF
32287 cat confdefs.h >>conftest.$ac_ext
32288 cat >>conftest.$ac_ext <<_ACEOF
32289 /* end confdefs.h.  */
32290 namespace Outer { namespace Inner { int i = 0; }}
32291 int
32292 main ()
32293 {
32294 using namespace Outer::Inner; return i;
32295   ;
32296   return 0;
32297 }
32298 _ACEOF
32299 rm -f conftest.$ac_objext
32300 if { (ac_try="$ac_compile"
32301 case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_compile") 2>conftest.er1
32307   ac_status=$?
32308   grep -v '^ *+' conftest.er1 >conftest.err
32309   rm -f conftest.er1
32310   cat conftest.err >&5
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); } &&
32313          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314   { (case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_try") 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; } &&
32323          { ac_try='test -s conftest.$ac_objext'
32324   { (case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_try") 2>&5
32330   ac_status=$?
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); }; }; then
32333   ac_cv_cxx_namespaces=yes
32334 else
32335   echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32337
32338         ac_cv_cxx_namespaces=no
32339 fi
32340
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342  ac_ext=c
32343 ac_cpp='$CPP $CPPFLAGS'
32344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347
32348
32349 fi
32350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32351 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32352 if test "$ac_cv_cxx_namespaces" = yes; then
32353
32354 cat >>confdefs.h <<\_ACEOF
32355 #define HAVE_NAMESPACES
32356 _ACEOF
32357
32358 fi
32359
32360 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32361 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32362 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365
32366   ac_ext=cpp
32367 ac_cpp='$CXXCPP $CPPFLAGS'
32368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371
32372   cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h.  */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h.  */
32378 #include <ext/hash_map>
32379 #ifdef HAVE_NAMESPACES
32380 using namespace std;
32381 #endif
32382 int
32383 main ()
32384 {
32385 hash_map<int, int> t;
32386   ;
32387   return 0;
32388 }
32389 _ACEOF
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394   *) ac_try_echo=$ac_try;;
32395 esac
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397   (eval "$ac_compile") 2>conftest.er1
32398   ac_status=$?
32399   grep -v '^ *+' conftest.er1 >conftest.err
32400   rm -f conftest.er1
32401   cat conftest.err >&5
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); } &&
32404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405   { (case "(($ac_try" in
32406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407   *) ac_try_echo=$ac_try;;
32408 esac
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410   (eval "$ac_try") 2>&5
32411   ac_status=$?
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); }; } &&
32414          { ac_try='test -s conftest.$ac_objext'
32415   { (case "(($ac_try" in
32416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417   *) ac_try_echo=$ac_try;;
32418 esac
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420   (eval "$ac_try") 2>&5
32421   ac_status=$?
32422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423   (exit $ac_status); }; }; then
32424   ac_cv_cxx_have_std_ext_hash_map=yes
32425 else
32426   echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32428
32429         ac_cv_cxx_have_std_ext_hash_map=no
32430 fi
32431
32432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32433   ac_ext=c
32434 ac_cpp='$CPP $CPPFLAGS'
32435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438
32439 fi
32440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32441 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32442  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32443  then
32444
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_STD_EXT_HASH_MAP 1
32447 _ACEOF
32448
32449  else
32450
32451 cat >>confdefs.h <<\_ACEOF
32452 #define HAVE_STD_EXT_HASH_MAP 0
32453 _ACEOF
32454
32455  fi
32456
32457  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32458 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32459 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32460   echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462
32463   ac_ext=cpp
32464 ac_cpp='$CXXCPP $CPPFLAGS'
32465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468
32469   cat >conftest.$ac_ext <<_ACEOF
32470 /* confdefs.h.  */
32471 _ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h.  */
32475 #include <ext/hash_map>
32476 #ifdef HAVE_NAMESPACES
32477 using namespace __gnu_cxx;
32478 #endif
32479 int
32480 main ()
32481 {
32482 hash_map<int,int> t;
32483   ;
32484   return 0;
32485 }
32486 _ACEOF
32487 rm -f conftest.$ac_objext
32488 if { (ac_try="$ac_compile"
32489 case "(($ac_try" in
32490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491   *) ac_try_echo=$ac_try;;
32492 esac
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494   (eval "$ac_compile") 2>conftest.er1
32495   ac_status=$?
32496   grep -v '^ *+' conftest.er1 >conftest.err
32497   rm -f conftest.er1
32498   cat conftest.err >&5
32499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500   (exit $ac_status); } &&
32501          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502   { (case "(($ac_try" in
32503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504   *) ac_try_echo=$ac_try;;
32505 esac
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507   (eval "$ac_try") 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; } &&
32511          { ac_try='test -s conftest.$ac_objext'
32512   { (case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_try") 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); }; }; then
32521   ac_cv_cxx_have_gnu_ext_hash_map=yes
32522 else
32523   echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526         ac_cv_cxx_have_gnu_ext_hash_map=no
32527 fi
32528
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530   ac_ext=c
32531 ac_cpp='$CPP $CPPFLAGS'
32532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535
32536 fi
32537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32538 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32539  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32540  then
32541
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_GNU_EXT_HASH_MAP 1
32544 _ACEOF
32545
32546  else
32547
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_GNU_EXT_HASH_MAP 0
32550 _ACEOF
32551
32552  fi
32553
32554  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32555 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32556 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559
32560   ac_ext=cpp
32561 ac_cpp='$CXXCPP $CPPFLAGS'
32562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566   cat >conftest.$ac_ext <<_ACEOF
32567 /* confdefs.h.  */
32568 _ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h.  */
32572 #include <hash_map>
32573 int
32574 main ()
32575 {
32576 hash_map<int,int> t;
32577   ;
32578   return 0;
32579 }
32580 _ACEOF
32581 rm -f conftest.$ac_objext
32582 if { (ac_try="$ac_compile"
32583 case "(($ac_try" in
32584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585   *) ac_try_echo=$ac_try;;
32586 esac
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588   (eval "$ac_compile") 2>conftest.er1
32589   ac_status=$?
32590   grep -v '^ *+' conftest.er1 >conftest.err
32591   rm -f conftest.er1
32592   cat conftest.err >&5
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); } &&
32595          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32596   { (case "(($ac_try" in
32597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598   *) ac_try_echo=$ac_try;;
32599 esac
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601   (eval "$ac_try") 2>&5
32602   ac_status=$?
32603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604   (exit $ac_status); }; } &&
32605          { ac_try='test -s conftest.$ac_objext'
32606   { (case "(($ac_try" in
32607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608   *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611   (eval "$ac_try") 2>&5
32612   ac_status=$?
32613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614   (exit $ac_status); }; }; then
32615   ac_cv_cxx_have_global_hash_map=yes
32616 else
32617   echo "$as_me: failed program was:" >&5
32618 sed 's/^/| /' conftest.$ac_ext >&5
32619
32620         ac_cv_cxx_have_global_hash_map=no
32621 fi
32622
32623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624   ac_ext=c
32625 ac_cpp='$CPP $CPPFLAGS'
32626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629
32630 fi
32631 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32632 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32633  if test "$ac_cv_cxx_have_global_hash_map" = yes
32634  then
32635
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_GLOBAL_HASH_MAP 1
32638 _ACEOF
32639
32640  else
32641
32642 cat >>confdefs.h <<\_ACEOF
32643 #define HAVE_GLOBAL_HASH_MAP 0
32644 _ACEOF
32645
32646  fi
32647
32648 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32649 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32650 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653
32654   ac_ext=cpp
32655 ac_cpp='$CXXCPP $CPPFLAGS'
32656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659
32660   cat >conftest.$ac_ext <<_ACEOF
32661 /* confdefs.h.  */
32662 _ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h.  */
32666 #include <ext/hash_set>
32667 #ifdef HAVE_NAMESPACES
32668 using namespace std;
32669 #endif
32670 int
32671 main ()
32672 {
32673 hash_set<int> t;
32674   ;
32675   return 0;
32676 }
32677 _ACEOF
32678 rm -f conftest.$ac_objext
32679 if { (ac_try="$ac_compile"
32680 case "(($ac_try" in
32681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682   *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685   (eval "$ac_compile") 2>conftest.er1
32686   ac_status=$?
32687   grep -v '^ *+' conftest.er1 >conftest.err
32688   rm -f conftest.er1
32689   cat conftest.err >&5
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); } &&
32692          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693   { (case "(($ac_try" in
32694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695   *) ac_try_echo=$ac_try;;
32696 esac
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698   (eval "$ac_try") 2>&5
32699   ac_status=$?
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); }; } &&
32702          { ac_try='test -s conftest.$ac_objext'
32703   { (case "(($ac_try" in
32704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705   *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708   (eval "$ac_try") 2>&5
32709   ac_status=$?
32710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); }; }; then
32712   ac_cv_cxx_have_std_ext_hash_set=yes
32713 else
32714   echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32716
32717         ac_cv_cxx_have_std_ext_hash_set=no
32718 fi
32719
32720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721   ac_ext=c
32722 ac_cpp='$CPP $CPPFLAGS'
32723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727 fi
32728 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32730  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32731  then
32732
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_STD_EXT_HASH_SET 1
32735 _ACEOF
32736
32737  else
32738
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_STD_EXT_HASH_SET 0
32741 _ACEOF
32742
32743  fi
32744
32745  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32746 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32747 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32748   echo $ECHO_N "(cached) $ECHO_C" >&6
32749 else
32750
32751   ac_ext=cpp
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
32757   cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763 #include <ext/hash_set>
32764 #ifdef HAVE_NAMESPACES
32765 using namespace __gnu_cxx;
32766 #endif
32767 int
32768 main ()
32769 {
32770 hash_set<int> t;
32771   ;
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_compile") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } &&
32789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790   { (case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795   (eval "$ac_try") 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; } &&
32799          { ac_try='test -s conftest.$ac_objext'
32800   { (case "(($ac_try" in
32801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802   *) ac_try_echo=$ac_try;;
32803 esac
32804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805   (eval "$ac_try") 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; }; then
32809   ac_cv_cxx_have_gnu_ext_hash_set=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32813
32814         ac_cv_cxx_have_gnu_ext_hash_set=no
32815 fi
32816
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818   ac_ext=c
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824 fi
32825 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32826 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32827  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32828  then
32829
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_GNU_EXT_HASH_SET 1
32832 _ACEOF
32833
32834  else
32835
32836 cat >>confdefs.h <<\_ACEOF
32837 #define HAVE_GNU_EXT_HASH_SET 0
32838 _ACEOF
32839
32840  fi
32841
32842  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32843 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32844 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32845   echo $ECHO_N "(cached) $ECHO_C" >&6
32846 else
32847
32848   ac_ext=cpp
32849 ac_cpp='$CXXCPP $CPPFLAGS'
32850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32853
32854   cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h.  */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h.  */
32860 #include <hash_set>
32861 int
32862 main ()
32863 {
32864 hash_set<int> t; return 0;
32865   ;
32866   return 0;
32867 }
32868 _ACEOF
32869 rm -f conftest.$ac_objext
32870 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32877   ac_status=$?
32878   grep -v '^ *+' conftest.er1 >conftest.err
32879   rm -f conftest.er1
32880   cat conftest.err >&5
32881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882   (exit $ac_status); } &&
32883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32884   { (case "(($ac_try" in
32885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886   *) ac_try_echo=$ac_try;;
32887 esac
32888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889   (eval "$ac_try") 2>&5
32890   ac_status=$?
32891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892   (exit $ac_status); }; } &&
32893          { ac_try='test -s conftest.$ac_objext'
32894   { (case "(($ac_try" in
32895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896   *) ac_try_echo=$ac_try;;
32897 esac
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899   (eval "$ac_try") 2>&5
32900   ac_status=$?
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); }; }; then
32903   ac_cv_cxx_have_global_hash_set=yes
32904 else
32905   echo "$as_me: failed program was:" >&5
32906 sed 's/^/| /' conftest.$ac_ext >&5
32907
32908         ac_cv_cxx_have_global_hash_set=no
32909 fi
32910
32911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32912   ac_ext=c
32913 ac_cpp='$CPP $CPPFLAGS'
32914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32917
32918 fi
32919 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32920 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32921  if test "$ac_cv_cxx_have_global_hash_set" = yes
32922  then
32923
32924 cat >>confdefs.h <<\_ACEOF
32925 #define HAVE_GLOBAL_HASH_SET 1
32926 _ACEOF
32927
32928  else
32929
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_GLOBAL_HASH_SET 0
32932 _ACEOF
32933
32934  fi
32935
32936 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32937 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32938 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32939   echo $ECHO_N "(cached) $ECHO_C" >&6
32940 else
32941
32942   ac_ext=cpp
32943 ac_cpp='$CXXCPP $CPPFLAGS'
32944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
32948   cat >conftest.$ac_ext <<_ACEOF
32949 /* confdefs.h.  */
32950 _ACEOF
32951 cat confdefs.h >>conftest.$ac_ext
32952 cat >>conftest.$ac_ext <<_ACEOF
32953 /* end confdefs.h.  */
32954 #include <iterator>
32955 #ifdef HAVE_NAMESPACES
32956 using namespace std;
32957 #endif
32958 int
32959 main ()
32960 {
32961 iterator<int,int,int> t; return 0;
32962   ;
32963   return 0;
32964 }
32965 _ACEOF
32966 rm -f conftest.$ac_objext
32967 if { (ac_try="$ac_compile"
32968 case "(($ac_try" in
32969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970   *) ac_try_echo=$ac_try;;
32971 esac
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973   (eval "$ac_compile") 2>conftest.er1
32974   ac_status=$?
32975   grep -v '^ *+' conftest.er1 >conftest.err
32976   rm -f conftest.er1
32977   cat conftest.err >&5
32978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979   (exit $ac_status); } &&
32980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32981   { (case "(($ac_try" in
32982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983   *) ac_try_echo=$ac_try;;
32984 esac
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986   (eval "$ac_try") 2>&5
32987   ac_status=$?
32988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989   (exit $ac_status); }; } &&
32990          { ac_try='test -s conftest.$ac_objext'
32991   { (case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_try") 2>&5
32997   ac_status=$?
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); }; }; then
33000   ac_cv_cxx_have_std_iterator=yes
33001 else
33002   echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33004
33005         ac_cv_cxx_have_std_iterator=no
33006 fi
33007
33008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33009   ac_ext=c
33010 ac_cpp='$CPP $CPPFLAGS'
33011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33014
33015
33016 fi
33017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33018 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33019 if test "$ac_cv_cxx_have_std_iterator" = yes
33020 then
33021
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_STD_ITERATOR 1
33024 _ACEOF
33025
33026 else
33027
33028 cat >>confdefs.h <<\_ACEOF
33029 #define HAVE_STD_ITERATOR 0
33030 _ACEOF
33031
33032 fi
33033
33034 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33035 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33036 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039
33040   ac_ext=cpp
33041 ac_cpp='$CXXCPP $CPPFLAGS'
33042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33045
33046   cat >conftest.$ac_ext <<_ACEOF
33047 /* confdefs.h.  */
33048 _ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h.  */
33052 #include <iterator>
33053 #ifdef HAVE_NAMESPACES
33054 using namespace std;
33055 #endif
33056 int
33057 main ()
33058 {
33059 bidirectional_iterator<int,int> t; return 0;
33060   ;
33061   return 0;
33062 }
33063 _ACEOF
33064 rm -f conftest.$ac_objext
33065 if { (ac_try="$ac_compile"
33066 case "(($ac_try" in
33067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068   *) ac_try_echo=$ac_try;;
33069 esac
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071   (eval "$ac_compile") 2>conftest.er1
33072   ac_status=$?
33073   grep -v '^ *+' conftest.er1 >conftest.err
33074   rm -f conftest.er1
33075   cat conftest.err >&5
33076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077   (exit $ac_status); } &&
33078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33079   { (case "(($ac_try" in
33080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081   *) ac_try_echo=$ac_try;;
33082 esac
33083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084   (eval "$ac_try") 2>&5
33085   ac_status=$?
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); }; } &&
33088          { ac_try='test -s conftest.$ac_objext'
33089   { (case "(($ac_try" in
33090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091   *) ac_try_echo=$ac_try;;
33092 esac
33093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094   (eval "$ac_try") 2>&5
33095   ac_status=$?
33096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097   (exit $ac_status); }; }; then
33098   ac_cv_cxx_have_bi_iterator=yes
33099 else
33100   echo "$as_me: failed program was:" >&5
33101 sed 's/^/| /' conftest.$ac_ext >&5
33102
33103         ac_cv_cxx_have_bi_iterator=no
33104 fi
33105
33106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33107   ac_ext=c
33108 ac_cpp='$CPP $CPPFLAGS'
33109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33112
33113
33114 fi
33115 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33116 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33117 if test "$ac_cv_cxx_have_bi_iterator" = yes
33118 then
33119
33120 cat >>confdefs.h <<\_ACEOF
33121 #define HAVE_BI_ITERATOR 1
33122 _ACEOF
33123
33124 else
33125
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_BI_ITERATOR 0
33128 _ACEOF
33129
33130 fi
33131
33132 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33133 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33134 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33135   echo $ECHO_N "(cached) $ECHO_C" >&6
33136 else
33137
33138   ac_ext=cpp
33139 ac_cpp='$CXXCPP $CPPFLAGS'
33140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33143
33144   cat >conftest.$ac_ext <<_ACEOF
33145 /* confdefs.h.  */
33146 _ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h.  */
33150 #include <iterator>
33151 #ifdef HAVE_NAMESPACES
33152 using namespace std;
33153 #endif
33154 int
33155 main ()
33156 {
33157 forward_iterator<int,int> t; return 0;
33158   ;
33159   return 0;
33160 }
33161 _ACEOF
33162 rm -f conftest.$ac_objext
33163 if { (ac_try="$ac_compile"
33164 case "(($ac_try" in
33165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166   *) ac_try_echo=$ac_try;;
33167 esac
33168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169   (eval "$ac_compile") 2>conftest.er1
33170   ac_status=$?
33171   grep -v '^ *+' conftest.er1 >conftest.err
33172   rm -f conftest.er1
33173   cat conftest.err >&5
33174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175   (exit $ac_status); } &&
33176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177   { (case "(($ac_try" in
33178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179   *) ac_try_echo=$ac_try;;
33180 esac
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182   (eval "$ac_try") 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; } &&
33186          { ac_try='test -s conftest.$ac_objext'
33187   { (case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_try") 2>&5
33193   ac_status=$?
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); }; }; then
33196   ac_cv_cxx_have_fwd_iterator=yes
33197 else
33198   echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33200
33201         ac_cv_cxx_have_fwd_iterator=no
33202 fi
33203
33204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33205   ac_ext=c
33206 ac_cpp='$CPP $CPPFLAGS'
33207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210
33211
33212 fi
33213 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33214 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33215 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33216 then
33217
33218 cat >>confdefs.h <<\_ACEOF
33219 #define HAVE_FWD_ITERATOR 1
33220 _ACEOF
33221
33222 else
33223
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_FWD_ITERATOR 0
33226 _ACEOF
33227
33228 fi
33229
33230
33231 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33232 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33233 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33234   echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236   ac_ext=cpp
33237 ac_cpp='$CXXCPP $CPPFLAGS'
33238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
33242    cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h.  */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h.  */
33248 #include <math.h>
33249 int
33250 main ()
33251 {
33252 float f; isnan(f);
33253   ;
33254   return 0;
33255 }
33256 _ACEOF
33257 rm -f conftest.$ac_objext
33258 if { (ac_try="$ac_compile"
33259 case "(($ac_try" in
33260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261   *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264   (eval "$ac_compile") 2>conftest.er1
33265   ac_status=$?
33266   grep -v '^ *+' conftest.er1 >conftest.err
33267   rm -f conftest.er1
33268   cat conftest.err >&5
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); } &&
33271          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272   { (case "(($ac_try" in
33273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274   *) ac_try_echo=$ac_try;;
33275 esac
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277   (eval "$ac_try") 2>&5
33278   ac_status=$?
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); }; } &&
33281          { ac_try='test -s conftest.$ac_objext'
33282   { (case "(($ac_try" in
33283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284   *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287   (eval "$ac_try") 2>&5
33288   ac_status=$?
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; }; then
33291   ac_cv_func_isnan_in_math_h=yes
33292 else
33293   echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33295
33296         ac_cv_func_isnan_in_math_h=no
33297 fi
33298
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300   ac_ext=c
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306 fi
33307 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33308 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33309
33310
33311 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33312
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_ISNAN_IN_MATH_H 1
33315 _ACEOF
33316
33317 fi
33318
33319 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33320 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33321 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33322   echo $ECHO_N "(cached) $ECHO_C" >&6
33323 else
33324   ac_ext=cpp
33325 ac_cpp='$CXXCPP $CPPFLAGS'
33326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33329
33330    cat >conftest.$ac_ext <<_ACEOF
33331 /* confdefs.h.  */
33332 _ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h.  */
33336 #include <cmath>
33337 int
33338 main ()
33339 {
33340 float f; isnan(f);
33341   ;
33342   return 0;
33343 }
33344 _ACEOF
33345 rm -f conftest.$ac_objext
33346 if { (ac_try="$ac_compile"
33347 case "(($ac_try" in
33348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349   *) ac_try_echo=$ac_try;;
33350 esac
33351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352   (eval "$ac_compile") 2>conftest.er1
33353   ac_status=$?
33354   grep -v '^ *+' conftest.er1 >conftest.err
33355   rm -f conftest.er1
33356   cat conftest.err >&5
33357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358   (exit $ac_status); } &&
33359          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33360   { (case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365   (eval "$ac_try") 2>&5
33366   ac_status=$?
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); }; } &&
33369          { ac_try='test -s conftest.$ac_objext'
33370   { (case "(($ac_try" in
33371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372   *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375   (eval "$ac_try") 2>&5
33376   ac_status=$?
33377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378   (exit $ac_status); }; }; then
33379   ac_cv_func_isnan_in_cmath=yes
33380 else
33381   echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33383
33384         ac_cv_func_isnan_in_cmath=no
33385 fi
33386
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388   ac_ext=c
33389 ac_cpp='$CPP $CPPFLAGS'
33390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33393
33394 fi
33395 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33396 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33397
33398 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33399
33400 cat >>confdefs.h <<\_ACEOF
33401 #define HAVE_ISNAN_IN_CMATH 1
33402 _ACEOF
33403
33404 fi
33405
33406 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33407 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33408 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33409   echo $ECHO_N "(cached) $ECHO_C" >&6
33410 else
33411   ac_ext=cpp
33412 ac_cpp='$CXXCPP $CPPFLAGS'
33413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33416
33417    cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h.  */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h.  */
33423 #include <cmath>
33424 int
33425 main ()
33426 {
33427 float f; std::isnan(f);
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436   *) ac_try_echo=$ac_try;;
33437 esac
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439   (eval "$ac_compile") 2>conftest.er1
33440   ac_status=$?
33441   grep -v '^ *+' conftest.er1 >conftest.err
33442   rm -f conftest.er1
33443   cat conftest.err >&5
33444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445   (exit $ac_status); } &&
33446          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33447   { (case "(($ac_try" in
33448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449   *) ac_try_echo=$ac_try;;
33450 esac
33451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452   (eval "$ac_try") 2>&5
33453   ac_status=$?
33454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455   (exit $ac_status); }; } &&
33456          { ac_try='test -s conftest.$ac_objext'
33457   { (case "(($ac_try" in
33458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459   *) ac_try_echo=$ac_try;;
33460 esac
33461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462   (eval "$ac_try") 2>&5
33463   ac_status=$?
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); }; }; then
33466   ac_cv_func_std_isnan_in_cmath=yes
33467 else
33468   echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33470
33471         ac_cv_func_std_isnan_in_cmath=no
33472 fi
33473
33474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33475   ac_ext=c
33476 ac_cpp='$CPP $CPPFLAGS'
33477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33480
33481 fi
33482 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33483 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33484
33485 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33486
33487 cat >>confdefs.h <<\_ACEOF
33488 #define HAVE_STD_ISNAN_IN_CMATH 1
33489 _ACEOF
33490
33491 fi
33492
33493
33494 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33495 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33496 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33497   echo $ECHO_N "(cached) $ECHO_C" >&6
33498 else
33499   ac_ext=cpp
33500 ac_cpp='$CXXCPP $CPPFLAGS'
33501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33504
33505    cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 #include <math.h>
33512 int
33513 main ()
33514 {
33515 float f; isinf(f);
33516   ;
33517   return 0;
33518 }
33519 _ACEOF
33520 rm -f conftest.$ac_objext
33521 if { (ac_try="$ac_compile"
33522 case "(($ac_try" in
33523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524   *) ac_try_echo=$ac_try;;
33525 esac
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527   (eval "$ac_compile") 2>conftest.er1
33528   ac_status=$?
33529   grep -v '^ *+' conftest.er1 >conftest.err
33530   rm -f conftest.er1
33531   cat conftest.err >&5
33532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533   (exit $ac_status); } &&
33534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33535   { (case "(($ac_try" in
33536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537   *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540   (eval "$ac_try") 2>&5
33541   ac_status=$?
33542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543   (exit $ac_status); }; } &&
33544          { ac_try='test -s conftest.$ac_objext'
33545   { (case "(($ac_try" in
33546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547   *) ac_try_echo=$ac_try;;
33548 esac
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550   (eval "$ac_try") 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; }; then
33554   ac_cv_func_isinf_in_math_h=yes
33555 else
33556   echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33558
33559         ac_cv_func_isinf_in_math_h=no
33560 fi
33561
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563   ac_ext=c
33564 ac_cpp='$CPP $CPPFLAGS'
33565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33568
33569 fi
33570 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33571 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33572
33573 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33574
33575 cat >>confdefs.h <<\_ACEOF
33576 #define HAVE_ISINF_IN_MATH_H 1
33577 _ACEOF
33578
33579 fi
33580
33581 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33582 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33583 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33584   echo $ECHO_N "(cached) $ECHO_C" >&6
33585 else
33586   ac_ext=cpp
33587 ac_cpp='$CXXCPP $CPPFLAGS'
33588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33591
33592    cat >conftest.$ac_ext <<_ACEOF
33593 /* confdefs.h.  */
33594 _ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h.  */
33598 #include <cmath>
33599 int
33600 main ()
33601 {
33602 float f; isinf(f);
33603   ;
33604   return 0;
33605 }
33606 _ACEOF
33607 rm -f conftest.$ac_objext
33608 if { (ac_try="$ac_compile"
33609 case "(($ac_try" in
33610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611   *) ac_try_echo=$ac_try;;
33612 esac
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614   (eval "$ac_compile") 2>conftest.er1
33615   ac_status=$?
33616   grep -v '^ *+' conftest.er1 >conftest.err
33617   rm -f conftest.er1
33618   cat conftest.err >&5
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); } &&
33621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33622   { (case "(($ac_try" in
33623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624   *) ac_try_echo=$ac_try;;
33625 esac
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627   (eval "$ac_try") 2>&5
33628   ac_status=$?
33629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630   (exit $ac_status); }; } &&
33631          { ac_try='test -s conftest.$ac_objext'
33632   { (case "(($ac_try" in
33633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33634   *) ac_try_echo=$ac_try;;
33635 esac
33636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33637   (eval "$ac_try") 2>&5
33638   ac_status=$?
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); }; }; then
33641   ac_cv_func_isinf_in_cmath=yes
33642 else
33643   echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33645
33646         ac_cv_func_isinf_in_cmath=no
33647 fi
33648
33649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33650   ac_ext=c
33651 ac_cpp='$CPP $CPPFLAGS'
33652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33655
33656 fi
33657 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33658 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33659
33660 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33661
33662 cat >>confdefs.h <<\_ACEOF
33663 #define HAVE_ISINF_IN_CMATH 1
33664 _ACEOF
33665
33666 fi
33667
33668 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33669 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33670 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33671   echo $ECHO_N "(cached) $ECHO_C" >&6
33672 else
33673   ac_ext=cpp
33674 ac_cpp='$CXXCPP $CPPFLAGS'
33675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33678
33679    cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h.  */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h.  */
33685 #include <cmath>
33686 int
33687 main ()
33688 {
33689 float f; std::isinf(f)}
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 rm -f conftest.$ac_objext
33695 if { (ac_try="$ac_compile"
33696 case "(($ac_try" in
33697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698   *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701   (eval "$ac_compile") 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } &&
33708          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33709   { (case "(($ac_try" in
33710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711   *) ac_try_echo=$ac_try;;
33712 esac
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714   (eval "$ac_try") 2>&5
33715   ac_status=$?
33716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717   (exit $ac_status); }; } &&
33718          { ac_try='test -s conftest.$ac_objext'
33719   { (case "(($ac_try" in
33720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721   *) ac_try_echo=$ac_try;;
33722 esac
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724   (eval "$ac_try") 2>&5
33725   ac_status=$?
33726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727   (exit $ac_status); }; }; then
33728   ac_cv_func_std_isinf_in_cmath=yes
33729 else
33730   echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.$ac_ext >&5
33732
33733         ac_cv_func_std_isinf_in_cmath=no
33734 fi
33735
33736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33737   ac_ext=c
33738 ac_cpp='$CPP $CPPFLAGS'
33739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33742
33743 fi
33744 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33745 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33746
33747 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33748
33749 cat >>confdefs.h <<\_ACEOF
33750 #define HAVE_STD_ISINF_IN_CMATH 1
33751 _ACEOF
33752
33753 fi
33754
33755 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33756 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33757 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33758   echo $ECHO_N "(cached) $ECHO_C" >&6
33759 else
33760   ac_ext=cpp
33761 ac_cpp='$CXXCPP $CPPFLAGS'
33762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33765
33766    cat >conftest.$ac_ext <<_ACEOF
33767 /* confdefs.h.  */
33768 _ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h.  */
33772 #include <ieeefp.h>
33773 int
33774 main ()
33775 {
33776 float f; finite(f);
33777   ;
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext
33782 if { (ac_try="$ac_compile"
33783 case "(($ac_try" in
33784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785   *) ac_try_echo=$ac_try;;
33786 esac
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788   (eval "$ac_compile") 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } &&
33795          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33796   { (case "(($ac_try" in
33797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33798   *) ac_try_echo=$ac_try;;
33799 esac
33800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33801   (eval "$ac_try") 2>&5
33802   ac_status=$?
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); }; } &&
33805          { ac_try='test -s conftest.$ac_objext'
33806   { (case "(($ac_try" in
33807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808   *) ac_try_echo=$ac_try;;
33809 esac
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811   (eval "$ac_try") 2>&5
33812   ac_status=$?
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); }; }; then
33815   ac_cv_func_finite_in_ieeefp_h=yes
33816 else
33817   echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33819
33820         ac_cv_func_finite_in_ieeefp_h=no
33821 fi
33822
33823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33824   ac_ext=c
33825 ac_cpp='$CPP $CPPFLAGS'
33826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33829
33830 fi
33831 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33832 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33833
33834 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33835
33836 cat >>confdefs.h <<\_ACEOF
33837 #define HAVE_FINITE_IN_IEEEFP_H 1
33838 _ACEOF
33839
33840 fi
33841
33842
33843
33844 if test "$llvm_cv_platform_type" = "Unix" ; then
33845
33846
33847 for ac_header in stdlib.h unistd.h
33848 do
33849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33851   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33854   echo $ECHO_N "(cached) $ECHO_C" >&6
33855 fi
33856 ac_res=`eval echo '${'$as_ac_Header'}'`
33857                { echo "$as_me:$LINENO: result: $ac_res" >&5
33858 echo "${ECHO_T}$ac_res" >&6; }
33859 else
33860   # Is the header compilable?
33861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33863 cat >conftest.$ac_ext <<_ACEOF
33864 /* confdefs.h.  */
33865 _ACEOF
33866 cat confdefs.h >>conftest.$ac_ext
33867 cat >>conftest.$ac_ext <<_ACEOF
33868 /* end confdefs.h.  */
33869 $ac_includes_default
33870 #include <$ac_header>
33871 _ACEOF
33872 rm -f conftest.$ac_objext
33873 if { (ac_try="$ac_compile"
33874 case "(($ac_try" in
33875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876   *) ac_try_echo=$ac_try;;
33877 esac
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879   (eval "$ac_compile") 2>conftest.er1
33880   ac_status=$?
33881   grep -v '^ *+' conftest.er1 >conftest.err
33882   rm -f conftest.er1
33883   cat conftest.err >&5
33884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885   (exit $ac_status); } &&
33886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33887   { (case "(($ac_try" in
33888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889   *) ac_try_echo=$ac_try;;
33890 esac
33891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892   (eval "$ac_try") 2>&5
33893   ac_status=$?
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); }; } &&
33896          { ac_try='test -s conftest.$ac_objext'
33897   { (case "(($ac_try" in
33898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899   *) ac_try_echo=$ac_try;;
33900 esac
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902   (eval "$ac_try") 2>&5
33903   ac_status=$?
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); }; }; then
33906   ac_header_compiler=yes
33907 else
33908   echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33910
33911         ac_header_compiler=no
33912 fi
33913
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33916 echo "${ECHO_T}$ac_header_compiler" >&6; }
33917
33918 # Is the header present?
33919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33921 cat >conftest.$ac_ext <<_ACEOF
33922 /* confdefs.h.  */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h.  */
33927 #include <$ac_header>
33928 _ACEOF
33929 if { (ac_try="$ac_cpp conftest.$ac_ext"
33930 case "(($ac_try" in
33931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932   *) ac_try_echo=$ac_try;;
33933 esac
33934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33936   ac_status=$?
33937   grep -v '^ *+' conftest.er1 >conftest.err
33938   rm -f conftest.er1
33939   cat conftest.err >&5
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); } >/dev/null; then
33942   if test -s conftest.err; then
33943     ac_cpp_err=$ac_c_preproc_warn_flag
33944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33945   else
33946     ac_cpp_err=
33947   fi
33948 else
33949   ac_cpp_err=yes
33950 fi
33951 if test -z "$ac_cpp_err"; then
33952   ac_header_preproc=yes
33953 else
33954   echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33956
33957   ac_header_preproc=no
33958 fi
33959
33960 rm -f conftest.err conftest.$ac_ext
33961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33962 echo "${ECHO_T}$ac_header_preproc" >&6; }
33963
33964 # So?  What about this header?
33965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33966   yes:no: )
33967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33971     ac_header_preproc=yes
33972     ;;
33973   no:yes:* )
33974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33986     ( cat <<\_ASBOX
33987 ## ----------------------------------- ##
33988 ## Report this to llvmbugs@cs.uiuc.edu ##
33989 ## ----------------------------------- ##
33990 _ASBOX
33991      ) | sed "s/^/$as_me: WARNING:     /" >&2
33992     ;;
33993 esac
33994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33997   echo $ECHO_N "(cached) $ECHO_C" >&6
33998 else
33999   eval "$as_ac_Header=\$ac_header_preproc"
34000 fi
34001 ac_res=`eval echo '${'$as_ac_Header'}'`
34002                { echo "$as_me:$LINENO: result: $ac_res" >&5
34003 echo "${ECHO_T}$ac_res" >&6; }
34004
34005 fi
34006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34007   cat >>confdefs.h <<_ACEOF
34008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34009 _ACEOF
34010
34011 fi
34012
34013 done
34014
34015
34016 for ac_func in getpagesize
34017 do
34018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34022   echo $ECHO_N "(cached) $ECHO_C" >&6
34023 else
34024   cat >conftest.$ac_ext <<_ACEOF
34025 /* confdefs.h.  */
34026 _ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h.  */
34030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34032 #define $ac_func innocuous_$ac_func
34033
34034 /* System header to define __stub macros and hopefully few prototypes,
34035     which can conflict with char $ac_func (); below.
34036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34037     <limits.h> exists even on freestanding compilers.  */
34038
34039 #ifdef __STDC__
34040 # include <limits.h>
34041 #else
34042 # include <assert.h>
34043 #endif
34044
34045 #undef $ac_func
34046
34047 /* Override any GCC internal prototype to avoid an error.
34048    Use char because int might match the return type of a GCC
34049    builtin and then its argument prototype would still apply.  */
34050 #ifdef __cplusplus
34051 extern "C"
34052 #endif
34053 char $ac_func ();
34054 /* The GNU C library defines this for functions which it implements
34055     to always fail with ENOSYS.  Some functions are actually named
34056     something starting with __ and the normal name is an alias.  */
34057 #if defined __stub_$ac_func || defined __stub___$ac_func
34058 choke me
34059 #endif
34060
34061 int
34062 main ()
34063 {
34064 return $ac_func ();
34065   ;
34066   return 0;
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext conftest$ac_exeext
34070 if { (ac_try="$ac_link"
34071 case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_link") 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } &&
34083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34084   { (case "(($ac_try" in
34085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086   *) ac_try_echo=$ac_try;;
34087 esac
34088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089   (eval "$ac_try") 2>&5
34090   ac_status=$?
34091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092   (exit $ac_status); }; } &&
34093          { ac_try='test -s conftest$ac_exeext'
34094   { (case "(($ac_try" in
34095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096   *) ac_try_echo=$ac_try;;
34097 esac
34098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099   (eval "$ac_try") 2>&5
34100   ac_status=$?
34101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102   (exit $ac_status); }; }; then
34103   eval "$as_ac_var=yes"
34104 else
34105   echo "$as_me: failed program was:" >&5
34106 sed 's/^/| /' conftest.$ac_ext >&5
34107
34108         eval "$as_ac_var=no"
34109 fi
34110
34111 rm -f core conftest.err conftest.$ac_objext \
34112       conftest$ac_exeext conftest.$ac_ext
34113 fi
34114 ac_res=`eval echo '${'$as_ac_var'}'`
34115                { echo "$as_me:$LINENO: result: $ac_res" >&5
34116 echo "${ECHO_T}$ac_res" >&6; }
34117 if test `eval echo '${'$as_ac_var'}'` = yes; then
34118   cat >>confdefs.h <<_ACEOF
34119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34120 _ACEOF
34121
34122 fi
34123 done
34124
34125 { echo "$as_me:$LINENO: checking for working mmap" >&5
34126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   if test "$cross_compiling" = yes; then
34131   ac_cv_func_mmap_fixed_mapped=no
34132 else
34133   cat >conftest.$ac_ext <<_ACEOF
34134 /* confdefs.h.  */
34135 _ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h.  */
34139 $ac_includes_default
34140 /* malloc might have been renamed as rpl_malloc. */
34141 #undef malloc
34142
34143 /* Thanks to Mike Haertel and Jim Avera for this test.
34144    Here is a matrix of mmap possibilities:
34145         mmap private not fixed
34146         mmap private fixed at somewhere currently unmapped
34147         mmap private fixed at somewhere already mapped
34148         mmap shared not fixed
34149         mmap shared fixed at somewhere currently unmapped
34150         mmap shared fixed at somewhere already mapped
34151    For private mappings, we should verify that changes cannot be read()
34152    back from the file, nor mmap's back from the file at a different
34153    address.  (There have been systems where private was not correctly
34154    implemented like the infamous i386 svr4.0, and systems where the
34155    VM page cache was not coherent with the file system buffer cache
34156    like early versions of FreeBSD and possibly contemporary NetBSD.)
34157    For shared mappings, we should conversely verify that changes get
34158    propagated back to all the places they're supposed to be.
34159
34160    Grep wants private fixed already mapped.
34161    The main things grep needs to know about mmap are:
34162    * does it exist and is it safe to write into the mmap'd area
34163    * how to use it (BSD variants)  */
34164
34165 #include <fcntl.h>
34166 #include <sys/mman.h>
34167
34168 #if !STDC_HEADERS && !HAVE_STDLIB_H
34169 char *malloc ();
34170 #endif
34171
34172 /* This mess was copied from the GNU getpagesize.h.  */
34173 #if !HAVE_GETPAGESIZE
34174 /* Assume that all systems that can run configure have sys/param.h.  */
34175 # if !HAVE_SYS_PARAM_H
34176 #  define HAVE_SYS_PARAM_H 1
34177 # endif
34178
34179 # ifdef _SC_PAGESIZE
34180 #  define getpagesize() sysconf(_SC_PAGESIZE)
34181 # else /* no _SC_PAGESIZE */
34182 #  if HAVE_SYS_PARAM_H
34183 #   include <sys/param.h>
34184 #   ifdef EXEC_PAGESIZE
34185 #    define getpagesize() EXEC_PAGESIZE
34186 #   else /* no EXEC_PAGESIZE */
34187 #    ifdef NBPG
34188 #     define getpagesize() NBPG * CLSIZE
34189 #     ifndef CLSIZE
34190 #      define CLSIZE 1
34191 #     endif /* no CLSIZE */
34192 #    else /* no NBPG */
34193 #     ifdef NBPC
34194 #      define getpagesize() NBPC
34195 #     else /* no NBPC */
34196 #      ifdef PAGESIZE
34197 #       define getpagesize() PAGESIZE
34198 #      endif /* PAGESIZE */
34199 #     endif /* no NBPC */
34200 #    endif /* no NBPG */
34201 #   endif /* no EXEC_PAGESIZE */
34202 #  else /* no HAVE_SYS_PARAM_H */
34203 #   define getpagesize() 8192   /* punt totally */
34204 #  endif /* no HAVE_SYS_PARAM_H */
34205 # endif /* no _SC_PAGESIZE */
34206
34207 #endif /* no HAVE_GETPAGESIZE */
34208
34209 int
34210 main ()
34211 {
34212   char *data, *data2, *data3;
34213   int i, pagesize;
34214   int fd;
34215
34216   pagesize = getpagesize ();
34217
34218   /* First, make a file with some known garbage in it. */
34219   data = (char *) malloc (pagesize);
34220   if (!data)
34221     return 1;
34222   for (i = 0; i < pagesize; ++i)
34223     *(data + i) = rand ();
34224   umask (0);
34225   fd = creat ("conftest.mmap", 0600);
34226   if (fd < 0)
34227     return 1;
34228   if (write (fd, data, pagesize) != pagesize)
34229     return 1;
34230   close (fd);
34231
34232   /* Next, try to mmap the file at a fixed address which already has
34233      something else allocated at it.  If we can, also make sure that
34234      we see the same garbage.  */
34235   fd = open ("conftest.mmap", O_RDWR);
34236   if (fd < 0)
34237     return 1;
34238   data2 = (char *) malloc (2 * pagesize);
34239   if (!data2)
34240     return 1;
34241   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34242   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34243                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34244     return 1;
34245   for (i = 0; i < pagesize; ++i)
34246     if (*(data + i) != *(data2 + i))
34247       return 1;
34248
34249   /* Finally, make sure that changes to the mapped area do not
34250      percolate back to the file as seen by read().  (This is a bug on
34251      some variants of i386 svr4.0.)  */
34252   for (i = 0; i < pagesize; ++i)
34253     *(data2 + i) = *(data2 + i) + 1;
34254   data3 = (char *) malloc (pagesize);
34255   if (!data3)
34256     return 1;
34257   if (read (fd, data3, pagesize) != pagesize)
34258     return 1;
34259   for (i = 0; i < pagesize; ++i)
34260     if (*(data + i) != *(data3 + i))
34261       return 1;
34262   close (fd);
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest$ac_exeext
34267 if { (ac_try="$ac_link"
34268 case "(($ac_try" in
34269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270   *) ac_try_echo=$ac_try;;
34271 esac
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273   (eval "$ac_link") 2>&5
34274   ac_status=$?
34275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34277   { (case "(($ac_try" in
34278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34279   *) ac_try_echo=$ac_try;;
34280 esac
34281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34282   (eval "$ac_try") 2>&5
34283   ac_status=$?
34284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285   (exit $ac_status); }; }; then
34286   ac_cv_func_mmap_fixed_mapped=yes
34287 else
34288   echo "$as_me: program exited with status $ac_status" >&5
34289 echo "$as_me: failed program was:" >&5
34290 sed 's/^/| /' conftest.$ac_ext >&5
34291
34292 ( exit $ac_status )
34293 ac_cv_func_mmap_fixed_mapped=no
34294 fi
34295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34296 fi
34297
34298
34299 fi
34300 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34301 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34302 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34303
34304 cat >>confdefs.h <<\_ACEOF
34305 #define HAVE_MMAP 1
34306 _ACEOF
34307
34308 fi
34309 rm -f conftest.mmap
34310
34311   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34312 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34313 if test "${ac_cv_func_mmap_file+set}" = set; then
34314   echo $ECHO_N "(cached) $ECHO_C" >&6
34315 else
34316    ac_ext=c
34317 ac_cpp='$CPP $CPPFLAGS'
34318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34321
34322   if test "$cross_compiling" = yes; then
34323   ac_cv_func_mmap_file=no
34324 else
34325   cat >conftest.$ac_ext <<_ACEOF
34326
34327     /* confdefs.h.  */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h.  */
34332
34333 #include <sys/types.h>
34334 #include <sys/mman.h>
34335 #include <fcntl.h>
34336
34337 int
34338 main ()
34339 {
34340
34341   int fd;
34342   fd = creat ("foo",0777);
34343   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34344   unlink ("foo");
34345   return (fd != (int) MAP_FAILED);
34346   ;
34347   return 0;
34348 }
34349 _ACEOF
34350 rm -f conftest$ac_exeext
34351 if { (ac_try="$ac_link"
34352 case "(($ac_try" in
34353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354   *) ac_try_echo=$ac_try;;
34355 esac
34356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357   (eval "$ac_link") 2>&5
34358   ac_status=$?
34359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34361   { (case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_try") 2>&5
34367   ac_status=$?
34368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369   (exit $ac_status); }; }; then
34370   ac_cv_func_mmap_file=yes
34371 else
34372   echo "$as_me: program exited with status $ac_status" >&5
34373 echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34375
34376 ( exit $ac_status )
34377 ac_cv_func_mmap_file=no
34378 fi
34379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34380 fi
34381
34382
34383   ac_ext=c
34384 ac_cpp='$CPP $CPPFLAGS'
34385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34388
34389
34390 fi
34391 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34392 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34393 if test "$ac_cv_func_mmap_file" = yes; then
34394
34395 cat >>confdefs.h <<\_ACEOF
34396 #define HAVE_MMAP_FILE
34397 _ACEOF
34398
34399    MMAP_FILE=yes
34400
34401 fi
34402
34403   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34404 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34405 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34406   echo $ECHO_N "(cached) $ECHO_C" >&6
34407 else
34408   if test "$llvm_cv_os_type" = "Interix" ; then
34409    ac_cv_need_dev_zero_for_mmap=yes
34410  else
34411    ac_cv_need_dev_zero_for_mmap=no
34412  fi
34413
34414 fi
34415 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34416 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34417 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34418
34419 cat >>confdefs.h <<\_ACEOF
34420 #define NEED_DEV_ZERO_FOR_MMAP 1
34421 _ACEOF
34422
34423 fi
34424
34425   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34426   then
34427     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34428 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34429   fi
34430   if test "$ac_cv_func_mmap_file" = "no"
34431   then
34432     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34433 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34434   fi
34435 fi
34436
34437
34438
34439 for ac_func in __dso_handle
34440 do
34441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34445   echo $ECHO_N "(cached) $ECHO_C" >&6
34446 else
34447   cat >conftest.$ac_ext <<_ACEOF
34448 /* confdefs.h.  */
34449 _ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h.  */
34453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34455 #define $ac_func innocuous_$ac_func
34456
34457 /* System header to define __stub macros and hopefully few prototypes,
34458     which can conflict with char $ac_func (); below.
34459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460     <limits.h> exists even on freestanding compilers.  */
34461
34462 #ifdef __STDC__
34463 # include <limits.h>
34464 #else
34465 # include <assert.h>
34466 #endif
34467
34468 #undef $ac_func
34469
34470 /* Override any GCC internal prototype to avoid an error.
34471    Use char because int might match the return type of a GCC
34472    builtin and then its argument prototype would still apply.  */
34473 #ifdef __cplusplus
34474 extern "C"
34475 #endif
34476 char $ac_func ();
34477 /* The GNU C library defines this for functions which it implements
34478     to always fail with ENOSYS.  Some functions are actually named
34479     something starting with __ and the normal name is an alias.  */
34480 #if defined __stub_$ac_func || defined __stub___$ac_func
34481 choke me
34482 #endif
34483
34484 int
34485 main ()
34486 {
34487 return $ac_func ();
34488   ;
34489   return 0;
34490 }
34491 _ACEOF
34492 rm -f conftest.$ac_objext conftest$ac_exeext
34493 if { (ac_try="$ac_link"
34494 case "(($ac_try" in
34495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496   *) ac_try_echo=$ac_try;;
34497 esac
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499   (eval "$ac_link") 2>conftest.er1
34500   ac_status=$?
34501   grep -v '^ *+' conftest.er1 >conftest.err
34502   rm -f conftest.er1
34503   cat conftest.err >&5
34504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505   (exit $ac_status); } &&
34506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34507   { (case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512   (eval "$ac_try") 2>&5
34513   ac_status=$?
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); }; } &&
34516          { ac_try='test -s conftest$ac_exeext'
34517   { (case "(($ac_try" in
34518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519   *) ac_try_echo=$ac_try;;
34520 esac
34521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522   (eval "$ac_try") 2>&5
34523   ac_status=$?
34524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525   (exit $ac_status); }; }; then
34526   eval "$as_ac_var=yes"
34527 else
34528   echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34530
34531         eval "$as_ac_var=no"
34532 fi
34533
34534 rm -f core conftest.err conftest.$ac_objext \
34535       conftest$ac_exeext conftest.$ac_ext
34536 fi
34537 ac_res=`eval echo '${'$as_ac_var'}'`
34538                { echo "$as_me:$LINENO: result: $ac_res" >&5
34539 echo "${ECHO_T}$ac_res" >&6; }
34540 if test `eval echo '${'$as_ac_var'}'` = yes; then
34541   cat >>confdefs.h <<_ACEOF
34542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34543 _ACEOF
34544
34545 fi
34546 done
34547
34548
34549 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34550 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34551 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34552   echo $ECHO_N "(cached) $ECHO_C" >&6
34553 else
34554   llvm_cv_llvmgcc_sanity="no"
34555 if test -x "$LLVMGCC" ; then
34556   cp /dev/null conftest.c
34557   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34558       grep 'target datalayout =' > /dev/null 2>&1
34559   if test $? -eq 0 ; then
34560     llvm_cv_llvmgcc_sanity="yes"
34561   fi
34562   rm conftest.c
34563 fi
34564 fi
34565 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34566 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34567
34568 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34569   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34570 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34571   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34572   LLVMCC1=$llvmcc1path
34573
34574   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34575   LLVMCC1PLUS=$llvmcc1pluspath
34576
34577   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34578   LLVMGCCDIR=$llvmgccdir
34579
34580   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34581   LLVMGCCLIBEXEC=$llvmgcclibexec
34582
34583   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34584   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34585   LLVMGCC_VERSION=$llvmgccversion
34586
34587   LLVMGCC_MAJVERS=$llvmgccmajvers
34588
34589   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34590   LLVMGCC_LANGS=$llvmgcclangs
34591
34592   { echo "$as_me:$LINENO: result: ok" >&5
34593 echo "${ECHO_T}ok" >&6; }
34594 fi
34595
34596 SHLIBEXT=$libltdl_cv_shlibext
34597
34598
34599 # Translate the various configuration directories and other basic
34600 # information into substitutions that will end up in Makefile.config.in
34601 # that these configured values can be used by the makefiles
34602 if test "${prefix}" = "NONE" ; then
34603   prefix="/usr/local"
34604 fi
34605 eval LLVM_PREFIX="${prefix}";
34606 eval LLVM_BINDIR="${prefix}/bin";
34607 eval LLVM_LIBDIR="${prefix}/lib";
34608 eval LLVM_DATADIR="${prefix}/share/llvm";
34609 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34610 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34611 eval LLVM_INCLUDEDIR="${prefix}/include";
34612 eval LLVM_INFODIR="${prefix}/info";
34613 eval LLVM_MANDIR="${prefix}/man";
34614 LLVM_CONFIGTIME=`date`
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626 # Place the various directores into the config.h file as #defines so that we
34627 # can know about the installation paths within LLVM.
34628
34629 cat >>confdefs.h <<_ACEOF
34630 #define LLVM_PREFIX "$LLVM_PREFIX"
34631 _ACEOF
34632
34633
34634 cat >>confdefs.h <<_ACEOF
34635 #define LLVM_BINDIR "$LLVM_BINDIR"
34636 _ACEOF
34637
34638
34639 cat >>confdefs.h <<_ACEOF
34640 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34641 _ACEOF
34642
34643
34644 cat >>confdefs.h <<_ACEOF
34645 #define LLVM_DATADIR "$LLVM_DATADIR"
34646 _ACEOF
34647
34648
34649 cat >>confdefs.h <<_ACEOF
34650 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34651 _ACEOF
34652
34653
34654 cat >>confdefs.h <<_ACEOF
34655 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34656 _ACEOF
34657
34658
34659 cat >>confdefs.h <<_ACEOF
34660 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34661 _ACEOF
34662
34663
34664 cat >>confdefs.h <<_ACEOF
34665 #define LLVM_INFODIR "$LLVM_INFODIR"
34666 _ACEOF
34667
34668
34669 cat >>confdefs.h <<_ACEOF
34670 #define LLVM_MANDIR "$LLVM_MANDIR"
34671 _ACEOF
34672
34673
34674 cat >>confdefs.h <<_ACEOF
34675 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34676 _ACEOF
34677
34678
34679 cat >>confdefs.h <<_ACEOF
34680 #define LLVM_HOSTTRIPLE "$host"
34681 _ACEOF
34682
34683
34684 # Determine which bindings to build.
34685 if test "$BINDINGS_TO_BUILD" = auto ; then
34686   BINDINGS_TO_BUILD=""
34687   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34688     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34689   fi
34690 fi
34691 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34692
34693
34694 # This isn't really configurey, but it avoids having to repeat the list in
34695 # other files.
34696 ALL_BINDINGS=ocaml
34697
34698
34699 # Do any work necessary to ensure that bindings have what they need.
34700 binding_prereqs_failed=0
34701 for a_binding in $BINDINGS_TO_BUILD ; do
34702   case "$a_binding" in
34703   ocaml)
34704     if test "x$OCAMLC" = x ; then
34705       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34706 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34707       binding_prereqs_failed=1
34708     fi
34709     if test "x$OCAMLDEP" = x ; then
34710       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34711 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34712       binding_prereqs_failed=1
34713     fi
34714     if test "x$OCAMLOPT" = x ; then
34715       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34716 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34717           fi
34718     if test "x$with_ocaml_libdir" != xauto ; then
34719       OCAML_LIBDIR=$with_ocaml_libdir
34720
34721     else
34722       ocaml_stdlib="`"$OCAMLC" -where`"
34723       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34724       then
34725         # ocaml stdlib is beneath our prefix; use stdlib
34726         OCAML_LIBDIR=$ocaml_stdlib
34727
34728       else
34729         # ocaml stdlib is outside our prefix; use libdir/ocaml
34730         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34731
34732       fi
34733     fi
34734     ;;
34735   esac
34736 done
34737 if test "$binding_prereqs_failed" = 1 ; then
34738   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34739 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34740    { (exit 1); exit 1; }; }
34741 fi
34742
34743 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34744 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34745 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34746   echo $ECHO_N "(cached) $ECHO_C" >&6
34747 else
34748    ac_ext=cpp
34749 ac_cpp='$CXXCPP $CPPFLAGS'
34750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34753
34754   oldcxxflags="$CXXFLAGS"
34755   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34756   cat >conftest.$ac_ext <<_ACEOF
34757 /* confdefs.h.  */
34758 _ACEOF
34759 cat confdefs.h >>conftest.$ac_ext
34760 cat >>conftest.$ac_ext <<_ACEOF
34761 /* end confdefs.h.  */
34762
34763 int
34764 main ()
34765 {
34766
34767   ;
34768   return 0;
34769 }
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775   *) ac_try_echo=$ac_try;;
34776 esac
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778   (eval "$ac_compile") 2>conftest.er1
34779   ac_status=$?
34780   grep -v '^ *+' conftest.er1 >conftest.err
34781   rm -f conftest.er1
34782   cat conftest.err >&5
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); } &&
34785          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34786   { (case "(($ac_try" in
34787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788   *) ac_try_echo=$ac_try;;
34789 esac
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791   (eval "$ac_try") 2>&5
34792   ac_status=$?
34793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794   (exit $ac_status); }; } &&
34795          { ac_try='test -s conftest.$ac_objext'
34796   { (case "(($ac_try" in
34797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798   *) ac_try_echo=$ac_try;;
34799 esac
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801   (eval "$ac_try") 2>&5
34802   ac_status=$?
34803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804   (exit $ac_status); }; }; then
34805   llvm_cv_cxx_visibility_inlines_hidden=yes
34806 else
34807   echo "$as_me: failed program was:" >&5
34808 sed 's/^/| /' conftest.$ac_ext >&5
34809
34810         llvm_cv_cxx_visibility_inlines_hidden=no
34811 fi
34812
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814   CXXFLAGS="$oldcxxflags"
34815   ac_ext=c
34816 ac_cpp='$CPP $CPPFLAGS'
34817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34820
34821
34822 fi
34823 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34824 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34825 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34826   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34827
34828 else
34829   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34830
34831 fi
34832
34833
34834
34835 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34836
34837 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34838
34839 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34840
34841 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34842
34843 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34844
34845
34846 ac_config_files="$ac_config_files Makefile.config"
34847
34848
34849 ac_config_files="$ac_config_files llvm.spec"
34850
34851
34852 ac_config_files="$ac_config_files docs/doxygen.cfg"
34853
34854
34855 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34856
34857
34858 ac_config_commands="$ac_config_commands setup"
34859
34860 ac_config_commands="$ac_config_commands Makefile"
34861
34862
34863 ac_config_commands="$ac_config_commands Makefile.common"
34864
34865
34866 ac_config_commands="$ac_config_commands examples/Makefile"
34867
34868
34869 ac_config_commands="$ac_config_commands lib/Makefile"
34870
34871
34872 ac_config_commands="$ac_config_commands runtime/Makefile"
34873
34874
34875 ac_config_commands="$ac_config_commands test/Makefile"
34876
34877
34878 ac_config_commands="$ac_config_commands test/Makefile.tests"
34879
34880
34881 ac_config_commands="$ac_config_commands unittests/Makefile"
34882
34883
34884 ac_config_commands="$ac_config_commands tools/Makefile"
34885
34886
34887 ac_config_commands="$ac_config_commands utils/Makefile"
34888
34889
34890 ac_config_commands="$ac_config_commands projects/Makefile"
34891
34892
34893 ac_config_commands="$ac_config_commands bindings/Makefile"
34894
34895
34896 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34897
34898
34899
34900 cat >confcache <<\_ACEOF
34901 # This file is a shell script that caches the results of configure
34902 # tests run on this system so they can be shared between configure
34903 # scripts and configure runs, see configure's option --config-cache.
34904 # It is not useful on other systems.  If it contains results you don't
34905 # want to keep, you may remove or edit it.
34906 #
34907 # config.status only pays attention to the cache file if you give it
34908 # the --recheck option to rerun configure.
34909 #
34910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34912 # following values.
34913
34914 _ACEOF
34915
34916 # The following way of writing the cache mishandles newlines in values,
34917 # but we know of no workaround that is simple, portable, and efficient.
34918 # So, we kill variables containing newlines.
34919 # Ultrix sh set writes to stderr and can't be redirected directly,
34920 # and sets the high bit in the cache file unless we assign to the vars.
34921 (
34922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34923     eval ac_val=\$$ac_var
34924     case $ac_val in #(
34925     *${as_nl}*)
34926       case $ac_var in #(
34927       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34929       esac
34930       case $ac_var in #(
34931       _ | IFS | as_nl) ;; #(
34932       *) $as_unset $ac_var ;;
34933       esac ;;
34934     esac
34935   done
34936
34937   (set) 2>&1 |
34938     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34939     *${as_nl}ac_space=\ *)
34940       # `set' does not quote correctly, so add quotes (double-quote
34941       # substitution turns \\\\ into \\, and sed turns \\ into \).
34942       sed -n \
34943         "s/'/'\\\\''/g;
34944           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34945       ;; #(
34946     *)
34947       # `set' quotes correctly as required by POSIX, so do not add quotes.
34948       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34949       ;;
34950     esac |
34951     sort
34952 ) |
34953   sed '
34954      /^ac_cv_env_/b end
34955      t clear
34956      :clear
34957      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34958      t end
34959      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34960      :end' >>confcache
34961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34962   if test -w "$cache_file"; then
34963     test "x$cache_file" != "x/dev/null" &&
34964       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34965 echo "$as_me: updating cache $cache_file" >&6;}
34966     cat confcache >$cache_file
34967   else
34968     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34970   fi
34971 fi
34972 rm -f confcache
34973
34974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34975 # Let make expand exec_prefix.
34976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34977
34978 DEFS=-DHAVE_CONFIG_H
34979
34980 ac_libobjs=
34981 ac_ltlibobjs=
34982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34983   # 1. Remove the extension, and $U if already installed.
34984   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34985   ac_i=`echo "$ac_i" | sed "$ac_script"`
34986   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34987   #    will be set to the directory where LIBOBJS objects are built.
34988   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34989   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34990 done
34991 LIBOBJS=$ac_libobjs
34992
34993 LTLIBOBJS=$ac_ltlibobjs
34994
34995
34996 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34997   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34998 Usually this means the macro was only invoked conditionally." >&5
34999 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35000 Usually this means the macro was only invoked conditionally." >&2;}
35001    { (exit 1); exit 1; }; }
35002 fi
35003 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35004   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35005 Usually this means the macro was only invoked conditionally." >&5
35006 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35007 Usually this means the macro was only invoked conditionally." >&2;}
35008    { (exit 1); exit 1; }; }
35009 fi
35010
35011 : ${CONFIG_STATUS=./config.status}
35012 ac_clean_files_save=$ac_clean_files
35013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35016 cat >$CONFIG_STATUS <<_ACEOF
35017 #! $SHELL
35018 # Generated by $as_me.
35019 # Run this file to recreate the current configuration.
35020 # Compiler output produced by configure, useful for debugging
35021 # configure, is in config.log if it exists.
35022
35023 debug=false
35024 ac_cs_recheck=false
35025 ac_cs_silent=false
35026 SHELL=\${CONFIG_SHELL-$SHELL}
35027 _ACEOF
35028
35029 cat >>$CONFIG_STATUS <<\_ACEOF
35030 ## --------------------- ##
35031 ## M4sh Initialization.  ##
35032 ## --------------------- ##
35033
35034 # Be Bourne compatible
35035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35036   emulate sh
35037   NULLCMD=:
35038   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35039   # is contrary to our usage.  Disable this feature.
35040   alias -g '${1+"$@"}'='"$@"'
35041   setopt NO_GLOB_SUBST
35042 else
35043   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35044 fi
35045 BIN_SH=xpg4; export BIN_SH # for Tru64
35046 DUALCASE=1; export DUALCASE # for MKS sh
35047
35048
35049 # PATH needs CR
35050 # Avoid depending upon Character Ranges.
35051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35054 as_cr_digits='0123456789'
35055 as_cr_alnum=$as_cr_Letters$as_cr_digits
35056
35057 # The user is always right.
35058 if test "${PATH_SEPARATOR+set}" != set; then
35059   echo "#! /bin/sh" >conf$$.sh
35060   echo  "exit 0"   >>conf$$.sh
35061   chmod +x conf$$.sh
35062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35063     PATH_SEPARATOR=';'
35064   else
35065     PATH_SEPARATOR=:
35066   fi
35067   rm -f conf$$.sh
35068 fi
35069
35070 # Support unset when possible.
35071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35072   as_unset=unset
35073 else
35074   as_unset=false
35075 fi
35076
35077
35078 # IFS
35079 # We need space, tab and new line, in precisely that order.  Quoting is
35080 # there to prevent editors from complaining about space-tab.
35081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35082 # splitting by setting IFS to empty value.)
35083 as_nl='
35084 '
35085 IFS=" ""        $as_nl"
35086
35087 # Find who we are.  Look in the path if we contain no directory separator.
35088 case $0 in
35089   *[\\/]* ) as_myself=$0 ;;
35090   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35091 for as_dir in $PATH
35092 do
35093   IFS=$as_save_IFS
35094   test -z "$as_dir" && as_dir=.
35095   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35096 done
35097 IFS=$as_save_IFS
35098
35099      ;;
35100 esac
35101 # We did not find ourselves, most probably we were run as `sh COMMAND'
35102 # in which case we are not to be found in the path.
35103 if test "x$as_myself" = x; then
35104   as_myself=$0
35105 fi
35106 if test ! -f "$as_myself"; then
35107   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35108   { (exit 1); exit 1; }
35109 fi
35110
35111 # Work around bugs in pre-3.0 UWIN ksh.
35112 for as_var in ENV MAIL MAILPATH
35113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35114 done
35115 PS1='$ '
35116 PS2='> '
35117 PS4='+ '
35118
35119 # NLS nuisances.
35120 for as_var in \
35121   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35122   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35123   LC_TELEPHONE LC_TIME
35124 do
35125   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35126     eval $as_var=C; export $as_var
35127   else
35128     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35129   fi
35130 done
35131
35132 # Required to use basename.
35133 if expr a : '\(a\)' >/dev/null 2>&1 &&
35134    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35135   as_expr=expr
35136 else
35137   as_expr=false
35138 fi
35139
35140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35141   as_basename=basename
35142 else
35143   as_basename=false
35144 fi
35145
35146
35147 # Name of the executable.
35148 as_me=`$as_basename -- "$0" ||
35149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35150          X"$0" : 'X\(//\)$' \| \
35151          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35152 echo X/"$0" |
35153     sed '/^.*\/\([^/][^/]*\)\/*$/{
35154             s//\1/
35155             q
35156           }
35157           /^X\/\(\/\/\)$/{
35158             s//\1/
35159             q
35160           }
35161           /^X\/\(\/\).*/{
35162             s//\1/
35163             q
35164           }
35165           s/.*/./; q'`
35166
35167 # CDPATH.
35168 $as_unset CDPATH
35169
35170
35171
35172   as_lineno_1=$LINENO
35173   as_lineno_2=$LINENO
35174   test "x$as_lineno_1" != "x$as_lineno_2" &&
35175   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35176
35177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35178   # uniformly replaced by the line number.  The first 'sed' inserts a
35179   # line-number line after each line using $LINENO; the second 'sed'
35180   # does the real work.  The second script uses 'N' to pair each
35181   # line-number line with the line containing $LINENO, and appends
35182   # trailing '-' during substitution so that $LINENO is not a special
35183   # case at line end.
35184   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35185   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35186   # E. McMahon (1931-1989) for sed's syntax.  :-)
35187   sed -n '
35188     p
35189     /[$]LINENO/=
35190   ' <$as_myself |
35191     sed '
35192       s/[$]LINENO.*/&-/
35193       t lineno
35194       b
35195       :lineno
35196       N
35197       :loop
35198       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35199       t loop
35200       s/-\n.*//
35201     ' >$as_me.lineno &&
35202   chmod +x "$as_me.lineno" ||
35203     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35204    { (exit 1); exit 1; }; }
35205
35206   # Don't try to exec as it changes $[0], causing all sort of problems
35207   # (the dirname of $[0] is not the place where we might find the
35208   # original and so on.  Autoconf is especially sensitive to this).
35209   . "./$as_me.lineno"
35210   # Exit status is that of the last command.
35211   exit
35212 }
35213
35214
35215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35216   as_dirname=dirname
35217 else
35218   as_dirname=false
35219 fi
35220
35221 ECHO_C= ECHO_N= ECHO_T=
35222 case `echo -n x` in
35223 -n*)
35224   case `echo 'x\c'` in
35225   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35226   *)   ECHO_C='\c';;
35227   esac;;
35228 *)
35229   ECHO_N='-n';;
35230 esac
35231
35232 if expr a : '\(a\)' >/dev/null 2>&1 &&
35233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35234   as_expr=expr
35235 else
35236   as_expr=false
35237 fi
35238
35239 rm -f conf$$ conf$$.exe conf$$.file
35240 if test -d conf$$.dir; then
35241   rm -f conf$$.dir/conf$$.file
35242 else
35243   rm -f conf$$.dir
35244   mkdir conf$$.dir
35245 fi
35246 echo >conf$$.file
35247 if ln -s conf$$.file conf$$ 2>/dev/null; then
35248   as_ln_s='ln -s'
35249   # ... but there are two gotchas:
35250   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35251   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35252   # In both cases, we have to default to `cp -p'.
35253   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35254     as_ln_s='cp -p'
35255 elif ln conf$$.file conf$$ 2>/dev/null; then
35256   as_ln_s=ln
35257 else
35258   as_ln_s='cp -p'
35259 fi
35260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35261 rmdir conf$$.dir 2>/dev/null
35262
35263 if mkdir -p . 2>/dev/null; then
35264   as_mkdir_p=:
35265 else
35266   test -d ./-p && rmdir ./-p
35267   as_mkdir_p=false
35268 fi
35269
35270 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35271 # systems may use methods other than mode bits to determine executability.
35272 cat >conf$$.file <<_ASEOF
35273 #! /bin/sh
35274 exit 0
35275 _ASEOF
35276 chmod +x conf$$.file
35277 if test -x conf$$.file >/dev/null 2>&1; then
35278   as_executable_p="test -x"
35279 else
35280   as_executable_p=:
35281 fi
35282 rm -f conf$$.file
35283
35284 # Sed expression to map a string onto a valid CPP name.
35285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35286
35287 # Sed expression to map a string onto a valid variable name.
35288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35289
35290
35291 exec 6>&1
35292
35293 # Save the log message, to keep $[0] and so on meaningful, and to
35294 # report actual input values of CONFIG_FILES etc. instead of their
35295 # values after options handling.
35296 ac_log="
35297 This file was extended by llvm $as_me 2.6svn, which was
35298 generated by GNU Autoconf 2.60.  Invocation command line was
35299
35300   CONFIG_FILES    = $CONFIG_FILES
35301   CONFIG_HEADERS  = $CONFIG_HEADERS
35302   CONFIG_LINKS    = $CONFIG_LINKS
35303   CONFIG_COMMANDS = $CONFIG_COMMANDS
35304   $ $0 $@
35305
35306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35307 "
35308
35309 _ACEOF
35310
35311 cat >>$CONFIG_STATUS <<_ACEOF
35312 # Files that config.status was made for.
35313 config_files="$ac_config_files"
35314 config_headers="$ac_config_headers"
35315 config_commands="$ac_config_commands"
35316
35317 _ACEOF
35318
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35320 ac_cs_usage="\
35321 \`$as_me' instantiates files from templates according to the
35322 current configuration.
35323
35324 Usage: $0 [OPTIONS] [FILE]...
35325
35326   -h, --help       print this help, then exit
35327   -V, --version    print version number, then exit
35328   -q, --quiet      do not print progress messages
35329   -d, --debug      don't remove temporary files
35330       --recheck    update $as_me by reconfiguring in the same conditions
35331   --file=FILE[:TEMPLATE]
35332                    instantiate the configuration file FILE
35333   --header=FILE[:TEMPLATE]
35334                    instantiate the configuration header FILE
35335
35336 Configuration files:
35337 $config_files
35338
35339 Configuration headers:
35340 $config_headers
35341
35342 Configuration commands:
35343 $config_commands
35344
35345 Report bugs to <bug-autoconf@gnu.org>."
35346
35347 _ACEOF
35348 cat >>$CONFIG_STATUS <<_ACEOF
35349 ac_cs_version="\\
35350 llvm config.status 2.6svn
35351 configured by $0, generated by GNU Autoconf 2.60,
35352   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35353
35354 Copyright (C) 2006 Free Software Foundation, Inc.
35355 This config.status script is free software; the Free Software Foundation
35356 gives unlimited permission to copy, distribute and modify it."
35357
35358 ac_pwd='$ac_pwd'
35359 srcdir='$srcdir'
35360 INSTALL='$INSTALL'
35361 _ACEOF
35362
35363 cat >>$CONFIG_STATUS <<\_ACEOF
35364 # If no file are specified by the user, then we need to provide default
35365 # value.  By we need to know if files were specified by the user.
35366 ac_need_defaults=:
35367 while test $# != 0
35368 do
35369   case $1 in
35370   --*=*)
35371     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35372     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35373     ac_shift=:
35374     ;;
35375   *)
35376     ac_option=$1
35377     ac_optarg=$2
35378     ac_shift=shift
35379     ;;
35380   esac
35381
35382   case $ac_option in
35383   # Handling of the options.
35384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35385     ac_cs_recheck=: ;;
35386   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35387     echo "$ac_cs_version"; exit ;;
35388   --debug | --debu | --deb | --de | --d | -d )
35389     debug=: ;;
35390   --file | --fil | --fi | --f )
35391     $ac_shift
35392     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35393     ac_need_defaults=false;;
35394   --header | --heade | --head | --hea )
35395     $ac_shift
35396     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35397     ac_need_defaults=false;;
35398   --he | --h)
35399     # Conflict between --help and --header
35400     { echo "$as_me: error: ambiguous option: $1
35401 Try \`$0 --help' for more information." >&2
35402    { (exit 1); exit 1; }; };;
35403   --help | --hel | -h )
35404     echo "$ac_cs_usage"; exit ;;
35405   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35406   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35407     ac_cs_silent=: ;;
35408
35409   # This is an error.
35410   -*) { echo "$as_me: error: unrecognized option: $1
35411 Try \`$0 --help' for more information." >&2
35412    { (exit 1); exit 1; }; } ;;
35413
35414   *) ac_config_targets="$ac_config_targets $1"
35415      ac_need_defaults=false ;;
35416
35417   esac
35418   shift
35419 done
35420
35421 ac_configure_extra_args=
35422
35423 if $ac_cs_silent; then
35424   exec 6>/dev/null
35425   ac_configure_extra_args="$ac_configure_extra_args --silent"
35426 fi
35427
35428 _ACEOF
35429 cat >>$CONFIG_STATUS <<_ACEOF
35430 if \$ac_cs_recheck; then
35431   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35432   CONFIG_SHELL=$SHELL
35433   export CONFIG_SHELL
35434   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35435 fi
35436
35437 _ACEOF
35438 cat >>$CONFIG_STATUS <<\_ACEOF
35439 exec 5>>config.log
35440 {
35441   echo
35442   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35443 ## Running $as_me. ##
35444 _ASBOX
35445   echo "$ac_log"
35446 } >&5
35447
35448 _ACEOF
35449 cat >>$CONFIG_STATUS <<_ACEOF
35450 #
35451 # INIT-COMMANDS
35452 #
35453 llvm_src="${srcdir}"
35454
35455 _ACEOF
35456
35457 cat >>$CONFIG_STATUS <<\_ACEOF
35458
35459 # Handling of arguments.
35460 for ac_config_target in $ac_config_targets
35461 do
35462   case $ac_config_target in
35463     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35464     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35465     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35466     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35467     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35468     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35469     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35470     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35471     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35472     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35473     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35474     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35475     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35476     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35477     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35478     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35479     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35480     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35481     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35482     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35483     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35484     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35485     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35486
35487   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35489    { (exit 1); exit 1; }; };;
35490   esac
35491 done
35492
35493
35494 # If the user did not use the arguments to specify the items to instantiate,
35495 # then the envvar interface is used.  Set only those that are not.
35496 # We use the long form for the default assignment because of an extremely
35497 # bizarre bug on SunOS 4.1.3.
35498 if $ac_need_defaults; then
35499   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35500   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35501   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35502 fi
35503
35504 # Have a temporary directory for convenience.  Make it in the build tree
35505 # simply because there is no reason against having it here, and in addition,
35506 # creating and moving files from /tmp can sometimes cause problems.
35507 # Hook for its removal unless debugging.
35508 # Note that there is a small window in which the directory will not be cleaned:
35509 # after its creation but before its name has been assigned to `$tmp'.
35510 $debug ||
35511 {
35512   tmp=
35513   trap 'exit_status=$?
35514   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35515 ' 0
35516   trap '{ (exit 1); exit 1; }' 1 2 13 15
35517 }
35518 # Create a (secure) tmp directory for tmp files.
35519
35520 {
35521   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35522   test -n "$tmp" && test -d "$tmp"
35523 }  ||
35524 {
35525   tmp=./conf$$-$RANDOM
35526   (umask 077 && mkdir "$tmp")
35527 } ||
35528 {
35529    echo "$me: cannot create a temporary directory in ." >&2
35530    { (exit 1); exit 1; }
35531 }
35532
35533 #
35534 # Set up the sed scripts for CONFIG_FILES section.
35535 #
35536
35537 # No need to generate the scripts if there are no CONFIG_FILES.
35538 # This happens for instance when ./config.status config.h
35539 if test -n "$CONFIG_FILES"; then
35540
35541 _ACEOF
35542
35543
35544
35545 ac_delim='%!_!# '
35546 for ac_last_try in false false false false false :; do
35547   cat >conf$$subs.sed <<_ACEOF
35548 SHELL!$SHELL$ac_delim
35549 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35550 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35551 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35552 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35553 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35554 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35555 exec_prefix!$exec_prefix$ac_delim
35556 prefix!$prefix$ac_delim
35557 program_transform_name!$program_transform_name$ac_delim
35558 bindir!$bindir$ac_delim
35559 sbindir!$sbindir$ac_delim
35560 libexecdir!$libexecdir$ac_delim
35561 datarootdir!$datarootdir$ac_delim
35562 datadir!$datadir$ac_delim
35563 sysconfdir!$sysconfdir$ac_delim
35564 sharedstatedir!$sharedstatedir$ac_delim
35565 localstatedir!$localstatedir$ac_delim
35566 includedir!$includedir$ac_delim
35567 oldincludedir!$oldincludedir$ac_delim
35568 docdir!$docdir$ac_delim
35569 infodir!$infodir$ac_delim
35570 htmldir!$htmldir$ac_delim
35571 dvidir!$dvidir$ac_delim
35572 pdfdir!$pdfdir$ac_delim
35573 psdir!$psdir$ac_delim
35574 libdir!$libdir$ac_delim
35575 localedir!$localedir$ac_delim
35576 mandir!$mandir$ac_delim
35577 DEFS!$DEFS$ac_delim
35578 ECHO_C!$ECHO_C$ac_delim
35579 ECHO_N!$ECHO_N$ac_delim
35580 ECHO_T!$ECHO_T$ac_delim
35581 LIBS!$LIBS$ac_delim
35582 build_alias!$build_alias$ac_delim
35583 host_alias!$host_alias$ac_delim
35584 target_alias!$target_alias$ac_delim
35585 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35586 subdirs!$subdirs$ac_delim
35587 build!$build$ac_delim
35588 build_cpu!$build_cpu$ac_delim
35589 build_vendor!$build_vendor$ac_delim
35590 build_os!$build_os$ac_delim
35591 host!$host$ac_delim
35592 host_cpu!$host_cpu$ac_delim
35593 host_vendor!$host_vendor$ac_delim
35594 host_os!$host_os$ac_delim
35595 target!$target$ac_delim
35596 target_cpu!$target_cpu$ac_delim
35597 target_vendor!$target_vendor$ac_delim
35598 target_os!$target_os$ac_delim
35599 OS!$OS$ac_delim
35600 LINKALL!$LINKALL$ac_delim
35601 NOLINKALL!$NOLINKALL$ac_delim
35602 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35603 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35604 ARCH!$ARCH$ac_delim
35605 ENDIAN!$ENDIAN$ac_delim
35606 CC!$CC$ac_delim
35607 CFLAGS!$CFLAGS$ac_delim
35608 LDFLAGS!$LDFLAGS$ac_delim
35609 CPPFLAGS!$CPPFLAGS$ac_delim
35610 ac_ct_CC!$ac_ct_CC$ac_delim
35611 EXEEXT!$EXEEXT$ac_delim
35612 OBJEXT!$OBJEXT$ac_delim
35613 CPP!$CPP$ac_delim
35614 GREP!$GREP$ac_delim
35615 EGREP!$EGREP$ac_delim
35616 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35617 BUILD_CC!$BUILD_CC$ac_delim
35618 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35619 BUILD_CXX!$BUILD_CXX$ac_delim
35620 CVSBUILD!$CVSBUILD$ac_delim
35621 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35622 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35623 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35624 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35625 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35626 JIT!$JIT$ac_delim
35627 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35628 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35629 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35630 ENABLE_PIC!$ENABLE_PIC$ac_delim
35631 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35632 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35633 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35634 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35635 CXX!$CXX$ac_delim
35636 CXXFLAGS!$CXXFLAGS$ac_delim
35637 ac_ct_CXX!$ac_ct_CXX$ac_delim
35638 LEX!$LEX$ac_delim
35639 LEXLIB!$LEXLIB$ac_delim
35640 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35641 FLEX!$FLEX$ac_delim
35642 YACC!$YACC$ac_delim
35643 YFLAGS!$YFLAGS$ac_delim
35644 BISON!$BISON$ac_delim
35645 _ACEOF
35646
35647   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35648     break
35649   elif $ac_last_try; then
35650     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35651 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35652    { (exit 1); exit 1; }; }
35653   else
35654     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35655   fi
35656 done
35657
35658 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35659 if test -n "$ac_eof"; then
35660   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35661   ac_eof=`expr $ac_eof + 1`
35662 fi
35663
35664 cat >>$CONFIG_STATUS <<_ACEOF
35665 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35667 _ACEOF
35668 sed '
35669 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35670 s/^/s,@/; s/!/@,|#_!!_#|/
35671 :n
35672 t n
35673 s/'"$ac_delim"'$/,g/; t
35674 s/$/\\/; p
35675 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35676 ' >>$CONFIG_STATUS <conf$$subs.sed
35677 rm -f conf$$subs.sed
35678 cat >>$CONFIG_STATUS <<_ACEOF
35679 CEOF$ac_eof
35680 _ACEOF
35681
35682
35683 ac_delim='%!_!# '
35684 for ac_last_try in false false false false false :; do
35685   cat >conf$$subs.sed <<_ACEOF
35686 NM!$NM$ac_delim
35687 ifGNUmake!$ifGNUmake$ac_delim
35688 LN_S!$LN_S$ac_delim
35689 CMP!$CMP$ac_delim
35690 CP!$CP$ac_delim
35691 DATE!$DATE$ac_delim
35692 FIND!$FIND$ac_delim
35693 MKDIR!$MKDIR$ac_delim
35694 MV!$MV$ac_delim
35695 RANLIB!$RANLIB$ac_delim
35696 RM!$RM$ac_delim
35697 SED!$SED$ac_delim
35698 TAR!$TAR$ac_delim
35699 BINPWD!$BINPWD$ac_delim
35700 GRAPHVIZ!$GRAPHVIZ$ac_delim
35701 DOT!$DOT$ac_delim
35702 GV!$GV$ac_delim
35703 DOTTY!$DOTTY$ac_delim
35704 PERL!$PERL$ac_delim
35705 HAVE_PERL!$HAVE_PERL$ac_delim
35706 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35707 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35708 INSTALL_DATA!$INSTALL_DATA$ac_delim
35709 BZIP2!$BZIP2$ac_delim
35710 DOXYGEN!$DOXYGEN$ac_delim
35711 GROFF!$GROFF$ac_delim
35712 GZIP!$GZIP$ac_delim
35713 POD2HTML!$POD2HTML$ac_delim
35714 POD2MAN!$POD2MAN$ac_delim
35715 RUNTEST!$RUNTEST$ac_delim
35716 TCLSH!$TCLSH$ac_delim
35717 ZIP!$ZIP$ac_delim
35718 OCAMLC!$OCAMLC$ac_delim
35719 OCAMLOPT!$OCAMLOPT$ac_delim
35720 OCAMLDEP!$OCAMLDEP$ac_delim
35721 OCAMLDOC!$OCAMLDOC$ac_delim
35722 GAS!$GAS$ac_delim
35723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35727 LIBADD_DL!$LIBADD_DL$ac_delim
35728 ECHO!$ECHO$ac_delim
35729 AR!$AR$ac_delim
35730 STRIP!$STRIP$ac_delim
35731 CXXCPP!$CXXCPP$ac_delim
35732 F77!$F77$ac_delim
35733 FFLAGS!$FFLAGS$ac_delim
35734 ac_ct_F77!$ac_ct_F77$ac_delim
35735 LIBTOOL!$LIBTOOL$ac_delim
35736 LLVMGCC!$LLVMGCC$ac_delim
35737 LLVMGXX!$LLVMGXX$ac_delim
35738 USE_UDIS86!$USE_UDIS86$ac_delim
35739 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35740 HAVE_FFI!$HAVE_FFI$ac_delim
35741 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35742 ALLOCA!$ALLOCA$ac_delim
35743 MMAP_FILE!$MMAP_FILE$ac_delim
35744 LLVMCC1!$LLVMCC1$ac_delim
35745 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35746 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35747 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35748 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35749 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35750 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35751 SHLIBEXT!$SHLIBEXT$ac_delim
35752 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35753 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35754 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35755 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35756 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35757 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35758 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35759 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35760 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35761 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35762 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35763 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35764 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35765 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35766 LIBOBJS!$LIBOBJS$ac_delim
35767 LTLIBOBJS!$LTLIBOBJS$ac_delim
35768 _ACEOF
35769
35770   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
35771     break
35772   elif $ac_last_try; then
35773     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35775    { (exit 1); exit 1; }; }
35776   else
35777     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35778   fi
35779 done
35780
35781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35782 if test -n "$ac_eof"; then
35783   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35784   ac_eof=`expr $ac_eof + 1`
35785 fi
35786
35787 cat >>$CONFIG_STATUS <<_ACEOF
35788 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35790 _ACEOF
35791 sed '
35792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35793 s/^/s,@/; s/!/@,|#_!!_#|/
35794 :n
35795 t n
35796 s/'"$ac_delim"'$/,g/; t
35797 s/$/\\/; p
35798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35799 ' >>$CONFIG_STATUS <conf$$subs.sed
35800 rm -f conf$$subs.sed
35801 cat >>$CONFIG_STATUS <<_ACEOF
35802 :end
35803 s/|#_!!_#|//g
35804 CEOF$ac_eof
35805 _ACEOF
35806
35807
35808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35810 # trailing colons and then remove the whole line if VPATH becomes empty
35811 # (actually we leave an empty line to preserve line numbers).
35812 if test "x$srcdir" = x.; then
35813   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35814 s/:*\$(srcdir):*/:/
35815 s/:*\${srcdir}:*/:/
35816 s/:*@srcdir@:*/:/
35817 s/^\([^=]*=[     ]*\):*/\1/
35818 s/:*$//
35819 s/^[^=]*=[       ]*$//
35820 }'
35821 fi
35822
35823 cat >>$CONFIG_STATUS <<\_ACEOF
35824 fi # test -n "$CONFIG_FILES"
35825
35826
35827 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35828 do
35829   case $ac_tag in
35830   :[FHLC]) ac_mode=$ac_tag; continue;;
35831   esac
35832   case $ac_mode$ac_tag in
35833   :[FHL]*:*);;
35834   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35835 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35836    { (exit 1); exit 1; }; };;
35837   :[FH]-) ac_tag=-:-;;
35838   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35839   esac
35840   ac_save_IFS=$IFS
35841   IFS=:
35842   set x $ac_tag
35843   IFS=$ac_save_IFS
35844   shift
35845   ac_file=$1
35846   shift
35847
35848   case $ac_mode in
35849   :L) ac_source=$1;;
35850   :[FH])
35851     ac_file_inputs=
35852     for ac_f
35853     do
35854       case $ac_f in
35855       -) ac_f="$tmp/stdin";;
35856       *) # Look for the file first in the build tree, then in the source tree
35857          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35858          # because $ac_f cannot contain `:'.
35859          test -f "$ac_f" ||
35860            case $ac_f in
35861            [\\/$]*) false;;
35862            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35863            esac ||
35864            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35865 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35866    { (exit 1); exit 1; }; };;
35867       esac
35868       ac_file_inputs="$ac_file_inputs $ac_f"
35869     done
35870
35871     # Let's still pretend it is `configure' which instantiates (i.e., don't
35872     # use $as_me), people would be surprised to read:
35873     #    /* config.h.  Generated by config.status.  */
35874     configure_input="Generated from "`IFS=:
35875           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35876     if test x"$ac_file" != x-; then
35877       configure_input="$ac_file.  $configure_input"
35878       { echo "$as_me:$LINENO: creating $ac_file" >&5
35879 echo "$as_me: creating $ac_file" >&6;}
35880     fi
35881
35882     case $ac_tag in
35883     *:-:* | *:-) cat >"$tmp/stdin";;
35884     esac
35885     ;;
35886   esac
35887
35888   ac_dir=`$as_dirname -- "$ac_file" ||
35889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35890          X"$ac_file" : 'X\(//\)[^/]' \| \
35891          X"$ac_file" : 'X\(//\)$' \| \
35892          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35893 echo X"$ac_file" |
35894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35895             s//\1/
35896             q
35897           }
35898           /^X\(\/\/\)[^/].*/{
35899             s//\1/
35900             q
35901           }
35902           /^X\(\/\/\)$/{
35903             s//\1/
35904             q
35905           }
35906           /^X\(\/\).*/{
35907             s//\1/
35908             q
35909           }
35910           s/.*/./; q'`
35911   { as_dir="$ac_dir"
35912   case $as_dir in #(
35913   -*) as_dir=./$as_dir;;
35914   esac
35915   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35916     as_dirs=
35917     while :; do
35918       case $as_dir in #(
35919       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35920       *) as_qdir=$as_dir;;
35921       esac
35922       as_dirs="'$as_qdir' $as_dirs"
35923       as_dir=`$as_dirname -- "$as_dir" ||
35924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35925          X"$as_dir" : 'X\(//\)[^/]' \| \
35926          X"$as_dir" : 'X\(//\)$' \| \
35927          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35928 echo X"$as_dir" |
35929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35930             s//\1/
35931             q
35932           }
35933           /^X\(\/\/\)[^/].*/{
35934             s//\1/
35935             q
35936           }
35937           /^X\(\/\/\)$/{
35938             s//\1/
35939             q
35940           }
35941           /^X\(\/\).*/{
35942             s//\1/
35943             q
35944           }
35945           s/.*/./; q'`
35946       test -d "$as_dir" && break
35947     done
35948     test -z "$as_dirs" || eval "mkdir $as_dirs"
35949   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35951    { (exit 1); exit 1; }; }; }
35952   ac_builddir=.
35953
35954 case "$ac_dir" in
35955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35956 *)
35957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35958   # A ".." for each directory in $ac_dir_suffix.
35959   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35960   case $ac_top_builddir_sub in
35961   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35962   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35963   esac ;;
35964 esac
35965 ac_abs_top_builddir=$ac_pwd
35966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35967 # for backward compatibility:
35968 ac_top_builddir=$ac_top_build_prefix
35969
35970 case $srcdir in
35971   .)  # We are building in place.
35972     ac_srcdir=.
35973     ac_top_srcdir=$ac_top_builddir_sub
35974     ac_abs_top_srcdir=$ac_pwd ;;
35975   [\\/]* | ?:[\\/]* )  # Absolute name.
35976     ac_srcdir=$srcdir$ac_dir_suffix;
35977     ac_top_srcdir=$srcdir
35978     ac_abs_top_srcdir=$srcdir ;;
35979   *) # Relative name.
35980     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35981     ac_top_srcdir=$ac_top_build_prefix$srcdir
35982     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35983 esac
35984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35985
35986
35987   case $ac_mode in
35988   :F)
35989   #
35990   # CONFIG_FILE
35991   #
35992
35993   case $INSTALL in
35994   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35995   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35996   esac
35997 _ACEOF
35998
35999 cat >>$CONFIG_STATUS <<\_ACEOF
36000 # If the template does not know about datarootdir, expand it.
36001 # FIXME: This hack should be removed a few years after 2.60.
36002 ac_datarootdir_hack=; ac_datarootdir_seen=
36003
36004 case `sed -n '/datarootdir/ {
36005   p
36006   q
36007 }
36008 /@datadir@/p
36009 /@docdir@/p
36010 /@infodir@/p
36011 /@localedir@/p
36012 /@mandir@/p
36013 ' $ac_file_inputs` in
36014 *datarootdir*) ac_datarootdir_seen=yes;;
36015 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36016   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36017 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36018 _ACEOF
36019 cat >>$CONFIG_STATUS <<_ACEOF
36020   ac_datarootdir_hack='
36021   s&@datadir@&$datadir&g
36022   s&@docdir@&$docdir&g
36023   s&@infodir@&$infodir&g
36024   s&@localedir@&$localedir&g
36025   s&@mandir@&$mandir&g
36026     s&\\\${datarootdir}&$datarootdir&g' ;;
36027 esac
36028 _ACEOF
36029
36030 # Neutralize VPATH when `$srcdir' = `.'.
36031 # Shell code in configure.ac might set extrasub.
36032 # FIXME: do we really want to maintain this feature?
36033 cat >>$CONFIG_STATUS <<_ACEOF
36034   sed "$ac_vpsub
36035 $extrasub
36036 _ACEOF
36037 cat >>$CONFIG_STATUS <<\_ACEOF
36038 :t
36039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36040 s&@configure_input@&$configure_input&;t t
36041 s&@top_builddir@&$ac_top_builddir_sub&;t t
36042 s&@srcdir@&$ac_srcdir&;t t
36043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36044 s&@top_srcdir@&$ac_top_srcdir&;t t
36045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36046 s&@builddir@&$ac_builddir&;t t
36047 s&@abs_builddir@&$ac_abs_builddir&;t t
36048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36049 s&@INSTALL@&$ac_INSTALL&;t t
36050 $ac_datarootdir_hack
36051 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36052
36053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36054   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36055   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36056   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36057 which seems to be undefined.  Please make sure it is defined." >&5
36058 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36059 which seems to be undefined.  Please make sure it is defined." >&2;}
36060
36061   rm -f "$tmp/stdin"
36062   case $ac_file in
36063   -) cat "$tmp/out"; rm -f "$tmp/out";;
36064   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36065   esac
36066  ;;
36067   :H)
36068   #
36069   # CONFIG_HEADER
36070   #
36071 _ACEOF
36072
36073 # Transform confdefs.h into a sed script `conftest.defines', that
36074 # substitutes the proper values into config.h.in to produce config.h.
36075 rm -f conftest.defines conftest.tail
36076 # First, append a space to every undef/define line, to ease matching.
36077 echo 's/$/ /' >conftest.defines
36078 # Then, protect against being on the right side of a sed subst, or in
36079 # an unquoted here document, in config.status.  If some macros were
36080 # called several times there might be several #defines for the same
36081 # symbol, which is useless.  But do not sort them, since the last
36082 # AC_DEFINE must be honored.
36083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36084 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36085 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36086 # PARAMS is the parameter list in the macro definition--in most cases, it's
36087 # just an empty string.
36088 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36089 ac_dB='\\)[      (].*,\\1define\\2'
36090 ac_dC=' '
36091 ac_dD=' ,'
36092
36093 uniq confdefs.h |
36094   sed -n '
36095         t rset
36096         :rset
36097         s/^[     ]*#[    ]*define[       ][      ]*//
36098         t ok
36099         d
36100         :ok
36101         s/[\\&,]/\\&/g
36102         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36103         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36104   ' >>conftest.defines
36105
36106 # Remove the space that was appended to ease matching.
36107 # Then replace #undef with comments.  This is necessary, for
36108 # example, in the case of _POSIX_SOURCE, which is predefined and required
36109 # on some systems where configure will not decide to define it.
36110 # (The regexp can be short, since the line contains either #define or #undef.)
36111 echo 's/ $//
36112 s,^[     #]*u.*,/* & */,' >>conftest.defines
36113
36114 # Break up conftest.defines:
36115 ac_max_sed_lines=50
36116
36117 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36118 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36119 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36120 # et cetera.
36121 ac_in='$ac_file_inputs'
36122 ac_out='"$tmp/out1"'
36123 ac_nxt='"$tmp/out2"'
36124
36125 while :
36126 do
36127   # Write a here document:
36128     cat >>$CONFIG_STATUS <<_ACEOF
36129     # First, check the format of the line:
36130     cat >"\$tmp/defines.sed" <<\\CEOF
36131 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36132 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36133 b
36134 :def
36135 _ACEOF
36136   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36137   echo 'CEOF
36138     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36139   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36140   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36141   grep . conftest.tail >/dev/null || break
36142   rm -f conftest.defines
36143   mv conftest.tail conftest.defines
36144 done
36145 rm -f conftest.defines conftest.tail
36146
36147 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36148 cat >>$CONFIG_STATUS <<\_ACEOF
36149   if test x"$ac_file" != x-; then
36150     echo "/* $configure_input  */" >"$tmp/config.h"
36151     cat "$ac_result" >>"$tmp/config.h"
36152     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36153       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36154 echo "$as_me: $ac_file is unchanged" >&6;}
36155     else
36156       rm -f $ac_file
36157       mv "$tmp/config.h" $ac_file
36158     fi
36159   else
36160     echo "/* $configure_input  */"
36161     cat "$ac_result"
36162   fi
36163   rm -f "$tmp/out12"
36164  ;;
36165
36166   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36167 echo "$as_me: executing $ac_file commands" >&6;}
36168  ;;
36169   esac
36170
36171
36172   case $ac_file$ac_mode in
36173     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36174    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36175     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36176    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36177     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36178    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36179     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36180    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36181     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36182    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36183     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36184    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36185     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36186    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36187     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36188    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36189     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36190    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36191     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36192    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36193     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36194    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36195     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36196    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36197     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36198    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36199
36200   esac
36201 done # for ac_tag
36202
36203
36204 { (exit 0); exit 0; }
36205 _ACEOF
36206 chmod +x $CONFIG_STATUS
36207 ac_clean_files=$ac_clean_files_save
36208
36209
36210 # configure is writing to config.log, and then calls config.status.
36211 # config.status does its own redirection, appending to config.log.
36212 # Unfortunately, on DOS this fails, as config.log is still kept open
36213 # by configure, so config.status won't be able to write to it; its
36214 # output is simply discarded.  So we exec the FD to /dev/null,
36215 # effectively closing config.log, so it can be properly (re)opened and
36216 # appended to by config.status.  When coming back to configure, we
36217 # need to make the FD available again.
36218 if test "$no_create" != yes; then
36219   ac_cs_success=:
36220   ac_config_status_args=
36221   test "$silent" = yes &&
36222     ac_config_status_args="$ac_config_status_args --quiet"
36223   exec 5>/dev/null
36224   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36225   exec 5>>config.log
36226   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36227   # would make configure fail if this is the last instruction.
36228   $ac_cs_success || { (exit 1); exit 1; }
36229 fi
36230
36231 #
36232 # CONFIG_SUBDIRS section.
36233 #
36234 if test "$no_recursion" != yes; then
36235
36236   # Remove --cache-file and --srcdir arguments so they do not pile up.
36237   ac_sub_configure_args=
36238   ac_prev=
36239   eval "set x $ac_configure_args"
36240   shift
36241   for ac_arg
36242   do
36243     if test -n "$ac_prev"; then
36244       ac_prev=
36245       continue
36246     fi
36247     case $ac_arg in
36248     -cache-file | --cache-file | --cache-fil | --cache-fi \
36249     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36250       ac_prev=cache_file ;;
36251     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36252     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36253     | --c=*)
36254       ;;
36255     --config-cache | -C)
36256       ;;
36257     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36258       ac_prev=srcdir ;;
36259     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36260       ;;
36261     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36262       ac_prev=prefix ;;
36263     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36264       ;;
36265     *)
36266       case $ac_arg in
36267       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36268       esac
36269       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36270     esac
36271   done
36272
36273   # Always prepend --prefix to ensure using the same prefix
36274   # in subdir configurations.
36275   ac_arg="--prefix=$prefix"
36276   case $ac_arg in
36277   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36278   esac
36279   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36280
36281   ac_popdir=`pwd`
36282   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36283
36284     # Do not complain, so a configure script can configure whichever
36285     # parts of a large source tree are present.
36286     test -d "$srcdir/$ac_dir" || continue
36287
36288     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36289     echo "$as_me:$LINENO: $ac_msg" >&5
36290     echo "$ac_msg" >&6
36291     { as_dir="$ac_dir"
36292   case $as_dir in #(
36293   -*) as_dir=./$as_dir;;
36294   esac
36295   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36296     as_dirs=
36297     while :; do
36298       case $as_dir in #(
36299       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36300       *) as_qdir=$as_dir;;
36301       esac
36302       as_dirs="'$as_qdir' $as_dirs"
36303       as_dir=`$as_dirname -- "$as_dir" ||
36304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36305          X"$as_dir" : 'X\(//\)[^/]' \| \
36306          X"$as_dir" : 'X\(//\)$' \| \
36307          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36308 echo X"$as_dir" |
36309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36310             s//\1/
36311             q
36312           }
36313           /^X\(\/\/\)[^/].*/{
36314             s//\1/
36315             q
36316           }
36317           /^X\(\/\/\)$/{
36318             s//\1/
36319             q
36320           }
36321           /^X\(\/\).*/{
36322             s//\1/
36323             q
36324           }
36325           s/.*/./; q'`
36326       test -d "$as_dir" && break
36327     done
36328     test -z "$as_dirs" || eval "mkdir $as_dirs"
36329   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36330 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36331    { (exit 1); exit 1; }; }; }
36332     ac_builddir=.
36333
36334 case "$ac_dir" in
36335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36336 *)
36337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36338   # A ".." for each directory in $ac_dir_suffix.
36339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36340   case $ac_top_builddir_sub in
36341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36343   esac ;;
36344 esac
36345 ac_abs_top_builddir=$ac_pwd
36346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36347 # for backward compatibility:
36348 ac_top_builddir=$ac_top_build_prefix
36349
36350 case $srcdir in
36351   .)  # We are building in place.
36352     ac_srcdir=.
36353     ac_top_srcdir=$ac_top_builddir_sub
36354     ac_abs_top_srcdir=$ac_pwd ;;
36355   [\\/]* | ?:[\\/]* )  # Absolute name.
36356     ac_srcdir=$srcdir$ac_dir_suffix;
36357     ac_top_srcdir=$srcdir
36358     ac_abs_top_srcdir=$srcdir ;;
36359   *) # Relative name.
36360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36361     ac_top_srcdir=$ac_top_build_prefix$srcdir
36362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36363 esac
36364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36365
36366
36367     cd "$ac_dir"
36368
36369     # Check for guested configure; otherwise get Cygnus style configure.
36370     if test -f "$ac_srcdir/configure.gnu"; then
36371       ac_sub_configure=$ac_srcdir/configure.gnu
36372     elif test -f "$ac_srcdir/configure"; then
36373       ac_sub_configure=$ac_srcdir/configure
36374     elif test -f "$ac_srcdir/configure.in"; then
36375       # This should be Cygnus configure.
36376       ac_sub_configure=$ac_aux_dir/configure
36377     else
36378       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36380       ac_sub_configure=
36381     fi
36382
36383     # The recursion is here.
36384     if test -n "$ac_sub_configure"; then
36385       # Make the cache file name correct relative to the subdirectory.
36386       case $cache_file in
36387       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36388       *) # Relative name.
36389         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36390       esac
36391
36392       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36393 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36394       # The eval makes quoting arguments work.
36395       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36396            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36397         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36398 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36399    { (exit 1); exit 1; }; }
36400     fi
36401
36402     cd "$ac_popdir"
36403   done
36404 fi
36405