Add support for Canadian Cross builds where the host executables are not
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 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 CXX
846 CXXFLAGS
847 ac_ct_CXX
848 LEX
849 LEXLIB
850 LEX_OUTPUT_ROOT
851 FLEX
852 YACC
853 YFLAGS
854 BISON
855 NM
856 ifGNUmake
857 LN_S
858 CMP
859 CP
860 DATE
861 FIND
862 MKDIR
863 MV
864 RANLIB
865 RM
866 SED
867 TAR
868 BINPWD
869 GRAPHVIZ
870 DOT
871 GV
872 DOTTY
873 PERL
874 HAVE_PERL
875 INSTALL_PROGRAM
876 INSTALL_SCRIPT
877 INSTALL_DATA
878 BZIP2
879 DOXYGEN
880 GROFF
881 GZIP
882 POD2HTML
883 POD2MAN
884 RUNTEST
885 TCLSH
886 ZIP
887 OCAMLC
888 OCAMLOPT
889 OCAMLDEP
890 OCAMLDOC
891 INSTALL_LTDL_TRUE
892 INSTALL_LTDL_FALSE
893 CONVENIENCE_LTDL_TRUE
894 CONVENIENCE_LTDL_FALSE
895 LIBADD_DL
896 ECHO
897 AR
898 STRIP
899 CXXCPP
900 F77
901 FFLAGS
902 ac_ct_F77
903 LIBTOOL
904 LLVMGCC
905 LLVMGXX
906 USE_UDIS86
907 HAVE_PTHREAD
908 HUGE_VAL_SANITY
909 ALLOCA
910 MMAP_FILE
911 LLVMCC1
912 LLVMCC1PLUS
913 LLVMGCCDIR
914 LLVMGCCLIBEXEC
915 LLVMGCC_VERSION
916 LLVMGCC_MAJVERS
917 LLVMGCC_LANGS
918 SHLIBEXT
919 LLVM_PREFIX
920 LLVM_BINDIR
921 LLVM_LIBDIR
922 LLVM_DATADIR
923 LLVM_DOCSDIR
924 LLVM_ETCDIR
925 LLVM_INCLUDEDIR
926 LLVM_INFODIR
927 LLVM_MANDIR
928 LLVM_CONFIGTIME
929 BINDINGS_TO_BUILD
930 ALL_BINDINGS
931 OCAML_LIBDIR
932 ENABLE_VISIBILITY_INLINES_HIDDEN
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936       ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 CPPFLAGS
943 CPP
944 CXX
945 CXXFLAGS
946 CCC
947 YACC
948 YFLAGS
949 CXXCPP
950 F77
951 FFLAGS'
952 ac_subdirs_all='projects/sample
953 projects/privbracket
954 projects/llvm-stacker
955 projects/llvm-test
956 projects/test-suite
957 projects/llvm-reopt
958 projects/llvm-gcc
959 projects/llvm-java
960 projects/llvm-tv
961 projects/llvm-poolalloc
962 projects/poolalloc
963 projects/llvm-kernel'
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072     eval enable_$ac_feature=no ;;
1073
1074   -docdir | --docdir | --docdi | --doc | --do)
1075     ac_prev=docdir ;;
1076   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077     docdir=$ac_optarg ;;
1078
1079   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080     ac_prev=dvidir ;;
1081   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082     dvidir=$ac_optarg ;;
1083
1084   -enable-* | --enable-*)
1085     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091     eval enable_$ac_feature=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237     ac_prev=sbindir ;;
1238   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239   | --sbi=* | --sb=*)
1240     sbindir=$ac_optarg ;;
1241
1242   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244   | --sharedst | --shareds | --shared | --share | --shar \
1245   | --sha | --sh)
1246     ac_prev=sharedstatedir ;;
1247   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250   | --sha=* | --sh=*)
1251     sharedstatedir=$ac_optarg ;;
1252
1253   -site | --site | --sit)
1254     ac_prev=site ;;
1255   -site=* | --site=* | --sit=*)
1256     site=$ac_optarg ;;
1257
1258   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259     ac_prev=srcdir ;;
1260   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261     srcdir=$ac_optarg ;;
1262
1263   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264   | --syscon | --sysco | --sysc | --sys | --sy)
1265     ac_prev=sysconfdir ;;
1266   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268     sysconfdir=$ac_optarg ;;
1269
1270   -target | --target | --targe | --targ | --tar | --ta | --t)
1271     ac_prev=target_alias ;;
1272   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273     target_alias=$ac_optarg ;;
1274
1275   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276     verbose=yes ;;
1277
1278   -version | --version | --versio | --versi | --vers | -V)
1279     ac_init_version=: ;;
1280
1281   -with-* | --with-*)
1282     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package| sed 's/-/_/g'`
1288     eval with_$ac_package=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/-/_/g'`
1297     eval with_$ac_package=no ;;
1298
1299   --x)
1300     # Obsolete; use --with-x.
1301     with_x=yes ;;
1302
1303   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304   | --x-incl | --x-inc | --x-in | --x-i)
1305     ac_prev=x_includes ;;
1306   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308     x_includes=$ac_optarg ;;
1309
1310   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312     ac_prev=x_libraries ;;
1313   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315     x_libraries=$ac_optarg ;;
1316
1317   -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319    { (exit 1); exit 1; }; }
1320     ;;
1321
1322   *=*)
1323     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327    { (exit 1); exit 1; }; }
1328     eval $ac_envvar=\$ac_optarg
1329     export $ac_envvar ;;
1330
1331   *)
1332     # FIXME: should be removed in autoconf 3.0.
1333     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337     ;;
1338
1339   esac
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   { echo "$as_me: error: missing argument to $ac_option" >&2
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 # Be sure to have absolute directory names.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360    { (exit 1); exit 1; }; }
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375     If a cross compiler is detected then cross compile mode will be used." >&2
1376   elif test "x$build_alias" != "x$host_alias"; then
1377     cross_compiling=yes
1378   fi
1379 fi
1380
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384 test "$silent" = yes && exec 6>/dev/null
1385
1386
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390   { echo "$as_me: error: Working directory cannot be determined" >&2
1391    { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   { echo "$as_me: error: pwd does not report name of working directory" >&2
1394    { (exit 1); exit 1; }; }
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$0" : 'X\(//\)[^/]' \| \
1404          X"$0" : 'X\(//\)$' \| \
1405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406 echo X"$0" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434    { (exit 1); exit 1; }; }
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439    { (exit 1); exit 1; }; }
1440         pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443   srcdir=.
1444 fi
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_env_${ac_var}_value=\$${ac_var}
1454   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462   # Omit some internal or obsolete options to make the list less imposing.
1463   # This message is too long to be a string in the A/UX 3.1 sh.
1464   cat <<_ACEOF
1465 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475   -h, --help              display this help and exit
1476       --help=short        display options specific to this package
1477       --help=recursive    display the short help of all the included packages
1478   -V, --version           display version information and exit
1479   -q, --quiet, --silent   do not print \`checking...' messages
1480       --cache-file=FILE   cache test results in FILE [disabled]
1481   -C, --config-cache      alias for \`--cache-file=config.cache'
1482   -n, --no-create         do not create output files
1483       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486   --prefix=PREFIX         install architecture-independent files in PREFIX
1487                           [$ac_default_prefix]
1488   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                           [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499   --bindir=DIR           user executables [EPREFIX/bin]
1500   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1501   --libexecdir=DIR       program executables [EPREFIX/libexec]
1502   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1503   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1504   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1505   --libdir=DIR           object code libraries [EPREFIX/lib]
1506   --includedir=DIR       C header files [PREFIX/include]
1507   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1508   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1509   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1510   --infodir=DIR          info documentation [DATAROOTDIR/info]
1511   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1512   --mandir=DIR           man documentation [DATAROOTDIR/man]
1513   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1514   --htmldir=DIR          html documentation [DOCDIR]
1515   --dvidir=DIR           dvi documentation [DOCDIR]
1516   --pdfdir=DIR           pdf documentation [DOCDIR]
1517   --psdir=DIR            ps documentation [DOCDIR]
1518 _ACEOF
1519
1520   cat <<\_ACEOF
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525   --target=TARGET   configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530   case $ac_init_help in
1531      short | recursive ) echo "Configuration of llvm 2.4svn:";;
1532    esac
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-optimized
1539   --enable-assertions
1540   --enable-expensive-checks
1541
1542   --enable-debug-runtime
1543   --enable-jit            Enable Just In Time Compiling (default is YES)
1544   --enable-doxygen        Build doxygen documentation (default is NO)
1545   --enable-threads        Use threads if available (default is YES)
1546   --enable-pic            Build LLVM with Position Independent Code (default
1547                           is NO)
1548   --enable-targets        Build specific host targets:
1549                           all,host-only,{target-name} (default=all)
1550   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1551                           %a (default is YES)
1552   --enable-bindings       Build specific language bindings:
1553                           all,auto,none,{binding-name} (default=auto)
1554   --enable-ltdl-install   install libltdl
1555   --enable-shared[=PKGS]  build shared libraries
1556                           [default=yes]
1557   --enable-static[=PKGS]  build static libraries
1558                           [default=yes]
1559   --enable-fast-install[=PKGS]
1560                           optimize for fast installation
1561                           [default=yes]
1562   --disable-libtool-lock  avoid locking (might break parallel builds)
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1568                           searches PATH)
1569   --with-llvmgcc          Specify location of llvm-gcc driver (default
1570                           searches PATH)
1571   --with-llvmgxx          Specify location of llvm-g++ driver (default
1572                           searches PATH)
1573   --with-extra-options    Specify addtional options to compile LLVM with
1574   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1575                           is stdlib)
1576   --with-tclinclude       directory where tcl headers are
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578   --with-pic              try to use only PIC/non-PIC objects [default=use
1579                           both]
1580   --with-tags[=TAGS]      include additional configurations [automatic]
1581   --with-udis86=<path>    Use udis86 external x86 disassembler library
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589               you have headers in a nonstandard directory <include dir>
1590   CPP         C preprocessor
1591   CXX         C++ compiler command
1592   CXXFLAGS    C++ compiler flags
1593   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1594               the first program found out of: `bison -y', `byacc', `yacc'.
1595   YFLAGS      The list of arguments that will be passed by default to $YACC.
1596               This script will default YFLAGS to the empty string to avoid a
1597               default value of `-d' given by some make applications.
1598   CXXCPP      C++ preprocessor
1599   F77         Fortran 77 compiler command
1600   FFLAGS      Fortran 77 compiler flags
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" || continue
1614     ac_builddir=.
1615
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1631
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 llvm configure 2.4svn
1667 generated by GNU Autoconf 2.60
1668
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673
1674 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1675 _ACEOF
1676   exit
1677 fi
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1681
1682 It was created by llvm $as_me 2.4svn, which was
1683 generated by GNU Autoconf 2.60.  Invocation command line was
1684
1685   $ $0 $@
1686
1687 _ACEOF
1688 exec 5>>config.log
1689 {
1690 cat <<_ASUNAME
1691 ## --------- ##
1692 ## Platform. ##
1693 ## --------- ##
1694
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1703
1704 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1705 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1708 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1709 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1710 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1711
1712 _ASUNAME
1713
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   echo "PATH: $as_dir"
1720 done
1721 IFS=$as_save_IFS
1722
1723 } >&5
1724
1725 cat >&5 <<_ACEOF
1726
1727
1728 ## ----------- ##
1729 ## Core tests. ##
1730 ## ----------- ##
1731
1732 _ACEOF
1733
1734
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_configure_args=
1741 ac_configure_args0=
1742 ac_configure_args1=
1743 ac_must_keep_next=false
1744 for ac_pass in 1 2
1745 do
1746   for ac_arg
1747   do
1748     case $ac_arg in
1749     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751     | -silent | --silent | --silen | --sile | --sil)
1752       continue ;;
1753     *\'*)
1754       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755     esac
1756     case $ac_pass in
1757     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758     2)
1759       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760       if test $ac_must_keep_next = true; then
1761         ac_must_keep_next=false # Got value, back to normal.
1762       else
1763         case $ac_arg in
1764           *=* | --config-cache | -C | -disable-* | --disable-* \
1765           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767           | -with-* | --with-* | -without-* | --without-* | --x)
1768             case "$ac_configure_args0 " in
1769               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770             esac
1771             ;;
1772           -* ) ac_must_keep_next=true ;;
1773         esac
1774       fi
1775       ac_configure_args="$ac_configure_args '$ac_arg'"
1776       ;;
1777     esac
1778   done
1779 done
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log.  We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789   # Save into config.log some information that might help in debugging.
1790   {
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1797 _ASBOX
1798     echo
1799     # The following way of writing the cache mishandles newlines in values,
1800 (
1801   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802     eval ac_val=\$$ac_var
1803     case $ac_val in #(
1804     *${as_nl}*)
1805       case $ac_var in #(
1806       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808       esac
1809       case $ac_var in #(
1810       _ | IFS | as_nl) ;; #(
1811       *) $as_unset $ac_var ;;
1812       esac ;;
1813     esac
1814   done
1815   (set) 2>&1 |
1816     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817     *${as_nl}ac_space=\ *)
1818       sed -n \
1819         "s/'\''/'\''\\\\'\'''\''/g;
1820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821       ;; #(
1822     *)
1823       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1824       ;;
1825     esac |
1826     sort
1827 )
1828     echo
1829
1830     cat <<\_ASBOX
1831 ## ----------------- ##
1832 ## Output variables. ##
1833 ## ----------------- ##
1834 _ASBOX
1835     echo
1836     for ac_var in $ac_subst_vars
1837     do
1838       eval ac_val=\$$ac_var
1839       case $ac_val in
1840       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841       esac
1842       echo "$ac_var='\''$ac_val'\''"
1843     done | sort
1844     echo
1845
1846     if test -n "$ac_subst_files"; then
1847       cat <<\_ASBOX
1848 ## ------------------- ##
1849 ## File substitutions. ##
1850 ## ------------------- ##
1851 _ASBOX
1852       echo
1853       for ac_var in $ac_subst_files
1854       do
1855         eval ac_val=\$$ac_var
1856         case $ac_val in
1857         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858         esac
1859         echo "$ac_var='\''$ac_val'\''"
1860       done | sort
1861       echo
1862     fi
1863
1864     if test -s confdefs.h; then
1865       cat <<\_ASBOX
1866 ## ----------- ##
1867 ## confdefs.h. ##
1868 ## ----------- ##
1869 _ASBOX
1870       echo
1871       cat confdefs.h
1872       echo
1873     fi
1874     test "$ac_signal" != 0 &&
1875       echo "$as_me: caught signal $ac_signal"
1876     echo "$as_me: exit $exit_status"
1877   } >&5
1878   rm -f core *.core core.conftest.* &&
1879     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880     exit $exit_status
1881 ' 0
1882 for ac_signal in 1 2 13 15; do
1883   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 done
1885 ac_signal=0
1886
1887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1888 rm -f -r conftest* confdefs.h
1889
1890 # Predefined preprocessor variables.
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 _ACEOF
1915
1916
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer explicitly selected file to automatically selected ones.
1919 if test -n "$CONFIG_SITE"; then
1920   set x "$CONFIG_SITE"
1921 elif test "x$prefix" != xNONE; then
1922   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1923 else
1924   set x "$ac_default_prefix/share/config.site" \
1925         "$ac_default_prefix/etc/config.site"
1926 fi
1927 shift
1928 for ac_site_file
1929 do
1930   if test -r "$ac_site_file"; then
1931     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 echo "$as_me: loading site script $ac_site_file" >&6;}
1933     sed 's/^/| /' "$ac_site_file" >&5
1934     . "$ac_site_file"
1935   fi
1936 done
1937
1938 if test -r "$cache_file"; then
1939   # Some versions of bash will fail to source /dev/null (special
1940   # files actually), so we avoid doing that.
1941   if test -f "$cache_file"; then
1942     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 echo "$as_me: loading cache $cache_file" >&6;}
1944     case $cache_file in
1945       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946       *)                      . "./$cache_file";;
1947     esac
1948   fi
1949 else
1950   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 echo "$as_me: creating cache $cache_file" >&6;}
1952   >$cache_file
1953 fi
1954
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960   eval ac_new_set=\$ac_env_${ac_var}_set
1961   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962   eval ac_new_val=\$ac_env_${ac_var}_value
1963   case $ac_old_set,$ac_new_set in
1964     set,)
1965       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,set)
1969       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,);;
1973     *)
1974       if test "x$ac_old_val" != "x$ac_new_val"; then
1975         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1978 echo "$as_me:   former value:  $ac_old_val" >&2;}
1979         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1980 echo "$as_me:   current value: $ac_new_val" >&2;}
1981         ac_cache_corrupted=:
1982       fi;;
1983   esac
1984   # Pass precious variables to config.status.
1985   if test "$ac_new_set" = set; then
1986     case $ac_new_val in
1987     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988     *) ac_arg=$ac_var=$ac_new_val ;;
1989     esac
1990     case " $ac_configure_args " in
1991       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1992       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993     esac
1994   fi
1995 done
1996 if $ac_cache_corrupted; then
1997   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034
2035
2036 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2037
2038
2039
2040
2041
2042
2043
2044 ac_aux_dir=
2045 for ac_dir in autoconf "$srcdir"/autoconf; do
2046   if test -f "$ac_dir/install-sh"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/install-sh -c"
2049     break
2050   elif test -f "$ac_dir/install.sh"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/install.sh -c"
2053     break
2054   elif test -f "$ac_dir/shtool"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/shtool install -c"
2057     break
2058   fi
2059 done
2060 if test -z "$ac_aux_dir"; then
2061   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2063    { (exit 1); exit 1; }; }
2064 fi
2065
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2073
2074
2075
2076 if test ${srcdir} != "." ; then
2077   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2079 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080    { (exit 1); exit 1; }; }
2081   fi
2082 fi
2083
2084 for i in `ls ${srcdir}/projects`
2085 do
2086   if test -d ${srcdir}/projects/${i} ; then
2087     case ${i} in
2088       CVS) ;;
2089       sample)       subdirs="$subdirs projects/sample"
2090     ;;
2091       privbracket)  subdirs="$subdirs projects/privbracket"
2092  ;;
2093       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2094  ;;
2095       # llvm-test is the old name of the test-suite, kept here for backwards
2096       # compatibility
2097       llvm-test)    subdirs="$subdirs projects/llvm-test"
2098  ;;
2099       test-suite)   subdirs="$subdirs projects/test-suite"
2100  ;;
2101       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2102 ;;
2103       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2104   ;;
2105       llvm-java)    subdirs="$subdirs projects/llvm-java"
2106  ;;
2107       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2108    ;;
2109       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2110  ;;
2111       poolalloc)    subdirs="$subdirs projects/poolalloc"
2112  ;;
2113       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2114  ;;
2115       *)
2116         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2118         ;;
2119     esac
2120   fi
2121 done
2122
2123
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128    { (exit 1); exit 1; }; }
2129
2130 { echo "$as_me:$LINENO: checking build system type" >&5
2131 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141    { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 fi
2148 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 echo "${ECHO_T}$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2151 *-*-*) ;;
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 echo "$as_me: error: invalid value of canonical build" >&2;}
2154    { (exit 1); exit 1; }; };;
2155 esac
2156 build=$ac_cv_build
2157 ac_save_IFS=$IFS; IFS='-'
2158 set x $ac_cv_build
2159 shift
2160 build_cpu=$1
2161 build_vendor=$2
2162 shift; shift
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2165 build_os=$*
2166 IFS=$ac_save_IFS
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168
2169
2170 { echo "$as_me:$LINENO: checking host system type" >&5
2171 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test "x$host_alias" = x; then
2176   ac_cv_host=$ac_cv_build
2177 else
2178   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181    { (exit 1); exit 1; }; }
2182 fi
2183
2184 fi
2185 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 case $ac_cv_host in
2188 *-*-*) ;;
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 echo "$as_me: error: invalid value of canonical host" >&2;}
2191    { (exit 1); exit 1; }; };;
2192 esac
2193 host=$ac_cv_host
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_host
2196 shift
2197 host_cpu=$1
2198 host_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 host_os=$*
2203 IFS=$ac_save_IFS
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 { echo "$as_me:$LINENO: checking target system type" >&5
2208 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2209 if test "${ac_cv_target+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test "x$target_alias" = x; then
2213   ac_cv_target=$ac_cv_host
2214 else
2215   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 fi
2222 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223 echo "${ECHO_T}$ac_cv_target" >&6; }
2224 case $ac_cv_target in
2225 *-*-*) ;;
2226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227 echo "$as_me: error: invalid value of canonical target" >&2;}
2228    { (exit 1); exit 1; }; };;
2229 esac
2230 target=$ac_cv_target
2231 ac_save_IFS=$IFS; IFS='-'
2232 set x $ac_cv_target
2233 shift
2234 target_cpu=$1
2235 target_vendor=$2
2236 shift; shift
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2239 target_os=$*
2240 IFS=$ac_save_IFS
2241 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2242
2243
2244 # The aliases save the names the user supplied, while $host etc.
2245 # will get canonicalized.
2246 test -n "$target_alias" &&
2247   test "$program_prefix$program_suffix$program_transform_name" = \
2248     NONENONEs,x,x, &&
2249   program_prefix=${target_alias}-
2250
2251 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2253 if test "${llvm_cv_os_type+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   case $host in
2257   *-*-aix*)
2258     llvm_cv_link_all_option="-Wl,--whole-archive"
2259     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260     llvm_cv_os_type="AIX"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-irix*)
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="IRIX"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-cygwin*)
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="Cygwin"
2271     llvm_cv_platform_type="Unix" ;;
2272   *-*-darwin*)
2273     llvm_cv_link_all_option="-Wl,-all_load"
2274     llvm_cv_no_link_all_option="-Wl,-noall_load"
2275     llvm_cv_os_type="Darwin"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-freebsd*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="FreeBSD"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-openbsd*)
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="OpenBSD"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-netbsd*)
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="NetBSD"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-dragonfly*)
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="DragonFly"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-hpux*)
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="HP-UX"
2301     llvm_cv_platform_type="Unix" ;;
2302   *-*-interix*)
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="Interix"
2306     llvm_cv_platform_type="Unix" ;;
2307   *-*-linux*)
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="Linux"
2311     llvm_cv_platform_type="Unix" ;;
2312   *-*-solaris*)
2313     llvm_cv_link_all_option="-Wl,-z,allextract"
2314     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2315     llvm_cv_os_type="SunOS"
2316     llvm_cv_platform_type="Unix" ;;
2317   *-*-win32*)
2318     llvm_cv_link_all_option="-Wl,--whole-archive"
2319     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320     llvm_cv_os_type="Win32"
2321     llvm_cv_platform_type="Win32" ;;
2322   *-*-mingw*)
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="MingW"
2326     llvm_cv_platform_type="Win32" ;;
2327   *)
2328     llvm_cv_link_all_option=""
2329     llvm_cv_no_link_all_option=""
2330     llvm_cv_os_type="Unknown"
2331     llvm_cv_platform_type="Unknown" ;;
2332 esac
2333 fi
2334 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2336
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340    { (exit 1); exit 1; }; }
2341 fi
2342
2343 OS=$llvm_cv_os_type
2344
2345
2346 LINKALL=$llvm_cv_link_all_option
2347
2348 NOLINKALL=$llvm_cv_no_link_all_option
2349
2350
2351 case $llvm_cv_platform_type in
2352   Unix)
2353
2354 cat >>confdefs.h <<\_ACEOF
2355 #define LLVM_ON_UNIX 1
2356 _ACEOF
2357
2358     LLVM_ON_UNIX=1
2359
2360     LLVM_ON_WIN32=0
2361
2362     ;;
2363   Win32)
2364
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_WIN32 1
2367 _ACEOF
2368
2369     LLVM_ON_UNIX=0
2370
2371     LLVM_ON_WIN32=1
2372
2373     ;;
2374 esac
2375
2376 { echo "$as_me:$LINENO: checking target architecture" >&5
2377 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_arch+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   case $target in
2382   i?86-*)                 llvm_cv_target_arch="x86" ;;
2383   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2384   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2385   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2386   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2387   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2388   arm-*)                  llvm_cv_target_arch="ARM" ;;
2389   mips-*)                 llvm_cv_target_arch="Mips" ;;
2390   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2391   *)                      llvm_cv_target_arch="Unknown" ;;
2392 esac
2393 fi
2394 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2395 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2396
2397 if test "$llvm_cv_target_arch" = "Unknown" ; then
2398   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2399 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400 fi
2401
2402 ARCH=$llvm_cv_target_arch
2403
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test -n "$CC"; then
2419   ac_cv_prog_CC="$CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 CC=$ac_cv_prog_CC
2439 if test -n "$CC"; then
2440   { echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6; }
2442 else
2443   { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2445 fi
2446
2447
2448 fi
2449 if test -z "$ac_cv_prog_CC"; then
2450   ac_ct_CC=$CC
2451   # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_ac_ct_CC="gcc"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481 echo "${ECHO_T}$ac_ct_CC" >&6; }
2482 else
2483   { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487   if test "x$ac_ct_CC" = x; then
2488     CC=""
2489   else
2490     case $cross_compiling:$ac_tool_warned in
2491 yes:)
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet.  If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet.  If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500     CC=$ac_ct_CC
2501   fi
2502 else
2503   CC="$ac_cv_prog_CC"
2504 fi
2505
2506 if test -z "$CC"; then
2507           if test -n "$ac_tool_prefix"; then
2508     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}cc; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   if test -n "$CC"; then
2516   ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523   for ac_exec_ext in '' $ac_executable_extensions; do
2524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2525     ac_cv_prog_CC="${ac_tool_prefix}cc"
2526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537   { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545   fi
2546 fi
2547 if test -z "$CC"; then
2548   # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$CC"; then
2556   ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558   ac_prog_rejected=no
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567        ac_prog_rejected=yes
2568        continue
2569      fi
2570     ac_cv_prog_CC="cc"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 if test $ac_prog_rejected = yes; then
2579   # We found a bogon in the path, so make sure we never use it.
2580   set dummy $ac_cv_prog_CC
2581   shift
2582   if test $# != 0; then
2583     # We chose a different compiler from the bogus one.
2584     # However, it has the same basename, so the bogon will be chosen
2585     # first if we set CC to just the basename; use the full file name.
2586     shift
2587     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588   fi
2589 fi
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594   { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2596 else
2597   { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$CC"; then
2604   if test -n "$ac_tool_prefix"; then
2605   for ac_prog in cl.exe
2606   do
2607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614   if test -n "$CC"; then
2615   ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622   for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636   { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2638 else
2639   { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 fi
2642
2643
2644     test -n "$CC" && break
2645   done
2646 fi
2647 if test -z "$CC"; then
2648   ac_ct_CC=$CC
2649   for ac_prog in cl.exe
2650 do
2651   # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$ac_ct_CC"; then
2659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2668     ac_cv_prog_ac_ct_CC="$ac_prog"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6; }
2682 else
2683   { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2685 fi
2686
2687
2688   test -n "$ac_ct_CC" && break
2689 done
2690
2691   if test "x$ac_ct_CC" = x; then
2692     CC=""
2693   else
2694     case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697 whose name does not start with the host triplet.  If you think this
2698 configuration is useful to you, please write to autoconf@gnu.org." >&5
2699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet.  If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704     CC=$ac_ct_CC
2705   fi
2706 fi
2707
2708 fi
2709
2710
2711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&2;}
2715    { (exit 1); exit 1; }; }
2716
2717 # Provide some information about the compiler.
2718 echo "$as_me:$LINENO: checking for C compiler version" >&5
2719 ac_compiler=`set X $ac_compile; echo $2`
2720 { (ac_try="$ac_compiler --version >&5"
2721 case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_compiler --version >&5") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }
2730 { (ac_try="$ac_compiler -v >&5"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compiler -v >&5") 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }
2740 { (ac_try="$ac_compiler -V >&5"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_compiler -V >&5") 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }
2750
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 ac_clean_files_save=$ac_clean_files
2767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2768 # Try to create an executable without -o first, disregard a.out.
2769 # It will help us diagnose broken compilers, and finding out an intuition
2770 # of exeext.
2771 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774 #
2775 # List of possible output files, starting from the most likely.
2776 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777 # only as a last resort.  b.out is created by i960 compilers.
2778 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2779 #
2780 # The IRIX 6 linker writes into existing files which may not be
2781 # executable, retaining their permissions.  Remove them first so a
2782 # subsequent execution test works.
2783 ac_rmfiles=
2784 for ac_file in $ac_files
2785 do
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789   esac
2790 done
2791 rm -f $ac_rmfiles
2792
2793 if { (ac_try="$ac_link_default"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_link_default") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; then
2803   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2806 # so that the user can short-circuit this test for compilers unknown to
2807 # Autoconf.
2808 for ac_file in $ac_files
2809 do
2810   test -f "$ac_file" || continue
2811   case $ac_file in
2812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2813         ;;
2814     [ab].out )
2815         # We found the default executable, but exeext='' is most
2816         # certainly right.
2817         break;;
2818     *.* )
2819         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2820         then :; else
2821            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822         fi
2823         # We set ac_cv_exeext here because the later test for it is not
2824         # safe: cross compilers may not add the suffix if given an `-o'
2825         # argument, so we may need to know it at that point already.
2826         # Even if this section looks crufty: it has the advantage of
2827         # actually working.
2828         break;;
2829     * )
2830         break;;
2831   esac
2832 done
2833 test "$ac_cv_exeext" = no && ac_cv_exeext=
2834
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&5
2841 echo "$as_me: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&2;}
2843    { (exit 77); exit 77; }; }
2844 fi
2845
2846 ac_exeext=$ac_cv_exeext
2847 { echo "$as_me:$LINENO: result: $ac_file" >&5
2848 echo "${ECHO_T}$ac_file" >&6; }
2849
2850 # Check that the compiler produces executables we can run.  If not, either
2851 # the compiler is broken, or we cross compile.
2852 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2853 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2854 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2855 # If not cross compiling, check that we can run a simple program.
2856 if test "$cross_compiling" != yes; then
2857   if { ac_try='./$ac_file'
2858   { (case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_try") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; }; then
2867     cross_compiling=no
2868   else
2869     if test "$cross_compiling" = maybe; then
2870         cross_compiling=yes
2871     else
2872         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2873 If you meant to cross compile, use \`--host'.
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot run C compiled programs.
2876 If you meant to cross compile, use \`--host'.
2877 See \`config.log' for more details." >&2;}
2878    { (exit 1); exit 1; }; }
2879     fi
2880   fi
2881 fi
2882 { echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6; }
2884
2885 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2886 ac_clean_files=$ac_clean_files_save
2887 # Check that the compiler produces executables we can run.  If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2890 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2891 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2892 echo "${ECHO_T}$cross_compiling" >&6; }
2893
2894 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2895 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2896 if { (ac_try="$ac_link"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_link") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; then
2906   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2908 # work properly (i.e., refer to `conftest.exe'), while it won't with
2909 # `rm'.
2910 for ac_file in conftest.exe conftest conftest.*; do
2911   test -f "$ac_file" || continue
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2914     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915           break;;
2916     * ) break;;
2917   esac
2918 done
2919 else
2920   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925 fi
2926
2927 rm -f conftest$ac_cv_exeext
2928 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2930
2931 rm -f conftest.$ac_ext
2932 EXEEXT=$ac_cv_exeext
2933 ac_exeext=$EXEEXT
2934 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2936 if test "${ac_cv_objext+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.o conftest.obj
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_compile") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; then
2965   for ac_file in conftest.o conftest.obj conftest.*; do
2966   test -f "$ac_file" || continue;
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2969     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970        break;;
2971   esac
2972 done
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&2;}
2981    { (exit 1); exit 1; }; }
2982 fi
2983
2984 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985 fi
2986 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987 echo "${ECHO_T}$ac_cv_objext" >&6; }
2988 OBJEXT=$ac_cv_objext
2989 ac_objext=$OBJEXT
2990 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2992 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005 #ifndef __GNUC__
3006        choke me
3007 #endif
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   ac_compiler_gnu=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052         ac_compiler_gnu=no
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3061 GCC=`test $ac_compiler_gnu = yes && echo yes`
3062 ac_test_CFLAGS=${CFLAGS+set}
3063 ac_save_CFLAGS=$CFLAGS
3064 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3066 if test "${ac_cv_prog_cc_g+set}" = set; then
3067   echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069   ac_save_c_werror_flag=$ac_c_werror_flag
3070    ac_c_werror_flag=yes
3071    ac_cv_prog_cc_g=no
3072    CFLAGS="-g"
3073    cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079
3080 int
3081 main ()
3082 {
3083
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_compile") 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } &&
3102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3103   { (case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_try") 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; } &&
3112          { ac_try='test -s conftest.$ac_objext'
3113   { (case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; }; then
3122   ac_cv_prog_cc_g=yes
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127         CFLAGS=""
3128       cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158   { (case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_try") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; } &&
3167          { ac_try='test -s conftest.$ac_objext'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   :
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182         ac_c_werror_flag=$ac_save_c_werror_flag
3183          CFLAGS="-g"
3184          cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3214   { (case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_try") 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_try") 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_cv_prog_cc_g=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248    ac_c_werror_flag=$ac_save_c_werror_flag
3249 fi
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3252 if test "$ac_test_CFLAGS" = set; then
3253   CFLAGS=$ac_save_CFLAGS
3254 elif test $ac_cv_prog_cc_g = yes; then
3255   if test "$GCC" = yes; then
3256     CFLAGS="-g -O2"
3257   else
3258     CFLAGS="-g"
3259   fi
3260 else
3261   if test "$GCC" = yes; then
3262     CFLAGS="-O2"
3263   else
3264     CFLAGS=
3265   fi
3266 fi
3267 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_c89+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_cv_prog_cc_c89=no
3273 ac_save_CC=$CC
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <stdarg.h>
3281 #include <stdio.h>
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3288      char **p;
3289      int i;
3290 {
3291   return p[i];
3292 }
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3294 {
3295   char *s;
3296   va_list v;
3297   va_start (v,p);
3298   s = g (p, va_arg (v,int));
3299   va_end (v);
3300   return s;
3301 }
3302
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3304    function prototypes and stuff, but not '\xHH' hex character constants.
3305    These don't provoke an error unfortunately, instead are silently treated
3306    as 'x'.  The following induces an error, until -std is added to get
3307    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3308    array size at least.  It's necessary to write '\x00'==0 to get something
3309    that's true only with -std.  */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313    inside strings and character constants.  */
3314 #define FOO(x) 'x'
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3323 int
3324 main ()
3325 {
3326 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 do
3334   CC="$ac_save_CC $ac_arg"
3335   rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_compile") 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350   { (case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_try") 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; } &&
3359          { ac_try='test -s conftest.$ac_objext'
3360   { (case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_try") 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   ac_cv_prog_cc_c89=$ac_arg
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374
3375 fi
3376
3377 rm -f core conftest.err conftest.$ac_objext
3378   test "x$ac_cv_prog_cc_c89" != "xno" && break
3379 done
3380 rm -f conftest.$ac_ext
3381 CC=$ac_save_CC
3382
3383 fi
3384 # AC_CACHE_VAL
3385 case "x$ac_cv_prog_cc_c89" in
3386   x)
3387     { echo "$as_me:$LINENO: result: none needed" >&5
3388 echo "${ECHO_T}none needed" >&6; } ;;
3389   xno)
3390     { echo "$as_me:$LINENO: result: unsupported" >&5
3391 echo "${ECHO_T}unsupported" >&6; } ;;
3392   *)
3393     CC="$CC $ac_cv_prog_cc_c89"
3394     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3396 esac
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3412 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3413 # On Suns, sometimes $CPP names a directory.
3414 if test -n "$CPP" && test -d "$CPP"; then
3415   CPP=
3416 fi
3417 if test -z "$CPP"; then
3418   if test "${ac_cv_prog_CPP+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421       # Double quotes because CPP needs to be expanded
3422     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423     do
3424       ac_preproc_ok=false
3425 for ac_c_preproc_warn_flag in '' yes
3426 do
3427   # Use a header file that comes with gcc, so configuring glibc
3428   # with a fresh cross-compiler works.
3429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430   # <limits.h> exists even on freestanding compilers.
3431   # On the NeXT, cc -E runs the code through the compiler's parser,
3432   # not just through cpp. "Syntax error" is here to catch this case.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444                      Syntax error
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } >/dev/null; then
3459   if test -s conftest.err; then
3460     ac_cpp_err=$ac_c_preproc_warn_flag
3461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462   else
3463     ac_cpp_err=
3464   fi
3465 else
3466   ac_cpp_err=yes
3467 fi
3468 if test -z "$ac_cpp_err"; then
3469   :
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Broken: fails on valid input.
3475 continue
3476 fi
3477
3478 rm -f conftest.err conftest.$ac_ext
3479
3480   # OK, works on sane cases.  Now check whether nonexistent headers
3481   # can be detected and how.
3482   cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488 #include <ac_nonexistent.h>
3489 _ACEOF
3490 if { (ac_try="$ac_cpp conftest.$ac_ext"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } >/dev/null; then
3503   if test -s conftest.err; then
3504     ac_cpp_err=$ac_c_preproc_warn_flag
3505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506   else
3507     ac_cpp_err=
3508   fi
3509 else
3510   ac_cpp_err=yes
3511 fi
3512 if test -z "$ac_cpp_err"; then
3513   # Broken: success on invalid input.
3514 continue
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519   # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3522 fi
3523
3524 rm -f conftest.err conftest.$ac_ext
3525
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3530   break
3531 fi
3532
3533     done
3534     ac_cv_prog_CPP=$CPP
3535
3536 fi
3537   CPP=$ac_cv_prog_CPP
3538 else
3539   ac_cv_prog_CPP=$CPP
3540 fi
3541 { echo "$as_me:$LINENO: result: $CPP" >&5
3542 echo "${ECHO_T}$CPP" >&6; }
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546   # Use a header file that comes with gcc, so configuring glibc
3547   # with a fresh cross-compiler works.
3548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549   # <limits.h> exists even on freestanding compilers.
3550   # On the NeXT, cc -E runs the code through the compiler's parser,
3551   # not just through cpp. "Syntax error" is here to catch this case.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563                      Syntax error
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } >/dev/null; then
3578   if test -s conftest.err; then
3579     ac_cpp_err=$ac_c_preproc_warn_flag
3580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   :
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Broken: fails on valid input.
3594 continue
3595 fi
3596
3597 rm -f conftest.err conftest.$ac_ext
3598
3599   # OK, works on sane cases.  Now check whether nonexistent headers
3600   # can be detected and how.
3601   cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } >/dev/null; then
3622   if test -s conftest.err; then
3623     ac_cpp_err=$ac_c_preproc_warn_flag
3624     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625   else
3626     ac_cpp_err=
3627   fi
3628 else
3629   ac_cpp_err=yes
3630 fi
3631 if test -z "$ac_cpp_err"; then
3632   # Broken: success on invalid input.
3633 continue
3634 else
3635   echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638   # Passes both tests.
3639 ac_preproc_ok=:
3640 break
3641 fi
3642
3643 rm -f conftest.err conftest.$ac_ext
3644
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649   :
3650 else
3651   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&5
3653 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&2;}
3655    { (exit 1); exit 1; }; }
3656 fi
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
3664
3665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   # Extract the first word of "grep ggrep" to use in msg output
3671 if test -z "$GREP"; then
3672 set dummy grep ggrep; ac_prog_name=$2
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   ac_path_GREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_prog in grep ggrep; do
3684   for ac_exec_ext in '' $ac_executable_extensions; do
3685     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3686     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3687     # Check for GNU ac_path_GREP and select it if it is found.
3688   # Check for GNU $ac_path_GREP
3689 case `"$ac_path_GREP" --version 2>&1` in
3690 *GNU*)
3691   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692 *)
3693   ac_count=0
3694   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695   while :
3696   do
3697     cat "conftest.in" "conftest.in" >"conftest.tmp"
3698     mv "conftest.tmp" "conftest.in"
3699     cp "conftest.in" "conftest.nl"
3700     echo 'GREP' >> "conftest.nl"
3701     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703     ac_count=`expr $ac_count + 1`
3704     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705       # Best one so far, save it but keep looking for a better one
3706       ac_cv_path_GREP="$ac_path_GREP"
3707       ac_path_GREP_max=$ac_count
3708     fi
3709     # 10*(2^10) chars as input seems more than enough
3710     test $ac_count -gt 10 && break
3711   done
3712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715
3716     $ac_path_GREP_found && break 3
3717   done
3718 done
3719
3720 done
3721 IFS=$as_save_IFS
3722
3723
3724 fi
3725
3726 GREP="$ac_cv_path_GREP"
3727 if test -z "$GREP"; then
3728   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 else
3734   ac_cv_path_GREP=$GREP
3735 fi
3736
3737
3738 fi
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3741  GREP="$ac_cv_path_GREP"
3742
3743
3744 { echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3746 if test "${ac_cv_path_EGREP+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3750    then ac_cv_path_EGREP="$GREP -E"
3751    else
3752      # Extract the first word of "egrep" to use in msg output
3753 if test -z "$EGREP"; then
3754 set dummy egrep; ac_prog_name=$2
3755 if test "${ac_cv_path_EGREP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   ac_path_EGREP_found=false
3759 # Loop through the user's path and test for each of PROGNAME-LIST
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_prog in egrep; do
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3768     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3769     # Check for GNU ac_path_EGREP and select it if it is found.
3770   # Check for GNU $ac_path_EGREP
3771 case `"$ac_path_EGREP" --version 2>&1` in
3772 *GNU*)
3773   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774 *)
3775   ac_count=0
3776   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777   while :
3778   do
3779     cat "conftest.in" "conftest.in" >"conftest.tmp"
3780     mv "conftest.tmp" "conftest.in"
3781     cp "conftest.in" "conftest.nl"
3782     echo 'EGREP' >> "conftest.nl"
3783     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785     ac_count=`expr $ac_count + 1`
3786     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3787       # Best one so far, save it but keep looking for a better one
3788       ac_cv_path_EGREP="$ac_path_EGREP"
3789       ac_path_EGREP_max=$ac_count
3790     fi
3791     # 10*(2^10) chars as input seems more than enough
3792     test $ac_count -gt 10 && break
3793   done
3794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795 esac
3796
3797
3798     $ac_path_EGREP_found && break 3
3799   done
3800 done
3801
3802 done
3803 IFS=$as_save_IFS
3804
3805
3806 fi
3807
3808 EGREP="$ac_cv_path_EGREP"
3809 if test -z "$EGREP"; then
3810   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812    { (exit 1); exit 1; }; }
3813 fi
3814
3815 else
3816   ac_cv_path_EGREP=$EGREP
3817 fi
3818
3819
3820    fi
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3824  EGREP="$ac_cv_path_EGREP"
3825
3826
3827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3829 if test "${ac_cv_header_stdc+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <stdlib.h>
3839 #include <stdarg.h>
3840 #include <string.h>
3841 #include <float.h>
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_compile") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866   { (case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871   (eval "$ac_try") 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_try") 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   ac_cv_header_stdc=yes
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890         ac_cv_header_stdc=no
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894
3895 if test $ac_cv_header_stdc = yes; then
3896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <string.h>
3904
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907   $EGREP "memchr" >/dev/null 2>&1; then
3908   :
3909 else
3910   ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest*
3913
3914 fi
3915
3916 if test $ac_cv_header_stdc = yes; then
3917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918   cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <stdlib.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928   $EGREP "free" >/dev/null 2>&1; then
3929   :
3930 else
3931   ac_cv_header_stdc=no
3932 fi
3933 rm -f conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939   if test "$cross_compiling" = yes; then
3940   :
3941 else
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <ctype.h>
3949 #include <stdlib.h>
3950 #if ((' ' & 0x0FF) == 0x020)
3951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953 #else
3954 # define ISLOWER(c) \
3955                    (('a' <= (c) && (c) <= 'i') \
3956                      || ('j' <= (c) && (c) <= 'r') \
3957                      || ('s' <= (c) && (c) <= 'z'))
3958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959 #endif
3960
3961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 int
3963 main ()
3964 {
3965   int i;
3966   for (i = 0; i < 256; i++)
3967     if (XOR (islower (i), ISLOWER (i))
3968         || toupper (i) != TOUPPER (i))
3969       return 2;
3970   return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest$ac_exeext
3974 if { (ac_try="$ac_link"
3975 case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980   (eval "$ac_link") 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3984   { (case "(($ac_try" in
3985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986   *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989   (eval "$ac_try") 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   :
3994 else
3995   echo "$as_me: program exited with status $ac_status" >&5
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 ( exit $ac_status )
4000 ac_cv_header_stdc=no
4001 fi
4002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005
4006 fi
4007 fi
4008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4010 if test $ac_cv_header_stdc = yes; then
4011
4012 cat >>confdefs.h <<\_ACEOF
4013 #define STDC_HEADERS 1
4014 _ACEOF
4015
4016 fi
4017
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029                   inttypes.h stdint.h unistd.h
4030 do
4031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 $ac_includes_default
4044
4045 #include <$ac_header>
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_compile") 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062   { (case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_try") 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest.$ac_objext'
4072   { (case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_try") 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   eval "$as_ac_Header=yes"
4082 else
4083   echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086         eval "$as_ac_Header=no"
4087 fi
4088
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092                { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095   cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 _ACEOF
4098
4099 fi
4100
4101 done
4102
4103
4104 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4105 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4106 if test "${ac_cv_c_bigendian+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   # See if sys/param.h defines the BYTE_ORDER macro.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h.  */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h.  */
4116 #include <sys/types.h>
4117 #include <sys/param.h>
4118
4119 int
4120 main ()
4121 {
4122 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4123  bogus endian macros
4124 #endif
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_compile") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145   { (case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_try") 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   # It does; now see whether it defined to BIG_ENDIAN or not.
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <sys/types.h>
4172 #include <sys/param.h>
4173
4174 int
4175 main ()
4176 {
4177 #if BYTE_ORDER != BIG_ENDIAN
4178  not big endian
4179 #endif
4180
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (ac_try="$ac_compile"
4187 case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_compile") 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200   { (case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_try") 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest.$ac_objext'
4210   { (case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215   (eval "$ac_try") 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }; }; then
4219   ac_cv_c_bigendian=yes
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_c_bigendian=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 else
4229   echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232         # It does not; compile a test program.
4233 if test "$cross_compiling" = yes; then
4234   # try to guess the endianness by grepping values into an object file
4235   ac_cv_c_bigendian=unknown
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4243 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4245 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4246 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4248 int
4249 main ()
4250 {
4251  _ascii (); _ebcdic ();
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_compile") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4291   ac_cv_c_bigendian=yes
4292 fi
4293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4294   if test "$ac_cv_c_bigendian" = unknown; then
4295     ac_cv_c_bigendian=no
4296   else
4297     # finding both strings is unlikely to happen, but who knows?
4298     ac_cv_c_bigendian=unknown
4299   fi
4300 fi
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 else
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_includes_default
4317 int
4318 main ()
4319 {
4320
4321   /* Are we little or big endian?  From Harbison&Steele.  */
4322   union
4323   {
4324     long int l;
4325     char c[sizeof (long int)];
4326   } u;
4327   u.l = 1;
4328   return u.c[sizeof (long int) - 1] == 1;
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4336 case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_link") 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4345   { (case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_try") 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; }; then
4354   ac_cv_c_bigendian=no
4355 else
4356   echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ( exit $ac_status )
4361 ac_cv_c_bigendian=yes
4362 fi
4363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4364 fi
4365
4366
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4373 case $ac_cv_c_bigendian in
4374   yes)
4375     ENDIAN=big
4376  ;;
4377   no)
4378     ENDIAN=little
4379  ;;
4380   *)
4381     { { echo "$as_me:$LINENO: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4383 echo "$as_me: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4385    { (exit 1); exit 1; }; } ;;
4386 esac
4387
4388
4389 if test "$cross_compiling" = yes; then
4390   LLVM_CROSS_COMPILING=1
4391
4392
4393 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4394 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4395 if test "${ac_cv_build_exeext+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4399   ac_cv_build_exeext=.exe
4400 else
4401   ac_build_prefix=${build_alias}-
4402
4403   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4404 set dummy ${ac_build_prefix}gcc; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   if test -n "$BUILD_CC"; then
4411   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 BUILD_CC=$ac_cv_prog_BUILD_CC
4431 if test -n "$BUILD_CC"; then
4432   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4433 echo "${ECHO_T}$BUILD_CC" >&6; }
4434 else
4435   { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437 fi
4438
4439
4440   if test -z "$BUILD_CC"; then
4441      # Extract the first word of "gcc", so it can be a program name with args.
4442 set dummy gcc; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test -n "$BUILD_CC"; then
4449   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_prog_BUILD_CC="gcc"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 BUILD_CC=$ac_cv_prog_BUILD_CC
4469 if test -n "$BUILD_CC"; then
4470   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4471 echo "${ECHO_T}$BUILD_CC" >&6; }
4472 else
4473   { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4475 fi
4476
4477
4478      if test -z "$BUILD_CC"; then
4479        # Extract the first word of "cc", so it can be a program name with args.
4480 set dummy cc; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   if test -n "$BUILD_CC"; then
4487   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488 else
4489   ac_prog_rejected=no
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493   IFS=$as_save_IFS
4494   test -z "$as_dir" && as_dir=.
4495   for ac_exec_ext in '' $ac_executable_extensions; do
4496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4497     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4498        ac_prog_rejected=yes
4499        continue
4500      fi
4501     ac_cv_prog_BUILD_CC="cc"
4502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 if test $ac_prog_rejected = yes; then
4510   # We found a bogon in the path, so make sure we never use it.
4511   set dummy $ac_cv_prog_BUILD_CC
4512   shift
4513   if test $# != 0; then
4514     # We chose a different compiler from the bogus one.
4515     # However, it has the same basename, so the bogon will be chosen
4516     # first if we set BUILD_CC to just the basename; use the full file name.
4517     shift
4518     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4519   fi
4520 fi
4521 fi
4522 fi
4523 BUILD_CC=$ac_cv_prog_BUILD_CC
4524 if test -n "$BUILD_CC"; then
4525   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526 echo "${ECHO_T}$BUILD_CC" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533      fi
4534   fi
4535   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4537    { (exit 1); exit 1; }; }
4538   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539   rm -f conftest*
4540   echo 'int main () { return 0; }' > conftest.$ac_ext
4541   ac_cv_build_exeext=
4542   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4543   (eval $ac_build_link) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; then
4547     for file in conftest.*; do
4548       case $file in
4549       *.c | *.o | *.obj | *.dSYM) ;;
4550       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4551       esac
4552     done
4553   else
4554     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4555 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4556    { (exit 1); exit 1; }; }
4557   fi
4558   rm -f conftest*
4559   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4560 fi
4561 fi
4562
4563 BUILD_EXEEXT=""
4564 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4565 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4566 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4567 ac_build_exeext=$BUILD_EXEEXT
4568
4569   ac_build_prefix=${build_alias}-
4570   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4571 set dummy ${ac_build_prefix}g++; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$BUILD_CXX"; then
4578   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598 if test -n "$BUILD_CXX"; then
4599   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4600 echo "${ECHO_T}$BUILD_CXX" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607   if test -z "$BUILD_CXX"; then
4608      # Extract the first word of "g++", so it can be a program name with args.
4609 set dummy g++; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   if test -n "$BUILD_CXX"; then
4616   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623   for ac_exec_ext in '' $ac_executable_extensions; do
4624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4625     ac_cv_prog_BUILD_CXX="g++"
4626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4636 if test -n "$BUILD_CXX"; then
4637   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4638 echo "${ECHO_T}$BUILD_CXX" >&6; }
4639 else
4640   { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4642 fi
4643
4644
4645      if test -z "$BUILD_CXX"; then
4646        # Extract the first word of "c++", so it can be a program name with args.
4647 set dummy c++; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CXX"; then
4654   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4655 else
4656   ac_prog_rejected=no
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662   for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4665        ac_prog_rejected=yes
4666        continue
4667      fi
4668     ac_cv_prog_BUILD_CXX="c++"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 if test $ac_prog_rejected = yes; then
4677   # We found a bogon in the path, so make sure we never use it.
4678   set dummy $ac_cv_prog_BUILD_CXX
4679   shift
4680   if test $# != 0; then
4681     # We chose a different compiler from the bogus one.
4682     # However, it has the same basename, so the bogon will be chosen
4683     # first if we set BUILD_CXX to just the basename; use the full file name.
4684     shift
4685     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4686   fi
4687 fi
4688 fi
4689 fi
4690 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691 if test -n "$BUILD_CXX"; then
4692   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693 echo "${ECHO_T}$BUILD_CXX" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700      fi
4701   fi
4702 else
4703   LLVM_CROSS_COMPILING=0
4704
4705 fi
4706
4707 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4708   cvsbuild="yes"
4709   optimize="no"
4710   CVSBUILD=CVSBUILD=1
4711
4712 else
4713   cvsbuild="no"
4714   optimize="yes"
4715 fi
4716
4717
4718 # Check whether --enable-optimized was given.
4719 if test "${enable_optimized+set}" = set; then
4720   enableval=$enable_optimized;
4721 else
4722   enableval=$optimize
4723 fi
4724
4725 if test ${enableval} = "no" ; then
4726   ENABLE_OPTIMIZED=
4727
4728 else
4729   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4730
4731 fi
4732
4733 # Check whether --enable-assertions was given.
4734 if test "${enable_assertions+set}" = set; then
4735   enableval=$enable_assertions;
4736 else
4737   enableval="yes"
4738 fi
4739
4740 if test ${enableval} = "yes" ; then
4741   DISABLE_ASSERTIONS=
4742
4743 else
4744   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745
4746 fi
4747
4748 # Check whether --enable-expensive-checks was given.
4749 if test "${enable_expensive_checks+set}" = set; then
4750   enableval=$enable_expensive_checks;
4751 else
4752   enableval="no"
4753 fi
4754
4755 if test ${enableval} = "yes" ; then
4756   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757
4758   EXPENSIVE_CHECKS=yes
4759
4760 else
4761   ENABLE_EXPENSIVE_CHECKS=
4762
4763   EXPENSIVE_CHECKS=no
4764
4765 fi
4766
4767 # Check whether --enable-debug-runtime was given.
4768 if test "${enable_debug_runtime+set}" = set; then
4769   enableval=$enable_debug_runtime;
4770 else
4771   enableval=no
4772 fi
4773
4774 if test ${enableval} = "no" ; then
4775   DEBUG_RUNTIME=
4776
4777 else
4778   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779
4780 fi
4781
4782 # Check whether --enable-jit was given.
4783 if test "${enable_jit+set}" = set; then
4784   enableval=$enable_jit;
4785 else
4786   enableval=default
4787 fi
4788
4789 if test ${enableval} = "no"
4790 then
4791   JIT=
4792
4793 else
4794   case "$llvm_cv_target_arch" in
4795     x86)     TARGET_HAS_JIT=1
4796  ;;
4797     Sparc)   TARGET_HAS_JIT=0
4798  ;;
4799     PowerPC) TARGET_HAS_JIT=1
4800  ;;
4801     x86_64)  TARGET_HAS_JIT=1
4802  ;;
4803     Alpha)   TARGET_HAS_JIT=1
4804  ;;
4805     IA64)    TARGET_HAS_JIT=0
4806  ;;
4807     ARM)     TARGET_HAS_JIT=0
4808  ;;
4809     Mips)    TARGET_HAS_JIT=0
4810  ;;
4811     PIC16)   TARGET_HAS_JIT=0
4812  ;;
4813     *)       TARGET_HAS_JIT=0
4814  ;;
4815   esac
4816 fi
4817
4818 # Check whether --enable-doxygen was given.
4819 if test "${enable_doxygen+set}" = set; then
4820   enableval=$enable_doxygen;
4821 else
4822   enableval=default
4823 fi
4824
4825 case "$enableval" in
4826   yes) ENABLE_DOXYGEN=1
4827  ;;
4828   no)  ENABLE_DOXYGEN=0
4829  ;;
4830   default) ENABLE_DOXYGEN=0
4831  ;;
4832   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4834    { (exit 1); exit 1; }; } ;;
4835 esac
4836
4837 # Check whether --enable-threads was given.
4838 if test "${enable_threads+set}" = set; then
4839   enableval=$enable_threads;
4840 else
4841   enableval=default
4842 fi
4843
4844 case "$enableval" in
4845   yes) ENABLE_THREADS=1
4846  ;;
4847   no)  ENABLE_THREADS=0
4848  ;;
4849   default) ENABLE_THREADS=1
4850  ;;
4851   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4853    { (exit 1); exit 1; }; } ;;
4854 esac
4855
4856 cat >>confdefs.h <<_ACEOF
4857 #define ENABLE_THREADS $ENABLE_THREADS
4858 _ACEOF
4859
4860
4861 # Check whether --enable-pic was given.
4862 if test "${enable_pic+set}" = set; then
4863   enableval=$enable_pic;
4864 else
4865   enableval=default
4866 fi
4867
4868 case "$enableval" in
4869   yes) ENABLE_PIC=1
4870  ;;
4871   no)  ENABLE_PIC=0
4872  ;;
4873   default) ENABLE_PIC=0
4874  ;;
4875   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4877    { (exit 1); exit 1; }; } ;;
4878 esac
4879
4880 cat >>confdefs.h <<_ACEOF
4881 #define ENABLE_PIC $ENABLE_PIC
4882 _ACEOF
4883
4884
4885 TARGETS_TO_BUILD=""
4886 # Check whether --enable-targets was given.
4887 if test "${enable_targets+set}" = set; then
4888   enableval=$enable_targets;
4889 else
4890   enableval=all
4891 fi
4892
4893 case "$enableval" in
4894   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4895   host-only)
4896     case "$llvm_cv_target_arch" in
4897       x86)     TARGETS_TO_BUILD="X86" ;;
4898       x86_64)  TARGETS_TO_BUILD="X86" ;;
4899       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4900       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4901       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4902       IA64)    TARGETS_TO_BUILD="IA64" ;;
4903       ARM)     TARGETS_TO_BUILD="ARM" ;;
4904       Mips)    TARGETS_TO_BUILD="Mips" ;;
4905       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4906       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4907       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4908 echo "$as_me: error: Can not set target to build" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910     esac
4911     ;;
4912   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4913       case "$a_target" in
4914         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4920         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4921         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4922         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4923         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4924         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4928 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4929    { (exit 1); exit 1; }; } ;;
4930       esac
4931   done
4932   ;;
4933 esac
4934 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4935
4936
4937 # Check whether --enable-cbe-printf-a was given.
4938 if test "${enable_cbe_printf_a+set}" = set; then
4939   enableval=$enable_cbe_printf_a;
4940 else
4941   enableval=default
4942 fi
4943
4944 case "$enableval" in
4945   yes) ENABLE_CBE_PRINTF_A=1
4946  ;;
4947   no)  ENABLE_CBE_PRINTF_A=0
4948  ;;
4949   default)  ENABLE_CBE_PRINTF_A=1
4950  ;;
4951   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4953    { (exit 1); exit 1; }; } ;;
4954 esac
4955
4956 cat >>confdefs.h <<_ACEOF
4957 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4958 _ACEOF
4959
4960
4961
4962 # Check whether --with-llvmgccdir was given.
4963 if test "${with_llvmgccdir+set}" = set; then
4964   withval=$with_llvmgccdir;
4965 else
4966   withval=default
4967 fi
4968
4969 case "$withval" in
4970   default) WITH_LLVMGCCDIR=default ;;
4971   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4972   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4973 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4974    { (exit 1); exit 1; }; } ;;
4975 esac
4976
4977
4978 # Check whether --with-llvmgcc was given.
4979 if test "${with_llvmgcc+set}" = set; then
4980   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4981       WITH_LLVMGCCDIR=""
4982 fi
4983
4984
4985
4986 # Check whether --with-llvmgxx was given.
4987 if test "${with_llvmgxx+set}" = set; then
4988   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4989     WITH_LLVMGCCDIR=""
4990 fi
4991
4992
4993 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4994    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4995 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4996    { (exit 1); exit 1; }; };
4997 fi
4998
4999 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5000    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5001 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5002    { (exit 1); exit 1; }; };
5003 fi
5004
5005
5006 # Check whether --with-extra-options was given.
5007 if test "${with_extra_options+set}" = set; then
5008   withval=$with_extra_options;
5009 else
5010   withval=default
5011 fi
5012
5013 case "$withval" in
5014   default) EXTRA_OPTIONS= ;;
5015   *) EXTRA_OPTIONS=$withval ;;
5016 esac
5017 EXTRA_OPTIONS=$EXTRA_OPTIONS
5018
5019
5020 # Check whether --enable-bindings was given.
5021 if test "${enable_bindings+set}" = set; then
5022   enableval=$enable_bindings;
5023 else
5024   enableval=default
5025 fi
5026
5027 BINDINGS_TO_BUILD=""
5028 case "$enableval" in
5029   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5030   all ) BINDINGS_TO_BUILD="ocaml" ;;
5031   none | no) BINDINGS_TO_BUILD="" ;;
5032   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033       case "$a_binding" in
5034         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5035         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5036 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5037    { (exit 1); exit 1; }; } ;;
5038       esac
5039   done
5040   ;;
5041 esac
5042
5043
5044 # Check whether --with-ocaml-libdir was given.
5045 if test "${with_ocaml_libdir+set}" = set; then
5046   withval=$with_ocaml_libdir;
5047 else
5048   withval=auto
5049 fi
5050
5051 case "$withval" in
5052   auto) with_ocaml_libdir="$withval" ;;
5053   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5054   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5055 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5056    { (exit 1); exit 1; }; } ;;
5057 esac
5058
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069   CPP=
5070 fi
5071 if test -z "$CPP"; then
5072   if test "${ac_cv_prog_CPP+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075       # Double quotes because CPP needs to be expanded
5076     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077     do
5078       ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null; then
5113   if test -s conftest.err; then
5114     ac_cpp_err=$ac_c_preproc_warn_flag
5115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116   else
5117     ac_cpp_err=
5118   fi
5119 else
5120   ac_cpp_err=yes
5121 fi
5122 if test -z "$ac_cpp_err"; then
5123   :
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Broken: fails on valid input.
5129 continue
5130 fi
5131
5132 rm -f conftest.err conftest.$ac_ext
5133
5134   # OK, works on sane cases.  Now check whether nonexistent headers
5135   # can be detected and how.
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <ac_nonexistent.h>
5143 _ACEOF
5144 if { (ac_try="$ac_cpp conftest.$ac_ext"
5145 case "(($ac_try" in
5146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147   *) ac_try_echo=$ac_try;;
5148 esac
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } >/dev/null; then
5157   if test -s conftest.err; then
5158     ac_cpp_err=$ac_c_preproc_warn_flag
5159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160   else
5161     ac_cpp_err=
5162   fi
5163 else
5164   ac_cpp_err=yes
5165 fi
5166 if test -z "$ac_cpp_err"; then
5167   # Broken: success on invalid input.
5168 continue
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173   # Passes both tests.
5174 ac_preproc_ok=:
5175 break
5176 fi
5177
5178 rm -f conftest.err conftest.$ac_ext
5179
5180 done
5181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182 rm -f conftest.err conftest.$ac_ext
5183 if $ac_preproc_ok; then
5184   break
5185 fi
5186
5187     done
5188     ac_cv_prog_CPP=$CPP
5189
5190 fi
5191   CPP=$ac_cv_prog_CPP
5192 else
5193   ac_cv_prog_CPP=$CPP
5194 fi
5195 { echo "$as_me:$LINENO: result: $CPP" >&5
5196 echo "${ECHO_T}$CPP" >&6; }
5197 ac_preproc_ok=false
5198 for ac_c_preproc_warn_flag in '' yes
5199 do
5200   # Use a header file that comes with gcc, so configuring glibc
5201   # with a fresh cross-compiler works.
5202   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203   # <limits.h> exists even on freestanding compilers.
5204   # On the NeXT, cc -E runs the code through the compiler's parser,
5205   # not just through cpp. "Syntax error" is here to catch this case.
5206   cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #ifdef __STDC__
5213 # include <limits.h>
5214 #else
5215 # include <assert.h>
5216 #endif
5217                      Syntax error
5218 _ACEOF
5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 case "(($ac_try" in
5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222   *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226   ac_status=$?
5227   grep -v '^ *+' conftest.er1 >conftest.err
5228   rm -f conftest.er1
5229   cat conftest.err >&5
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } >/dev/null; then
5232   if test -s conftest.err; then
5233     ac_cpp_err=$ac_c_preproc_warn_flag
5234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235   else
5236     ac_cpp_err=
5237   fi
5238 else
5239   ac_cpp_err=yes
5240 fi
5241 if test -z "$ac_cpp_err"; then
5242   :
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247   # Broken: fails on valid input.
5248 continue
5249 fi
5250
5251 rm -f conftest.err conftest.$ac_ext
5252
5253   # OK, works on sane cases.  Now check whether nonexistent headers
5254   # can be detected and how.
5255   cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261 #include <ac_nonexistent.h>
5262 _ACEOF
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } >/dev/null; then
5276   if test -s conftest.err; then
5277     ac_cpp_err=$ac_c_preproc_warn_flag
5278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279   else
5280     ac_cpp_err=
5281   fi
5282 else
5283   ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286   # Broken: success on invalid input.
5287 continue
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292   # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5295 fi
5296
5297 rm -f conftest.err conftest.$ac_ext
5298
5299 done
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5303   :
5304 else
5305   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310 fi
5311
5312 ac_ext=c
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323 if test -n "$ac_tool_prefix"; then
5324   for ac_prog in gcc
5325   do
5326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330 if test "${ac_cv_prog_CC+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   if test -n "$CC"; then
5334   ac_cv_prog_CC="$CC" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341   for ac_exec_ext in '' $ac_executable_extensions; do
5342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5343     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 fi
5352 fi
5353 CC=$ac_cv_prog_CC
5354 if test -n "$CC"; then
5355   { echo "$as_me:$LINENO: result: $CC" >&5
5356 echo "${ECHO_T}$CC" >&6; }
5357 else
5358   { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5360 fi
5361
5362
5363     test -n "$CC" && break
5364   done
5365 fi
5366 if test -z "$CC"; then
5367   ac_ct_CC=$CC
5368   for ac_prog in gcc
5369 do
5370   # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   if test -n "$ac_ct_CC"; then
5378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385   for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_prog_ac_ct_CC="$ac_prog"
5388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392 done
5393 IFS=$as_save_IFS
5394
5395 fi
5396 fi
5397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5398 if test -n "$ac_ct_CC"; then
5399   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5400 echo "${ECHO_T}$ac_ct_CC" >&6; }
5401 else
5402   { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5404 fi
5405
5406
5407   test -n "$ac_ct_CC" && break
5408 done
5409
5410   if test "x$ac_ct_CC" = x; then
5411     CC=""
5412   else
5413     case $cross_compiling:$ac_tool_warned in
5414 yes:)
5415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416 whose name does not start with the host triplet.  If you think this
5417 configuration is useful to you, please write to autoconf@gnu.org." >&5
5418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419 whose name does not start with the host triplet.  If you think this
5420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423     CC=$ac_ct_CC
5424   fi
5425 fi
5426
5427
5428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: no acceptable C compiler found in \$PATH
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433
5434 # Provide some information about the compiler.
5435 echo "$as_me:$LINENO: checking for C compiler version" >&5
5436 ac_compiler=`set X $ac_compile; echo $2`
5437 { (ac_try="$ac_compiler --version >&5"
5438 case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443   (eval "$ac_compiler --version >&5") 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }
5447 { (ac_try="$ac_compiler -v >&5"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_compiler -v >&5") 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }
5457 { (ac_try="$ac_compiler -V >&5"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463   (eval "$ac_compiler -V >&5") 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }
5467
5468 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479
5480 int
5481 main ()
5482 {
5483 #ifndef __GNUC__
5484        choke me
5485 #endif
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compile") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506   { (case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_try") 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; } &&
5515          { ac_try='test -s conftest.$ac_objext'
5516   { (case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_try") 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; }; then
5525   ac_compiler_gnu=yes
5526 else
5527   echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530         ac_compiler_gnu=no
5531 fi
5532
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5538 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5539 GCC=`test $ac_compiler_gnu = yes && echo yes`
5540 ac_test_CFLAGS=${CFLAGS+set}
5541 ac_save_CFLAGS=$CFLAGS
5542 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5544 if test "${ac_cv_prog_cc_g+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   ac_save_c_werror_flag=$ac_c_werror_flag
5548    ac_c_werror_flag=yes
5549    ac_cv_prog_cc_g=no
5550    CFLAGS="-g"
5551    cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557
5558 int
5559 main ()
5560 {
5561
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573   (eval "$ac_compile") 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } &&
5580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5581   { (case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_try") 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }; } &&
5590          { ac_try='test -s conftest.$ac_objext'
5591   { (case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_try") 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_cv_prog_cc_g=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605         CFLAGS=""
5606       cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612
5613 int
5614 main ()
5615 {
5616
5617   ;
5618   return 0;
5619 }
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_compile") 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636   { (case "(($ac_try" in
5637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638   *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641   (eval "$ac_try") 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; } &&
5645          { ac_try='test -s conftest.$ac_objext'
5646   { (case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$ac_try") 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   :
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660         ac_c_werror_flag=$ac_save_c_werror_flag
5661          CFLAGS="-g"
5662          cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_compile") 2>conftest.er1
5685   ac_status=$?
5686   grep -v '^ *+' conftest.er1 >conftest.err
5687   rm -f conftest.er1
5688   cat conftest.err >&5
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } &&
5691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5692   { (case "(($ac_try" in
5693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694   *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697   (eval "$ac_try") 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; } &&
5701          { ac_try='test -s conftest.$ac_objext'
5702   { (case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707   (eval "$ac_try") 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_prog_cc_g=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726    ac_c_werror_flag=$ac_save_c_werror_flag
5727 fi
5728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5730 if test "$ac_test_CFLAGS" = set; then
5731   CFLAGS=$ac_save_CFLAGS
5732 elif test $ac_cv_prog_cc_g = yes; then
5733   if test "$GCC" = yes; then
5734     CFLAGS="-g -O2"
5735   else
5736     CFLAGS="-g"
5737   fi
5738 else
5739   if test "$GCC" = yes; then
5740     CFLAGS="-O2"
5741   else
5742     CFLAGS=
5743   fi
5744 fi
5745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_cc_c89+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   ac_cv_prog_cc_c89=no
5751 ac_save_CC=$CC
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 #include <stdarg.h>
5759 #include <stdio.h>
5760 #include <sys/types.h>
5761 #include <sys/stat.h>
5762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5763 struct buf { int x; };
5764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5765 static char *e (p, i)
5766      char **p;
5767      int i;
5768 {
5769   return p[i];
5770 }
5771 static char *f (char * (*g) (char **, int), char **p, ...)
5772 {
5773   char *s;
5774   va_list v;
5775   va_start (v,p);
5776   s = g (p, va_arg (v,int));
5777   va_end (v);
5778   return s;
5779 }
5780
5781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5782    function prototypes and stuff, but not '\xHH' hex character constants.
5783    These don't provoke an error unfortunately, instead are silently treated
5784    as 'x'.  The following induces an error, until -std is added to get
5785    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5786    array size at least.  It's necessary to write '\x00'==0 to get something
5787    that's true only with -std.  */
5788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5789
5790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5791    inside strings and character constants.  */
5792 #define FOO(x) 'x'
5793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5794
5795 int test (int i, double x);
5796 struct s1 {int (*f) (int a);};
5797 struct s2 {int (*f) (double a);};
5798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5799 int argc;
5800 char **argv;
5801 int
5802 main ()
5803 {
5804 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5810         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5811 do
5812   CC="$ac_save_CC $ac_arg"
5813   rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828   { (case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_try") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_prog_cc_c89=$ac_arg
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext
5856   test "x$ac_cv_prog_cc_c89" != "xno" && break
5857 done
5858 rm -f conftest.$ac_ext
5859 CC=$ac_save_CC
5860
5861 fi
5862 # AC_CACHE_VAL
5863 case "x$ac_cv_prog_cc_c89" in
5864   x)
5865     { echo "$as_me:$LINENO: result: none needed" >&5
5866 echo "${ECHO_T}none needed" >&6; } ;;
5867   xno)
5868     { echo "$as_me:$LINENO: result: unsupported" >&5
5869 echo "${ECHO_T}unsupported" >&6; } ;;
5870   *)
5871     CC="$CC $ac_cv_prog_cc_c89"
5872     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5874 esac
5875
5876
5877 ac_ext=c
5878 ac_cpp='$CPP $CPPFLAGS'
5879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882
5883 ac_ext=cpp
5884 ac_cpp='$CXXCPP $CPPFLAGS'
5885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888 if test -z "$CXX"; then
5889   if test -n "$CCC"; then
5890     CXX=$CCC
5891   else
5892     if test -n "$ac_tool_prefix"; then
5893   for ac_prog in g++
5894   do
5895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_CXX+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   if test -n "$CXX"; then
5903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910   for ac_exec_ext in '' $ac_executable_extensions; do
5911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 CXX=$ac_cv_prog_CXX
5923 if test -n "$CXX"; then
5924   { echo "$as_me:$LINENO: result: $CXX" >&5
5925 echo "${ECHO_T}$CXX" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932     test -n "$CXX" && break
5933   done
5934 fi
5935 if test -z "$CXX"; then
5936   ac_ct_CXX=$CXX
5937   for ac_prog in g++
5938 do
5939   # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   if test -n "$ac_ct_CXX"; then
5947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5956     ac_cv_prog_ac_ct_CXX="$ac_prog"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5967 if test -n "$ac_ct_CXX"; then
5968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976   test -n "$ac_ct_CXX" && break
5977 done
5978
5979   if test "x$ac_ct_CXX" = x; then
5980     CXX="g++"
5981   else
5982     case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet.  If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet.  If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     CXX=$ac_ct_CXX
5993   fi
5994 fi
5995
5996   fi
5997 fi
5998 # Provide some information about the compiler.
5999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6000 ac_compiler=`set X $ac_compile; echo $2`
6001 { (ac_try="$ac_compiler --version >&5"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_compiler --version >&5") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }
6011 { (ac_try="$ac_compiler -v >&5"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_compiler -v >&5") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }
6021 { (ac_try="$ac_compiler -V >&5"
6022 case "(($ac_try" in
6023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024   *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027   (eval "$ac_compiler -V >&5") 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }
6031
6032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043
6044 int
6045 main ()
6046 {
6047 #ifndef __GNUC__
6048        choke me
6049 #endif
6050
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_compile") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070   { (case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075   (eval "$ac_try") 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (case "(($ac_try" in
6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082   *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085   (eval "$ac_try") 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_compiler_gnu=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         ac_compiler_gnu=no
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6099
6100 fi
6101 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6102 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6103 GXX=`test $ac_compiler_gnu = yes && echo yes`
6104 ac_test_CXXFLAGS=${CXXFLAGS+set}
6105 ac_save_CXXFLAGS=$CXXFLAGS
6106 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_cxx_g+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6112    ac_cxx_werror_flag=yes
6113    ac_cv_prog_cxx_g=no
6114    CXXFLAGS="-g"
6115    cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121
6122 int
6123 main ()
6124 {
6125
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137   (eval "$ac_compile") 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6145   { (case "(($ac_try" in
6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147   *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150   (eval "$ac_try") 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; } &&
6154          { ac_try='test -s conftest.$ac_objext'
6155   { (case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_try") 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_prog_cxx_g=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169         CXXFLAGS=""
6170       cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 int
6178 main ()
6179 {
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_compile") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200   { (case "(($ac_try" in
6201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202   *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205   (eval "$ac_try") 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; } &&
6209          { ac_try='test -s conftest.$ac_objext'
6210   { (case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_try") 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219   :
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6225          CXXFLAGS="-g"
6226          cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232
6233 int
6234 main ()
6235 {
6236
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6243 case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_compile") 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6256   { (case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261   (eval "$ac_try") 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest.$ac_objext'
6266   { (case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_try") 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_prog_cxx_g=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6291 fi
6292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6293 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6294 if test "$ac_test_CXXFLAGS" = set; then
6295   CXXFLAGS=$ac_save_CXXFLAGS
6296 elif test $ac_cv_prog_cxx_g = yes; then
6297   if test "$GXX" = yes; then
6298     CXXFLAGS="-g -O2"
6299   else
6300     CXXFLAGS="-g"
6301   fi
6302 else
6303   if test "$GXX" = yes; then
6304     CXXFLAGS="-O2"
6305   else
6306     CXXFLAGS=
6307   fi
6308 fi
6309 ac_ext=c
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315 { echo "$as_me:$LINENO: checking " >&5
6316 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6317 if test "${ac_cv_has_flex+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   for ac_prog in flex lex
6321 do
6322   # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_LEX+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   if test -n "$LEX"; then
6330   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_LEX="$ac_prog"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 LEX=$ac_cv_prog_LEX
6350 if test -n "$LEX"; then
6351   { echo "$as_me:$LINENO: result: $LEX" >&5
6352 echo "${ECHO_T}$LEX" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359   test -n "$LEX" && break
6360 done
6361 test -n "$LEX" || LEX=":"
6362
6363 if test -z "$LEXLIB"
6364 then
6365   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6366 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6367 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-lfl  $LIBS"
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378
6379 /* Override any GCC internal prototype to avoid an error.
6380    Use char because int might match the return type of a GCC
6381    builtin and then its argument prototype would still apply.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 char yywrap ();
6386 int
6387 main ()
6388 {
6389 return yywrap ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_link") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409   { (case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414   (eval "$ac_try") 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest$ac_exeext'
6419   { (case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_lib_fl_yywrap=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433         ac_cv_lib_fl_yywrap=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext \
6437       conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6441 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6442 if test $ac_cv_lib_fl_yywrap = yes; then
6443   LEXLIB="-lfl"
6444 else
6445   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6446 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6447 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-ll  $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458
6459 /* Override any GCC internal prototype to avoid an error.
6460    Use char because int might match the return type of a GCC
6461    builtin and then its argument prototype would still apply.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 char yywrap ();
6466 int
6467 main ()
6468 {
6469 return yywrap ();
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6476 case "(($ac_try" in
6477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478   *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481   (eval "$ac_link") 2>conftest.er1
6482   ac_status=$?
6483   grep -v '^ *+' conftest.er1 >conftest.err
6484   rm -f conftest.er1
6485   cat conftest.err >&5
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489   { (case "(($ac_try" in
6490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491   *) ac_try_echo=$ac_try;;
6492 esac
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494   (eval "$ac_try") 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504   (eval "$ac_try") 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   ac_cv_lib_l_yywrap=yes
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513         ac_cv_lib_l_yywrap=no
6514 fi
6515
6516 rm -f core conftest.err conftest.$ac_objext \
6517       conftest$ac_exeext conftest.$ac_ext
6518 LIBS=$ac_check_lib_save_LIBS
6519 fi
6520 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6521 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6522 if test $ac_cv_lib_l_yywrap = yes; then
6523   LEXLIB="-ll"
6524 fi
6525
6526 fi
6527
6528 fi
6529
6530 if test "x$LEX" != "x:"; then
6531   { echo "$as_me:$LINENO: checking lex output file root" >&5
6532 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_lex_root+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   # The minimal lex program is just a single line: %%.  But some broken lexes
6537 # (Solaris, I think it was) want two %% lines, so accommodate them.
6538 cat >conftest.l <<_ACEOF
6539 %%
6540 %%
6541 _ACEOF
6542 { (ac_try="$LEX conftest.l"
6543 case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$LEX conftest.l") 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }
6552 if test -f lex.yy.c; then
6553   ac_cv_prog_lex_root=lex.yy
6554 elif test -f lexyy.c; then
6555   ac_cv_prog_lex_root=lexyy
6556 else
6557   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6558 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6559    { (exit 1); exit 1; }; }
6560 fi
6561 fi
6562 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6563 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6564 rm -f conftest.l
6565 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6566
6567 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6568 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   # POSIX says lex can declare yytext either as a pointer or an array; the
6573 # default is implementation-dependent. Figure out which it is, since
6574 # not all implementations provide the %pointer and %array declarations.
6575 ac_cv_prog_lex_yytext_pointer=no
6576 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6577 ac_save_LIBS=$LIBS
6578 LIBS="$LIBS $LEXLIB"
6579 cat >conftest.$ac_ext <<_ACEOF
6580 `cat $LEX_OUTPUT_ROOT.c`
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (ac_try="$ac_link"
6584 case "(($ac_try" in
6585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586   *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589   (eval "$ac_link") 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597   { (case "(($ac_try" in
6598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599   *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602   (eval "$ac_try") 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (case "(($ac_try" in
6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609   *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612   (eval "$ac_try") 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; }; then
6616   ac_cv_prog_lex_yytext_pointer=yes
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621
6622 fi
6623
6624 rm -f core conftest.err conftest.$ac_objext \
6625       conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_save_LIBS
6627 rm -f "${LEX_OUTPUT_ROOT}.c"
6628
6629 fi
6630 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6631 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6632 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6633
6634 cat >>confdefs.h <<\_ACEOF
6635 #define YYTEXT_POINTER 1
6636 _ACEOF
6637
6638 fi
6639
6640 fi
6641
6642 fi
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6644 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6645 if test "$LEX" != "flex"; then
6646   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6647 echo "$as_me: error: flex not found but required" >&2;}
6648    { (exit 1); exit 1; }; }
6649 else
6650   FLEX=flex
6651
6652 fi
6653
6654 { echo "$as_me:$LINENO: checking " >&5
6655 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6656 if test "${llvm_cv_has_bison+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   for ac_prog in 'bison -y' byacc
6660 do
6661   # Extract the first word of "$ac_prog", so it can be a program name with args.
6662 set dummy $ac_prog; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_YACC+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$YACC"; then
6669   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_YACC="$ac_prog"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 YACC=$ac_cv_prog_YACC
6689 if test -n "$YACC"; then
6690   { echo "$as_me:$LINENO: result: $YACC" >&5
6691 echo "${ECHO_T}$YACC" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698   test -n "$YACC" && break
6699 done
6700 test -n "$YACC" || YACC="yacc"
6701
6702 fi
6703 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6704 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6705 if test "$YACC" != "bison -y"; then
6706
6707   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6708 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6709 else
6710   BISON=bison
6711
6712 fi
6713
6714 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6715 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6716 if test "${lt_cv_path_NM+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   if test -n "$NM"; then
6720   # Let the user override the test.
6721   lt_cv_path_NM="$NM"
6722 else
6723   lt_nm_to_check="${ac_tool_prefix}nm"
6724   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6725     lt_nm_to_check="$lt_nm_to_check nm"
6726   fi
6727   for lt_tmp_nm in $lt_nm_to_check; do
6728     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6729     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6730       IFS="$lt_save_ifs"
6731       test -z "$ac_dir" && ac_dir=.
6732       tmp_nm="$ac_dir/$lt_tmp_nm"
6733       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6734         # Check to see if the nm accepts a BSD-compat flag.
6735         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6736         #   nm: unknown option "B" ignored
6737         # Tru64's nm complains that /dev/null is an invalid object file
6738         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6739         */dev/null* | *'Invalid file or object type'*)
6740           lt_cv_path_NM="$tmp_nm -B"
6741           break
6742           ;;
6743         *)
6744           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6745           */dev/null*)
6746             lt_cv_path_NM="$tmp_nm -p"
6747             break
6748             ;;
6749           *)
6750             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6751             continue # so that we can try to find one that supports BSD flags
6752             ;;
6753           esac
6754           ;;
6755         esac
6756       fi
6757     done
6758     IFS="$lt_save_ifs"
6759   done
6760   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6761 fi
6762 fi
6763 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6764 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6765 NM="$lt_cv_path_NM"
6766
6767
6768
6769 { echo "$as_me:$LINENO: checking for GNU make" >&5
6770 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6771 if test "${llvm_cv_gnu_make_command+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   llvm_cv_gnu_make_command=''
6775  for a in "$MAKE" make gmake gnumake ; do
6776   if test -z "$a" ; then continue ; fi ;
6777   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6778   then
6779    llvm_cv_gnu_make_command=$a ;
6780    break;
6781   fi
6782  done
6783 fi
6784 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6785 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6786  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6787    ifGNUmake='' ;
6788  else
6789    ifGNUmake='#' ;
6790    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6791 echo "${ECHO_T}\"Not found\"" >&6; };
6792  fi
6793
6794
6795 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6797 LN_S=$as_ln_s
6798 if test "$LN_S" = "ln -s"; then
6799   { echo "$as_me:$LINENO: result: yes" >&5
6800 echo "${ECHO_T}yes" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6803 echo "${ECHO_T}no, using $LN_S" >&6; }
6804 fi
6805
6806 # Extract the first word of "cmp", so it can be a program name with args.
6807 set dummy cmp; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_CMP+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $CMP in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6834   ;;
6835 esac
6836 fi
6837 CMP=$ac_cv_path_CMP
6838 if test -n "$CMP"; then
6839   { echo "$as_me:$LINENO: result: $CMP" >&5
6840 echo "${ECHO_T}$CMP" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846
6847 # Extract the first word of "cp", so it can be a program name with args.
6848 set dummy cp; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_CP+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $CP in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6875   ;;
6876 esac
6877 fi
6878 CP=$ac_cv_path_CP
6879 if test -n "$CP"; then
6880   { echo "$as_me:$LINENO: result: $CP" >&5
6881 echo "${ECHO_T}$CP" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 # Extract the first word of "date", so it can be a program name with args.
6889 set dummy date; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_DATE+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   case $DATE in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6916   ;;
6917 esac
6918 fi
6919 DATE=$ac_cv_path_DATE
6920 if test -n "$DATE"; then
6921   { echo "$as_me:$LINENO: result: $DATE" >&5
6922 echo "${ECHO_T}$DATE" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 # Extract the first word of "find", so it can be a program name with args.
6930 set dummy find; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_FIND+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $FIND in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6957   ;;
6958 esac
6959 fi
6960 FIND=$ac_cv_path_FIND
6961 if test -n "$FIND"; then
6962   { echo "$as_me:$LINENO: result: $FIND" >&5
6963 echo "${ECHO_T}$FIND" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 # Extract the first word of "grep", so it can be a program name with args.
6971 set dummy grep; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_GREP+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $GREP in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6998   ;;
6999 esac
7000 fi
7001 GREP=$ac_cv_path_GREP
7002 if test -n "$GREP"; then
7003   { echo "$as_me:$LINENO: result: $GREP" >&5
7004 echo "${ECHO_T}$GREP" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 # Extract the first word of "mkdir", so it can be a program name with args.
7012 set dummy mkdir; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_MKDIR+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $MKDIR in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7039   ;;
7040 esac
7041 fi
7042 MKDIR=$ac_cv_path_MKDIR
7043 if test -n "$MKDIR"; then
7044   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7045 echo "${ECHO_T}$MKDIR" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052 # Extract the first word of "mv", so it can be a program name with args.
7053 set dummy mv; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_MV+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   case $MV in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7080   ;;
7081 esac
7082 fi
7083 MV=$ac_cv_path_MV
7084 if test -n "$MV"; then
7085   { echo "$as_me:$LINENO: result: $MV" >&5
7086 echo "${ECHO_T}$MV" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092
7093 if test -n "$ac_tool_prefix"; then
7094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test -n "$RANLIB"; then
7102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133   ac_ct_RANLIB=$RANLIB
7134   # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$ac_ct_RANLIB"; then
7142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_prog_ac_ct_RANLIB="ranlib"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170   if test "x$ac_ct_RANLIB" = x; then
7171     RANLIB=":"
7172   else
7173     case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet.  If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet.  If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     RANLIB=$ac_ct_RANLIB
7184   fi
7185 else
7186   RANLIB="$ac_cv_prog_RANLIB"
7187 fi
7188
7189 # Extract the first word of "rm", so it can be a program name with args.
7190 set dummy rm; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_RM+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $RM in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7217   ;;
7218 esac
7219 fi
7220 RM=$ac_cv_path_RM
7221 if test -n "$RM"; then
7222   { echo "$as_me:$LINENO: result: $RM" >&5
7223 echo "${ECHO_T}$RM" >&6; }
7224 else
7225   { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7227 fi
7228
7229
7230 # Extract the first word of "sed", so it can be a program name with args.
7231 set dummy sed; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_SED+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   case $SED in
7238   [\\/]* | ?:[\\/]*)
7239   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7240   ;;
7241   *)
7242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7258   ;;
7259 esac
7260 fi
7261 SED=$ac_cv_path_SED
7262 if test -n "$SED"; then
7263   { echo "$as_me:$LINENO: result: $SED" >&5
7264 echo "${ECHO_T}$SED" >&6; }
7265 else
7266   { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7268 fi
7269
7270
7271 # Extract the first word of "tar", so it can be a program name with args.
7272 set dummy tar; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_TAR+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $TAR in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7299   ;;
7300 esac
7301 fi
7302 TAR=$ac_cv_path_TAR
7303 if test -n "$TAR"; then
7304   { echo "$as_me:$LINENO: result: $TAR" >&5
7305 echo "${ECHO_T}$TAR" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 # Extract the first word of "pwd", so it can be a program name with args.
7313 set dummy pwd; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_BINPWD+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   case $BINPWD in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329   for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7340   ;;
7341 esac
7342 fi
7343 BINPWD=$ac_cv_path_BINPWD
7344 if test -n "$BINPWD"; then
7345   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7346 echo "${ECHO_T}$BINPWD" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352
7353
7354 # Extract the first word of "Graphviz", so it can be a program name with args.
7355 set dummy Graphviz; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   case $GRAPHVIZ in
7362   [\\/]* | ?:[\\/]*)
7363   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7364   ;;
7365   *)
7366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7382   ;;
7383 esac
7384 fi
7385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7386 if test -n "$GRAPHVIZ"; then
7387   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7389 else
7390   { echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6; }
7392 fi
7393
7394
7395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7396
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_GRAPHVIZ 1
7399 _ACEOF
7400
7401     if test "$llvm_cv_os_type" = "MingW" ; then
7402     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403   fi
7404
7405 cat >>confdefs.h <<_ACEOF
7406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7407 _ACEOF
7408
7409 fi
7410 # Extract the first word of "dot", so it can be a program name with args.
7411 set dummy dot; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_DOT+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   case $DOT in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7438   ;;
7439 esac
7440 fi
7441 DOT=$ac_cv_path_DOT
7442 if test -n "$DOT"; then
7443   { echo "$as_me:$LINENO: result: $DOT" >&5
7444 echo "${ECHO_T}$DOT" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451 if test "$DOT" != "echo dot" ; then
7452
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_DOT 1
7455 _ACEOF
7456
7457     if test "$llvm_cv_os_type" = "MingW" ; then
7458     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459   fi
7460
7461 cat >>confdefs.h <<_ACEOF
7462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7463 _ACEOF
7464
7465 fi
7466 for ac_prog in gv gsview32
7467 do
7468   # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_GV+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   case $GV in
7476   [\\/]* | ?:[\\/]*)
7477   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7478   ;;
7479   *)
7480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495   ;;
7496 esac
7497 fi
7498 GV=$ac_cv_path_GV
7499 if test -n "$GV"; then
7500   { echo "$as_me:$LINENO: result: $GV" >&5
7501 echo "${ECHO_T}$GV" >&6; }
7502 else
7503   { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7505 fi
7506
7507
7508   test -n "$GV" && break
7509 done
7510 test -n "$GV" || GV="echo gv"
7511
7512 if test "$GV" != "echo gv" ; then
7513
7514 cat >>confdefs.h <<\_ACEOF
7515 #define HAVE_GV 1
7516 _ACEOF
7517
7518     if test "$llvm_cv_os_type" = "MingW" ; then
7519     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520   fi
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define LLVM_PATH_GV "$GV${EXEEXT}"
7524 _ACEOF
7525
7526 fi
7527 # Extract the first word of "dotty", so it can be a program name with args.
7528 set dummy dotty; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_DOTTY+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $DOTTY in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7555   ;;
7556 esac
7557 fi
7558 DOTTY=$ac_cv_path_DOTTY
7559 if test -n "$DOTTY"; then
7560   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7561 echo "${ECHO_T}$DOTTY" >&6; }
7562 else
7563   { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7565 fi
7566
7567
7568 if test "$DOTTY" != "echo dotty" ; then
7569
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_DOTTY 1
7572 _ACEOF
7573
7574     if test "$llvm_cv_os_type" = "MingW" ; then
7575     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576   fi
7577
7578 cat >>confdefs.h <<_ACEOF
7579 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7580 _ACEOF
7581
7582 fi
7583
7584
7585 # Extract the first word of "perl", so it can be a program name with args.
7586 set dummy perl; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_PERL+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $PERL in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7613   ;;
7614 esac
7615 fi
7616 PERL=$ac_cv_path_PERL
7617 if test -n "$PERL"; then
7618   { echo "$as_me:$LINENO: result: $PERL" >&5
7619 echo "${ECHO_T}$PERL" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626 if test "$PERL" != "none"; then
7627   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7628 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7629   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7630     { echo "$as_me:$LINENO: result: yes" >&5
7631 echo "${ECHO_T}yes" >&6; }
7632   else
7633     PERL=none
7634     { echo "$as_me:$LINENO: result: not found" >&5
7635 echo "${ECHO_T}not found" >&6; }
7636   fi
7637 fi
7638
7639
7640 if test x"$PERL" = xnone; then
7641    HAVE_PERL=0
7642
7643    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7644 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7645    { (exit 1); exit 1; }; }
7646 else
7647    HAVE_PERL=1
7648
7649 fi
7650
7651 # Find a good install program.  We prefer a C program (faster),
7652 # so one script is as good as another.  But avoid the broken or
7653 # incompatible versions:
7654 # SysV /etc/install, /usr/sbin/install
7655 # SunOS /usr/etc/install
7656 # IRIX /sbin/install
7657 # AIX /bin/install
7658 # AmigaOS /C/install, which installs bootblocks on floppy discs
7659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662 # OS/2's system install, which has a completely different semantic
7663 # ./install, which can be erroneously created by make from ./install.sh.
7664 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7666 if test -z "$INSTALL"; then
7667 if test "${ac_cv_path_install+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675   # Account for people who put trailing slashes in PATH elements.
7676 case $as_dir/ in
7677   ./ | .// | /cC/* | \
7678   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7679   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7680   /usr/ucb/* ) ;;
7681   *)
7682     # OSF1 and SCO ODT 3.0 have their own names for install.
7683     # Don't use installbsd from OSF since it installs stuff as root
7684     # by default.
7685     for ac_prog in ginstall scoinst install; do
7686       for ac_exec_ext in '' $ac_executable_extensions; do
7687         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7688           if test $ac_prog = install &&
7689             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690             # AIX install.  It has an incompatible calling convention.
7691             :
7692           elif test $ac_prog = install &&
7693             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7694             # program-specific install script used by HP pwplus--don't use.
7695             :
7696           else
7697             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7698             break 3
7699           fi
7700         fi
7701       done
7702     done
7703     ;;
7704 esac
7705 done
7706 IFS=$as_save_IFS
7707
7708
7709 fi
7710   if test "${ac_cv_path_install+set}" = set; then
7711     INSTALL=$ac_cv_path_install
7712   else
7713     # As a last resort, use the slow shell script.  Don't cache a
7714     # value for INSTALL within a source directory, because that will
7715     # break other packages using the cache if that directory is
7716     # removed, or if the value is a relative name.
7717     INSTALL=$ac_install_sh
7718   fi
7719 fi
7720 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7721 echo "${ECHO_T}$INSTALL" >&6; }
7722
7723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7724 # It thinks the first close brace ends the variable substitution.
7725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7726
7727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7728
7729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7730
7731
7732 # Extract the first word of "bzip2", so it can be a program name with args.
7733 set dummy bzip2; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_BZIP2+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   case $BZIP2 in
7740   [\\/]* | ?:[\\/]*)
7741   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7742   ;;
7743   *)
7744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749   for ac_exec_ext in '' $ac_executable_extensions; do
7750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759   ;;
7760 esac
7761 fi
7762 BZIP2=$ac_cv_path_BZIP2
7763 if test -n "$BZIP2"; then
7764   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7765 echo "${ECHO_T}$BZIP2" >&6; }
7766 else
7767   { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7769 fi
7770
7771
7772 # Extract the first word of "doxygen", so it can be a program name with args.
7773 set dummy doxygen; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   case $DOXYGEN in
7780   [\\/]* | ?:[\\/]*)
7781   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7782   ;;
7783   *)
7784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799   ;;
7800 esac
7801 fi
7802 DOXYGEN=$ac_cv_path_DOXYGEN
7803 if test -n "$DOXYGEN"; then
7804   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7805 echo "${ECHO_T}$DOXYGEN" >&6; }
7806 else
7807   { echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6; }
7809 fi
7810
7811
7812 # Extract the first word of "groff", so it can be a program name with args.
7813 set dummy groff; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_GROFF+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   case $GROFF in
7820   [\\/]* | ?:[\\/]*)
7821   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7822   ;;
7823   *)
7824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829   for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839   ;;
7840 esac
7841 fi
7842 GROFF=$ac_cv_path_GROFF
7843 if test -n "$GROFF"; then
7844   { echo "$as_me:$LINENO: result: $GROFF" >&5
7845 echo "${ECHO_T}$GROFF" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7849 fi
7850
7851
7852 # Extract the first word of "gzip", so it can be a program name with args.
7853 set dummy gzip; ac_word=$2
7854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7856 if test "${ac_cv_path_GZIP+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   case $GZIP in
7860   [\\/]* | ?:[\\/]*)
7861   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7862   ;;
7863   *)
7864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869   for ac_exec_ext in '' $ac_executable_extensions; do
7870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7871     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876 done
7877 IFS=$as_save_IFS
7878
7879   ;;
7880 esac
7881 fi
7882 GZIP=$ac_cv_path_GZIP
7883 if test -n "$GZIP"; then
7884   { echo "$as_me:$LINENO: result: $GZIP" >&5
7885 echo "${ECHO_T}$GZIP" >&6; }
7886 else
7887   { echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6; }
7889 fi
7890
7891
7892 # Extract the first word of "pod2html", so it can be a program name with args.
7893 set dummy pod2html; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_POD2HTML+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   case $POD2HTML in
7900   [\\/]* | ?:[\\/]*)
7901   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7902   ;;
7903   *)
7904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907   IFS=$as_save_IFS
7908   test -z "$as_dir" && as_dir=.
7909   for ac_exec_ext in '' $ac_executable_extensions; do
7910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7911     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913     break 2
7914   fi
7915 done
7916 done
7917 IFS=$as_save_IFS
7918
7919   ;;
7920 esac
7921 fi
7922 POD2HTML=$ac_cv_path_POD2HTML
7923 if test -n "$POD2HTML"; then
7924   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7925 echo "${ECHO_T}$POD2HTML" >&6; }
7926 else
7927   { echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6; }
7929 fi
7930
7931
7932 # Extract the first word of "pod2man", so it can be a program name with args.
7933 set dummy pod2man; ac_word=$2
7934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936 if test "${ac_cv_path_POD2MAN+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   case $POD2MAN in
7940   [\\/]* | ?:[\\/]*)
7941   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7942   ;;
7943   *)
7944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949   for ac_exec_ext in '' $ac_executable_extensions; do
7950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7951     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956 done
7957 IFS=$as_save_IFS
7958
7959   ;;
7960 esac
7961 fi
7962 POD2MAN=$ac_cv_path_POD2MAN
7963 if test -n "$POD2MAN"; then
7964   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7965 echo "${ECHO_T}$POD2MAN" >&6; }
7966 else
7967   { echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6; }
7969 fi
7970
7971
7972 # Extract the first word of "runtest", so it can be a program name with args.
7973 set dummy runtest; ac_word=$2
7974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7976 if test "${ac_cv_path_RUNTEST+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   case $RUNTEST in
7980   [\\/]* | ?:[\\/]*)
7981   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7982   ;;
7983   *)
7984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989   for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999   ;;
8000 esac
8001 fi
8002 RUNTEST=$ac_cv_path_RUNTEST
8003 if test -n "$RUNTEST"; then
8004   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8005 echo "${ECHO_T}$RUNTEST" >&6; }
8006 else
8007   { echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6; }
8009 fi
8010
8011
8012
8013 no_itcl=true
8014 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8015 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8016
8017 # Check whether --with-tclinclude was given.
8018 if test "${with_tclinclude+set}" = set; then
8019   withval=$with_tclinclude; with_tclinclude=${withval}
8020 else
8021   with_tclinclude=''
8022 fi
8023
8024 if test "${ac_cv_path_tclsh+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027
8028 if test x"${with_tclinclude}" != x ; then
8029   if test -f ${with_tclinclude}/tclsh ; then
8030     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8031   elif test -f ${with_tclinclude}/src/tclsh ; then
8032     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8033   else
8034     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8035 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8036    { (exit 1); exit 1; }; }
8037   fi
8038 fi
8039
8040 if test x"${ac_cv_path_tclsh}" = x ; then
8041   { echo "$as_me:$LINENO: result: none" >&5
8042 echo "${ECHO_T}none" >&6; }
8043   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
8044 do
8045   # Extract the first word of "$ac_prog", so it can be a program name with args.
8046 set dummy $ac_prog; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_TCLSH+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   case $TCLSH in
8053   [\\/]* | ?:[\\/]*)
8054   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8055   ;;
8056   *)
8057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062   for ac_exec_ext in '' $ac_executable_extensions; do
8063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072   ;;
8073 esac
8074 fi
8075 TCLSH=$ac_cv_path_TCLSH
8076 if test -n "$TCLSH"; then
8077   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8078 echo "${ECHO_T}$TCLSH" >&6; }
8079 else
8080   { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8082 fi
8083
8084
8085   test -n "$TCLSH" && break
8086 done
8087
8088   if test x"${TCLSH}" = x ; then
8089     ac_cv_path_tclsh='';
8090   else
8091     ac_cv_path_tclsh="${TCLSH}";
8092   fi
8093 else
8094   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8095 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8096   TCLSH="${ac_cv_path_tclsh}"
8097
8098 fi
8099
8100 fi
8101
8102 # Extract the first word of "zip", so it can be a program name with args.
8103 set dummy zip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_path_ZIP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   case $ZIP in
8110   [\\/]* | ?:[\\/]*)
8111   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8112   ;;
8113   *)
8114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129   ;;
8130 esac
8131 fi
8132 ZIP=$ac_cv_path_ZIP
8133 if test -n "$ZIP"; then
8134   { echo "$as_me:$LINENO: result: $ZIP" >&5
8135 echo "${ECHO_T}$ZIP" >&6; }
8136 else
8137   { echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6; }
8139 fi
8140
8141
8142 for ac_prog in ocamlc.opt ocamlc
8143 do
8144   # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_path_OCAMLC+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   case $OCAMLC in
8152   [\\/]* | ?:[\\/]*)
8153   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8154   ;;
8155   *)
8156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161   for ac_exec_ext in '' $ac_executable_extensions; do
8162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8163     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171   ;;
8172 esac
8173 fi
8174 OCAMLC=$ac_cv_path_OCAMLC
8175 if test -n "$OCAMLC"; then
8176   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8177 echo "${ECHO_T}$OCAMLC" >&6; }
8178 else
8179   { echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6; }
8181 fi
8182
8183
8184   test -n "$OCAMLC" && break
8185 done
8186
8187 for ac_prog in ocamlopt.opt ocamlopt
8188 do
8189   # Extract the first word of "$ac_prog", so it can be a program name with args.
8190 set dummy $ac_prog; ac_word=$2
8191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   case $OCAMLOPT in
8197   [\\/]* | ?:[\\/]*)
8198   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8199   ;;
8200   *)
8201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206   for ac_exec_ext in '' $ac_executable_extensions; do
8207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8208     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216   ;;
8217 esac
8218 fi
8219 OCAMLOPT=$ac_cv_path_OCAMLOPT
8220 if test -n "$OCAMLOPT"; then
8221   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8222 echo "${ECHO_T}$OCAMLOPT" >&6; }
8223 else
8224   { echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6; }
8226 fi
8227
8228
8229   test -n "$OCAMLOPT" && break
8230 done
8231
8232 for ac_prog in ocamldep.opt ocamldep
8233 do
8234   # Extract the first word of "$ac_prog", so it can be a program name with args.
8235 set dummy $ac_prog; ac_word=$2
8236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   case $OCAMLDEP in
8242   [\\/]* | ?:[\\/]*)
8243   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8244   ;;
8245   *)
8246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   test -z "$as_dir" && as_dir=.
8251   for ac_exec_ext in '' $ac_executable_extensions; do
8252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8253     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255     break 2
8256   fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261   ;;
8262 esac
8263 fi
8264 OCAMLDEP=$ac_cv_path_OCAMLDEP
8265 if test -n "$OCAMLDEP"; then
8266   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8267 echo "${ECHO_T}$OCAMLDEP" >&6; }
8268 else
8269   { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271 fi
8272
8273
8274   test -n "$OCAMLDEP" && break
8275 done
8276
8277 for ac_prog in ocamldoc.opt ocamldoc
8278 do
8279   # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   case $OCAMLDOC in
8287   [\\/]* | ?:[\\/]*)
8288   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8289   ;;
8290   *)
8291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296   for ac_exec_ext in '' $ac_executable_extensions; do
8297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306   ;;
8307 esac
8308 fi
8309 OCAMLDOC=$ac_cv_path_OCAMLDOC
8310 if test -n "$OCAMLDOC"; then
8311   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8312 echo "${ECHO_T}$OCAMLDOC" >&6; }
8313 else
8314   { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8316 fi
8317
8318
8319   test -n "$OCAMLDOC" && break
8320 done
8321
8322
8323 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8324 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8325 if test "${llvm_cv_link_use_r+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328    ac_ext=c
8329 ac_cpp='$CPP $CPPFLAGS'
8330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8333
8334   oldcflags="$CFLAGS"
8335   CFLAGS="$CFLAGS -Wl,-R."
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343 int
8344 main ()
8345 {
8346 int main() { return 0; }
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (ac_try="$ac_link"
8353 case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_link") 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; } &&
8375          { ac_try='test -s conftest$ac_exeext'
8376   { (case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_try") 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   llvm_cv_link_use_r=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         llvm_cv_link_use_r=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext \
8394       conftest$ac_exeext conftest.$ac_ext
8395   CFLAGS="$oldcflags"
8396   ac_ext=c
8397 ac_cpp='$CPP $CPPFLAGS'
8398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403 fi
8404 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8405 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8406 if test "$llvm_cv_link_use_r" = yes ; then
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_LINK_R 1
8410 _ACEOF
8411
8412   fi
8413
8414
8415
8416
8417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8419 if test "${ac_cv_c_const+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 int
8430 main ()
8431 {
8432 /* FIXME: Include the comments suggested by Paul. */
8433 #ifndef __cplusplus
8434   /* Ultrix mips cc rejects this.  */
8435   typedef int charset[2];
8436   const charset x;
8437   /* SunOS 4.1.1 cc rejects this.  */
8438   char const *const *ccp;
8439   char **p;
8440   /* NEC SVR4.0.2 mips cc rejects this.  */
8441   struct point {int x, y;};
8442   static struct point const zero = {0,0};
8443   /* AIX XL C 1.02.0.0 rejects this.
8444      It does not let you subtract one const X* pointer from another in
8445      an arm of an if-expression whose if-part is not a constant
8446      expression */
8447   const char *g = "string";
8448   ccp = &g + (g ? g-g : 0);
8449   /* HPUX 7.0 cc rejects these. */
8450   ++ccp;
8451   p = (char**) ccp;
8452   ccp = (char const *const *) p;
8453   { /* SCO 3.2v4 cc rejects this.  */
8454     char *t;
8455     char const *s = 0 ? (char *) 0 : (char const *) 0;
8456
8457     *t++ = 0;
8458     if (s) return 0;
8459   }
8460   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8461     int x[] = {25, 17};
8462     const int *foo = &x[0];
8463     ++foo;
8464   }
8465   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8466     typedef const int *iptr;
8467     iptr p = 0;
8468     ++p;
8469   }
8470   { /* AIX XL C 1.02.0.0 rejects this saying
8471        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8472     struct s { int j; const int *ap[3]; };
8473     struct s *b; b->j = 5;
8474   }
8475   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8476     const int foo = 10;
8477     if (!foo) return 0;
8478   }
8479   return !x[0] && !zero.x;
8480 #endif
8481
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490   *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493   (eval "$ac_compile") 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest.$ac_objext'
8511   { (case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_try") 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; }; then
8520   ac_cv_c_const=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525         ac_cv_c_const=no
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 fi
8530 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8531 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8532 if test $ac_cv_c_const = no; then
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define const
8536 _ACEOF
8537
8538 fi
8539
8540
8541
8542
8543
8544
8545 ac_header_dirent=no
8546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8547   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8548 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8549 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559 #include <sys/types.h>
8560 #include <$ac_hdr>
8561
8562 int
8563 main ()
8564 {
8565 if ((DIR *) 0)
8566 return 0;
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_compile") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586   { (case "(($ac_try" in
8587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588   *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591   (eval "$ac_try") 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest.$ac_objext'
8596   { (case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_try") 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   eval "$as_ac_Header=yes"
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         eval "$as_ac_Header=no"
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 ac_res=`eval echo '${'$as_ac_Header'}'`
8616                { echo "$as_me:$LINENO: result: $ac_res" >&5
8617 echo "${ECHO_T}$ac_res" >&6; }
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619   cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8621 _ACEOF
8622
8623 ac_header_dirent=$ac_hdr; break
8624 fi
8625
8626 done
8627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628 if test $ac_header_dirent = dirent.h; then
8629   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8631 if test "${ac_cv_search_opendir+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   ac_func_search_save_LIBS=$LIBS
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641
8642 /* Override any GCC internal prototype to avoid an error.
8643    Use char because int might match the return type of a GCC
8644    builtin and then its argument prototype would still apply.  */
8645 #ifdef __cplusplus
8646 extern "C"
8647 #endif
8648 char opendir ();
8649 int
8650 main ()
8651 {
8652 return opendir ();
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 for ac_lib in '' dir; do
8658   if test -z "$ac_lib"; then
8659     ac_res="none required"
8660   else
8661     ac_res=-l$ac_lib
8662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8663   fi
8664   rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (ac_try="$ac_link"
8666 case "(($ac_try" in
8667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668   *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671   (eval "$ac_link") 2>conftest.er1
8672   ac_status=$?
8673   grep -v '^ *+' conftest.er1 >conftest.err
8674   rm -f conftest.er1
8675   cat conftest.err >&5
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); } &&
8678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679   { (case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_try") 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; } &&
8688          { ac_try='test -s conftest$ac_exeext'
8689   { (case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_try") 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; }; then
8698   ac_cv_search_opendir=$ac_res
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext \
8707       conftest$ac_exeext
8708   if test "${ac_cv_search_opendir+set}" = set; then
8709   break
8710 fi
8711 done
8712 if test "${ac_cv_search_opendir+set}" = set; then
8713   :
8714 else
8715   ac_cv_search_opendir=no
8716 fi
8717 rm conftest.$ac_ext
8718 LIBS=$ac_func_search_save_LIBS
8719 fi
8720 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8721 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8722 ac_res=$ac_cv_search_opendir
8723 if test "$ac_res" != no; then
8724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8725
8726 fi
8727
8728 else
8729   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8731 if test "${ac_cv_search_opendir+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   ac_func_search_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any GCC internal prototype to avoid an error.
8743    Use char because int might match the return type of a GCC
8744    builtin and then its argument prototype would still apply.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 char opendir ();
8749 int
8750 main ()
8751 {
8752 return opendir ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 for ac_lib in '' x; do
8758   if test -z "$ac_lib"; then
8759     ac_res="none required"
8760   else
8761     ac_res=-l$ac_lib
8762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8763   fi
8764   rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (ac_try="$ac_link"
8766 case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_link") 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779   { (case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_try") 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; } &&
8788          { ac_try='test -s conftest$ac_exeext'
8789   { (case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794   (eval "$ac_try") 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_search_opendir=$ac_res
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803
8804 fi
8805
8806 rm -f core conftest.err conftest.$ac_objext \
8807       conftest$ac_exeext
8808   if test "${ac_cv_search_opendir+set}" = set; then
8809   break
8810 fi
8811 done
8812 if test "${ac_cv_search_opendir+set}" = set; then
8813   :
8814 else
8815   ac_cv_search_opendir=no
8816 fi
8817 rm conftest.$ac_ext
8818 LIBS=$ac_func_search_save_LIBS
8819 fi
8820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8822 ac_res=$ac_cv_search_opendir
8823 if test "$ac_res" != no; then
8824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8825
8826 fi
8827
8828 fi
8829
8830
8831 for ac_header in dlfcn.h
8832 do
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 fi
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841                { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8843 else
8844   # Is the header compilable?
8845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 $ac_includes_default
8854 #include <$ac_header>
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860   *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863   (eval "$ac_compile") 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871   { (case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; } &&
8880          { ac_try='test -s conftest.$ac_objext'
8881   { (case "(($ac_try" in
8882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883   *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886   (eval "$ac_try") 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; }; then
8890   ac_header_compiler=yes
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895         ac_header_compiler=no
8896 fi
8897
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8900 echo "${ECHO_T}$ac_header_compiler" >&6; }
8901
8902 # Is the header present?
8903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #include <$ac_header>
8912 _ACEOF
8913 if { (ac_try="$ac_cpp conftest.$ac_ext"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } >/dev/null; then
8926   if test -s conftest.err; then
8927     ac_cpp_err=$ac_c_preproc_warn_flag
8928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8929   else
8930     ac_cpp_err=
8931   fi
8932 else
8933   ac_cpp_err=yes
8934 fi
8935 if test -z "$ac_cpp_err"; then
8936   ac_header_preproc=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941   ac_header_preproc=no
8942 fi
8943
8944 rm -f conftest.err conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946 echo "${ECHO_T}$ac_header_preproc" >&6; }
8947
8948 # So?  What about this header?
8949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950   yes:no: )
8951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8955     ac_header_preproc=yes
8956     ;;
8957   no:yes:* )
8958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8970     ( cat <<\_ASBOX
8971 ## ----------------------------------- ##
8972 ## Report this to llvmbugs@cs.uiuc.edu ##
8973 ## ----------------------------------- ##
8974 _ASBOX
8975      ) | sed "s/^/$as_me: WARNING:     /" >&2
8976     ;;
8977 esac
8978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   eval "$as_ac_Header=\$ac_header_preproc"
8984 fi
8985 ac_res=`eval echo '${'$as_ac_Header'}'`
8986                { echo "$as_me:$LINENO: result: $ac_res" >&5
8987 echo "${ECHO_T}$ac_res" >&6; }
8988
8989 fi
8990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991   cat >>confdefs.h <<_ACEOF
8992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993 _ACEOF
8994
8995 fi
8996
8997 done
8998
8999 # Check whether --enable-ltdl-install was given.
9000 if test "${enable_ltdl_install+set}" = set; then
9001   enableval=$enable_ltdl_install;
9002 fi
9003
9004
9005  if test x"${enable_ltdl_install-no}" != xno; then
9006   INSTALL_LTDL_TRUE=
9007   INSTALL_LTDL_FALSE='#'
9008 else
9009   INSTALL_LTDL_TRUE='#'
9010   INSTALL_LTDL_FALSE=
9011 fi
9012
9013  if test x"${enable_ltdl_convenience-no}" != xno; then
9014   CONVENIENCE_LTDL_TRUE=
9015   CONVENIENCE_LTDL_FALSE='#'
9016 else
9017   CONVENIENCE_LTDL_TRUE='#'
9018   CONVENIENCE_LTDL_FALSE=
9019 fi
9020
9021
9022 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9024 library_names_spec=
9025 libname_spec='lib$name'
9026 soname_spec=
9027 shrext_cmds=".so"
9028 postinstall_cmds=
9029 postuninstall_cmds=
9030 finish_cmds=
9031 finish_eval=
9032 shlibpath_var=
9033 shlibpath_overrides_runpath=unknown
9034 version_type=none
9035 dynamic_linker="$host_os ld.so"
9036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9037 if test "$GCC" = yes; then
9038   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9039   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9040     # if the path contains ";" then we assume it to be the separator
9041     # otherwise default to the standard path separator (i.e. ":") - it is
9042     # assumed that no part of a normal pathname contains ";" but that should
9043     # okay in the real world where ";" in dirpaths is itself problematic.
9044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9045   else
9046     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9047   fi
9048 else
9049   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9050 fi
9051 need_lib_prefix=unknown
9052 hardcode_into_libs=no
9053
9054 # when you set need_version to no, make sure it does not cause -set_version
9055 # flags to be left without arguments
9056 need_version=unknown
9057
9058 case $host_os in
9059 aix3*)
9060   version_type=linux
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9062   shlibpath_var=LIBPATH
9063
9064   # AIX 3 has no versioning support, so we append a major version to the name.
9065   soname_spec='${libname}${release}${shared_ext}$major'
9066   ;;
9067
9068 aix4* | aix5*)
9069   version_type=linux
9070   need_lib_prefix=no
9071   need_version=no
9072   hardcode_into_libs=yes
9073   if test "$host_cpu" = ia64; then
9074     # AIX 5 supports IA64
9075     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9076     shlibpath_var=LD_LIBRARY_PATH
9077   else
9078     # With GCC up to 2.95.x, collect2 would create an import file
9079     # for dependence libraries.  The import file would start with
9080     # the line `#! .'.  This would cause the generated library to
9081     # depend on `.', always an invalid library.  This was fixed in
9082     # development snapshots of GCC prior to 3.0.
9083     case $host_os in
9084       aix4 | aix4.[01] | aix4.[01].*)
9085       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9086            echo ' yes '
9087            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9088         :
9089       else
9090         can_build_shared=no
9091       fi
9092       ;;
9093     esac
9094     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9095     # soname into executable. Probably we can add versioning support to
9096     # collect2, so additional links can be useful in future.
9097     if test "$aix_use_runtimelinking" = yes; then
9098       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9099       # instead of lib<name>.a to let people know that these are not
9100       # typical AIX shared libraries.
9101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102     else
9103       # We preserve .a as extension for shared libraries through AIX4.2
9104       # and later when we are not doing run time linking.
9105       library_names_spec='${libname}${release}.a $libname.a'
9106       soname_spec='${libname}${release}${shared_ext}$major'
9107     fi
9108     shlibpath_var=LIBPATH
9109   fi
9110   ;;
9111
9112 amigaos*)
9113   library_names_spec='$libname.ixlibrary $libname.a'
9114   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9115   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'
9116   ;;
9117
9118 beos*)
9119   library_names_spec='${libname}${shared_ext}'
9120   dynamic_linker="$host_os ld.so"
9121   shlibpath_var=LIBRARY_PATH
9122   ;;
9123
9124 bsdi[45]*)
9125   version_type=linux
9126   need_version=no
9127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128   soname_spec='${libname}${release}${shared_ext}$major'
9129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9133   # the default ld.so.conf also contains /usr/contrib/lib and
9134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9135   # libtool to hard-code these into programs
9136   ;;
9137
9138 cygwin* | mingw* | pw32*)
9139   version_type=windows
9140   shrext_cmds=".dll"
9141   need_version=no
9142   need_lib_prefix=no
9143
9144   case $GCC,$host_os in
9145   yes,cygwin* | yes,mingw* | yes,pw32*)
9146     library_names_spec='$libname.dll.a'
9147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9148     postinstall_cmds='base_file=`basename \${file}`~
9149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9150       dldir=$destdir/`dirname \$dlpath`~
9151       test -d \$dldir || mkdir -p \$dldir~
9152       $install_prog $dir/$dlname \$dldir/$dlname~
9153       chmod a+x \$dldir/$dlname'
9154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9155       dlpath=$dir/\$dldll~
9156        $rm \$dlpath'
9157     shlibpath_overrides_runpath=yes
9158
9159     case $host_os in
9160     cygwin*)
9161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9164       ;;
9165     mingw*)
9166       # MinGW DLLs use traditional 'lib' prefix
9167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9169       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9170         # It is most probably a Windows format PATH printed by
9171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9172         # path with ; separators, and with drive letters. We can handle the
9173         # drive letters (cygwin fileutils understands them), so leave them,
9174         # especially as we might pass files found there to a mingw objdump,
9175         # which wouldn't understand a cygwinified path. Ahh.
9176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9177       else
9178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9179       fi
9180       ;;
9181     pw32*)
9182       # pw32 DLLs use 'pw' prefix rather than 'lib'
9183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9184       ;;
9185     esac
9186     ;;
9187
9188   *)
9189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9190     ;;
9191   esac
9192   dynamic_linker='Win32 ld.exe'
9193   # FIXME: first we should search . and the directory the executable is in
9194   shlibpath_var=PATH
9195   ;;
9196
9197 darwin* | rhapsody*)
9198   dynamic_linker="$host_os dyld"
9199   version_type=darwin
9200   need_lib_prefix=no
9201   need_version=no
9202   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9203   soname_spec='${libname}${release}${major}$shared_ext'
9204   shlibpath_overrides_runpath=yes
9205   shlibpath_var=DYLD_LIBRARY_PATH
9206   shrext_cmds='.dylib'
9207   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9208   if test "$GCC" = yes; then
9209     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"`
9210   else
9211     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9212   fi
9213   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9214   ;;
9215
9216 dgux*)
9217   version_type=linux
9218   need_lib_prefix=no
9219   need_version=no
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9221   soname_spec='${libname}${release}${shared_ext}$major'
9222   shlibpath_var=LD_LIBRARY_PATH
9223   ;;
9224
9225 freebsd1*)
9226   dynamic_linker=no
9227   ;;
9228
9229 kfreebsd*-gnu)
9230   version_type=linux
9231   need_lib_prefix=no
9232   need_version=no
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9234   soname_spec='${libname}${release}${shared_ext}$major'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   shlibpath_overrides_runpath=no
9237   hardcode_into_libs=yes
9238   dynamic_linker='GNU ld.so'
9239   ;;
9240
9241 freebsd* | dragonfly*)
9242   # DragonFly does not have aout.  When/if they implement a new
9243   # versioning mechanism, adjust this.
9244   if test -x /usr/bin/objformat; then
9245     objformat=`/usr/bin/objformat`
9246   else
9247     case $host_os in
9248     freebsd[123]*) objformat=aout ;;
9249     *) objformat=elf ;;
9250     esac
9251   fi
9252   version_type=freebsd-$objformat
9253   case $version_type in
9254     freebsd-elf*)
9255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9256       need_version=no
9257       need_lib_prefix=no
9258       ;;
9259     freebsd-*)
9260       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9261       need_version=yes
9262       ;;
9263   esac
9264   shlibpath_var=LD_LIBRARY_PATH
9265   case $host_os in
9266   freebsd2*)
9267     shlibpath_overrides_runpath=yes
9268     ;;
9269   freebsd3.[01]* | freebsdelf3.[01]*)
9270     shlibpath_overrides_runpath=yes
9271     hardcode_into_libs=yes
9272     ;;
9273   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9274   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9275     shlibpath_overrides_runpath=no
9276     hardcode_into_libs=yes
9277     ;;
9278   freebsd*) # from 4.6 on
9279     shlibpath_overrides_runpath=yes
9280     hardcode_into_libs=yes
9281     ;;
9282   esac
9283   ;;
9284
9285 gnu*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   hardcode_into_libs=yes
9293   ;;
9294
9295 hpux9* | hpux10* | hpux11*)
9296   # Give a soname corresponding to the major version so that dld.sl refuses to
9297   # link against other versions.
9298   version_type=sunos
9299   need_lib_prefix=no
9300   need_version=no
9301   case $host_cpu in
9302   ia64*)
9303     shrext_cmds='.so'
9304     hardcode_into_libs=yes
9305     dynamic_linker="$host_os dld.so"
9306     shlibpath_var=LD_LIBRARY_PATH
9307     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309     soname_spec='${libname}${release}${shared_ext}$major'
9310     if test "X$HPUX_IA64_MODE" = X32; then
9311       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9312     else
9313       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9314     fi
9315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9316     ;;
9317    hppa*64*)
9318      shrext_cmds='.sl'
9319      hardcode_into_libs=yes
9320      dynamic_linker="$host_os dld.sl"
9321      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9322      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9323      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324      soname_spec='${libname}${release}${shared_ext}$major'
9325      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9326      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9327      ;;
9328    *)
9329     shrext_cmds='.sl'
9330     dynamic_linker="$host_os dld.sl"
9331     shlibpath_var=SHLIB_PATH
9332     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334     soname_spec='${libname}${release}${shared_ext}$major'
9335     ;;
9336   esac
9337   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9338   postinstall_cmds='chmod 555 $lib'
9339   ;;
9340
9341 interix3*)
9342   version_type=linux
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9348   shlibpath_var=LD_LIBRARY_PATH
9349   shlibpath_overrides_runpath=no
9350   hardcode_into_libs=yes
9351   ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354   case $host_os in
9355     nonstopux*) version_type=nonstopux ;;
9356     *)
9357         if test "$lt_cv_prog_gnu_ld" = yes; then
9358                 version_type=linux
9359         else
9360                 version_type=irix
9361         fi ;;
9362   esac
9363   need_lib_prefix=no
9364   need_version=no
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9367   case $host_os in
9368   irix5* | nonstopux*)
9369     libsuff= shlibsuff=
9370     ;;
9371   *)
9372     case $LD in # libtool.m4 will add one of these switches to LD
9373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374       libsuff= shlibsuff= libmagic=32-bit;;
9375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376       libsuff=32 shlibsuff=N32 libmagic=N32;;
9377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379     *) libsuff= shlibsuff= libmagic=never-match;;
9380     esac
9381     ;;
9382   esac
9383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384   shlibpath_overrides_runpath=no
9385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387   hardcode_into_libs=yes
9388   ;;
9389
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9392   dynamic_linker=no
9393   ;;
9394
9395 # This must be Linux ELF.
9396 linux*)
9397   version_type=linux
9398   need_lib_prefix=no
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   shlibpath_overrides_runpath=no
9405   # This implies no fast_install, which is unacceptable.
9406   # Some rework will be needed to allow for fast_install
9407   # before this can be enabled.
9408   hardcode_into_libs=yes
9409
9410   # Append ld.so.conf contents to the search path
9411   if test -f /etc/ld.so.conf; then
9412     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' ' '`
9413     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9414   fi
9415
9416   # We used to test for /lib/ld.so.1 and disable shared libraries on
9417   # powerpc, because MkLinux only supported shared libraries with the
9418   # GNU dynamic linker.  Since this was broken with cross compilers,
9419   # most powerpc-linux boxes support dynamic linking these days and
9420   # people can always --disable-shared, the test was removed, and we
9421   # assume the GNU/Linux dynamic linker is in use.
9422   dynamic_linker='GNU/Linux ld.so'
9423   ;;
9424
9425 knetbsd*-gnu)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=no
9433   hardcode_into_libs=yes
9434   dynamic_linker='GNU ld.so'
9435   ;;
9436
9437 netbsd*)
9438   version_type=sunos
9439   need_lib_prefix=no
9440   need_version=no
9441   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444     dynamic_linker='NetBSD (a.out) ld.so'
9445   else
9446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447     soname_spec='${libname}${release}${shared_ext}$major'
9448     dynamic_linker='NetBSD ld.elf_so'
9449   fi
9450   shlibpath_var=LD_LIBRARY_PATH
9451   shlibpath_overrides_runpath=yes
9452   hardcode_into_libs=yes
9453   ;;
9454
9455 newsos6)
9456   version_type=linux
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=yes
9460   ;;
9461
9462 nto-qnx*)
9463   version_type=linux
9464   need_lib_prefix=no
9465   need_version=no
9466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467   soname_spec='${libname}${release}${shared_ext}$major'
9468   shlibpath_var=LD_LIBRARY_PATH
9469   shlibpath_overrides_runpath=yes
9470   ;;
9471
9472 openbsd*)
9473   version_type=sunos
9474   sys_lib_dlsearch_path_spec="/usr/lib"
9475   need_lib_prefix=no
9476   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9477   case $host_os in
9478     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9479     *)                         need_version=no  ;;
9480   esac
9481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9483   shlibpath_var=LD_LIBRARY_PATH
9484   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485     case $host_os in
9486       openbsd2.[89] | openbsd2.[89].*)
9487         shlibpath_overrides_runpath=no
9488         ;;
9489       *)
9490         shlibpath_overrides_runpath=yes
9491         ;;
9492       esac
9493   else
9494     shlibpath_overrides_runpath=yes
9495   fi
9496   ;;
9497
9498 os2*)
9499   libname_spec='$name'
9500   shrext_cmds=".dll"
9501   need_lib_prefix=no
9502   library_names_spec='$libname${shared_ext} $libname.a'
9503   dynamic_linker='OS/2 ld.exe'
9504   shlibpath_var=LIBPATH
9505   ;;
9506
9507 osf3* | osf4* | osf5*)
9508   version_type=osf
9509   need_lib_prefix=no
9510   need_version=no
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513   shlibpath_var=LD_LIBRARY_PATH
9514   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9515   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9516   ;;
9517
9518 solaris*)
9519   version_type=linux
9520   need_lib_prefix=no
9521   need_version=no
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523   soname_spec='${libname}${release}${shared_ext}$major'
9524   shlibpath_var=LD_LIBRARY_PATH
9525   shlibpath_overrides_runpath=yes
9526   hardcode_into_libs=yes
9527   # ldd complains unless libraries are executable
9528   postinstall_cmds='chmod +x $lib'
9529   ;;
9530
9531 sunos4*)
9532   version_type=sunos
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   shlibpath_overrides_runpath=yes
9537   if test "$with_gnu_ld" = yes; then
9538     need_lib_prefix=no
9539   fi
9540   need_version=yes
9541   ;;
9542
9543 sysv4 | sysv4.3*)
9544   version_type=linux
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   case $host_vendor in
9549     sni)
9550       shlibpath_overrides_runpath=no
9551       need_lib_prefix=no
9552       export_dynamic_flag_spec='${wl}-Blargedynsym'
9553       runpath_var=LD_RUN_PATH
9554       ;;
9555     siemens)
9556       need_lib_prefix=no
9557       ;;
9558     motorola)
9559       need_lib_prefix=no
9560       need_version=no
9561       shlibpath_overrides_runpath=no
9562       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9563       ;;
9564   esac
9565   ;;
9566
9567 sysv4*MP*)
9568   if test -d /usr/nec ;then
9569     version_type=linux
9570     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571     soname_spec='$libname${shared_ext}.$major'
9572     shlibpath_var=LD_LIBRARY_PATH
9573   fi
9574   ;;
9575
9576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577   version_type=freebsd-elf
9578   need_lib_prefix=no
9579   need_version=no
9580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581   soname_spec='${libname}${release}${shared_ext}$major'
9582   shlibpath_var=LD_LIBRARY_PATH
9583   hardcode_into_libs=yes
9584   if test "$with_gnu_ld" = yes; then
9585     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9586     shlibpath_overrides_runpath=no
9587   else
9588     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589     shlibpath_overrides_runpath=yes
9590     case $host_os in
9591       sco3.2v5*)
9592         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9593         ;;
9594     esac
9595   fi
9596   sys_lib_dlsearch_path_spec='/usr/lib'
9597   ;;
9598
9599 uts4*)
9600   version_type=linux
9601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602   soname_spec='${libname}${release}${shared_ext}$major'
9603   shlibpath_var=LD_LIBRARY_PATH
9604   ;;
9605
9606 *)
9607   dynamic_linker=no
9608   ;;
9609 esac
9610 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9611 echo "${ECHO_T}$dynamic_linker" >&6; }
9612 test "$dynamic_linker" = no && can_build_shared=no
9613
9614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9615 if test "$GCC" = yes; then
9616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9617 fi
9618
9619
9620 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9621 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9622 if test "${libltdl_cv_shlibext+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625
9626 module=yes
9627 eval libltdl_cv_shlibext=$shrext_cmds
9628
9629 fi
9630 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9631 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9632 if test -n "$libltdl_cv_shlibext"; then
9633
9634 cat >>confdefs.h <<_ACEOF
9635 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9636 _ACEOF
9637
9638 fi
9639
9640
9641 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9642 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9643 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   libltdl_cv_shlibpath_var="$shlibpath_var"
9647 fi
9648 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9649 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9650 if test -n "$libltdl_cv_shlibpath_var"; then
9651
9652 cat >>confdefs.h <<_ACEOF
9653 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9654 _ACEOF
9655
9656 fi
9657
9658
9659 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9660 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9661 if test "${libltdl_cv_sys_search_path+set}" = set; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9665 fi
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9667 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9668 if test -n "$libltdl_cv_sys_search_path"; then
9669   sys_search_path=
9670   for dir in $libltdl_cv_sys_search_path; do
9671     if test -z "$sys_search_path"; then
9672       sys_search_path="$dir"
9673     else
9674       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9675     fi
9676   done
9677
9678 cat >>confdefs.h <<_ACEOF
9679 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9680 _ACEOF
9681
9682 fi
9683
9684 { echo "$as_me:$LINENO: checking for objdir" >&5
9685 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9686 if test "${libltdl_cv_objdir+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   libltdl_cv_objdir="$objdir"
9690   if test -n "$objdir"; then
9691     :
9692   else
9693     rm -f .libs 2>/dev/null
9694     mkdir .libs 2>/dev/null
9695     if test -d .libs; then
9696       libltdl_cv_objdir=.libs
9697     else
9698       # MS-DOS does not allow filenames that begin with a dot.
9699       libltdl_cv_objdir=_libs
9700     fi
9701   rmdir .libs 2>/dev/null
9702   fi
9703
9704 fi
9705 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9706 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9710 _ACEOF
9711
9712
9713
9714
9715
9716
9717 # Check for command to grab the raw symbol name followed by C symbol from nm.
9718 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9719 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723
9724 # These are sane defaults that work on at least a few old systems.
9725 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9726
9727 # Character class describing NM global symbol codes.
9728 symcode='[BCDEGRST]'
9729
9730 # Regexp to match symbols that can be accessed directly from C.
9731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9732
9733 # Transform an extracted symbol line into a proper C declaration
9734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9735
9736 # Transform an extracted symbol line into symbol name and symbol address
9737 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'"
9738
9739 # Define system-specific variables.
9740 case $host_os in
9741 aix*)
9742   symcode='[BCDT]'
9743   ;;
9744 cygwin* | mingw* | pw32*)
9745   symcode='[ABCDGISTW]'
9746   ;;
9747 hpux*) # Its linker distinguishes data from code symbols
9748   if test "$host_cpu" = ia64; then
9749     symcode='[ABCDEGRST]'
9750   fi
9751   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9752   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'"
9753   ;;
9754 linux*)
9755   if test "$host_cpu" = ia64; then
9756     symcode='[ABCDGIRSTW]'
9757     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9758     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'"
9759   fi
9760   ;;
9761 irix* | nonstopux*)
9762   symcode='[BCDEGRST]'
9763   ;;
9764 osf*)
9765   symcode='[BCDEGQRST]'
9766   ;;
9767 solaris*)
9768   symcode='[BDRT]'
9769   ;;
9770 sco3.2v5*)
9771   symcode='[DT]'
9772   ;;
9773 sysv4.2uw2*)
9774   symcode='[DT]'
9775   ;;
9776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9777   symcode='[ABDT]'
9778   ;;
9779 sysv4)
9780   symcode='[DFNSTU]'
9781   ;;
9782 esac
9783
9784 # Handle CRLF in mingw tool chain
9785 opt_cr=
9786 case $build_os in
9787 mingw*)
9788   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9789   ;;
9790 esac
9791
9792 # If we're using GNU nm, then use its standard symbol codes.
9793 case `$NM -V 2>&1` in
9794 *GNU* | *'with BFD'*)
9795   symcode='[ABCDGIRSTW]' ;;
9796 esac
9797
9798 # Try without a prefix undercore, then with it.
9799 for ac_symprfx in "" "_"; do
9800
9801   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9802   symxfrm="\\1 $ac_symprfx\\2 \\2"
9803
9804   # Write the raw and C identifiers.
9805   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9806
9807   # Check to see that the pipe works correctly.
9808   pipe_works=no
9809
9810   rm -f conftest*
9811   cat > conftest.$ac_ext <<EOF
9812 #ifdef __cplusplus
9813 extern "C" {
9814 #endif
9815 char nm_test_var;
9816 void nm_test_func(){}
9817 #ifdef __cplusplus
9818 }
9819 #endif
9820 int main(){nm_test_var='a';nm_test_func();return(0);}
9821 EOF
9822
9823   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824   (eval $ac_compile) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; then
9828     # Now try to grab the symbols.
9829     nlist=conftest.nm
9830     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9831   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } && test -s "$nlist"; then
9835       # Try sorting and uniquifying the output.
9836       if sort "$nlist" | uniq > "$nlist"T; then
9837         mv -f "$nlist"T "$nlist"
9838       else
9839         rm -f "$nlist"T
9840       fi
9841
9842       # Make sure that we snagged all the symbols we need.
9843       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9844         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9845           cat <<EOF > conftest.$ac_ext
9846 #ifdef __cplusplus
9847 extern "C" {
9848 #endif
9849
9850 EOF
9851           # Now generate the symbol file.
9852           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9853
9854           cat <<EOF >> conftest.$ac_ext
9855 #if defined (__STDC__) && __STDC__
9856 # define lt_ptr_t void *
9857 #else
9858 # define lt_ptr_t char *
9859 # define const
9860 #endif
9861
9862 /* The mapping between symbol names and symbols. */
9863 const struct {
9864   const char *name;
9865   lt_ptr_t address;
9866 }
9867 lt_preloaded_symbols[] =
9868 {
9869 EOF
9870           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9871           cat <<\EOF >> conftest.$ac_ext
9872   {0, (lt_ptr_t) 0}
9873 };
9874
9875 #ifdef __cplusplus
9876 }
9877 #endif
9878 EOF
9879           # Now try linking the two files.
9880           mv conftest.$ac_objext conftstm.$ac_objext
9881           lt_save_LIBS="$LIBS"
9882           lt_save_CFLAGS="$CFLAGS"
9883           LIBS="conftstm.$ac_objext"
9884           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9885           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886   (eval $ac_link) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9890             pipe_works=yes
9891           fi
9892           LIBS="$lt_save_LIBS"
9893           CFLAGS="$lt_save_CFLAGS"
9894         else
9895           echo "cannot find nm_test_func in $nlist" >&5
9896         fi
9897       else
9898         echo "cannot find nm_test_var in $nlist" >&5
9899       fi
9900     else
9901       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9902     fi
9903   else
9904     echo "$progname: failed program was:" >&5
9905     cat conftest.$ac_ext >&5
9906   fi
9907   rm -f conftest* conftst*
9908
9909   # Do not use the global_symbol_pipe unless it works.
9910   if test "$pipe_works" = yes; then
9911     break
9912   else
9913     lt_cv_sys_global_symbol_pipe=
9914   fi
9915 done
9916
9917 fi
9918
9919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9920   lt_cv_sys_global_symbol_to_cdecl=
9921 fi
9922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9923   { echo "$as_me:$LINENO: result: failed" >&5
9924 echo "${ECHO_T}failed" >&6; }
9925 else
9926   { echo "$as_me:$LINENO: result: ok" >&5
9927 echo "${ECHO_T}ok" >&6; }
9928 fi
9929
9930
9931 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9932 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9933 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9937     libltdl_cv_preloaded_symbols=yes
9938   else
9939     libltdl_cv_preloaded_symbols=no
9940   fi
9941
9942 fi
9943 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9944 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9945 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9946
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_PRELOADED_SYMBOLS 1
9949 _ACEOF
9950
9951 fi
9952
9953 LIBADD_DL=
9954
9955 ac_ext=c
9956 ac_cpp='$CPP $CPPFLAGS'
9957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9960
9961
9962 { echo "$as_me:$LINENO: checking for shl_load" >&5
9963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9964 if test "${ac_cv_func_shl_load+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9975 #define shl_load innocuous_shl_load
9976
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char shl_load (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981
9982 #ifdef __STDC__
9983 # include <limits.h>
9984 #else
9985 # include <assert.h>
9986 #endif
9987
9988 #undef shl_load
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991    Use char because int might match the return type of a GCC
9992    builtin and then its argument prototype would still apply.  */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char shl_load ();
9997 /* The GNU C library defines this for functions which it implements
9998     to always fail with ENOSYS.  Some functions are actually named
9999     something starting with __ and the normal name is an alias.  */
10000 #if defined __stub_shl_load || defined __stub___shl_load
10001 choke me
10002 #endif
10003
10004 int
10005 main ()
10006 {
10007 return shl_load ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_func_shl_load=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051         ac_cv_func_shl_load=no
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext \
10055       conftest$ac_exeext conftest.$ac_ext
10056 fi
10057 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10059 if test $ac_cv_func_shl_load = yes; then
10060
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_SHL_LOAD 1
10063 _ACEOF
10064
10065 else
10066   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10067 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldld  $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081    Use char because int might match the return type of a GCC
10082    builtin and then its argument prototype would still apply.  */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char shl_load ();
10087 int
10088 main ()
10089 {
10090 return shl_load ();
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_link") 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_dld_shl_load=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134         ac_cv_lib_dld_shl_load=no
10135 fi
10136
10137 rm -f core conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10143 if test $ac_cv_lib_dld_shl_load = yes; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_SHL_LOAD 1
10147 _ACEOF
10148
10149         LIBADD_DL="$LIBADD_DL -ldld"
10150 else
10151   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10152 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-ldl  $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 dlopen ();
10172 int
10173 main ()
10174 {
10175 return dlopen ();
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_dl_dlopen=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219         ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10228 if test $ac_cv_lib_dl_dlopen = yes; then
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_LIBDL 1
10232 _ACEOF
10233
10234                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #if HAVE_DLFCN_H
10243 #  include <dlfcn.h>
10244 #endif
10245
10246 int
10247 main ()
10248 {
10249 dlopen(0, 0);
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (ac_try="$ac_link"
10256 case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_link") 2>conftest.er1
10262   ac_status=$?
10263   grep -v '^ *+' conftest.er1 >conftest.err
10264   rm -f conftest.er1
10265   cat conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } &&
10268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10269   { (case "(($ac_try" in
10270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271   *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274   (eval "$ac_try") 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; } &&
10278          { ac_try='test -s conftest$ac_exeext'
10279   { (case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284   (eval "$ac_try") 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; }; then
10288
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_LIBDL 1
10291 _ACEOF
10292  libltdl_cv_func_dlopen="yes"
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lsvld  $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310
10311 /* Override any GCC internal prototype to avoid an error.
10312    Use char because int might match the return type of a GCC
10313    builtin and then its argument prototype would still apply.  */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char dlopen ();
10318 int
10319 main ()
10320 {
10321 return dlopen ();
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_link") 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } &&
10340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; } &&
10350          { ac_try='test -s conftest$ac_exeext'
10351   { (case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_try") 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   ac_cv_lib_svld_dlopen=yes
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365         ac_cv_lib_svld_dlopen=no
10366 fi
10367
10368 rm -f core conftest.err conftest.$ac_objext \
10369       conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10371 fi
10372 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10373 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10374 if test $ac_cv_lib_svld_dlopen = yes; then
10375
10376 cat >>confdefs.h <<\_ACEOF
10377 #define HAVE_LIBDL 1
10378 _ACEOF
10379
10380                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10381 else
10382   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10383 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldld  $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 dld_link ();
10403 int
10404 main ()
10405 {
10406 return dld_link ();
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_dld_dld_link=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
10458 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10459 if test $ac_cv_lib_dld_dld_link = yes; then
10460
10461 cat >>confdefs.h <<\_ACEOF
10462 #define HAVE_DLD 1
10463 _ACEOF
10464
10465                 LIBADD_DL="$LIBADD_DL -ldld"
10466 else
10467   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10468 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10469 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h.  */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h.  */
10478 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10480 #define _dyld_func_lookup innocuous__dyld_func_lookup
10481
10482 /* System header to define __stub macros and hopefully few prototypes,
10483     which can conflict with char _dyld_func_lookup (); below.
10484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485     <limits.h> exists even on freestanding compilers.  */
10486
10487 #ifdef __STDC__
10488 # include <limits.h>
10489 #else
10490 # include <assert.h>
10491 #endif
10492
10493 #undef _dyld_func_lookup
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char _dyld_func_lookup ();
10502 /* The GNU C library defines this for functions which it implements
10503     to always fail with ENOSYS.  Some functions are actually named
10504     something starting with __ and the normal name is an alias.  */
10505 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10506 choke me
10507 #endif
10508
10509 int
10510 main ()
10511 {
10512 return _dyld_func_lookup ();
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_link") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } &&
10531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532   { (case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_try") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; } &&
10541          { ac_try='test -s conftest$ac_exeext'
10542   { (case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_try") 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_func__dyld_func_lookup=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556         ac_cv_func__dyld_func_lookup=no
10557 fi
10558
10559 rm -f core conftest.err conftest.$ac_objext \
10560       conftest$ac_exeext conftest.$ac_ext
10561 fi
10562 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10563 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10564 if test $ac_cv_func__dyld_func_lookup = yes; then
10565
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_DYLD 1
10568 _ACEOF
10569
10570 fi
10571
10572
10573 fi
10574
10575
10576 fi
10577
10578
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext \
10582       conftest$ac_exeext conftest.$ac_ext
10583
10584 fi
10585
10586
10587 fi
10588
10589
10590 fi
10591
10592
10593 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10594 then
10595   lt_save_LIBS="$LIBS"
10596   LIBS="$LIBS $LIBADD_DL"
10597
10598 for ac_func in dlerror
10599 do
10600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10614 #define $ac_func innocuous_$ac_func
10615
10616 /* System header to define __stub macros and hopefully few prototypes,
10617     which can conflict with char $ac_func (); below.
10618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10619     <limits.h> exists even on freestanding compilers.  */
10620
10621 #ifdef __STDC__
10622 # include <limits.h>
10623 #else
10624 # include <assert.h>
10625 #endif
10626
10627 #undef $ac_func
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630    Use char because int might match the return type of a GCC
10631    builtin and then its argument prototype would still apply.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char $ac_func ();
10636 /* The GNU C library defines this for functions which it implements
10637     to always fail with ENOSYS.  Some functions are actually named
10638     something starting with __ and the normal name is an alias.  */
10639 #if defined __stub_$ac_func || defined __stub___$ac_func
10640 choke me
10641 #endif
10642
10643 int
10644 main ()
10645 {
10646 return $ac_func ();
10647   ;
10648   return 0;
10649 }
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (ac_try="$ac_link"
10653 case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_link") 2>conftest.er1
10659   ac_status=$?
10660   grep -v '^ *+' conftest.er1 >conftest.err
10661   rm -f conftest.er1
10662   cat conftest.err >&5
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } &&
10665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666   { (case "(($ac_try" in
10667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668   *) ac_try_echo=$ac_try;;
10669 esac
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671   (eval "$ac_try") 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (case "(($ac_try" in
10677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678   *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681   (eval "$ac_try") 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   eval "$as_ac_var=yes"
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690         eval "$as_ac_var=no"
10691 fi
10692
10693 rm -f core conftest.err conftest.$ac_objext \
10694       conftest$ac_exeext conftest.$ac_ext
10695 fi
10696 ac_res=`eval echo '${'$as_ac_var'}'`
10697                { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10699 if test `eval echo '${'$as_ac_var'}'` = yes; then
10700   cat >>confdefs.h <<_ACEOF
10701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 fi
10705 done
10706
10707   LIBS="$lt_save_LIBS"
10708 fi
10709 ac_ext=c
10710 ac_cpp='$CPP $CPPFLAGS'
10711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10714
10715
10716
10717 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10718 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10719 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10720   echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722   ac_cv_sys_symbol_underscore=no
10723   cat > conftest.$ac_ext <<EOF
10724 void nm_test_func(){}
10725 int main(){nm_test_func;return 0;}
10726 EOF
10727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728   (eval $ac_compile) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; then
10732     # Now try to grab the symbols.
10733     ac_nlist=conftest.nm
10734     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10735   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } && test -s "$ac_nlist"; then
10739       # See whether the symbols have a leading underscore.
10740       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10741         ac_cv_sys_symbol_underscore=yes
10742       else
10743         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10744           :
10745         else
10746           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10747         fi
10748       fi
10749     else
10750       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10751     fi
10752   else
10753     echo "configure: failed program was:" >&5
10754     cat conftest.c >&5
10755   fi
10756   rm -rf conftest*
10757
10758 fi
10759 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10760 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10761
10762
10763 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10764   if test x"$libltdl_cv_func_dlopen" = xyes ||
10765      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10766         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10767 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10768 if test "${libltdl_cv_need_uscore+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771   libltdl_cv_need_uscore=unknown
10772           save_LIBS="$LIBS"
10773           LIBS="$LIBS $LIBADD_DL"
10774           if test "$cross_compiling" = yes; then :
10775   libltdl_cv_need_uscore=cross
10776 else
10777   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10778   lt_status=$lt_dlunknown
10779   cat > conftest.$ac_ext <<EOF
10780 #line 10780 "configure"
10781 #include "confdefs.h"
10782
10783 #if HAVE_DLFCN_H
10784 #include <dlfcn.h>
10785 #endif
10786
10787 #include <stdio.h>
10788
10789 #ifdef RTLD_GLOBAL
10790 #  define LT_DLGLOBAL           RTLD_GLOBAL
10791 #else
10792 #  ifdef DL_GLOBAL
10793 #    define LT_DLGLOBAL         DL_GLOBAL
10794 #  else
10795 #    define LT_DLGLOBAL         0
10796 #  endif
10797 #endif
10798
10799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800    find out it does not work in some platform. */
10801 #ifndef LT_DLLAZY_OR_NOW
10802 #  ifdef RTLD_LAZY
10803 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10804 #  else
10805 #    ifdef DL_LAZY
10806 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10807 #    else
10808 #      ifdef RTLD_NOW
10809 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10810 #      else
10811 #        ifdef DL_NOW
10812 #          define LT_DLLAZY_OR_NOW      DL_NOW
10813 #        else
10814 #          define LT_DLLAZY_OR_NOW      0
10815 #        endif
10816 #      endif
10817 #    endif
10818 #  endif
10819 #endif
10820
10821 #ifdef __cplusplus
10822 extern "C" void exit (int);
10823 #endif
10824
10825 void fnord() { int i=42;}
10826 int main ()
10827 {
10828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829   int status = $lt_dlunknown;
10830
10831   if (self)
10832     {
10833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10834       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835       /* dlclose (self); */
10836     }
10837   else
10838     puts (dlerror ());
10839
10840     exit (status);
10841 }
10842 EOF
10843   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844   (eval $ac_link) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10848     (./conftest; exit; ) >&5 2>/dev/null
10849     lt_status=$?
10850     case x$lt_status in
10851       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10852       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10853       x$lt_dlunknown|x*)  ;;
10854     esac
10855   else :
10856     # compilation failed
10857
10858   fi
10859 fi
10860 rm -fr conftest*
10861
10862           LIBS="$save_LIBS"
10863
10864 fi
10865 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10866 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10867   fi
10868 fi
10869
10870 if test x"$libltdl_cv_need_uscore" = xyes; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define NEED_USCORE 1
10874 _ACEOF
10875
10876 fi
10877
10878
10879 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10880 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10881 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   # PORTME does your system automatically load deplibs for dlopen?
10885   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10886   # For now, we just catch OSes we know something about -- in the
10887   # future, we'll try test this programmatically.
10888   libltdl_cv_sys_dlopen_deplibs=unknown
10889   case "$host_os" in
10890   aix3*|aix4.1.*|aix4.2.*)
10891     # Unknown whether this is true for these versions of AIX, but
10892     # we want this `case' here to explicitly catch those versions.
10893     libltdl_cv_sys_dlopen_deplibs=unknown
10894     ;;
10895   aix[45]*)
10896     libltdl_cv_sys_dlopen_deplibs=yes
10897     ;;
10898   darwin*)
10899     # Assuming the user has installed a libdl from somewhere, this is true
10900     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10901     libltdl_cv_sys_dlopen_deplibs=yes
10902     ;;
10903   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10904     # GNU and its variants, using gnu ld.so (Glibc)
10905     libltdl_cv_sys_dlopen_deplibs=yes
10906     ;;
10907   hpux10*|hpux11*)
10908     libltdl_cv_sys_dlopen_deplibs=yes
10909     ;;
10910   interix*)
10911     libltdl_cv_sys_dlopen_deplibs=yes
10912     ;;
10913   irix[12345]*|irix6.[01]*)
10914     # Catch all versions of IRIX before 6.2, and indicate that we don't
10915     # know how it worked for any of those versions.
10916     libltdl_cv_sys_dlopen_deplibs=unknown
10917     ;;
10918   irix*)
10919     # The case above catches anything before 6.2, and it's known that
10920     # at 6.2 and later dlopen does load deplibs.
10921     libltdl_cv_sys_dlopen_deplibs=yes
10922     ;;
10923   netbsd*)
10924     libltdl_cv_sys_dlopen_deplibs=yes
10925     ;;
10926   openbsd*)
10927     libltdl_cv_sys_dlopen_deplibs=yes
10928     ;;
10929   osf[1234]*)
10930     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10931     # it did *not* use an RPATH in a shared library to find objects the
10932     # library depends on, so we explictly say `no'.
10933     libltdl_cv_sys_dlopen_deplibs=no
10934     ;;
10935   osf5.0|osf5.0a|osf5.1)
10936     # dlopen *does* load deplibs and with the right loader patch applied
10937     # it even uses RPATH in a shared library to search for shared objects
10938     # that the library depends on, but there's no easy way to know if that
10939     # patch is installed.  Since this is the case, all we can really
10940     # say is unknown -- it depends on the patch being installed.  If
10941     # it is, this changes to `yes'.  Without it, it would be `no'.
10942     libltdl_cv_sys_dlopen_deplibs=unknown
10943     ;;
10944   osf*)
10945     # the two cases above should catch all versions of osf <= 5.1.  Read
10946     # the comments above for what we know about them.
10947     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10948     # is used to find them so we can finally say `yes'.
10949     libltdl_cv_sys_dlopen_deplibs=yes
10950     ;;
10951   solaris*)
10952     libltdl_cv_sys_dlopen_deplibs=yes
10953     ;;
10954   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10955     libltdl_cv_sys_dlopen_deplibs=yes
10956     ;;
10957   esac
10958
10959 fi
10960 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10961 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10962 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10963
10964 cat >>confdefs.h <<\_ACEOF
10965 #define LTDL_DLOPEN_DEPLIBS 1
10966 _ACEOF
10967
10968 fi
10969
10970
10971 for ac_header in argz.h
10972 do
10973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 fi
10980 ac_res=`eval echo '${'$as_ac_Header'}'`
10981                { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983 else
10984   # Is the header compilable?
10985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 $ac_includes_default
10994 #include <$ac_header>
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_compile") 2>conftest.er1
11004   ac_status=$?
11005   grep -v '^ *+' conftest.er1 >conftest.err
11006   rm -f conftest.er1
11007   cat conftest.err >&5
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); } &&
11010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011   { (case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_try") 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; } &&
11020          { ac_try='test -s conftest.$ac_objext'
11021   { (case "(($ac_try" in
11022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023   *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026   (eval "$ac_try") 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   ac_header_compiler=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         ac_header_compiler=no
11036 fi
11037
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040 echo "${ECHO_T}$ac_header_compiler" >&6; }
11041
11042 # Is the header present?
11043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h.  */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h.  */
11051 #include <$ac_header>
11052 _ACEOF
11053 if { (ac_try="$ac_cpp conftest.$ac_ext"
11054 case "(($ac_try" in
11055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056   *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11060   ac_status=$?
11061   grep -v '^ *+' conftest.er1 >conftest.err
11062   rm -f conftest.er1
11063   cat conftest.err >&5
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); } >/dev/null; then
11066   if test -s conftest.err; then
11067     ac_cpp_err=$ac_c_preproc_warn_flag
11068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11069   else
11070     ac_cpp_err=
11071   fi
11072 else
11073   ac_cpp_err=yes
11074 fi
11075 if test -z "$ac_cpp_err"; then
11076   ac_header_preproc=yes
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081   ac_header_preproc=no
11082 fi
11083
11084 rm -f conftest.err conftest.$ac_ext
11085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11086 echo "${ECHO_T}$ac_header_preproc" >&6; }
11087
11088 # So?  What about this header?
11089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11090   yes:no: )
11091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11095     ac_header_preproc=yes
11096     ;;
11097   no:yes:* )
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11110     ( cat <<\_ASBOX
11111 ## ----------------------------------- ##
11112 ## Report this to llvmbugs@cs.uiuc.edu ##
11113 ## ----------------------------------- ##
11114 _ASBOX
11115      ) | sed "s/^/$as_me: WARNING:     /" >&2
11116     ;;
11117 esac
11118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123   eval "$as_ac_Header=\$ac_header_preproc"
11124 fi
11125 ac_res=`eval echo '${'$as_ac_Header'}'`
11126                { echo "$as_me:$LINENO: result: $ac_res" >&5
11127 echo "${ECHO_T}$ac_res" >&6; }
11128
11129 fi
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131   cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11133 _ACEOF
11134
11135 fi
11136
11137 done
11138
11139
11140 { echo "$as_me:$LINENO: checking for error_t" >&5
11141 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11142 if test "${ac_cv_type_error_t+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 #if HAVE_ARGZ_H
11152 #  include <argz.h>
11153 #endif
11154
11155 typedef error_t ac__type_new_;
11156 int
11157 main ()
11158 {
11159 if ((ac__type_new_ *) 0)
11160   return 0;
11161 if (sizeof (ac__type_new_))
11162   return 0;
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_compile") 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; } &&
11191          { ac_try='test -s conftest.$ac_objext'
11192   { (case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_try") 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   ac_cv_type_error_t=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206         ac_cv_type_error_t=no
11207 fi
11208
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 fi
11211 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11212 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11213 if test $ac_cv_type_error_t = yes; then
11214
11215 cat >>confdefs.h <<_ACEOF
11216 #define HAVE_ERROR_T 1
11217 _ACEOF
11218
11219
11220 else
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define error_t int
11224 _ACEOF
11225
11226 fi
11227
11228
11229
11230
11231
11232
11233
11234 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11235 do
11236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11250 #define $ac_func innocuous_$ac_func
11251
11252 /* System header to define __stub macros and hopefully few prototypes,
11253     which can conflict with char $ac_func (); below.
11254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11255     <limits.h> exists even on freestanding compilers.  */
11256
11257 #ifdef __STDC__
11258 # include <limits.h>
11259 #else
11260 # include <assert.h>
11261 #endif
11262
11263 #undef $ac_func
11264
11265 /* Override any GCC internal prototype to avoid an error.
11266    Use char because int might match the return type of a GCC
11267    builtin and then its argument prototype would still apply.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 char $ac_func ();
11272 /* The GNU C library defines this for functions which it implements
11273     to always fail with ENOSYS.  Some functions are actually named
11274     something starting with __ and the normal name is an alias.  */
11275 #if defined __stub_$ac_func || defined __stub___$ac_func
11276 choke me
11277 #endif
11278
11279 int
11280 main ()
11281 {
11282 return $ac_func ();
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (ac_try="$ac_link"
11289 case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_link") 2>conftest.er1
11295   ac_status=$?
11296   grep -v '^ *+' conftest.er1 >conftest.err
11297   rm -f conftest.er1
11298   cat conftest.err >&5
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); } &&
11301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302   { (case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_try") 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; } &&
11311          { ac_try='test -s conftest$ac_exeext'
11312   { (case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_try") 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; }; then
11321   eval "$as_ac_var=yes"
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326         eval "$as_ac_var=no"
11327 fi
11328
11329 rm -f core conftest.err conftest.$ac_objext \
11330       conftest$ac_exeext conftest.$ac_ext
11331 fi
11332 ac_res=`eval echo '${'$as_ac_var'}'`
11333                { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11335 if test `eval echo '${'$as_ac_var'}'` = yes; then
11336   cat >>confdefs.h <<_ACEOF
11337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11338 _ACEOF
11339
11340 fi
11341 done
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11371                   stdio.h unistd.h
11372 do
11373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 fi
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381                { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11383 else
11384   # Is the header compilable?
11385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 $ac_includes_default
11394 #include <$ac_header>
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_compile") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411   { (case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_try") 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest.$ac_objext'
11421   { (case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_try") 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; }; then
11430   ac_header_compiler=yes
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435         ac_header_compiler=no
11436 fi
11437
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11440 echo "${ECHO_T}$ac_header_compiler" >&6; }
11441
11442 # Is the header present?
11443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 #include <$ac_header>
11452 _ACEOF
11453 if { (ac_try="$ac_cpp conftest.$ac_ext"
11454 case "(($ac_try" in
11455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456   *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } >/dev/null; then
11466   if test -s conftest.err; then
11467     ac_cpp_err=$ac_c_preproc_warn_flag
11468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11469   else
11470     ac_cpp_err=
11471   fi
11472 else
11473   ac_cpp_err=yes
11474 fi
11475 if test -z "$ac_cpp_err"; then
11476   ac_header_preproc=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481   ac_header_preproc=no
11482 fi
11483
11484 rm -f conftest.err conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486 echo "${ECHO_T}$ac_header_preproc" >&6; }
11487
11488 # So?  What about this header?
11489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11490   yes:no: )
11491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495     ac_header_preproc=yes
11496     ;;
11497   no:yes:* )
11498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11510     ( cat <<\_ASBOX
11511 ## ----------------------------------- ##
11512 ## Report this to llvmbugs@cs.uiuc.edu ##
11513 ## ----------------------------------- ##
11514 _ASBOX
11515      ) | sed "s/^/$as_me: WARNING:     /" >&2
11516     ;;
11517 esac
11518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   eval "$as_ac_Header=\$ac_header_preproc"
11524 fi
11525 ac_res=`eval echo '${'$as_ac_Header'}'`
11526                { echo "$as_me:$LINENO: result: $ac_res" >&5
11527 echo "${ECHO_T}$ac_res" >&6; }
11528
11529 fi
11530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11531   cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11533 _ACEOF
11534
11535 fi
11536
11537 done
11538
11539
11540
11541
11542
11543 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11544 do
11545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 fi
11552 ac_res=`eval echo '${'$as_ac_Header'}'`
11553                { echo "$as_me:$LINENO: result: $ac_res" >&5
11554 echo "${ECHO_T}$ac_res" >&6; }
11555 else
11556   # Is the header compilable?
11557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565 $ac_includes_default
11566 #include <$ac_header>
11567 _ACEOF
11568 rm -f conftest.$ac_objext
11569 if { (ac_try="$ac_compile"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_compile") 2>conftest.er1
11576   ac_status=$?
11577   grep -v '^ *+' conftest.er1 >conftest.err
11578   rm -f conftest.er1
11579   cat conftest.err >&5
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } &&
11582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583   { (case "(($ac_try" in
11584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585   *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588   (eval "$ac_try") 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; } &&
11592          { ac_try='test -s conftest.$ac_objext'
11593   { (case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_try") 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   ac_header_compiler=yes
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607         ac_header_compiler=no
11608 fi
11609
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11612 echo "${ECHO_T}$ac_header_compiler" >&6; }
11613
11614 # Is the header present?
11615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623 #include <$ac_header>
11624 _ACEOF
11625 if { (ac_try="$ac_cpp conftest.$ac_ext"
11626 case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } >/dev/null; then
11638   if test -s conftest.err; then
11639     ac_cpp_err=$ac_c_preproc_warn_flag
11640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11641   else
11642     ac_cpp_err=
11643   fi
11644 else
11645   ac_cpp_err=yes
11646 fi
11647 if test -z "$ac_cpp_err"; then
11648   ac_header_preproc=yes
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653   ac_header_preproc=no
11654 fi
11655
11656 rm -f conftest.err conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11658 echo "${ECHO_T}$ac_header_preproc" >&6; }
11659
11660 # So?  What about this header?
11661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11662   yes:no: )
11663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11667     ac_header_preproc=yes
11668     ;;
11669   no:yes:* )
11670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11682     ( cat <<\_ASBOX
11683 ## ----------------------------------- ##
11684 ## Report this to llvmbugs@cs.uiuc.edu ##
11685 ## ----------------------------------- ##
11686 _ASBOX
11687      ) | sed "s/^/$as_me: WARNING:     /" >&2
11688     ;;
11689 esac
11690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   eval "$as_ac_Header=\$ac_header_preproc"
11696 fi
11697 ac_res=`eval echo '${'$as_ac_Header'}'`
11698                { echo "$as_me:$LINENO: result: $ac_res" >&5
11699 echo "${ECHO_T}$ac_res" >&6; }
11700
11701 fi
11702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11703   cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11705 _ACEOF
11706
11707 fi
11708
11709 done
11710
11711
11712
11713 for ac_header in string.h strings.h
11714 do
11715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 fi
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723                { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 else
11726   # Is the header compilable?
11727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 $ac_includes_default
11736 #include <$ac_header>
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (ac_try="$ac_compile"
11740 case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_compile") 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753   { (case "(($ac_try" in
11754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755   *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758   (eval "$ac_try") 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest.$ac_objext'
11763   { (case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_try") 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; }; then
11772   ac_header_compiler=yes
11773 else
11774   echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777         ac_header_compiler=no
11778 fi
11779
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11782 echo "${ECHO_T}$ac_header_compiler" >&6; }
11783
11784 # Is the header present?
11785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h.  */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h.  */
11793 #include <$ac_header>
11794 _ACEOF
11795 if { (ac_try="$ac_cpp conftest.$ac_ext"
11796 case "(($ac_try" in
11797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798   *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11802   ac_status=$?
11803   grep -v '^ *+' conftest.er1 >conftest.err
11804   rm -f conftest.er1
11805   cat conftest.err >&5
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } >/dev/null; then
11808   if test -s conftest.err; then
11809     ac_cpp_err=$ac_c_preproc_warn_flag
11810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11811   else
11812     ac_cpp_err=
11813   fi
11814 else
11815   ac_cpp_err=yes
11816 fi
11817 if test -z "$ac_cpp_err"; then
11818   ac_header_preproc=yes
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823   ac_header_preproc=no
11824 fi
11825
11826 rm -f conftest.err conftest.$ac_ext
11827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11828 echo "${ECHO_T}$ac_header_preproc" >&6; }
11829
11830 # So?  What about this header?
11831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11832   yes:no: )
11833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11837     ac_header_preproc=yes
11838     ;;
11839   no:yes:* )
11840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11852     ( cat <<\_ASBOX
11853 ## ----------------------------------- ##
11854 ## Report this to llvmbugs@cs.uiuc.edu ##
11855 ## ----------------------------------- ##
11856 _ASBOX
11857      ) | sed "s/^/$as_me: WARNING:     /" >&2
11858     ;;
11859 esac
11860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   eval "$as_ac_Header=\$ac_header_preproc"
11866 fi
11867 ac_res=`eval echo '${'$as_ac_Header'}'`
11868                { echo "$as_me:$LINENO: result: $ac_res" >&5
11869 echo "${ECHO_T}$ac_res" >&6; }
11870
11871 fi
11872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11873   cat >>confdefs.h <<_ACEOF
11874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 _ACEOF
11876  break
11877 fi
11878
11879 done
11880
11881
11882
11883
11884 for ac_func in strchr index
11885 do
11886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11900 #define $ac_func innocuous_$ac_func
11901
11902 /* System header to define __stub macros and hopefully few prototypes,
11903     which can conflict with char $ac_func (); below.
11904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905     <limits.h> exists even on freestanding compilers.  */
11906
11907 #ifdef __STDC__
11908 # include <limits.h>
11909 #else
11910 # include <assert.h>
11911 #endif
11912
11913 #undef $ac_func
11914
11915 /* Override any GCC internal prototype to avoid an error.
11916    Use char because int might match the return type of a GCC
11917    builtin and then its argument prototype would still apply.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char $ac_func ();
11922 /* The GNU C library defines this for functions which it implements
11923     to always fail with ENOSYS.  Some functions are actually named
11924     something starting with __ and the normal name is an alias.  */
11925 #if defined __stub_$ac_func || defined __stub___$ac_func
11926 choke me
11927 #endif
11928
11929 int
11930 main ()
11931 {
11932 return $ac_func ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_link") 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952   { (case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_try") 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; } &&
11961          { ac_try='test -s conftest$ac_exeext'
11962   { (case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_try") 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; }; then
11971   eval "$as_ac_var=yes"
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976         eval "$as_ac_var=no"
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext \
11980       conftest$ac_exeext conftest.$ac_ext
11981 fi
11982 ac_res=`eval echo '${'$as_ac_var'}'`
11983                { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_var'}'` = yes; then
11986   cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 _ACEOF
11989  break
11990 fi
11991 done
11992
11993
11994
11995 for ac_func in strrchr rindex
11996 do
11997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12011 #define $ac_func innocuous_$ac_func
12012
12013 /* System header to define __stub macros and hopefully few prototypes,
12014     which can conflict with char $ac_func (); below.
12015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016     <limits.h> exists even on freestanding compilers.  */
12017
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023
12024 #undef $ac_func
12025
12026 /* Override any GCC internal prototype to avoid an error.
12027    Use char because int might match the return type of a GCC
12028    builtin and then its argument prototype would still apply.  */
12029 #ifdef __cplusplus
12030 extern "C"
12031 #endif
12032 char $ac_func ();
12033 /* The GNU C library defines this for functions which it implements
12034     to always fail with ENOSYS.  Some functions are actually named
12035     something starting with __ and the normal name is an alias.  */
12036 #if defined __stub_$ac_func || defined __stub___$ac_func
12037 choke me
12038 #endif
12039
12040 int
12041 main ()
12042 {
12043 return $ac_func ();
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_link") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063   { (case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_try") 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest$ac_exeext'
12073   { (case "(($ac_try" in
12074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075   *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078   (eval "$ac_try") 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   eval "$as_ac_var=yes"
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087         eval "$as_ac_var=no"
12088 fi
12089
12090 rm -f core conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 fi
12093 ac_res=`eval echo '${'$as_ac_var'}'`
12094                { echo "$as_me:$LINENO: result: $ac_res" >&5
12095 echo "${ECHO_T}$ac_res" >&6; }
12096 if test `eval echo '${'$as_ac_var'}'` = yes; then
12097   cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12099 _ACEOF
12100  break
12101 fi
12102 done
12103
12104
12105
12106 for ac_func in memcpy bcopy
12107 do
12108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12122 #define $ac_func innocuous_$ac_func
12123
12124 /* System header to define __stub macros and hopefully few prototypes,
12125     which can conflict with char $ac_func (); below.
12126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12127     <limits.h> exists even on freestanding compilers.  */
12128
12129 #ifdef __STDC__
12130 # include <limits.h>
12131 #else
12132 # include <assert.h>
12133 #endif
12134
12135 #undef $ac_func
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138    Use char because int might match the return type of a GCC
12139    builtin and then its argument prototype would still apply.  */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char $ac_func ();
12144 /* The GNU C library defines this for functions which it implements
12145     to always fail with ENOSYS.  Some functions are actually named
12146     something starting with __ and the normal name is an alias.  */
12147 #if defined __stub_$ac_func || defined __stub___$ac_func
12148 choke me
12149 #endif
12150
12151 int
12152 main ()
12153 {
12154 return $ac_func ();
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_link") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_try") 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   eval "$as_ac_var=yes"
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         eval "$as_ac_var=no"
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext \
12202       conftest$ac_exeext conftest.$ac_ext
12203 fi
12204 ac_res=`eval echo '${'$as_ac_var'}'`
12205                { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12207 if test `eval echo '${'$as_ac_var'}'` = yes; then
12208   cat >>confdefs.h <<_ACEOF
12209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12210 _ACEOF
12211  break
12212 fi
12213 done
12214
12215
12216
12217 for ac_func in memmove strcmp
12218 do
12219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12233 #define $ac_func innocuous_$ac_func
12234
12235 /* System header to define __stub macros and hopefully few prototypes,
12236     which can conflict with char $ac_func (); below.
12237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238     <limits.h> exists even on freestanding compilers.  */
12239
12240 #ifdef __STDC__
12241 # include <limits.h>
12242 #else
12243 # include <assert.h>
12244 #endif
12245
12246 #undef $ac_func
12247
12248 /* Override any GCC internal prototype to avoid an error.
12249    Use char because int might match the return type of a GCC
12250    builtin and then its argument prototype would still apply.  */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char $ac_func ();
12255 /* The GNU C library defines this for functions which it implements
12256     to always fail with ENOSYS.  Some functions are actually named
12257     something starting with __ and the normal name is an alias.  */
12258 #if defined __stub_$ac_func || defined __stub___$ac_func
12259 choke me
12260 #endif
12261
12262 int
12263 main ()
12264 {
12265 return $ac_func ();
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_link") 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } &&
12284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12285   { (case "(($ac_try" in
12286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287   *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290   (eval "$ac_try") 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; } &&
12294          { ac_try='test -s conftest$ac_exeext'
12295   { (case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_try") 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   eval "$as_ac_var=yes"
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309         eval "$as_ac_var=no"
12310 fi
12311
12312 rm -f core conftest.err conftest.$ac_objext \
12313       conftest$ac_exeext conftest.$ac_ext
12314 fi
12315 ac_res=`eval echo '${'$as_ac_var'}'`
12316                { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12318 if test `eval echo '${'$as_ac_var'}'` = yes; then
12319   cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12321 _ACEOF
12322
12323 fi
12324 done
12325
12326
12327
12328
12329 for ac_func in closedir opendir readdir
12330 do
12331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12345 #define $ac_func innocuous_$ac_func
12346
12347 /* System header to define __stub macros and hopefully few prototypes,
12348     which can conflict with char $ac_func (); below.
12349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12350     <limits.h> exists even on freestanding compilers.  */
12351
12352 #ifdef __STDC__
12353 # include <limits.h>
12354 #else
12355 # include <assert.h>
12356 #endif
12357
12358 #undef $ac_func
12359
12360 /* Override any GCC internal prototype to avoid an error.
12361    Use char because int might match the return type of a GCC
12362    builtin and then its argument prototype would still apply.  */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 char $ac_func ();
12367 /* The GNU C library defines this for functions which it implements
12368     to always fail with ENOSYS.  Some functions are actually named
12369     something starting with __ and the normal name is an alias.  */
12370 #if defined __stub_$ac_func || defined __stub___$ac_func
12371 choke me
12372 #endif
12373
12374 int
12375 main ()
12376 {
12377 return $ac_func ();
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389   (eval "$ac_link") 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } &&
12396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12397   { (case "(($ac_try" in
12398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399   *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402   (eval "$ac_try") 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; } &&
12406          { ac_try='test -s conftest$ac_exeext'
12407   { (case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_try") 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; }; then
12416   eval "$as_ac_var=yes"
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421         eval "$as_ac_var=no"
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext \
12425       conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 ac_res=`eval echo '${'$as_ac_var'}'`
12428                { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12430 if test `eval echo '${'$as_ac_var'}'` = yes; then
12431   cat >>confdefs.h <<_ACEOF
12432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433 _ACEOF
12434
12435 fi
12436 done
12437
12438
12439 # Check whether --enable-shared was given.
12440 if test "${enable_shared+set}" = set; then
12441   enableval=$enable_shared; p=${PACKAGE-default}
12442     case $enableval in
12443     yes) enable_shared=yes ;;
12444     no) enable_shared=no ;;
12445     *)
12446       enable_shared=no
12447       # Look at the argument we got.  We use all the common list separators.
12448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12449       for pkg in $enableval; do
12450         IFS="$lt_save_ifs"
12451         if test "X$pkg" = "X$p"; then
12452           enable_shared=yes
12453         fi
12454       done
12455       IFS="$lt_save_ifs"
12456       ;;
12457     esac
12458 else
12459   enable_shared=yes
12460 fi
12461
12462
12463 # Check whether --enable-static was given.
12464 if test "${enable_static+set}" = set; then
12465   enableval=$enable_static; p=${PACKAGE-default}
12466     case $enableval in
12467     yes) enable_static=yes ;;
12468     no) enable_static=no ;;
12469     *)
12470      enable_static=no
12471       # Look at the argument we got.  We use all the common list separators.
12472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12473       for pkg in $enableval; do
12474         IFS="$lt_save_ifs"
12475         if test "X$pkg" = "X$p"; then
12476           enable_static=yes
12477         fi
12478       done
12479       IFS="$lt_save_ifs"
12480       ;;
12481     esac
12482 else
12483   enable_static=yes
12484 fi
12485
12486
12487 # Check whether --enable-fast-install was given.
12488 if test "${enable_fast_install+set}" = set; then
12489   enableval=$enable_fast_install; p=${PACKAGE-default}
12490     case $enableval in
12491     yes) enable_fast_install=yes ;;
12492     no) enable_fast_install=no ;;
12493     *)
12494       enable_fast_install=no
12495       # Look at the argument we got.  We use all the common list separators.
12496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12497       for pkg in $enableval; do
12498         IFS="$lt_save_ifs"
12499         if test "X$pkg" = "X$p"; then
12500           enable_fast_install=yes
12501         fi
12502       done
12503       IFS="$lt_save_ifs"
12504       ;;
12505     esac
12506 else
12507   enable_fast_install=yes
12508 fi
12509
12510
12511 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12512 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12513 if test "${lt_cv_path_SED+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   # Loop through the user's path and test for sed and gsed.
12517 # Then use that list of sed's as ones to test for truncation.
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521   IFS=$as_save_IFS
12522   test -z "$as_dir" && as_dir=.
12523   for lt_ac_prog in sed gsed; do
12524     for ac_exec_ext in '' $ac_executable_extensions; do
12525       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12526         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12527       fi
12528     done
12529   done
12530 done
12531 lt_ac_max=0
12532 lt_ac_count=0
12533 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12534 # along with /bin/sed that truncates output.
12535 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12536   test ! -f $lt_ac_sed && continue
12537   cat /dev/null > conftest.in
12538   lt_ac_count=0
12539   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12540   # Check for GNU sed and select it if it is found.
12541   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12542     lt_cv_path_SED=$lt_ac_sed
12543     break
12544   fi
12545   while true; do
12546     cat conftest.in conftest.in >conftest.tmp
12547     mv conftest.tmp conftest.in
12548     cp conftest.in conftest.nl
12549     echo >>conftest.nl
12550     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12551     cmp -s conftest.out conftest.nl || break
12552     # 10000 chars as input seems more than enough
12553     test $lt_ac_count -gt 10 && break
12554     lt_ac_count=`expr $lt_ac_count + 1`
12555     if test $lt_ac_count -gt $lt_ac_max; then
12556       lt_ac_max=$lt_ac_count
12557       lt_cv_path_SED=$lt_ac_sed
12558     fi
12559   done
12560 done
12561
12562 fi
12563
12564 SED=$lt_cv_path_SED
12565 { echo "$as_me:$LINENO: result: $SED" >&5
12566 echo "${ECHO_T}$SED" >&6; }
12567
12568
12569 # Check whether --with-gnu-ld was given.
12570 if test "${with_gnu_ld+set}" = set; then
12571   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12572 else
12573   with_gnu_ld=no
12574 fi
12575
12576 ac_prog=ld
12577 if test "$GCC" = yes; then
12578   # Check if gcc -print-prog-name=ld gives a path.
12579   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12580 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12581   case $host in
12582   *-*-mingw*)
12583     # gcc leaves a trailing carriage return which upsets mingw
12584     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12585   *)
12586     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12587   esac
12588   case $ac_prog in
12589     # Accept absolute paths.
12590     [\\/]* | ?:[\\/]*)
12591       re_direlt='/[^/][^/]*/\.\./'
12592       # Canonicalize the pathname of ld
12593       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12594       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12595         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12596       done
12597       test -z "$LD" && LD="$ac_prog"
12598       ;;
12599   "")
12600     # If it fails, then pretend we aren't using GCC.
12601     ac_prog=ld
12602     ;;
12603   *)
12604     # If it is relative, then search for the first ld in PATH.
12605     with_gnu_ld=unknown
12606     ;;
12607   esac
12608 elif test "$with_gnu_ld" = yes; then
12609   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12610 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12611 else
12612   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12613 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12614 fi
12615 if test "${lt_cv_path_LD+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   if test -z "$LD"; then
12619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12620   for ac_dir in $PATH; do
12621     IFS="$lt_save_ifs"
12622     test -z "$ac_dir" && ac_dir=.
12623     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12624       lt_cv_path_LD="$ac_dir/$ac_prog"
12625       # Check to see if the program is GNU ld.  I'd rather use --version,
12626       # but apparently some variants of GNU ld only accept -v.
12627       # Break only if it was the GNU/non-GNU ld that we prefer.
12628       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12629       *GNU* | *'with BFD'*)
12630         test "$with_gnu_ld" != no && break
12631         ;;
12632       *)
12633         test "$with_gnu_ld" != yes && break
12634         ;;
12635       esac
12636     fi
12637   done
12638   IFS="$lt_save_ifs"
12639 else
12640   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12641 fi
12642 fi
12643
12644 LD="$lt_cv_path_LD"
12645 if test -n "$LD"; then
12646   { echo "$as_me:$LINENO: result: $LD" >&5
12647 echo "${ECHO_T}$LD" >&6; }
12648 else
12649   { echo "$as_me:$LINENO: result: no" >&5
12650 echo "${ECHO_T}no" >&6; }
12651 fi
12652 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12653 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12654    { (exit 1); exit 1; }; }
12655 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12656 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12657 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12661 case `$LD -v 2>&1 </dev/null` in
12662 *GNU* | *'with BFD'*)
12663   lt_cv_prog_gnu_ld=yes
12664   ;;
12665 *)
12666   lt_cv_prog_gnu_ld=no
12667   ;;
12668 esac
12669 fi
12670 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12671 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12672 with_gnu_ld=$lt_cv_prog_gnu_ld
12673
12674
12675 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12676 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12677 if test "${lt_cv_ld_reload_flag+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   lt_cv_ld_reload_flag='-r'
12681 fi
12682 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12683 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12684 reload_flag=$lt_cv_ld_reload_flag
12685 case $reload_flag in
12686 "" | " "*) ;;
12687 *) reload_flag=" $reload_flag" ;;
12688 esac
12689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12690 case $host_os in
12691   darwin*)
12692     if test "$GCC" = yes; then
12693       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12694     else
12695       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12696     fi
12697     ;;
12698 esac
12699
12700 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12701 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12702 if test "${lt_cv_deplibs_check_method+set}" = set; then
12703   echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705   lt_cv_file_magic_cmd='$MAGIC_CMD'
12706 lt_cv_file_magic_test_file=
12707 lt_cv_deplibs_check_method='unknown'
12708 # Need to set the preceding variable on all platforms that support
12709 # interlibrary dependencies.
12710 # 'none' -- dependencies not supported.
12711 # `unknown' -- same as none, but documents that we really don't know.
12712 # 'pass_all' -- all dependencies passed with no checks.
12713 # 'test_compile' -- check by making test program.
12714 # 'file_magic [[regex]]' -- check by looking for files in library path
12715 # which responds to the $file_magic_cmd with a given extended regex.
12716 # If you have `file' or equivalent on your system and you're not sure
12717 # whether `pass_all' will *always* work, you probably want this one.
12718
12719 case $host_os in
12720 aix4* | aix5*)
12721   lt_cv_deplibs_check_method=pass_all
12722   ;;
12723
12724 beos*)
12725   lt_cv_deplibs_check_method=pass_all
12726   ;;
12727
12728 bsdi[45]*)
12729   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12730   lt_cv_file_magic_cmd='/usr/bin/file -L'
12731   lt_cv_file_magic_test_file=/shlib/libc.so
12732   ;;
12733
12734 cygwin*)
12735   # func_win32_libid is a shell function defined in ltmain.sh
12736   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12737   lt_cv_file_magic_cmd='func_win32_libid'
12738   ;;
12739
12740 mingw* | pw32*)
12741   # Base MSYS/MinGW do not provide the 'file' command needed by
12742   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12743   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12744   lt_cv_file_magic_cmd='$OBJDUMP -f'
12745   ;;
12746
12747 darwin* | rhapsody*)
12748   lt_cv_deplibs_check_method=pass_all
12749   ;;
12750
12751 freebsd* | kfreebsd*-gnu | dragonfly*)
12752   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12753     case $host_cpu in
12754     i*86 )
12755       # Not sure whether the presence of OpenBSD here was a mistake.
12756       # Let's accept both of them until this is cleared up.
12757       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12758       lt_cv_file_magic_cmd=/usr/bin/file
12759       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12760       ;;
12761     esac
12762   else
12763     lt_cv_deplibs_check_method=pass_all
12764   fi
12765   ;;
12766
12767 gnu*)
12768   lt_cv_deplibs_check_method=pass_all
12769   ;;
12770
12771 hpux10.20* | hpux11*)
12772   lt_cv_file_magic_cmd=/usr/bin/file
12773   case $host_cpu in
12774   ia64*)
12775     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12776     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12777     ;;
12778   hppa*64*)
12779     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]'
12780     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12781     ;;
12782   *)
12783     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12784     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12785     ;;
12786   esac
12787   ;;
12788
12789 interix3*)
12790   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12791   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12792   ;;
12793
12794 irix5* | irix6* | nonstopux*)
12795   case $LD in
12796   *-32|*"-32 ") libmagic=32-bit;;
12797   *-n32|*"-n32 ") libmagic=N32;;
12798   *-64|*"-64 ") libmagic=64-bit;;
12799   *) libmagic=never-match;;
12800   esac
12801   lt_cv_deplibs_check_method=pass_all
12802   ;;
12803
12804 # This must be Linux ELF.
12805 linux*)
12806   lt_cv_deplibs_check_method=pass_all
12807   ;;
12808
12809 netbsd*)
12810   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12811     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12812   else
12813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12814   fi
12815   ;;
12816
12817 newos6*)
12818   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12819   lt_cv_file_magic_cmd=/usr/bin/file
12820   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12821   ;;
12822
12823 nto-qnx*)
12824   lt_cv_deplibs_check_method=unknown
12825   ;;
12826
12827 openbsd*)
12828   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12830   else
12831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12832   fi
12833   ;;
12834
12835 osf3* | osf4* | osf5*)
12836   lt_cv_deplibs_check_method=pass_all
12837   ;;
12838
12839 solaris*)
12840   lt_cv_deplibs_check_method=pass_all
12841   ;;
12842
12843 sysv4 | sysv4.3*)
12844   case $host_vendor in
12845   motorola)
12846     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]'
12847     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12848     ;;
12849   ncr)
12850     lt_cv_deplibs_check_method=pass_all
12851     ;;
12852   sequent)
12853     lt_cv_file_magic_cmd='/bin/file'
12854     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12855     ;;
12856   sni)
12857     lt_cv_file_magic_cmd='/bin/file'
12858     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12859     lt_cv_file_magic_test_file=/lib/libc.so
12860     ;;
12861   siemens)
12862     lt_cv_deplibs_check_method=pass_all
12863     ;;
12864   pc)
12865     lt_cv_deplibs_check_method=pass_all
12866     ;;
12867   esac
12868   ;;
12869
12870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12871   lt_cv_deplibs_check_method=pass_all
12872   ;;
12873 esac
12874
12875 fi
12876 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12877 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12878 file_magic_cmd=$lt_cv_file_magic_cmd
12879 deplibs_check_method=$lt_cv_deplibs_check_method
12880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12881
12882
12883
12884 # If no C compiler was specified, use CC.
12885 LTCC=${LTCC-"$CC"}
12886
12887 # If no C compiler flags were specified, use CFLAGS.
12888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12889
12890 # Allow CC to be a program name with arguments.
12891 compiler=$CC
12892
12893 # Check whether --enable-libtool-lock was given.
12894 if test "${enable_libtool_lock+set}" = set; then
12895   enableval=$enable_libtool_lock;
12896 fi
12897
12898 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12899
12900 # Some flags need to be propagated to the compiler or linker for good
12901 # libtool support.
12902 case $host in
12903 ia64-*-hpux*)
12904   # Find out which ABI we are using.
12905   echo 'int i;' > conftest.$ac_ext
12906   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907   (eval $ac_compile) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; then
12911     case `/usr/bin/file conftest.$ac_objext` in
12912     *ELF-32*)
12913       HPUX_IA64_MODE="32"
12914       ;;
12915     *ELF-64*)
12916       HPUX_IA64_MODE="64"
12917       ;;
12918     esac
12919   fi
12920   rm -rf conftest*
12921   ;;
12922 *-*-irix6*)
12923   # Find out which ABI we are using.
12924   echo '#line 12924 "configure"' > conftest.$ac_ext
12925   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926   (eval $ac_compile) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; then
12930    if test "$lt_cv_prog_gnu_ld" = yes; then
12931     case `/usr/bin/file conftest.$ac_objext` in
12932     *32-bit*)
12933       LD="${LD-ld} -melf32bsmip"
12934       ;;
12935     *N32*)
12936       LD="${LD-ld} -melf32bmipn32"
12937       ;;
12938     *64-bit*)
12939       LD="${LD-ld} -melf64bmip"
12940       ;;
12941     esac
12942    else
12943     case `/usr/bin/file conftest.$ac_objext` in
12944     *32-bit*)
12945       LD="${LD-ld} -32"
12946       ;;
12947     *N32*)
12948       LD="${LD-ld} -n32"
12949       ;;
12950     *64-bit*)
12951       LD="${LD-ld} -64"
12952       ;;
12953     esac
12954    fi
12955   fi
12956   rm -rf conftest*
12957   ;;
12958
12959 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12960   # Find out which ABI we are using.
12961   echo 'int i;' > conftest.$ac_ext
12962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963   (eval $ac_compile) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; then
12967     case `/usr/bin/file conftest.o` in
12968     *32-bit*)
12969       case $host in
12970         x86_64-*linux*)
12971           LD="${LD-ld} -m elf_i386"
12972           ;;
12973         ppc64-*linux*|powerpc64-*linux*)
12974           LD="${LD-ld} -m elf32ppclinux"
12975           ;;
12976         s390x-*linux*)
12977           LD="${LD-ld} -m elf_s390"
12978           ;;
12979         sparc64-*linux*)
12980           LD="${LD-ld} -m elf32_sparc"
12981           ;;
12982       esac
12983       ;;
12984     *64-bit*)
12985       case $host in
12986         x86_64-*linux*)
12987           LD="${LD-ld} -m elf_x86_64"
12988           ;;
12989         ppc*-*linux*|powerpc*-*linux*)
12990           LD="${LD-ld} -m elf64ppc"
12991           ;;
12992         s390*-*linux*)
12993           LD="${LD-ld} -m elf64_s390"
12994           ;;
12995         sparc*-*linux*)
12996           LD="${LD-ld} -m elf64_sparc"
12997           ;;
12998       esac
12999       ;;
13000     esac
13001   fi
13002   rm -rf conftest*
13003   ;;
13004
13005 *-*-sco3.2v5*)
13006   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13007   SAVE_CFLAGS="$CFLAGS"
13008   CFLAGS="$CFLAGS -belf"
13009   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13010 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13011 if test "${lt_cv_cc_needs_belf+set}" = set; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   ac_ext=c
13015 ac_cpp='$CPP $CPPFLAGS'
13016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019
13020      cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026
13027 int
13028 main ()
13029 {
13030
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 rm -f conftest.$ac_objext conftest$ac_exeext
13036 if { (ac_try="$ac_link"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_link") 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; } &&
13059          { ac_try='test -s conftest$ac_exeext'
13060   { (case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_try") 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; }; then
13069   lt_cv_cc_needs_belf=yes
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074         lt_cv_cc_needs_belf=no
13075 fi
13076
13077 rm -f core conftest.err conftest.$ac_objext \
13078       conftest$ac_exeext conftest.$ac_ext
13079      ac_ext=c
13080 ac_cpp='$CPP $CPPFLAGS'
13081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13084
13085 fi
13086 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13087 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13088   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13089     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13090     CFLAGS="$SAVE_CFLAGS"
13091   fi
13092   ;;
13093 sparc*-*solaris*)
13094   # Find out which ABI we are using.
13095   echo 'int i;' > conftest.$ac_ext
13096   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; then
13101     case `/usr/bin/file conftest.o` in
13102     *64-bit*)
13103       case $lt_cv_prog_gnu_ld in
13104       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13105       *)    LD="${LD-ld} -64" ;;
13106       esac
13107       ;;
13108     esac
13109   fi
13110   rm -rf conftest*
13111   ;;
13112
13113
13114 esac
13115
13116 need_locks="$enable_libtool_lock"
13117
13118
13119
13120
13121 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13122     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13123     (test "X$CXX" != "Xg++"))) ; then
13124   ac_ext=cpp
13125 ac_cpp='$CXXCPP $CPPFLAGS'
13126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13129 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13130 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13131 if test -z "$CXXCPP"; then
13132   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135       # Double quotes because CXXCPP needs to be expanded
13136     for CXXCPP in "$CXX -E" "/lib/cpp"
13137     do
13138       ac_preproc_ok=false
13139 for ac_cxx_preproc_warn_flag in '' yes
13140 do
13141   # Use a header file that comes with gcc, so configuring glibc
13142   # with a fresh cross-compiler works.
13143   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144   # <limits.h> exists even on freestanding compilers.
13145   # On the NeXT, cc -E runs the code through the compiler's parser,
13146   # not just through cpp. "Syntax error" is here to catch this case.
13147   cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 #ifdef __STDC__
13154 # include <limits.h>
13155 #else
13156 # include <assert.h>
13157 #endif
13158                      Syntax error
13159 _ACEOF
13160 if { (ac_try="$ac_cpp conftest.$ac_ext"
13161 case "(($ac_try" in
13162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163   *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13167   ac_status=$?
13168   grep -v '^ *+' conftest.er1 >conftest.err
13169   rm -f conftest.er1
13170   cat conftest.err >&5
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } >/dev/null; then
13173   if test -s conftest.err; then
13174     ac_cpp_err=$ac_cxx_preproc_warn_flag
13175     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13176   else
13177     ac_cpp_err=
13178   fi
13179 else
13180   ac_cpp_err=yes
13181 fi
13182 if test -z "$ac_cpp_err"; then
13183   :
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188   # Broken: fails on valid input.
13189 continue
13190 fi
13191
13192 rm -f conftest.err conftest.$ac_ext
13193
13194   # OK, works on sane cases.  Now check whether nonexistent headers
13195   # can be detected and how.
13196   cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202 #include <ac_nonexistent.h>
13203 _ACEOF
13204 if { (ac_try="$ac_cpp conftest.$ac_ext"
13205 case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13211   ac_status=$?
13212   grep -v '^ *+' conftest.er1 >conftest.err
13213   rm -f conftest.er1
13214   cat conftest.err >&5
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } >/dev/null; then
13217   if test -s conftest.err; then
13218     ac_cpp_err=$ac_cxx_preproc_warn_flag
13219     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13220   else
13221     ac_cpp_err=
13222   fi
13223 else
13224   ac_cpp_err=yes
13225 fi
13226 if test -z "$ac_cpp_err"; then
13227   # Broken: success on invalid input.
13228 continue
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233   # Passes both tests.
13234 ac_preproc_ok=:
13235 break
13236 fi
13237
13238 rm -f conftest.err conftest.$ac_ext
13239
13240 done
13241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13242 rm -f conftest.err conftest.$ac_ext
13243 if $ac_preproc_ok; then
13244   break
13245 fi
13246
13247     done
13248     ac_cv_prog_CXXCPP=$CXXCPP
13249
13250 fi
13251   CXXCPP=$ac_cv_prog_CXXCPP
13252 else
13253   ac_cv_prog_CXXCPP=$CXXCPP
13254 fi
13255 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13256 echo "${ECHO_T}$CXXCPP" >&6; }
13257 ac_preproc_ok=false
13258 for ac_cxx_preproc_warn_flag in '' yes
13259 do
13260   # Use a header file that comes with gcc, so configuring glibc
13261   # with a fresh cross-compiler works.
13262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13263   # <limits.h> exists even on freestanding compilers.
13264   # On the NeXT, cc -E runs the code through the compiler's parser,
13265   # not just through cpp. "Syntax error" is here to catch this case.
13266   cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 #ifdef __STDC__
13273 # include <limits.h>
13274 #else
13275 # include <assert.h>
13276 #endif
13277                      Syntax error
13278 _ACEOF
13279 if { (ac_try="$ac_cpp conftest.$ac_ext"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } >/dev/null; then
13292   if test -s conftest.err; then
13293     ac_cpp_err=$ac_cxx_preproc_warn_flag
13294     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13295   else
13296     ac_cpp_err=
13297   fi
13298 else
13299   ac_cpp_err=yes
13300 fi
13301 if test -z "$ac_cpp_err"; then
13302   :
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307   # Broken: fails on valid input.
13308 continue
13309 fi
13310
13311 rm -f conftest.err conftest.$ac_ext
13312
13313   # OK, works on sane cases.  Now check whether nonexistent headers
13314   # can be detected and how.
13315   cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <ac_nonexistent.h>
13322 _ACEOF
13323 if { (ac_try="$ac_cpp conftest.$ac_ext"
13324 case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13330   ac_status=$?
13331   grep -v '^ *+' conftest.er1 >conftest.err
13332   rm -f conftest.er1
13333   cat conftest.err >&5
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } >/dev/null; then
13336   if test -s conftest.err; then
13337     ac_cpp_err=$ac_cxx_preproc_warn_flag
13338     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13339   else
13340     ac_cpp_err=
13341   fi
13342 else
13343   ac_cpp_err=yes
13344 fi
13345 if test -z "$ac_cpp_err"; then
13346   # Broken: success on invalid input.
13347 continue
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352   # Passes both tests.
13353 ac_preproc_ok=:
13354 break
13355 fi
13356
13357 rm -f conftest.err conftest.$ac_ext
13358
13359 done
13360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13361 rm -f conftest.err conftest.$ac_ext
13362 if $ac_preproc_ok; then
13363   :
13364 else
13365   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13366 See \`config.log' for more details." >&5
13367 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13368 See \`config.log' for more details." >&2;}
13369    { (exit 1); exit 1; }; }
13370 fi
13371
13372 ac_ext=cpp
13373 ac_cpp='$CXXCPP $CPPFLAGS'
13374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13377
13378 fi
13379
13380
13381 ac_ext=f
13382 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13383 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13385 if test -n "$ac_tool_prefix"; then
13386   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
13387   do
13388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13392 if test "${ac_cv_prog_F77+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   if test -n "$F77"; then
13396   ac_cv_prog_F77="$F77" # Let the user override the test.
13397 else
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13400 do
13401   IFS=$as_save_IFS
13402   test -z "$as_dir" && as_dir=.
13403   for ac_exec_ext in '' $ac_executable_extensions; do
13404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13405     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13407     break 2
13408   fi
13409 done
13410 done
13411 IFS=$as_save_IFS
13412
13413 fi
13414 fi
13415 F77=$ac_cv_prog_F77
13416 if test -n "$F77"; then
13417   { echo "$as_me:$LINENO: result: $F77" >&5
13418 echo "${ECHO_T}$F77" >&6; }
13419 else
13420   { echo "$as_me:$LINENO: result: no" >&5
13421 echo "${ECHO_T}no" >&6; }
13422 fi
13423
13424
13425     test -n "$F77" && break
13426   done
13427 fi
13428 if test -z "$F77"; then
13429   ac_ct_F77=$F77
13430   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
13431 do
13432   # Extract the first word of "$ac_prog", so it can be a program name with args.
13433 set dummy $ac_prog; ac_word=$2
13434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13436 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439   if test -n "$ac_ct_F77"; then
13440   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13444 do
13445   IFS=$as_save_IFS
13446   test -z "$as_dir" && as_dir=.
13447   for ac_exec_ext in '' $ac_executable_extensions; do
13448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13449     ac_cv_prog_ac_ct_F77="$ac_prog"
13450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13451     break 2
13452   fi
13453 done
13454 done
13455 IFS=$as_save_IFS
13456
13457 fi
13458 fi
13459 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13460 if test -n "$ac_ct_F77"; then
13461   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13462 echo "${ECHO_T}$ac_ct_F77" >&6; }
13463 else
13464   { echo "$as_me:$LINENO: result: no" >&5
13465 echo "${ECHO_T}no" >&6; }
13466 fi
13467
13468
13469   test -n "$ac_ct_F77" && break
13470 done
13471
13472   if test "x$ac_ct_F77" = x; then
13473     F77=""
13474   else
13475     case $cross_compiling:$ac_tool_warned in
13476 yes:)
13477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13478 whose name does not start with the host triplet.  If you think this
13479 configuration is useful to you, please write to autoconf@gnu.org." >&5
13480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13481 whose name does not start with the host triplet.  If you think this
13482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13483 ac_tool_warned=yes ;;
13484 esac
13485     F77=$ac_ct_F77
13486   fi
13487 fi
13488
13489
13490 # Provide some information about the compiler.
13491 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13492 ac_compiler=`set X $ac_compile; echo $2`
13493 { (ac_try="$ac_compiler --version >&5"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_compiler --version >&5") 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }
13503 { (ac_try="$ac_compiler -v >&5"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_compiler -v >&5") 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }
13513 { (ac_try="$ac_compiler -V >&5"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_compiler -V >&5") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }
13523 rm -f a.out
13524
13525 # If we don't use `.F' as extension, the preprocessor is not run on the
13526 # input file.  (Note that this only needs to work for GNU compilers.)
13527 ac_save_ext=$ac_ext
13528 ac_ext=F
13529 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13530 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13531 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   cat >conftest.$ac_ext <<_ACEOF
13535       program main
13536 #ifndef __GNUC__
13537        choke me
13538 #endif
13539
13540       end
13541 _ACEOF
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_compile") 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13557   { (case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_try") 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest.$ac_objext'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_compiler_gnu=yes
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581         ac_compiler_gnu=no
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13586
13587 fi
13588 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13589 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13590 ac_ext=$ac_save_ext
13591 ac_test_FFLAGS=${FFLAGS+set}
13592 ac_save_FFLAGS=$FFLAGS
13593 FFLAGS=
13594 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13595 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13596 if test "${ac_cv_prog_f77_g+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   FFLAGS=-g
13600 cat >conftest.$ac_ext <<_ACEOF
13601       program main
13602
13603       end
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_compile") 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13620   { (case "(($ac_try" in
13621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622   *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625   (eval "$ac_try") 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest.$ac_objext'
13630   { (case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_try") 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_prog_f77_g=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644         ac_cv_prog_f77_g=no
13645 fi
13646
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648
13649 fi
13650 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13651 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13652 if test "$ac_test_FFLAGS" = set; then
13653   FFLAGS=$ac_save_FFLAGS
13654 elif test $ac_cv_prog_f77_g = yes; then
13655   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13656     FFLAGS="-g -O2"
13657   else
13658     FFLAGS="-g"
13659   fi
13660 else
13661   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13662     FFLAGS="-O2"
13663   else
13664     FFLAGS=
13665   fi
13666 fi
13667
13668 G77=`test $ac_compiler_gnu = yes && echo yes`
13669 ac_ext=c
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13674
13675
13676
13677 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13678
13679 # find the maximum length of command line arguments
13680 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13681 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13682 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13683   echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685     i=0
13686   teststring="ABCD"
13687
13688   case $build_os in
13689   msdosdjgpp*)
13690     # On DJGPP, this test can blow up pretty badly due to problems in libc
13691     # (any single argument exceeding 2000 bytes causes a buffer overrun
13692     # during glob expansion).  Even if it were fixed, the result of this
13693     # check would be larger than it should be.
13694     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13695     ;;
13696
13697   gnu*)
13698     # Under GNU Hurd, this test is not required because there is
13699     # no limit to the length of command line arguments.
13700     # Libtool will interpret -1 as no limit whatsoever
13701     lt_cv_sys_max_cmd_len=-1;
13702     ;;
13703
13704   cygwin* | mingw*)
13705     # On Win9x/ME, this test blows up -- it succeeds, but takes
13706     # about 5 minutes as the teststring grows exponentially.
13707     # Worse, since 9x/ME are not pre-emptively multitasking,
13708     # you end up with a "frozen" computer, even though with patience
13709     # the test eventually succeeds (with a max line length of 256k).
13710     # Instead, let's just punt: use the minimum linelength reported by
13711     # all of the supported platforms: 8192 (on NT/2K/XP).
13712     lt_cv_sys_max_cmd_len=8192;
13713     ;;
13714
13715   amigaos*)
13716     # On AmigaOS with pdksh, this test takes hours, literally.
13717     # So we just punt and use a minimum line length of 8192.
13718     lt_cv_sys_max_cmd_len=8192;
13719     ;;
13720
13721   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13722     # This has been around since 386BSD, at least.  Likely further.
13723     if test -x /sbin/sysctl; then
13724       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13725     elif test -x /usr/sbin/sysctl; then
13726       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13727     else
13728       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13729     fi
13730     # And add a safety zone
13731     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13732     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13733     ;;
13734
13735   interix*)
13736     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13737     lt_cv_sys_max_cmd_len=196608
13738     ;;
13739
13740   osf*)
13741     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13742     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13743     # nice to cause kernel panics so lets avoid the loop below.
13744     # First set a reasonable default.
13745     lt_cv_sys_max_cmd_len=16384
13746     #
13747     if test -x /sbin/sysconfig; then
13748       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13749         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13750       esac
13751     fi
13752     ;;
13753   sco3.2v5*)
13754     lt_cv_sys_max_cmd_len=102400
13755     ;;
13756   sysv5* | sco5v6* | sysv4.2uw2*)
13757     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13758     if test -n "$kargmax"; then
13759       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13760     else
13761       lt_cv_sys_max_cmd_len=32768
13762     fi
13763     ;;
13764   *)
13765     # If test is not a shell built-in, we'll probably end up computing a
13766     # maximum length that is only half of the actual maximum length, but
13767     # we can't tell.
13768     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13769     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13770                = "XX$teststring") >/dev/null 2>&1 &&
13771             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13772             lt_cv_sys_max_cmd_len=$new_result &&
13773             test $i != 17 # 1/2 MB should be enough
13774     do
13775       i=`expr $i + 1`
13776       teststring=$teststring$teststring
13777     done
13778     teststring=
13779     # Add a significant safety factor because C++ compilers can tack on massive
13780     # amounts of additional arguments before passing them to the linker.
13781     # It appears as though 1/2 is a usable value.
13782     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13783     ;;
13784   esac
13785
13786 fi
13787
13788 if test -n $lt_cv_sys_max_cmd_len ; then
13789   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13790 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13791 else
13792   { echo "$as_me:$LINENO: result: none" >&5
13793 echo "${ECHO_T}none" >&6; }
13794 fi
13795
13796
13797
13798
13799 # Check for command to grab the raw symbol name followed by C symbol from nm.
13800 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805
13806 # These are sane defaults that work on at least a few old systems.
13807 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13808
13809 # Character class describing NM global symbol codes.
13810 symcode='[BCDEGRST]'
13811
13812 # Regexp to match symbols that can be accessed directly from C.
13813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13814
13815 # Transform an extracted symbol line into a proper C declaration
13816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13817
13818 # Transform an extracted symbol line into symbol name and symbol address
13819 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'"
13820
13821 # Define system-specific variables.
13822 case $host_os in
13823 aix*)
13824   symcode='[BCDT]'
13825   ;;
13826 cygwin* | mingw* | pw32*)
13827   symcode='[ABCDGISTW]'
13828   ;;
13829 hpux*) # Its linker distinguishes data from code symbols
13830   if test "$host_cpu" = ia64; then
13831     symcode='[ABCDEGRST]'
13832   fi
13833   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13834   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'"
13835   ;;
13836 linux*)
13837   if test "$host_cpu" = ia64; then
13838     symcode='[ABCDGIRSTW]'
13839     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13840     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'"
13841   fi
13842   ;;
13843 irix* | nonstopux*)
13844   symcode='[BCDEGRST]'
13845   ;;
13846 osf*)
13847   symcode='[BCDEGQRST]'
13848   ;;
13849 solaris*)
13850   symcode='[BDRT]'
13851   ;;
13852 sco3.2v5*)
13853   symcode='[DT]'
13854   ;;
13855 sysv4.2uw2*)
13856   symcode='[DT]'
13857   ;;
13858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13859   symcode='[ABDT]'
13860   ;;
13861 sysv4)
13862   symcode='[DFNSTU]'
13863   ;;
13864 esac
13865
13866 # Handle CRLF in mingw tool chain
13867 opt_cr=
13868 case $build_os in
13869 mingw*)
13870   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13871   ;;
13872 esac
13873
13874 # If we're using GNU nm, then use its standard symbol codes.
13875 case `$NM -V 2>&1` in
13876 *GNU* | *'with BFD'*)
13877   symcode='[ABCDGIRSTW]' ;;
13878 esac
13879
13880 # Try without a prefix undercore, then with it.
13881 for ac_symprfx in "" "_"; do
13882
13883   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13884   symxfrm="\\1 $ac_symprfx\\2 \\2"
13885
13886   # Write the raw and C identifiers.
13887   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13888
13889   # Check to see that the pipe works correctly.
13890   pipe_works=no
13891
13892   rm -f conftest*
13893   cat > conftest.$ac_ext <<EOF
13894 #ifdef __cplusplus
13895 extern "C" {
13896 #endif
13897 char nm_test_var;
13898 void nm_test_func(){}
13899 #ifdef __cplusplus
13900 }
13901 #endif
13902 int main(){nm_test_var='a';nm_test_func();return(0);}
13903 EOF
13904
13905   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906   (eval $ac_compile) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); }; then
13910     # Now try to grab the symbols.
13911     nlist=conftest.nm
13912     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13913   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } && test -s "$nlist"; then
13917       # Try sorting and uniquifying the output.
13918       if sort "$nlist" | uniq > "$nlist"T; then
13919         mv -f "$nlist"T "$nlist"
13920       else
13921         rm -f "$nlist"T
13922       fi
13923
13924       # Make sure that we snagged all the symbols we need.
13925       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13926         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13927           cat <<EOF > conftest.$ac_ext
13928 #ifdef __cplusplus
13929 extern "C" {
13930 #endif
13931
13932 EOF
13933           # Now generate the symbol file.
13934           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13935
13936           cat <<EOF >> conftest.$ac_ext
13937 #if defined (__STDC__) && __STDC__
13938 # define lt_ptr_t void *
13939 #else
13940 # define lt_ptr_t char *
13941 # define const
13942 #endif
13943
13944 /* The mapping between symbol names and symbols. */
13945 const struct {
13946   const char *name;
13947   lt_ptr_t address;
13948 }
13949 lt_preloaded_symbols[] =
13950 {
13951 EOF
13952           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13953           cat <<\EOF >> conftest.$ac_ext
13954   {0, (lt_ptr_t) 0}
13955 };
13956
13957 #ifdef __cplusplus
13958 }
13959 #endif
13960 EOF
13961           # Now try linking the two files.
13962           mv conftest.$ac_objext conftstm.$ac_objext
13963           lt_save_LIBS="$LIBS"
13964           lt_save_CFLAGS="$CFLAGS"
13965           LIBS="conftstm.$ac_objext"
13966           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13967           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13968   (eval $ac_link) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13972             pipe_works=yes
13973           fi
13974           LIBS="$lt_save_LIBS"
13975           CFLAGS="$lt_save_CFLAGS"
13976         else
13977           echo "cannot find nm_test_func in $nlist" >&5
13978         fi
13979       else
13980         echo "cannot find nm_test_var in $nlist" >&5
13981       fi
13982     else
13983       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13984     fi
13985   else
13986     echo "$progname: failed program was:" >&5
13987     cat conftest.$ac_ext >&5
13988   fi
13989   rm -f conftest* conftst*
13990
13991   # Do not use the global_symbol_pipe unless it works.
13992   if test "$pipe_works" = yes; then
13993     break
13994   else
13995     lt_cv_sys_global_symbol_pipe=
13996   fi
13997 done
13998
13999 fi
14000
14001 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14002   lt_cv_sys_global_symbol_to_cdecl=
14003 fi
14004 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14005   { echo "$as_me:$LINENO: result: failed" >&5
14006 echo "${ECHO_T}failed" >&6; }
14007 else
14008   { echo "$as_me:$LINENO: result: ok" >&5
14009 echo "${ECHO_T}ok" >&6; }
14010 fi
14011
14012 { echo "$as_me:$LINENO: checking for objdir" >&5
14013 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14014 if test "${lt_cv_objdir+set}" = set; then
14015   echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017   rm -f .libs 2>/dev/null
14018 mkdir .libs 2>/dev/null
14019 if test -d .libs; then
14020   lt_cv_objdir=.libs
14021 else
14022   # MS-DOS does not allow filenames that begin with a dot.
14023   lt_cv_objdir=_libs
14024 fi
14025 rmdir .libs 2>/dev/null
14026 fi
14027 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14028 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14029 objdir=$lt_cv_objdir
14030
14031
14032
14033
14034
14035 case $host_os in
14036 aix3*)
14037   # AIX sometimes has problems with the GCC collect2 program.  For some
14038   # reason, if we set the COLLECT_NAMES environment variable, the problems
14039   # vanish in a puff of smoke.
14040   if test "X${COLLECT_NAMES+set}" != Xset; then
14041     COLLECT_NAMES=
14042     export COLLECT_NAMES
14043   fi
14044   ;;
14045 esac
14046
14047 # Sed substitution that helps us do robust quoting.  It backslashifies
14048 # metacharacters that are still active within double-quoted strings.
14049 Xsed='sed -e 1s/^X//'
14050 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14051
14052 # Same as above, but do not quote variable references.
14053 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14054
14055 # Sed substitution to delay expansion of an escaped shell variable in a
14056 # double_quote_subst'ed string.
14057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14058
14059 # Sed substitution to avoid accidental globbing in evaled expressions
14060 no_glob_subst='s/\*/\\\*/g'
14061
14062 # Constants:
14063 rm="rm -f"
14064
14065 # Global variables:
14066 default_ofile=mklib
14067 can_build_shared=yes
14068
14069 # All known linkers require a `.a' archive for static linking (except MSVC,
14070 # which needs '.lib').
14071 libext=a
14072 ltmain="$ac_aux_dir/ltmain.sh"
14073 ofile="$default_ofile"
14074 with_gnu_ld="$lt_cv_prog_gnu_ld"
14075
14076 if test -n "$ac_tool_prefix"; then
14077   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14078 set dummy ${ac_tool_prefix}ar; ac_word=$2
14079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081 if test "${ac_cv_prog_AR+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   if test -n "$AR"; then
14085   ac_cv_prog_AR="$AR" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092   for ac_exec_ext in '' $ac_executable_extensions; do
14093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094     ac_cv_prog_AR="${ac_tool_prefix}ar"
14095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099 done
14100 IFS=$as_save_IFS
14101
14102 fi
14103 fi
14104 AR=$ac_cv_prog_AR
14105 if test -n "$AR"; then
14106   { echo "$as_me:$LINENO: result: $AR" >&5
14107 echo "${ECHO_T}$AR" >&6; }
14108 else
14109   { echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6; }
14111 fi
14112
14113
14114 fi
14115 if test -z "$ac_cv_prog_AR"; then
14116   ac_ct_AR=$AR
14117   # Extract the first word of "ar", so it can be a program name with args.
14118 set dummy ar; ac_word=$2
14119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   if test -n "$ac_ct_AR"; then
14125   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14126 else
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14129 do
14130   IFS=$as_save_IFS
14131   test -z "$as_dir" && as_dir=.
14132   for ac_exec_ext in '' $ac_executable_extensions; do
14133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14134     ac_cv_prog_ac_ct_AR="ar"
14135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14136     break 2
14137   fi
14138 done
14139 done
14140 IFS=$as_save_IFS
14141
14142 fi
14143 fi
14144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14145 if test -n "$ac_ct_AR"; then
14146   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14147 echo "${ECHO_T}$ac_ct_AR" >&6; }
14148 else
14149   { echo "$as_me:$LINENO: result: no" >&5
14150 echo "${ECHO_T}no" >&6; }
14151 fi
14152
14153   if test "x$ac_ct_AR" = x; then
14154     AR="false"
14155   else
14156     case $cross_compiling:$ac_tool_warned in
14157 yes:)
14158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14159 whose name does not start with the host triplet.  If you think this
14160 configuration is useful to you, please write to autoconf@gnu.org." >&5
14161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14162 whose name does not start with the host triplet.  If you think this
14163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14164 ac_tool_warned=yes ;;
14165 esac
14166     AR=$ac_ct_AR
14167   fi
14168 else
14169   AR="$ac_cv_prog_AR"
14170 fi
14171
14172 if test -n "$ac_tool_prefix"; then
14173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177 if test "${ac_cv_prog_RANLIB+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   if test -n "$RANLIB"; then
14181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14185 do
14186   IFS=$as_save_IFS
14187   test -z "$as_dir" && as_dir=.
14188   for ac_exec_ext in '' $ac_executable_extensions; do
14189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192     break 2
14193   fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 RANLIB=$ac_cv_prog_RANLIB
14201 if test -n "$RANLIB"; then
14202   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14203 echo "${ECHO_T}$RANLIB" >&6; }
14204 else
14205   { echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6; }
14207 fi
14208
14209
14210 fi
14211 if test -z "$ac_cv_prog_RANLIB"; then
14212   ac_ct_RANLIB=$RANLIB
14213   # Extract the first word of "ranlib", so it can be a program name with args.
14214 set dummy ranlib; ac_word=$2
14215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   if test -n "$ac_ct_RANLIB"; then
14221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14222 else
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14225 do
14226   IFS=$as_save_IFS
14227   test -z "$as_dir" && as_dir=.
14228   for ac_exec_ext in '' $ac_executable_extensions; do
14229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14230     ac_cv_prog_ac_ct_RANLIB="ranlib"
14231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14232     break 2
14233   fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 fi
14239 fi
14240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14241 if test -n "$ac_ct_RANLIB"; then
14242   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14243 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14244 else
14245   { echo "$as_me:$LINENO: result: no" >&5
14246 echo "${ECHO_T}no" >&6; }
14247 fi
14248
14249   if test "x$ac_ct_RANLIB" = x; then
14250     RANLIB=":"
14251   else
14252     case $cross_compiling:$ac_tool_warned in
14253 yes:)
14254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14255 whose name does not start with the host triplet.  If you think this
14256 configuration is useful to you, please write to autoconf@gnu.org." >&5
14257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14258 whose name does not start with the host triplet.  If you think this
14259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14260 ac_tool_warned=yes ;;
14261 esac
14262     RANLIB=$ac_ct_RANLIB
14263   fi
14264 else
14265   RANLIB="$ac_cv_prog_RANLIB"
14266 fi
14267
14268 if test -n "$ac_tool_prefix"; then
14269   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14270 set dummy ${ac_tool_prefix}strip; ac_word=$2
14271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14273 if test "${ac_cv_prog_STRIP+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   if test -n "$STRIP"; then
14277   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284   for ac_exec_ext in '' $ac_executable_extensions; do
14285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14286     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291 done
14292 IFS=$as_save_IFS
14293
14294 fi
14295 fi
14296 STRIP=$ac_cv_prog_STRIP
14297 if test -n "$STRIP"; then
14298   { echo "$as_me:$LINENO: result: $STRIP" >&5
14299 echo "${ECHO_T}$STRIP" >&6; }
14300 else
14301   { echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6; }
14303 fi
14304
14305
14306 fi
14307 if test -z "$ac_cv_prog_STRIP"; then
14308   ac_ct_STRIP=$STRIP
14309   # Extract the first word of "strip", so it can be a program name with args.
14310 set dummy strip; ac_word=$2
14311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   if test -n "$ac_ct_STRIP"; then
14317   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14318 else
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14321 do
14322   IFS=$as_save_IFS
14323   test -z "$as_dir" && as_dir=.
14324   for ac_exec_ext in '' $ac_executable_extensions; do
14325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14326     ac_cv_prog_ac_ct_STRIP="strip"
14327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14328     break 2
14329   fi
14330 done
14331 done
14332 IFS=$as_save_IFS
14333
14334 fi
14335 fi
14336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14337 if test -n "$ac_ct_STRIP"; then
14338   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14339 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14340 else
14341   { echo "$as_me:$LINENO: result: no" >&5
14342 echo "${ECHO_T}no" >&6; }
14343 fi
14344
14345   if test "x$ac_ct_STRIP" = x; then
14346     STRIP=":"
14347   else
14348     case $cross_compiling:$ac_tool_warned in
14349 yes:)
14350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14351 whose name does not start with the host triplet.  If you think this
14352 configuration is useful to you, please write to autoconf@gnu.org." >&5
14353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14354 whose name does not start with the host triplet.  If you think this
14355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14356 ac_tool_warned=yes ;;
14357 esac
14358     STRIP=$ac_ct_STRIP
14359   fi
14360 else
14361   STRIP="$ac_cv_prog_STRIP"
14362 fi
14363
14364
14365 old_CC="$CC"
14366 old_CFLAGS="$CFLAGS"
14367
14368 # Set sane defaults for various variables
14369 test -z "$AR" && AR=ar
14370 test -z "$AR_FLAGS" && AR_FLAGS=cru
14371 test -z "$AS" && AS=as
14372 test -z "$CC" && CC=cc
14373 test -z "$LTCC" && LTCC=$CC
14374 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14375 test -z "$DLLTOOL" && DLLTOOL=dlltool
14376 test -z "$LD" && LD=ld
14377 test -z "$LN_S" && LN_S="ln -s"
14378 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14379 test -z "$NM" && NM=nm
14380 test -z "$SED" && SED=sed
14381 test -z "$OBJDUMP" && OBJDUMP=objdump
14382 test -z "$RANLIB" && RANLIB=:
14383 test -z "$STRIP" && STRIP=:
14384 test -z "$ac_objext" && ac_objext=o
14385
14386 # Determine commands to create old-style static archives.
14387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14388 old_postinstall_cmds='chmod 644 $oldlib'
14389 old_postuninstall_cmds=
14390
14391 if test -n "$RANLIB"; then
14392   case $host_os in
14393   openbsd*)
14394     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14395     ;;
14396   *)
14397     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14398     ;;
14399   esac
14400   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14401 fi
14402
14403 for cc_temp in $compiler""; do
14404   case $cc_temp in
14405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14407     \-*) ;;
14408     *) break;;
14409   esac
14410 done
14411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14412
14413
14414 # Only perform the check for file, if the check method requires it
14415 case $deplibs_check_method in
14416 file_magic*)
14417   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14418     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14419 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14420 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   case $MAGIC_CMD in
14424 [\\/*] |  ?:[\\/]*)
14425   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14426   ;;
14427 *)
14428   lt_save_MAGIC_CMD="$MAGIC_CMD"
14429   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14430   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14431   for ac_dir in $ac_dummy; do
14432     IFS="$lt_save_ifs"
14433     test -z "$ac_dir" && ac_dir=.
14434     if test -f $ac_dir/${ac_tool_prefix}file; then
14435       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14436       if test -n "$file_magic_test_file"; then
14437         case $deplibs_check_method in
14438         "file_magic "*)
14439           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14440           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14441           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14442             $EGREP "$file_magic_regex" > /dev/null; then
14443             :
14444           else
14445             cat <<EOF 1>&2
14446
14447 *** Warning: the command libtool uses to detect shared libraries,
14448 *** $file_magic_cmd, produces output that libtool cannot recognize.
14449 *** The result is that libtool may fail to recognize shared libraries
14450 *** as such.  This will affect the creation of libtool libraries that
14451 *** depend on shared libraries, but programs linked with such libtool
14452 *** libraries will work regardless of this problem.  Nevertheless, you
14453 *** may want to report the problem to your system manager and/or to
14454 *** bug-libtool@gnu.org
14455
14456 EOF
14457           fi ;;
14458         esac
14459       fi
14460       break
14461     fi
14462   done
14463   IFS="$lt_save_ifs"
14464   MAGIC_CMD="$lt_save_MAGIC_CMD"
14465   ;;
14466 esac
14467 fi
14468
14469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14470 if test -n "$MAGIC_CMD"; then
14471   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14472 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14473 else
14474   { echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6; }
14476 fi
14477
14478 if test -z "$lt_cv_path_MAGIC_CMD"; then
14479   if test -n "$ac_tool_prefix"; then
14480     { echo "$as_me:$LINENO: checking for file" >&5
14481 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   case $MAGIC_CMD in
14486 [\\/*] |  ?:[\\/]*)
14487   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14488   ;;
14489 *)
14490   lt_save_MAGIC_CMD="$MAGIC_CMD"
14491   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14492   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14493   for ac_dir in $ac_dummy; do
14494     IFS="$lt_save_ifs"
14495     test -z "$ac_dir" && ac_dir=.
14496     if test -f $ac_dir/file; then
14497       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14498       if test -n "$file_magic_test_file"; then
14499         case $deplibs_check_method in
14500         "file_magic "*)
14501           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14502           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14503           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14504             $EGREP "$file_magic_regex" > /dev/null; then
14505             :
14506           else
14507             cat <<EOF 1>&2
14508
14509 *** Warning: the command libtool uses to detect shared libraries,
14510 *** $file_magic_cmd, produces output that libtool cannot recognize.
14511 *** The result is that libtool may fail to recognize shared libraries
14512 *** as such.  This will affect the creation of libtool libraries that
14513 *** depend on shared libraries, but programs linked with such libtool
14514 *** libraries will work regardless of this problem.  Nevertheless, you
14515 *** may want to report the problem to your system manager and/or to
14516 *** bug-libtool@gnu.org
14517
14518 EOF
14519           fi ;;
14520         esac
14521       fi
14522       break
14523     fi
14524   done
14525   IFS="$lt_save_ifs"
14526   MAGIC_CMD="$lt_save_MAGIC_CMD"
14527   ;;
14528 esac
14529 fi
14530
14531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14532 if test -n "$MAGIC_CMD"; then
14533   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14534 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14535 else
14536   { echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6; }
14538 fi
14539
14540   else
14541     MAGIC_CMD=:
14542   fi
14543 fi
14544
14545   fi
14546   ;;
14547 esac
14548
14549 enable_dlopen=yes
14550 enable_win32_dll=no
14551
14552 # Check whether --enable-libtool-lock was given.
14553 if test "${enable_libtool_lock+set}" = set; then
14554   enableval=$enable_libtool_lock;
14555 fi
14556
14557 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14558
14559
14560 # Check whether --with-pic was given.
14561 if test "${with_pic+set}" = set; then
14562   withval=$with_pic; pic_mode="$withval"
14563 else
14564   pic_mode=default
14565 fi
14566
14567 test -z "$pic_mode" && pic_mode=default
14568
14569 # Use C for the default configuration in the libtool script
14570 tagname=
14571 lt_save_CC="$CC"
14572 ac_ext=c
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577
14578
14579 # Source file extension for C test sources.
14580 ac_ext=c
14581
14582 # Object file extension for compiled C test sources.
14583 objext=o
14584 objext=$objext
14585
14586 # Code to be used in simple compile tests
14587 lt_simple_compile_test_code="int some_variable = 0;\n"
14588
14589 # Code to be used in simple link tests
14590 lt_simple_link_test_code='int main(){return(0);}\n'
14591
14592
14593 # If no C compiler was specified, use CC.
14594 LTCC=${LTCC-"$CC"}
14595
14596 # If no C compiler flags were specified, use CFLAGS.
14597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14598
14599 # Allow CC to be a program name with arguments.
14600 compiler=$CC
14601
14602
14603 # save warnings/boilerplate of simple test code
14604 ac_outfile=conftest.$ac_objext
14605 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14607 _lt_compiler_boilerplate=`cat conftest.err`
14608 $rm conftest*
14609
14610 ac_outfile=conftest.$ac_objext
14611 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14613 _lt_linker_boilerplate=`cat conftest.err`
14614 $rm conftest*
14615
14616
14617
14618 lt_prog_compiler_no_builtin_flag=
14619
14620 if test "$GCC" = yes; then
14621   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14622
14623
14624 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14625 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14626 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14627   echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629   lt_cv_prog_compiler_rtti_exceptions=no
14630   ac_outfile=conftest.$ac_objext
14631    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14632    lt_compiler_flag="-fno-rtti -fno-exceptions"
14633    # Insert the option either (1) after the last *FLAGS variable, or
14634    # (2) before a word containing "conftest.", or (3) at the end.
14635    # Note that $ac_compile itself does not contain backslashes and begins
14636    # with a dollar sign (not a hyphen), so the echo should work correctly.
14637    # The option is referenced via a variable to avoid confusing sed.
14638    lt_compile=`echo "$ac_compile" | $SED \
14639    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641    -e 's:$: $lt_compiler_flag:'`
14642    (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
14643    (eval "$lt_compile" 2>conftest.err)
14644    ac_status=$?
14645    cat conftest.err >&5
14646    echo "$as_me:14646: \$? = $ac_status" >&5
14647    if (exit $ac_status) && test -s "$ac_outfile"; then
14648      # The compiler can only warn and ignore the option if not recognized
14649      # So say no if there are warnings other than the usual output.
14650      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653        lt_cv_prog_compiler_rtti_exceptions=yes
14654      fi
14655    fi
14656    $rm conftest*
14657
14658 fi
14659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14660 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14661
14662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14663     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14664 else
14665     :
14666 fi
14667
14668 fi
14669
14670 lt_prog_compiler_wl=
14671 lt_prog_compiler_pic=
14672 lt_prog_compiler_static=
14673
14674 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14675 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14676
14677   if test "$GCC" = yes; then
14678     lt_prog_compiler_wl='-Wl,'
14679     lt_prog_compiler_static='-static'
14680
14681     case $host_os in
14682       aix*)
14683       # All AIX code is PIC.
14684       if test "$host_cpu" = ia64; then
14685         # AIX 5 now supports IA64 processor
14686         lt_prog_compiler_static='-Bstatic'
14687       fi
14688       ;;
14689
14690     amigaos*)
14691       # FIXME: we need at least 68020 code to build shared libraries, but
14692       # adding the `-m68020' flag to GCC prevents building anything better,
14693       # like `-m68040'.
14694       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14695       ;;
14696
14697     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14698       # PIC is the default for these OSes.
14699       ;;
14700
14701     mingw* | pw32* | os2*)
14702       # This hack is so that the source file can tell whether it is being
14703       # built for inclusion in a dll (and should export symbols for example).
14704       lt_prog_compiler_pic='-DDLL_EXPORT'
14705       ;;
14706
14707     darwin* | rhapsody*)
14708       # PIC is the default on this platform
14709       # Common symbols not allowed in MH_DYLIB files
14710       lt_prog_compiler_pic='-fno-common'
14711       ;;
14712
14713     interix3*)
14714       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14715       # Instead, we relocate shared libraries at runtime.
14716       ;;
14717
14718     msdosdjgpp*)
14719       # Just because we use GCC doesn't mean we suddenly get shared libraries
14720       # on systems that don't support them.
14721       lt_prog_compiler_can_build_shared=no
14722       enable_shared=no
14723       ;;
14724
14725     sysv4*MP*)
14726       if test -d /usr/nec; then
14727         lt_prog_compiler_pic=-Kconform_pic
14728       fi
14729       ;;
14730
14731     hpux*)
14732       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14733       # not for PA HP-UX.
14734       case $host_cpu in
14735       hppa*64*|ia64*)
14736         # +Z the default
14737         ;;
14738       *)
14739         lt_prog_compiler_pic='-fPIC'
14740         ;;
14741       esac
14742       ;;
14743
14744     *)
14745       lt_prog_compiler_pic='-fPIC'
14746       ;;
14747     esac
14748   else
14749     # PORTME Check for flag to pass linker flags through the system compiler.
14750     case $host_os in
14751     aix*)
14752       lt_prog_compiler_wl='-Wl,'
14753       if test "$host_cpu" = ia64; then
14754         # AIX 5 now supports IA64 processor
14755         lt_prog_compiler_static='-Bstatic'
14756       else
14757         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14758       fi
14759       ;;
14760       darwin*)
14761         # PIC is the default on this platform
14762         # Common symbols not allowed in MH_DYLIB files
14763        case $cc_basename in
14764          xlc*)
14765          lt_prog_compiler_pic='-qnocommon'
14766          lt_prog_compiler_wl='-Wl,'
14767          ;;
14768        esac
14769        ;;
14770
14771     mingw* | pw32* | os2*)
14772       # This hack is so that the source file can tell whether it is being
14773       # built for inclusion in a dll (and should export symbols for example).
14774       lt_prog_compiler_pic='-DDLL_EXPORT'
14775       ;;
14776
14777     hpux9* | hpux10* | hpux11*)
14778       lt_prog_compiler_wl='-Wl,'
14779       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14780       # not for PA HP-UX.
14781       case $host_cpu in
14782       hppa*64*|ia64*)
14783         # +Z the default
14784         ;;
14785       *)
14786         lt_prog_compiler_pic='+Z'
14787         ;;
14788       esac
14789       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14790       lt_prog_compiler_static='${wl}-a ${wl}archive'
14791       ;;
14792
14793     irix5* | irix6* | nonstopux*)
14794       lt_prog_compiler_wl='-Wl,'
14795       # PIC (with -KPIC) is the default.
14796       lt_prog_compiler_static='-non_shared'
14797       ;;
14798
14799     newsos6)
14800       lt_prog_compiler_pic='-KPIC'
14801       lt_prog_compiler_static='-Bstatic'
14802       ;;
14803
14804     linux*)
14805       case $cc_basename in
14806       icc* | ecc*)
14807         lt_prog_compiler_wl='-Wl,'
14808         lt_prog_compiler_pic='-KPIC'
14809         lt_prog_compiler_static='-static'
14810         ;;
14811       pgcc* | pgf77* | pgf90* | pgf95*)
14812         # Portland Group compilers (*not* the Pentium gcc compiler,
14813         # which looks to be a dead project)
14814         lt_prog_compiler_wl='-Wl,'
14815         lt_prog_compiler_pic='-fpic'
14816         lt_prog_compiler_static='-Bstatic'
14817         ;;
14818       ccc*)
14819         lt_prog_compiler_wl='-Wl,'
14820         # All Alpha code is PIC.
14821         lt_prog_compiler_static='-non_shared'
14822         ;;
14823       esac
14824       ;;
14825
14826     osf3* | osf4* | osf5*)
14827       lt_prog_compiler_wl='-Wl,'
14828       # All OSF/1 code is PIC.
14829       lt_prog_compiler_static='-non_shared'
14830       ;;
14831
14832     solaris*)
14833       lt_prog_compiler_pic='-KPIC'
14834       lt_prog_compiler_static='-Bstatic'
14835       case $cc_basename in
14836       f77* | f90* | f95*)
14837         lt_prog_compiler_wl='-Qoption ld ';;
14838       *)
14839         lt_prog_compiler_wl='-Wl,';;
14840       esac
14841       ;;
14842
14843     sunos4*)
14844       lt_prog_compiler_wl='-Qoption ld '
14845       lt_prog_compiler_pic='-PIC'
14846       lt_prog_compiler_static='-Bstatic'
14847       ;;
14848
14849     sysv4 | sysv4.2uw2* | sysv4.3*)
14850       lt_prog_compiler_wl='-Wl,'
14851       lt_prog_compiler_pic='-KPIC'
14852       lt_prog_compiler_static='-Bstatic'
14853       ;;
14854
14855     sysv4*MP*)
14856       if test -d /usr/nec ;then
14857         lt_prog_compiler_pic='-Kconform_pic'
14858         lt_prog_compiler_static='-Bstatic'
14859       fi
14860       ;;
14861
14862     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14863       lt_prog_compiler_wl='-Wl,'
14864       lt_prog_compiler_pic='-KPIC'
14865       lt_prog_compiler_static='-Bstatic'
14866       ;;
14867
14868     unicos*)
14869       lt_prog_compiler_wl='-Wl,'
14870       lt_prog_compiler_can_build_shared=no
14871       ;;
14872
14873     uts4*)
14874       lt_prog_compiler_pic='-pic'
14875       lt_prog_compiler_static='-Bstatic'
14876       ;;
14877
14878     *)
14879       lt_prog_compiler_can_build_shared=no
14880       ;;
14881     esac
14882   fi
14883
14884 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14885 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14886
14887 #
14888 # Check to make sure the PIC flag actually works.
14889 #
14890 if test -n "$lt_prog_compiler_pic"; then
14891
14892 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14893 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14894 if test "${lt_prog_compiler_pic_works+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   lt_prog_compiler_pic_works=no
14898   ac_outfile=conftest.$ac_objext
14899    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14900    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14901    # Insert the option either (1) after the last *FLAGS variable, or
14902    # (2) before a word containing "conftest.", or (3) at the end.
14903    # Note that $ac_compile itself does not contain backslashes and begins
14904    # with a dollar sign (not a hyphen), so the echo should work correctly.
14905    # The option is referenced via a variable to avoid confusing sed.
14906    lt_compile=`echo "$ac_compile" | $SED \
14907    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14908    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14909    -e 's:$: $lt_compiler_flag:'`
14910    (eval echo "\"\$as_me:14910: $lt_compile\"" >&5)
14911    (eval "$lt_compile" 2>conftest.err)
14912    ac_status=$?
14913    cat conftest.err >&5
14914    echo "$as_me:14914: \$? = $ac_status" >&5
14915    if (exit $ac_status) && test -s "$ac_outfile"; then
14916      # The compiler can only warn and ignore the option if not recognized
14917      # So say no if there are warnings other than the usual output.
14918      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14919      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14920      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14921        lt_prog_compiler_pic_works=yes
14922      fi
14923    fi
14924    $rm conftest*
14925
14926 fi
14927 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14928 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14929
14930 if test x"$lt_prog_compiler_pic_works" = xyes; then
14931     case $lt_prog_compiler_pic in
14932      "" | " "*) ;;
14933      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14934      esac
14935 else
14936     lt_prog_compiler_pic=
14937      lt_prog_compiler_can_build_shared=no
14938 fi
14939
14940 fi
14941 case $host_os in
14942   # For platforms which do not support PIC, -DPIC is meaningless:
14943   *djgpp*)
14944     lt_prog_compiler_pic=
14945     ;;
14946   *)
14947     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14948     ;;
14949 esac
14950
14951 #
14952 # Check to make sure the static flag actually works.
14953 #
14954 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14955 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14956 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14957 if test "${lt_prog_compiler_static_works+set}" = set; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   lt_prog_compiler_static_works=no
14961    save_LDFLAGS="$LDFLAGS"
14962    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14963    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14964    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14965      # The linker can only warn and ignore the option if not recognized
14966      # So say no if there are warnings
14967      if test -s conftest.err; then
14968        # Append any errors to the config.log.
14969        cat conftest.err 1>&5
14970        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14971        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14972        if diff conftest.exp conftest.er2 >/dev/null; then
14973          lt_prog_compiler_static_works=yes
14974        fi
14975      else
14976        lt_prog_compiler_static_works=yes
14977      fi
14978    fi
14979    $rm conftest*
14980    LDFLAGS="$save_LDFLAGS"
14981
14982 fi
14983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14984 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14985
14986 if test x"$lt_prog_compiler_static_works" = xyes; then
14987     :
14988 else
14989     lt_prog_compiler_static=
14990 fi
14991
14992
14993 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14994 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14995 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   lt_cv_prog_compiler_c_o=no
14999    $rm -r conftest 2>/dev/null
15000    mkdir conftest
15001    cd conftest
15002    mkdir out
15003    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005    lt_compiler_flag="-o out/conftest2.$ac_objext"
15006    # Insert the option either (1) after the last *FLAGS variable, or
15007    # (2) before a word containing "conftest.", or (3) at the end.
15008    # Note that $ac_compile itself does not contain backslashes and begins
15009    # with a dollar sign (not a hyphen), so the echo should work correctly.
15010    lt_compile=`echo "$ac_compile" | $SED \
15011    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013    -e 's:$: $lt_compiler_flag:'`
15014    (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
15015    (eval "$lt_compile" 2>out/conftest.err)
15016    ac_status=$?
15017    cat out/conftest.err >&5
15018    echo "$as_me:15018: \$? = $ac_status" >&5
15019    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15020    then
15021      # The compiler can only warn and ignore the option if not recognized
15022      # So say no if there are warnings
15023      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15024      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15025      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15026        lt_cv_prog_compiler_c_o=yes
15027      fi
15028    fi
15029    chmod u+w . 2>&5
15030    $rm conftest*
15031    # SGI C++ compiler will create directory out/ii_files/ for
15032    # template instantiation
15033    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15034    $rm out/* && rmdir out
15035    cd ..
15036    rmdir conftest
15037    $rm conftest*
15038
15039 fi
15040 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15041 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15042
15043
15044 hard_links="nottested"
15045 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15046   # do not overwrite the value of need_locks provided by the user
15047   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15048 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15049   hard_links=yes
15050   $rm conftest*
15051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15052   touch conftest.a
15053   ln conftest.a conftest.b 2>&5 || hard_links=no
15054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15055   { echo "$as_me:$LINENO: result: $hard_links" >&5
15056 echo "${ECHO_T}$hard_links" >&6; }
15057   if test "$hard_links" = no; then
15058     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15059 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15060     need_locks=warn
15061   fi
15062 else
15063   need_locks=no
15064 fi
15065
15066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15068
15069   runpath_var=
15070   allow_undefined_flag=
15071   enable_shared_with_static_runtimes=no
15072   archive_cmds=
15073   archive_expsym_cmds=
15074   old_archive_From_new_cmds=
15075   old_archive_from_expsyms_cmds=
15076   export_dynamic_flag_spec=
15077   whole_archive_flag_spec=
15078   thread_safe_flag_spec=
15079   hardcode_libdir_flag_spec=
15080   hardcode_libdir_flag_spec_ld=
15081   hardcode_libdir_separator=
15082   hardcode_direct=no
15083   hardcode_minus_L=no
15084   hardcode_shlibpath_var=unsupported
15085   link_all_deplibs=unknown
15086   hardcode_automatic=no
15087   module_cmds=
15088   module_expsym_cmds=
15089   always_export_symbols=no
15090   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15091   # include_expsyms should be a list of space-separated symbols to be *always*
15092   # included in the symbol list
15093   include_expsyms=
15094   # exclude_expsyms can be an extended regexp of symbols to exclude
15095   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15096   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15097   # as well as any symbol that contains `d'.
15098   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15099   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15100   # platforms (ab)use it in PIC code, but their linkers get confused if
15101   # the symbol is explicitly referenced.  Since portable code cannot
15102   # rely on this symbol name, it's probably fine to never include it in
15103   # preloaded symbol tables.
15104   extract_expsyms_cmds=
15105   # Just being paranoid about ensuring that cc_basename is set.
15106   for cc_temp in $compiler""; do
15107   case $cc_temp in
15108     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15109     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15110     \-*) ;;
15111     *) break;;
15112   esac
15113 done
15114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15115
15116   case $host_os in
15117   cygwin* | mingw* | pw32*)
15118     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15119     # When not using gcc, we currently assume that we are using
15120     # Microsoft Visual C++.
15121     if test "$GCC" != yes; then
15122       with_gnu_ld=no
15123     fi
15124     ;;
15125   interix*)
15126     # we just hope/assume this is gcc and not c89 (= MSVC++)
15127     with_gnu_ld=yes
15128     ;;
15129   openbsd*)
15130     with_gnu_ld=no
15131     ;;
15132   esac
15133
15134   ld_shlibs=yes
15135   if test "$with_gnu_ld" = yes; then
15136     # If archive_cmds runs LD, not CC, wlarc should be empty
15137     wlarc='${wl}'
15138
15139     # Set some defaults for GNU ld with shared library support. These
15140     # are reset later if shared libraries are not supported. Putting them
15141     # here allows them to be overridden if necessary.
15142     runpath_var=LD_RUN_PATH
15143     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15144     export_dynamic_flag_spec='${wl}--export-dynamic'
15145     # ancient GNU ld didn't support --whole-archive et. al.
15146     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15147         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15148       else
15149         whole_archive_flag_spec=
15150     fi
15151     supports_anon_versioning=no
15152     case `$LD -v 2>/dev/null` in
15153       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15154       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15155       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15156       *\ 2.11.*) ;; # other 2.11 versions
15157       *) supports_anon_versioning=yes ;;
15158     esac
15159
15160     # See if GNU ld supports shared libraries.
15161     case $host_os in
15162     aix3* | aix4* | aix5*)
15163       # On AIX/PPC, the GNU linker is very broken
15164       if test "$host_cpu" != ia64; then
15165         ld_shlibs=no
15166         cat <<EOF 1>&2
15167
15168 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15169 *** to be unable to reliably create shared libraries on AIX.
15170 *** Therefore, libtool is disabling shared libraries support.  If you
15171 *** really care for shared libraries, you may want to modify your PATH
15172 *** so that a non-GNU linker is found, and then restart.
15173
15174 EOF
15175       fi
15176       ;;
15177
15178     amigaos*)
15179       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)'
15180       hardcode_libdir_flag_spec='-L$libdir'
15181       hardcode_minus_L=yes
15182
15183       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15184       # that the semantics of dynamic libraries on AmigaOS, at least up
15185       # to version 4, is to share data among multiple programs linked
15186       # with the same dynamic library.  Since this doesn't match the
15187       # behavior of shared libraries on other platforms, we can't use
15188       # them.
15189       ld_shlibs=no
15190       ;;
15191
15192     beos*)
15193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194         allow_undefined_flag=unsupported
15195         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196         # support --undefined.  This deserves some investigation.  FIXME
15197         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198       else
15199         ld_shlibs=no
15200       fi
15201       ;;
15202
15203     cygwin* | mingw* | pw32*)
15204       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15205       # as there is no search path for DLLs.
15206       hardcode_libdir_flag_spec='-L$libdir'
15207       allow_undefined_flag=unsupported
15208       always_export_symbols=no
15209       enable_shared_with_static_runtimes=yes
15210       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15211
15212       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15213         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15214         # If the export-symbols file already is a .def file (1st line
15215         # is EXPORTS), use it as is; otherwise, prepend...
15216         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15217           cp $export_symbols $output_objdir/$soname.def;
15218         else
15219           echo EXPORTS > $output_objdir/$soname.def;
15220           cat $export_symbols >> $output_objdir/$soname.def;
15221         fi~
15222         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15223       else
15224         ld_shlibs=no
15225       fi
15226       ;;
15227
15228     interix3*)
15229       hardcode_direct=no
15230       hardcode_shlibpath_var=no
15231       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15232       export_dynamic_flag_spec='${wl}-E'
15233       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234       # Instead, shared libraries are loaded at an image base (0x10000000 by
15235       # default) and relocated if they conflict, which is a slow very memory
15236       # consuming and fragmenting process.  To avoid this, we pick a random,
15237       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15239       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240       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'
15241       ;;
15242
15243     linux*)
15244       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15245         tmp_addflag=
15246         case $cc_basename,$host_cpu in
15247         pgcc*)                          # Portland Group C compiler
15248           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'
15249           tmp_addflag=' $pic_flag'
15250           ;;
15251         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15252           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'
15253           tmp_addflag=' $pic_flag -Mnomain' ;;
15254         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15255           tmp_addflag=' -i_dynamic' ;;
15256         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15257           tmp_addflag=' -i_dynamic -nofor_main' ;;
15258         ifc* | ifort*)                  # Intel Fortran compiler
15259           tmp_addflag=' -nofor_main' ;;
15260         esac
15261         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15262
15263         if test $supports_anon_versioning = yes; then
15264           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15265   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15266   $echo "local: *; };" >> $output_objdir/$libname.ver~
15267           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15268         fi
15269       else
15270         ld_shlibs=no
15271       fi
15272       ;;
15273
15274     netbsd*)
15275       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15276         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15277         wlarc=
15278       else
15279         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15280         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15281       fi
15282       ;;
15283
15284     solaris*)
15285       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15286         ld_shlibs=no
15287         cat <<EOF 1>&2
15288
15289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15290 *** create shared libraries on Solaris systems.  Therefore, libtool
15291 *** is disabling shared libraries support.  We urge you to upgrade GNU
15292 *** binutils to release 2.9.1 or newer.  Another option is to modify
15293 *** your PATH or compiler configuration so that the native linker is
15294 *** used, and then restart.
15295
15296 EOF
15297       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15299         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15300       else
15301         ld_shlibs=no
15302       fi
15303       ;;
15304
15305     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15306       case `$LD -v 2>&1` in
15307         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15308         ld_shlibs=no
15309         cat <<_LT_EOF 1>&2
15310
15311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15312 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15313 *** is disabling shared libraries support.  We urge you to upgrade GNU
15314 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15315 *** your PATH or compiler configuration so that the native linker is
15316 *** used, and then restart.
15317
15318 _LT_EOF
15319         ;;
15320         *)
15321           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15322             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15323             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15324             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15325           else
15326             ld_shlibs=no
15327           fi
15328         ;;
15329       esac
15330       ;;
15331
15332     sunos4*)
15333       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15334       wlarc=
15335       hardcode_direct=yes
15336       hardcode_shlibpath_var=no
15337       ;;
15338
15339     *)
15340       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15343       else
15344         ld_shlibs=no
15345       fi
15346       ;;
15347     esac
15348
15349     if test "$ld_shlibs" = no; then
15350       runpath_var=
15351       hardcode_libdir_flag_spec=
15352       export_dynamic_flag_spec=
15353       whole_archive_flag_spec=
15354     fi
15355   else
15356     # PORTME fill in a description of your system's linker (not GNU ld)
15357     case $host_os in
15358     aix3*)
15359       allow_undefined_flag=unsupported
15360       always_export_symbols=yes
15361       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'
15362       # Note: this linker hardcodes the directories in LIBPATH if there
15363       # are no directories specified by -L.
15364       hardcode_minus_L=yes
15365       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15366         # Neither direct hardcoding nor static linking is supported with a
15367         # broken collect2.
15368         hardcode_direct=unsupported
15369       fi
15370       ;;
15371
15372     aix4* | aix5*)
15373       if test "$host_cpu" = ia64; then
15374         # On IA64, the linker does run time linking by default, so we don't
15375         # have to do anything special.
15376         aix_use_runtimelinking=no
15377         exp_sym_flag='-Bexport'
15378         no_entry_flag=""
15379       else
15380         # If we're using GNU nm, then we don't want the "-C" option.
15381         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15382         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15383           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'
15384         else
15385           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'
15386         fi
15387         aix_use_runtimelinking=no
15388
15389         # Test if we are trying to use run time linking or normal
15390         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15391         # need to do runtime linking.
15392         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15393           for ld_flag in $LDFLAGS; do
15394           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15395             aix_use_runtimelinking=yes
15396             break
15397           fi
15398           done
15399           ;;
15400         esac
15401
15402         exp_sym_flag='-bexport'
15403         no_entry_flag='-bnoentry'
15404       fi
15405
15406       # When large executables or shared objects are built, AIX ld can
15407       # have problems creating the table of contents.  If linking a library
15408       # or program results in "error TOC overflow" add -mminimal-toc to
15409       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15410       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15411
15412       archive_cmds=''
15413       hardcode_direct=yes
15414       hardcode_libdir_separator=':'
15415       link_all_deplibs=yes
15416
15417       if test "$GCC" = yes; then
15418         case $host_os in aix4.[012]|aix4.[012].*)
15419         # We only want to do this on AIX 4.2 and lower, the check
15420         # below for broken collect2 doesn't work under 4.3+
15421           collect2name=`${CC} -print-prog-name=collect2`
15422           if test -f "$collect2name" && \
15423            strings "$collect2name" | grep resolve_lib_name >/dev/null
15424           then
15425           # We have reworked collect2
15426           hardcode_direct=yes
15427           else
15428           # We have old collect2
15429           hardcode_direct=unsupported
15430           # It fails to find uninstalled libraries when the uninstalled
15431           # path is not listed in the libpath.  Setting hardcode_minus_L
15432           # to unsupported forces relinking
15433           hardcode_minus_L=yes
15434           hardcode_libdir_flag_spec='-L$libdir'
15435           hardcode_libdir_separator=
15436           fi
15437           ;;
15438         esac
15439         shared_flag='-shared'
15440         if test "$aix_use_runtimelinking" = yes; then
15441           shared_flag="$shared_flag "'${wl}-G'
15442         fi
15443       else
15444         # not using gcc
15445         if test "$host_cpu" = ia64; then
15446         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15447         # chokes on -Wl,-G. The following line is correct:
15448           shared_flag='-G'
15449         else
15450           if test "$aix_use_runtimelinking" = yes; then
15451             shared_flag='${wl}-G'
15452           else
15453             shared_flag='${wl}-bM:SRE'
15454           fi
15455         fi
15456       fi
15457
15458       # It seems that -bexpall does not export symbols beginning with
15459       # underscore (_), so it is better to generate a list of symbols to export.
15460       always_export_symbols=yes
15461       if test "$aix_use_runtimelinking" = yes; then
15462         # Warning - without using the other runtime loading flags (-brtl),
15463         # -berok will link without error, but may produce a broken library.
15464         allow_undefined_flag='-berok'
15465        # Determine the default libpath from the value encoded in an empty executable.
15466        cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472
15473 int
15474 main ()
15475 {
15476
15477   ;
15478   return 0;
15479 }
15480 _ACEOF
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_link") 2>conftest.er1
15489   ac_status=$?
15490   grep -v '^ *+' conftest.er1 >conftest.err
15491   rm -f conftest.er1
15492   cat conftest.err >&5
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); } &&
15495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496   { (case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_try") 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; } &&
15505          { ac_try='test -s conftest$ac_exeext'
15506   { (case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_try") 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }; then
15515
15516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15517 }'`
15518 # Check for a 64-bit object if we didn't find anything.
15519 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; }
15520 }'`; fi
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext \
15529       conftest$ac_exeext conftest.$ac_ext
15530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15531
15532        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15533         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"
15534        else
15535         if test "$host_cpu" = ia64; then
15536           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15537           allow_undefined_flag="-z nodefs"
15538           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"
15539         else
15540          # Determine the default libpath from the value encoded in an empty executable.
15541          cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547
15548 int
15549 main ()
15550 {
15551
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563   (eval "$ac_link") 2>conftest.er1
15564   ac_status=$?
15565   grep -v '^ *+' conftest.er1 >conftest.err
15566   rm -f conftest.er1
15567   cat conftest.err >&5
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } &&
15570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571   { (case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576   (eval "$ac_try") 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; } &&
15580          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15590
15591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15592 }'`
15593 # Check for a 64-bit object if we didn't find anything.
15594 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; }
15595 }'`; fi
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600
15601 fi
15602
15603 rm -f core conftest.err conftest.$ac_objext \
15604       conftest$ac_exeext conftest.$ac_ext
15605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15606
15607          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15608           # Warning - without using the other run time loading flags,
15609           # -berok will link without error, but may produce a broken library.
15610           no_undefined_flag=' ${wl}-bernotok'
15611           allow_undefined_flag=' ${wl}-berok'
15612           # Exported symbols can be pulled into shared objects from archives
15613           whole_archive_flag_spec='$convenience'
15614           archive_cmds_need_lc=yes
15615           # This is similar to how AIX traditionally builds its shared libraries.
15616           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'
15617         fi
15618       fi
15619       ;;
15620
15621     amigaos*)
15622       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)'
15623       hardcode_libdir_flag_spec='-L$libdir'
15624       hardcode_minus_L=yes
15625       # see comment about different semantics on the GNU ld section
15626       ld_shlibs=no
15627       ;;
15628
15629     bsdi[45]*)
15630       export_dynamic_flag_spec=-rdynamic
15631       ;;
15632
15633     cygwin* | mingw* | pw32*)
15634       # When not using gcc, we currently assume that we are using
15635       # Microsoft Visual C++.
15636       # hardcode_libdir_flag_spec is actually meaningless, as there is
15637       # no search path for DLLs.
15638       hardcode_libdir_flag_spec=' '
15639       allow_undefined_flag=unsupported
15640       # Tell ltmain to make .lib files, not .a files.
15641       libext=lib
15642       # Tell ltmain to make .dll files, not .so files.
15643       shrext_cmds=".dll"
15644       # FIXME: Setting linknames here is a bad hack.
15645       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15646       # The linker will automatically build a .lib file if we build a DLL.
15647       old_archive_From_new_cmds='true'
15648       # FIXME: Should let the user specify the lib program.
15649       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15650       fix_srcfile_path='`cygpath -w "$srcfile"`'
15651       enable_shared_with_static_runtimes=yes
15652       ;;
15653
15654     darwin* | rhapsody*)
15655       case $host_os in
15656         rhapsody* | darwin1.[012])
15657          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15658          ;;
15659        *) # Darwin 1.3 on
15660          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15661            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15662          else
15663            case ${MACOSX_DEPLOYMENT_TARGET} in
15664              10.[012])
15665                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666                ;;
15667              10.*)
15668                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15669                ;;
15670            esac
15671          fi
15672          ;;
15673       esac
15674       archive_cmds_need_lc=no
15675       hardcode_direct=no
15676       hardcode_automatic=yes
15677       hardcode_shlibpath_var=unsupported
15678       whole_archive_flag_spec=''
15679       link_all_deplibs=yes
15680     if test "$GCC" = yes ; then
15681         output_verbose_link_cmd='echo'
15682         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15683       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15684       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15685       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}'
15686       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}'
15687     else
15688       case $cc_basename in
15689         xlc*)
15690          output_verbose_link_cmd='echo'
15691          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15692          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15693           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15694          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}'
15695           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}'
15696           ;;
15697        *)
15698          ld_shlibs=no
15699           ;;
15700       esac
15701     fi
15702       ;;
15703
15704     dgux*)
15705       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706       hardcode_libdir_flag_spec='-L$libdir'
15707       hardcode_shlibpath_var=no
15708       ;;
15709
15710     freebsd1*)
15711       ld_shlibs=no
15712       ;;
15713
15714     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15715     # support.  Future versions do this automatically, but an explicit c++rt0.o
15716     # does not break anything, and helps significantly (at the cost of a little
15717     # extra space).
15718     freebsd2.2*)
15719       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15720       hardcode_libdir_flag_spec='-R$libdir'
15721       hardcode_direct=yes
15722       hardcode_shlibpath_var=no
15723       ;;
15724
15725     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15726     freebsd2*)
15727       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15728       hardcode_direct=yes
15729       hardcode_minus_L=yes
15730       hardcode_shlibpath_var=no
15731       ;;
15732
15733     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15734     freebsd* | kfreebsd*-gnu | dragonfly*)
15735       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15736       hardcode_libdir_flag_spec='-R$libdir'
15737       hardcode_direct=yes
15738       hardcode_shlibpath_var=no
15739       ;;
15740
15741     hpux9*)
15742       if test "$GCC" = yes; then
15743         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'
15744       else
15745         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'
15746       fi
15747       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15748       hardcode_libdir_separator=:
15749       hardcode_direct=yes
15750
15751       # hardcode_minus_L: Not really in the search PATH,
15752       # but as the default location of the library.
15753       hardcode_minus_L=yes
15754       export_dynamic_flag_spec='${wl}-E'
15755       ;;
15756
15757     hpux10*)
15758       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15759         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15760       else
15761         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15762       fi
15763       if test "$with_gnu_ld" = no; then
15764         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765         hardcode_libdir_separator=:
15766
15767         hardcode_direct=yes
15768         export_dynamic_flag_spec='${wl}-E'
15769
15770         # hardcode_minus_L: Not really in the search PATH,
15771         # but as the default location of the library.
15772         hardcode_minus_L=yes
15773       fi
15774       ;;
15775
15776     hpux11*)
15777       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15778         case $host_cpu in
15779         hppa*64*)
15780           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781           ;;
15782         ia64*)
15783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15784           ;;
15785         *)
15786           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15787           ;;
15788         esac
15789       else
15790         case $host_cpu in
15791         hppa*64*)
15792           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793           ;;
15794         ia64*)
15795           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15796           ;;
15797         *)
15798           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15799           ;;
15800         esac
15801       fi
15802       if test "$with_gnu_ld" = no; then
15803         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15804         hardcode_libdir_separator=:
15805
15806         case $host_cpu in
15807         hppa*64*|ia64*)
15808           hardcode_libdir_flag_spec_ld='+b $libdir'
15809           hardcode_direct=no
15810           hardcode_shlibpath_var=no
15811           ;;
15812         *)
15813           hardcode_direct=yes
15814           export_dynamic_flag_spec='${wl}-E'
15815
15816           # hardcode_minus_L: Not really in the search PATH,
15817           # but as the default location of the library.
15818           hardcode_minus_L=yes
15819           ;;
15820         esac
15821       fi
15822       ;;
15823
15824     irix5* | irix6* | nonstopux*)
15825       if test "$GCC" = yes; then
15826         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'
15827       else
15828         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'
15829         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15830       fi
15831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15832       hardcode_libdir_separator=:
15833       link_all_deplibs=yes
15834       ;;
15835
15836     netbsd*)
15837       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15839       else
15840         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15841       fi
15842       hardcode_libdir_flag_spec='-R$libdir'
15843       hardcode_direct=yes
15844       hardcode_shlibpath_var=no
15845       ;;
15846
15847     newsos6)
15848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849       hardcode_direct=yes
15850       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851       hardcode_libdir_separator=:
15852       hardcode_shlibpath_var=no
15853       ;;
15854
15855     openbsd*)
15856       hardcode_direct=yes
15857       hardcode_shlibpath_var=no
15858       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15859         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15860         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15861         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15862         export_dynamic_flag_spec='${wl}-E'
15863       else
15864        case $host_os in
15865          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15866            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867            hardcode_libdir_flag_spec='-R$libdir'
15868            ;;
15869          *)
15870            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15871            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15872            ;;
15873        esac
15874       fi
15875       ;;
15876
15877     os2*)
15878       hardcode_libdir_flag_spec='-L$libdir'
15879       hardcode_minus_L=yes
15880       allow_undefined_flag=unsupported
15881       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'
15882       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15883       ;;
15884
15885     osf3*)
15886       if test "$GCC" = yes; then
15887         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15888         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'
15889       else
15890         allow_undefined_flag=' -expect_unresolved \*'
15891         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'
15892       fi
15893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15894       hardcode_libdir_separator=:
15895       ;;
15896
15897     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15898       if test "$GCC" = yes; then
15899         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15900         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'
15901         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15902       else
15903         allow_undefined_flag=' -expect_unresolved \*'
15904         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'
15905         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15906         $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'
15907
15908         # Both c and cxx compiler support -rpath directly
15909         hardcode_libdir_flag_spec='-rpath $libdir'
15910       fi
15911       hardcode_libdir_separator=:
15912       ;;
15913
15914     solaris*)
15915       no_undefined_flag=' -z text'
15916       if test "$GCC" = yes; then
15917         wlarc='${wl}'
15918         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15920           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15921       else
15922         wlarc=''
15923         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15924         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15926       fi
15927       hardcode_libdir_flag_spec='-R$libdir'
15928       hardcode_shlibpath_var=no
15929       case $host_os in
15930       solaris2.[0-5] | solaris2.[0-5].*) ;;
15931       *)
15932         # The compiler driver will combine linker options so we
15933         # cannot just pass the convience library names through
15934         # without $wl, iff we do not link with $LD.
15935         # Luckily, gcc supports the same syntax we need for Sun Studio.
15936         # Supported since Solaris 2.6 (maybe 2.5.1?)
15937         case $wlarc in
15938         '')
15939           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15940         *)
15941           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' ;;
15942         esac ;;
15943       esac
15944       link_all_deplibs=yes
15945       ;;
15946
15947     sunos4*)
15948       if test "x$host_vendor" = xsequent; then
15949         # Use $CC to link under sequent, because it throws in some extra .o
15950         # files that make .init and .fini sections work.
15951         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15952       else
15953         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15954       fi
15955       hardcode_libdir_flag_spec='-L$libdir'
15956       hardcode_direct=yes
15957       hardcode_minus_L=yes
15958       hardcode_shlibpath_var=no
15959       ;;
15960
15961     sysv4)
15962       case $host_vendor in
15963         sni)
15964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965           hardcode_direct=yes # is this really true???
15966         ;;
15967         siemens)
15968           ## LD is ld it makes a PLAMLIB
15969           ## CC just makes a GrossModule.
15970           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15971           reload_cmds='$CC -r -o $output$reload_objs'
15972           hardcode_direct=no
15973         ;;
15974         motorola)
15975           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15977         ;;
15978       esac
15979       runpath_var='LD_RUN_PATH'
15980       hardcode_shlibpath_var=no
15981       ;;
15982
15983     sysv4.3*)
15984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985       hardcode_shlibpath_var=no
15986       export_dynamic_flag_spec='-Bexport'
15987       ;;
15988
15989     sysv4*MP*)
15990       if test -d /usr/nec; then
15991         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15992         hardcode_shlibpath_var=no
15993         runpath_var=LD_RUN_PATH
15994         hardcode_runpath_var=yes
15995         ld_shlibs=yes
15996       fi
15997       ;;
15998
15999     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16000       no_undefined_flag='${wl}-z,text'
16001       archive_cmds_need_lc=no
16002       hardcode_shlibpath_var=no
16003       runpath_var='LD_RUN_PATH'
16004
16005       if test "$GCC" = yes; then
16006         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16008       else
16009         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011       fi
16012       ;;
16013
16014     sysv5* | sco3.2v5* | sco5v6*)
16015       # Note: We can NOT use -z defs as we might desire, because we do not
16016       # link with -lc, and that would cause any symbols used from libc to
16017       # always be unresolved, which means just about no library would
16018       # ever link correctly.  If we're not using GNU ld we use -z text
16019       # though, which does catch some bad symbols but isn't as heavy-handed
16020       # as -z defs.
16021       no_undefined_flag='${wl}-z,text'
16022       allow_undefined_flag='${wl}-z,nodefs'
16023       archive_cmds_need_lc=no
16024       hardcode_shlibpath_var=no
16025       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16026       hardcode_libdir_separator=':'
16027       link_all_deplibs=yes
16028       export_dynamic_flag_spec='${wl}-Bexport'
16029       runpath_var='LD_RUN_PATH'
16030
16031       if test "$GCC" = yes; then
16032         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16033         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16034       else
16035         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16036         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037       fi
16038       ;;
16039
16040     uts4*)
16041       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042       hardcode_libdir_flag_spec='-L$libdir'
16043       hardcode_shlibpath_var=no
16044       ;;
16045
16046     *)
16047       ld_shlibs=no
16048       ;;
16049     esac
16050   fi
16051
16052 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16053 echo "${ECHO_T}$ld_shlibs" >&6; }
16054 test "$ld_shlibs" = no && can_build_shared=no
16055
16056 #
16057 # Do we need to explicitly link libc?
16058 #
16059 case "x$archive_cmds_need_lc" in
16060 x|xyes)
16061   # Assume -lc should be added
16062   archive_cmds_need_lc=yes
16063
16064   if test "$enable_shared" = yes && test "$GCC" = yes; then
16065     case $archive_cmds in
16066     *'~'*)
16067       # FIXME: we may have to deal with multi-command sequences.
16068       ;;
16069     '$CC '*)
16070       # Test whether the compiler implicitly links with -lc since on some
16071       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16072       # to ld, don't add -lc before -lgcc.
16073       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16074 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16075       $rm conftest*
16076       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16077
16078       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079   (eval $ac_compile) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } 2>conftest.err; then
16083         soname=conftest
16084         lib=conftest
16085         libobjs=conftest.$ac_objext
16086         deplibs=
16087         wl=$lt_prog_compiler_wl
16088         pic_flag=$lt_prog_compiler_pic
16089         compiler_flags=-v
16090         linker_flags=-v
16091         verstring=
16092         output_objdir=.
16093         libname=conftest
16094         lt_save_allow_undefined_flag=$allow_undefined_flag
16095         allow_undefined_flag=
16096         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16097   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); }
16101         then
16102           archive_cmds_need_lc=no
16103         else
16104           archive_cmds_need_lc=yes
16105         fi
16106         allow_undefined_flag=$lt_save_allow_undefined_flag
16107       else
16108         cat conftest.err 1>&5
16109       fi
16110       $rm conftest*
16111       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16112 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16113       ;;
16114     esac
16115   fi
16116   ;;
16117 esac
16118
16119 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16120 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16121 library_names_spec=
16122 libname_spec='lib$name'
16123 soname_spec=
16124 shrext_cmds=".so"
16125 postinstall_cmds=
16126 postuninstall_cmds=
16127 finish_cmds=
16128 finish_eval=
16129 shlibpath_var=
16130 shlibpath_overrides_runpath=unknown
16131 version_type=none
16132 dynamic_linker="$host_os ld.so"
16133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16134 if test "$GCC" = yes; then
16135   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16136   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16137     # if the path contains ";" then we assume it to be the separator
16138     # otherwise default to the standard path separator (i.e. ":") - it is
16139     # assumed that no part of a normal pathname contains ";" but that should
16140     # okay in the real world where ";" in dirpaths is itself problematic.
16141     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16142   else
16143     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16144   fi
16145 else
16146   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16147 fi
16148 need_lib_prefix=unknown
16149 hardcode_into_libs=no
16150
16151 # when you set need_version to no, make sure it does not cause -set_version
16152 # flags to be left without arguments
16153 need_version=unknown
16154
16155 case $host_os in
16156 aix3*)
16157   version_type=linux
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16159   shlibpath_var=LIBPATH
16160
16161   # AIX 3 has no versioning support, so we append a major version to the name.
16162   soname_spec='${libname}${release}${shared_ext}$major'
16163   ;;
16164
16165 aix4* | aix5*)
16166   version_type=linux
16167   need_lib_prefix=no
16168   need_version=no
16169   hardcode_into_libs=yes
16170   if test "$host_cpu" = ia64; then
16171     # AIX 5 supports IA64
16172     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16173     shlibpath_var=LD_LIBRARY_PATH
16174   else
16175     # With GCC up to 2.95.x, collect2 would create an import file
16176     # for dependence libraries.  The import file would start with
16177     # the line `#! .'.  This would cause the generated library to
16178     # depend on `.', always an invalid library.  This was fixed in
16179     # development snapshots of GCC prior to 3.0.
16180     case $host_os in
16181       aix4 | aix4.[01] | aix4.[01].*)
16182       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16183            echo ' yes '
16184            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16185         :
16186       else
16187         can_build_shared=no
16188       fi
16189       ;;
16190     esac
16191     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16192     # soname into executable. Probably we can add versioning support to
16193     # collect2, so additional links can be useful in future.
16194     if test "$aix_use_runtimelinking" = yes; then
16195       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16196       # instead of lib<name>.a to let people know that these are not
16197       # typical AIX shared libraries.
16198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199     else
16200       # We preserve .a as extension for shared libraries through AIX4.2
16201       # and later when we are not doing run time linking.
16202       library_names_spec='${libname}${release}.a $libname.a'
16203       soname_spec='${libname}${release}${shared_ext}$major'
16204     fi
16205     shlibpath_var=LIBPATH
16206   fi
16207   ;;
16208
16209 amigaos*)
16210   library_names_spec='$libname.ixlibrary $libname.a'
16211   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16212   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'
16213   ;;
16214
16215 beos*)
16216   library_names_spec='${libname}${shared_ext}'
16217   dynamic_linker="$host_os ld.so"
16218   shlibpath_var=LIBRARY_PATH
16219   ;;
16220
16221 bsdi[45]*)
16222   version_type=linux
16223   need_version=no
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225   soname_spec='${libname}${release}${shared_ext}$major'
16226   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16227   shlibpath_var=LD_LIBRARY_PATH
16228   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16229   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16230   # the default ld.so.conf also contains /usr/contrib/lib and
16231   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16232   # libtool to hard-code these into programs
16233   ;;
16234
16235 cygwin* | mingw* | pw32*)
16236   version_type=windows
16237   shrext_cmds=".dll"
16238   need_version=no
16239   need_lib_prefix=no
16240
16241   case $GCC,$host_os in
16242   yes,cygwin* | yes,mingw* | yes,pw32*)
16243     library_names_spec='$libname.dll.a'
16244     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16245     postinstall_cmds='base_file=`basename \${file}`~
16246       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16247       dldir=$destdir/`dirname \$dlpath`~
16248       test -d \$dldir || mkdir -p \$dldir~
16249       $install_prog $dir/$dlname \$dldir/$dlname~
16250       chmod a+x \$dldir/$dlname'
16251     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16252       dlpath=$dir/\$dldll~
16253        $rm \$dlpath'
16254     shlibpath_overrides_runpath=yes
16255
16256     case $host_os in
16257     cygwin*)
16258       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16259       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16260       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16261       ;;
16262     mingw*)
16263       # MinGW DLLs use traditional 'lib' prefix
16264       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16267         # It is most probably a Windows format PATH printed by
16268         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16269         # path with ; separators, and with drive letters. We can handle the
16270         # drive letters (cygwin fileutils understands them), so leave them,
16271         # especially as we might pass files found there to a mingw objdump,
16272         # which wouldn't understand a cygwinified path. Ahh.
16273         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16274       else
16275         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16276       fi
16277       ;;
16278     pw32*)
16279       # pw32 DLLs use 'pw' prefix rather than 'lib'
16280       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16281       ;;
16282     esac
16283     ;;
16284
16285   *)
16286     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16287     ;;
16288   esac
16289   dynamic_linker='Win32 ld.exe'
16290   # FIXME: first we should search . and the directory the executable is in
16291   shlibpath_var=PATH
16292   ;;
16293
16294 darwin* | rhapsody*)
16295   dynamic_linker="$host_os dyld"
16296   version_type=darwin
16297   need_lib_prefix=no
16298   need_version=no
16299   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16300   soname_spec='${libname}${release}${major}$shared_ext'
16301   shlibpath_overrides_runpath=yes
16302   shlibpath_var=DYLD_LIBRARY_PATH
16303   shrext_cmds='.dylib'
16304   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16305   if test "$GCC" = yes; then
16306     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"`
16307   else
16308     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16309   fi
16310   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16311   ;;
16312
16313 dgux*)
16314   version_type=linux
16315   need_lib_prefix=no
16316   need_version=no
16317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   shlibpath_var=LD_LIBRARY_PATH
16320   ;;
16321
16322 freebsd1*)
16323   dynamic_linker=no
16324   ;;
16325
16326 kfreebsd*-gnu)
16327   version_type=linux
16328   need_lib_prefix=no
16329   need_version=no
16330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16331   soname_spec='${libname}${release}${shared_ext}$major'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   shlibpath_overrides_runpath=no
16334   hardcode_into_libs=yes
16335   dynamic_linker='GNU ld.so'
16336   ;;
16337
16338 freebsd* | dragonfly*)
16339   # DragonFly does not have aout.  When/if they implement a new
16340   # versioning mechanism, adjust this.
16341   if test -x /usr/bin/objformat; then
16342     objformat=`/usr/bin/objformat`
16343   else
16344     case $host_os in
16345     freebsd[123]*) objformat=aout ;;
16346     *) objformat=elf ;;
16347     esac
16348   fi
16349   version_type=freebsd-$objformat
16350   case $version_type in
16351     freebsd-elf*)
16352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16353       need_version=no
16354       need_lib_prefix=no
16355       ;;
16356     freebsd-*)
16357       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16358       need_version=yes
16359       ;;
16360   esac
16361   shlibpath_var=LD_LIBRARY_PATH
16362   case $host_os in
16363   freebsd2*)
16364     shlibpath_overrides_runpath=yes
16365     ;;
16366   freebsd3.[01]* | freebsdelf3.[01]*)
16367     shlibpath_overrides_runpath=yes
16368     hardcode_into_libs=yes
16369     ;;
16370   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16371   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16372     shlibpath_overrides_runpath=no
16373     hardcode_into_libs=yes
16374     ;;
16375   freebsd*) # from 4.6 on
16376     shlibpath_overrides_runpath=yes
16377     hardcode_into_libs=yes
16378     ;;
16379   esac
16380   ;;
16381
16382 gnu*)
16383   version_type=linux
16384   need_lib_prefix=no
16385   need_version=no
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16387   soname_spec='${libname}${release}${shared_ext}$major'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   hardcode_into_libs=yes
16390   ;;
16391
16392 hpux9* | hpux10* | hpux11*)
16393   # Give a soname corresponding to the major version so that dld.sl refuses to
16394   # link against other versions.
16395   version_type=sunos
16396   need_lib_prefix=no
16397   need_version=no
16398   case $host_cpu in
16399   ia64*)
16400     shrext_cmds='.so'
16401     hardcode_into_libs=yes
16402     dynamic_linker="$host_os dld.so"
16403     shlibpath_var=LD_LIBRARY_PATH
16404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406     soname_spec='${libname}${release}${shared_ext}$major'
16407     if test "X$HPUX_IA64_MODE" = X32; then
16408       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16409     else
16410       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16411     fi
16412     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16413     ;;
16414    hppa*64*)
16415      shrext_cmds='.sl'
16416      hardcode_into_libs=yes
16417      dynamic_linker="$host_os dld.sl"
16418      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16419      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16420      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421      soname_spec='${libname}${release}${shared_ext}$major'
16422      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16423      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16424      ;;
16425    *)
16426     shrext_cmds='.sl'
16427     dynamic_linker="$host_os dld.sl"
16428     shlibpath_var=SHLIB_PATH
16429     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431     soname_spec='${libname}${release}${shared_ext}$major'
16432     ;;
16433   esac
16434   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16435   postinstall_cmds='chmod 555 $lib'
16436   ;;
16437
16438 interix3*)
16439   version_type=linux
16440   need_lib_prefix=no
16441   need_version=no
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   shlibpath_overrides_runpath=no
16447   hardcode_into_libs=yes
16448   ;;
16449
16450 irix5* | irix6* | nonstopux*)
16451   case $host_os in
16452     nonstopux*) version_type=nonstopux ;;
16453     *)
16454         if test "$lt_cv_prog_gnu_ld" = yes; then
16455                 version_type=linux
16456         else
16457                 version_type=irix
16458         fi ;;
16459   esac
16460   need_lib_prefix=no
16461   need_version=no
16462   soname_spec='${libname}${release}${shared_ext}$major'
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16464   case $host_os in
16465   irix5* | nonstopux*)
16466     libsuff= shlibsuff=
16467     ;;
16468   *)
16469     case $LD in # libtool.m4 will add one of these switches to LD
16470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16471       libsuff= shlibsuff= libmagic=32-bit;;
16472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16473       libsuff=32 shlibsuff=N32 libmagic=N32;;
16474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16476     *) libsuff= shlibsuff= libmagic=never-match;;
16477     esac
16478     ;;
16479   esac
16480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16481   shlibpath_overrides_runpath=no
16482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16484   hardcode_into_libs=yes
16485   ;;
16486
16487 # No shared lib support for Linux oldld, aout, or coff.
16488 linux*oldld* | linux*aout* | linux*coff*)
16489   dynamic_linker=no
16490   ;;
16491
16492 # This must be Linux ELF.
16493 linux*)
16494   version_type=linux
16495   need_lib_prefix=no
16496   need_version=no
16497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498   soname_spec='${libname}${release}${shared_ext}$major'
16499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   shlibpath_overrides_runpath=no
16502   # This implies no fast_install, which is unacceptable.
16503   # Some rework will be needed to allow for fast_install
16504   # before this can be enabled.
16505   hardcode_into_libs=yes
16506
16507   # Append ld.so.conf contents to the search path
16508   if test -f /etc/ld.so.conf; then
16509     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' ' '`
16510     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16511   fi
16512
16513   # We used to test for /lib/ld.so.1 and disable shared libraries on
16514   # powerpc, because MkLinux only supported shared libraries with the
16515   # GNU dynamic linker.  Since this was broken with cross compilers,
16516   # most powerpc-linux boxes support dynamic linking these days and
16517   # people can always --disable-shared, the test was removed, and we
16518   # assume the GNU/Linux dynamic linker is in use.
16519   dynamic_linker='GNU/Linux ld.so'
16520   ;;
16521
16522 knetbsd*-gnu)
16523   version_type=linux
16524   need_lib_prefix=no
16525   need_version=no
16526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527   soname_spec='${libname}${release}${shared_ext}$major'
16528   shlibpath_var=LD_LIBRARY_PATH
16529   shlibpath_overrides_runpath=no
16530   hardcode_into_libs=yes
16531   dynamic_linker='GNU ld.so'
16532   ;;
16533
16534 netbsd*)
16535   version_type=sunos
16536   need_lib_prefix=no
16537   need_version=no
16538   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16540     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16541     dynamic_linker='NetBSD (a.out) ld.so'
16542   else
16543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16544     soname_spec='${libname}${release}${shared_ext}$major'
16545     dynamic_linker='NetBSD ld.elf_so'
16546   fi
16547   shlibpath_var=LD_LIBRARY_PATH
16548   shlibpath_overrides_runpath=yes
16549   hardcode_into_libs=yes
16550   ;;
16551
16552 newsos6)
16553   version_type=linux
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   shlibpath_overrides_runpath=yes
16557   ;;
16558
16559 nto-qnx*)
16560   version_type=linux
16561   need_lib_prefix=no
16562   need_version=no
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564   soname_spec='${libname}${release}${shared_ext}$major'
16565   shlibpath_var=LD_LIBRARY_PATH
16566   shlibpath_overrides_runpath=yes
16567   ;;
16568
16569 openbsd*)
16570   version_type=sunos
16571   sys_lib_dlsearch_path_spec="/usr/lib"
16572   need_lib_prefix=no
16573   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16574   case $host_os in
16575     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16576     *)                         need_version=no  ;;
16577   esac
16578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16579   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16580   shlibpath_var=LD_LIBRARY_PATH
16581   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16582     case $host_os in
16583       openbsd2.[89] | openbsd2.[89].*)
16584         shlibpath_overrides_runpath=no
16585         ;;
16586       *)
16587         shlibpath_overrides_runpath=yes
16588         ;;
16589       esac
16590   else
16591     shlibpath_overrides_runpath=yes
16592   fi
16593   ;;
16594
16595 os2*)
16596   libname_spec='$name'
16597   shrext_cmds=".dll"
16598   need_lib_prefix=no
16599   library_names_spec='$libname${shared_ext} $libname.a'
16600   dynamic_linker='OS/2 ld.exe'
16601   shlibpath_var=LIBPATH
16602   ;;
16603
16604 osf3* | osf4* | osf5*)
16605   version_type=osf
16606   need_lib_prefix=no
16607   need_version=no
16608   soname_spec='${libname}${release}${shared_ext}$major'
16609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610   shlibpath_var=LD_LIBRARY_PATH
16611   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16612   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16613   ;;
16614
16615 solaris*)
16616   version_type=linux
16617   need_lib_prefix=no
16618   need_version=no
16619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620   soname_spec='${libname}${release}${shared_ext}$major'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   shlibpath_overrides_runpath=yes
16623   hardcode_into_libs=yes
16624   # ldd complains unless libraries are executable
16625   postinstall_cmds='chmod +x $lib'
16626   ;;
16627
16628 sunos4*)
16629   version_type=sunos
16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632   shlibpath_var=LD_LIBRARY_PATH
16633   shlibpath_overrides_runpath=yes
16634   if test "$with_gnu_ld" = yes; then
16635     need_lib_prefix=no
16636   fi
16637   need_version=yes
16638   ;;
16639
16640 sysv4 | sysv4.3*)
16641   version_type=linux
16642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643   soname_spec='${libname}${release}${shared_ext}$major'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   case $host_vendor in
16646     sni)
16647       shlibpath_overrides_runpath=no
16648       need_lib_prefix=no
16649       export_dynamic_flag_spec='${wl}-Blargedynsym'
16650       runpath_var=LD_RUN_PATH
16651       ;;
16652     siemens)
16653       need_lib_prefix=no
16654       ;;
16655     motorola)
16656       need_lib_prefix=no
16657       need_version=no
16658       shlibpath_overrides_runpath=no
16659       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16660       ;;
16661   esac
16662   ;;
16663
16664 sysv4*MP*)
16665   if test -d /usr/nec ;then
16666     version_type=linux
16667     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668     soname_spec='$libname${shared_ext}.$major'
16669     shlibpath_var=LD_LIBRARY_PATH
16670   fi
16671   ;;
16672
16673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16674   version_type=freebsd-elf
16675   need_lib_prefix=no
16676   need_version=no
16677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16678   soname_spec='${libname}${release}${shared_ext}$major'
16679   shlibpath_var=LD_LIBRARY_PATH
16680   hardcode_into_libs=yes
16681   if test "$with_gnu_ld" = yes; then
16682     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16683     shlibpath_overrides_runpath=no
16684   else
16685     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16686     shlibpath_overrides_runpath=yes
16687     case $host_os in
16688       sco3.2v5*)
16689         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16690         ;;
16691     esac
16692   fi
16693   sys_lib_dlsearch_path_spec='/usr/lib'
16694   ;;
16695
16696 uts4*)
16697   version_type=linux
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699   soname_spec='${libname}${release}${shared_ext}$major'
16700   shlibpath_var=LD_LIBRARY_PATH
16701   ;;
16702
16703 *)
16704   dynamic_linker=no
16705   ;;
16706 esac
16707 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16708 echo "${ECHO_T}$dynamic_linker" >&6; }
16709 test "$dynamic_linker" = no && can_build_shared=no
16710
16711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16712 if test "$GCC" = yes; then
16713   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16714 fi
16715
16716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16718 hardcode_action=
16719 if test -n "$hardcode_libdir_flag_spec" || \
16720    test -n "$runpath_var" || \
16721    test "X$hardcode_automatic" = "Xyes" ; then
16722
16723   # We can hardcode non-existant directories.
16724   if test "$hardcode_direct" != no &&
16725      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16726      # have to relink, otherwise we might link with an installed library
16727      # when we should be linking with a yet-to-be-installed one
16728      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16729      test "$hardcode_minus_L" != no; then
16730     # Linking always hardcodes the temporary library directory.
16731     hardcode_action=relink
16732   else
16733     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16734     hardcode_action=immediate
16735   fi
16736 else
16737   # We cannot hardcode anything, or else we can only hardcode existing
16738   # directories.
16739   hardcode_action=unsupported
16740 fi
16741 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16742 echo "${ECHO_T}$hardcode_action" >&6; }
16743
16744 if test "$hardcode_action" = relink; then
16745   # Fast installation is not supported
16746   enable_fast_install=no
16747 elif test "$shlibpath_overrides_runpath" = yes ||
16748      test "$enable_shared" = no; then
16749   # Fast installation is not necessary
16750   enable_fast_install=needless
16751 fi
16752
16753 striplib=
16754 old_striplib=
16755 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16756 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16757 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16758   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16759   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16760   { echo "$as_me:$LINENO: result: yes" >&5
16761 echo "${ECHO_T}yes" >&6; }
16762 else
16763 # FIXME - insert some real tests, host_os isn't really good enough
16764   case $host_os in
16765    darwin*)
16766        if test -n "$STRIP" ; then
16767          striplib="$STRIP -x"
16768          { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16770        else
16771   { echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6; }
16773 fi
16774        ;;
16775    *)
16776   { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16778     ;;
16779   esac
16780 fi
16781
16782 if test "x$enable_dlopen" != xyes; then
16783   enable_dlopen=unknown
16784   enable_dlopen_self=unknown
16785   enable_dlopen_self_static=unknown
16786 else
16787   lt_cv_dlopen=no
16788   lt_cv_dlopen_libs=
16789
16790   case $host_os in
16791   beos*)
16792     lt_cv_dlopen="load_add_on"
16793     lt_cv_dlopen_libs=
16794     lt_cv_dlopen_self=yes
16795     ;;
16796
16797   mingw* | pw32*)
16798     lt_cv_dlopen="LoadLibrary"
16799     lt_cv_dlopen_libs=
16800    ;;
16801
16802   cygwin*)
16803     lt_cv_dlopen="dlopen"
16804     lt_cv_dlopen_libs=
16805    ;;
16806
16807   darwin*)
16808   # if libdl is installed we need to link against it
16809     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-ldl  $LIBS"
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822
16823 /* Override any GCC internal prototype to avoid an error.
16824    Use char because int might match the return type of a GCC
16825    builtin and then its argument prototype would still apply.  */
16826 #ifdef __cplusplus
16827 extern "C"
16828 #endif
16829 char dlopen ();
16830 int
16831 main ()
16832 {
16833 return dlopen ();
16834   ;
16835   return 0;
16836 }
16837 _ACEOF
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_link") 2>conftest.er1
16846   ac_status=$?
16847   grep -v '^ *+' conftest.er1 >conftest.err
16848   rm -f conftest.er1
16849   cat conftest.err >&5
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853   { (case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_try") 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; } &&
16862          { ac_try='test -s conftest$ac_exeext'
16863   { (case "(($ac_try" in
16864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865   *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868   (eval "$ac_try") 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_lib_dl_dlopen=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877         ac_cv_lib_dl_dlopen=no
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext \
16881       conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16886 if test $ac_cv_lib_dl_dlopen = yes; then
16887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888 else
16889
16890     lt_cv_dlopen="dyld"
16891     lt_cv_dlopen_libs=
16892     lt_cv_dlopen_self=yes
16893
16894 fi
16895
16896    ;;
16897
16898   *)
16899     { echo "$as_me:$LINENO: checking for shl_load" >&5
16900 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16901 if test "${ac_cv_func_shl_load+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16912 #define shl_load innocuous_shl_load
16913
16914 /* System header to define __stub macros and hopefully few prototypes,
16915     which can conflict with char shl_load (); below.
16916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917     <limits.h> exists even on freestanding compilers.  */
16918
16919 #ifdef __STDC__
16920 # include <limits.h>
16921 #else
16922 # include <assert.h>
16923 #endif
16924
16925 #undef shl_load
16926
16927 /* Override any GCC internal prototype to avoid an error.
16928    Use char because int might match the return type of a GCC
16929    builtin and then its argument prototype would still apply.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char shl_load ();
16934 /* The GNU C library defines this for functions which it implements
16935     to always fail with ENOSYS.  Some functions are actually named
16936     something starting with __ and the normal name is an alias.  */
16937 #if defined __stub_shl_load || defined __stub___shl_load
16938 choke me
16939 #endif
16940
16941 int
16942 main ()
16943 {
16944 return shl_load ();
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_link") 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964   { (case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969   (eval "$ac_try") 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; } &&
16973          { ac_try='test -s conftest$ac_exeext'
16974   { (case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_try") 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; }; then
16983   ac_cv_func_shl_load=yes
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988         ac_cv_func_shl_load=no
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext \
16992       conftest$ac_exeext conftest.$ac_ext
16993 fi
16994 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16995 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16996 if test $ac_cv_func_shl_load = yes; then
16997   lt_cv_dlopen="shl_load"
16998 else
16999   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17000 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17002   echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004   ac_check_lib_save_LIBS=$LIBS
17005 LIBS="-ldld  $LIBS"
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h.  */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h.  */
17012
17013 /* Override any GCC internal prototype to avoid an error.
17014    Use char because int might match the return type of a GCC
17015    builtin and then its argument prototype would still apply.  */
17016 #ifdef __cplusplus
17017 extern "C"
17018 #endif
17019 char shl_load ();
17020 int
17021 main ()
17022 {
17023 return shl_load ();
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_link") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest$ac_exeext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_lib_dld_shl_load=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         ac_cv_lib_dld_shl_load=no
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext \
17071       conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17073 fi
17074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17076 if test $ac_cv_lib_dld_shl_load = yes; then
17077   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17078 else
17079   { echo "$as_me:$LINENO: checking for dlopen" >&5
17080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17081 if test "${ac_cv_func_dlopen+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17092 #define dlopen innocuous_dlopen
17093
17094 /* System header to define __stub macros and hopefully few prototypes,
17095     which can conflict with char dlopen (); below.
17096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097     <limits.h> exists even on freestanding compilers.  */
17098
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104
17105 #undef dlopen
17106
17107 /* Override any GCC internal prototype to avoid an error.
17108    Use char because int might match the return type of a GCC
17109    builtin and then its argument prototype would still apply.  */
17110 #ifdef __cplusplus
17111 extern "C"
17112 #endif
17113 char dlopen ();
17114 /* The GNU C library defines this for functions which it implements
17115     to always fail with ENOSYS.  Some functions are actually named
17116     something starting with __ and the normal name is an alias.  */
17117 #if defined __stub_dlopen || defined __stub___dlopen
17118 choke me
17119 #endif
17120
17121 int
17122 main ()
17123 {
17124 return dlopen ();
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_link") 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } &&
17143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144   { (case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_try") 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; } &&
17153          { ac_try='test -s conftest$ac_exeext'
17154   { (case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_try") 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; }; then
17163   ac_cv_func_dlopen=yes
17164 else
17165   echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17167
17168         ac_cv_func_dlopen=no
17169 fi
17170
17171 rm -f core conftest.err conftest.$ac_objext \
17172       conftest$ac_exeext conftest.$ac_ext
17173 fi
17174 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17175 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17176 if test $ac_cv_func_dlopen = yes; then
17177   lt_cv_dlopen="dlopen"
17178 else
17179   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   ac_check_lib_save_LIBS=$LIBS
17185 LIBS="-ldl  $LIBS"
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h.  */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h.  */
17192
17193 /* Override any GCC internal prototype to avoid an error.
17194    Use char because int might match the return type of a GCC
17195    builtin and then its argument prototype would still apply.  */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 char dlopen ();
17200 int
17201 main ()
17202 {
17203 return dlopen ();
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_link") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223   { (case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_try") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } &&
17232          { ac_try='test -s conftest$ac_exeext'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_lib_dl_dlopen=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         ac_cv_lib_dl_dlopen=no
17248 fi
17249
17250 rm -f core conftest.err conftest.$ac_objext \
17251       conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17253 fi
17254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17256 if test $ac_cv_lib_dl_dlopen = yes; then
17257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17258 else
17259   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17260 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17261 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17262   echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264   ac_check_lib_save_LIBS=$LIBS
17265 LIBS="-lsvld  $LIBS"
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272
17273 /* Override any GCC internal prototype to avoid an error.
17274    Use char because int might match the return type of a GCC
17275    builtin and then its argument prototype would still apply.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char dlopen ();
17280 int
17281 main ()
17282 {
17283 return dlopen ();
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295   (eval "$ac_link") 2>conftest.er1
17296   ac_status=$?
17297   grep -v '^ *+' conftest.er1 >conftest.err
17298   rm -f conftest.er1
17299   cat conftest.err >&5
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); } &&
17302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303   { (case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_try") 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; } &&
17312          { ac_try='test -s conftest$ac_exeext'
17313   { (case "(($ac_try" in
17314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315   *) ac_try_echo=$ac_try;;
17316 esac
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318   (eval "$ac_try") 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; }; then
17322   ac_cv_lib_svld_dlopen=yes
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327         ac_cv_lib_svld_dlopen=no
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext \
17331       conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17333 fi
17334 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17335 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17336 if test $ac_cv_lib_svld_dlopen = yes; then
17337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17338 else
17339   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17340 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   ac_check_lib_save_LIBS=$LIBS
17345 LIBS="-ldld  $LIBS"
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h.  */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h.  */
17352
17353 /* Override any GCC internal prototype to avoid an error.
17354    Use char because int might match the return type of a GCC
17355    builtin and then its argument prototype would still apply.  */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 char dld_link ();
17360 int
17361 main ()
17362 {
17363 return dld_link ();
17364   ;
17365   return 0;
17366 }
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372   *) ac_try_echo=$ac_try;;
17373 esac
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375   (eval "$ac_link") 2>conftest.er1
17376   ac_status=$?
17377   grep -v '^ *+' conftest.er1 >conftest.err
17378   rm -f conftest.er1
17379   cat conftest.err >&5
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17383   { (case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_try") 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; } &&
17392          { ac_try='test -s conftest$ac_exeext'
17393   { (case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_try") 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_lib_dld_dld_link=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407         ac_cv_lib_dld_dld_link=no
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext \
17411       conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17413 fi
17414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17416 if test $ac_cv_lib_dld_dld_link = yes; then
17417   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17418 fi
17419
17420
17421 fi
17422
17423
17424 fi
17425
17426
17427 fi
17428
17429
17430 fi
17431
17432
17433 fi
17434
17435     ;;
17436   esac
17437
17438   if test "x$lt_cv_dlopen" != xno; then
17439     enable_dlopen=yes
17440   else
17441     enable_dlopen=no
17442   fi
17443
17444   case $lt_cv_dlopen in
17445   dlopen)
17446     save_CPPFLAGS="$CPPFLAGS"
17447     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17448
17449     save_LDFLAGS="$LDFLAGS"
17450     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17451
17452     save_LIBS="$LIBS"
17453     LIBS="$lt_cv_dlopen_libs $LIBS"
17454
17455     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17456 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17457 if test "${lt_cv_dlopen_self+set}" = set; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460           if test "$cross_compiling" = yes; then :
17461   lt_cv_dlopen_self=cross
17462 else
17463   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17464   lt_status=$lt_dlunknown
17465   cat > conftest.$ac_ext <<EOF
17466 #line 17466 "configure"
17467 #include "confdefs.h"
17468
17469 #if HAVE_DLFCN_H
17470 #include <dlfcn.h>
17471 #endif
17472
17473 #include <stdio.h>
17474
17475 #ifdef RTLD_GLOBAL
17476 #  define LT_DLGLOBAL           RTLD_GLOBAL
17477 #else
17478 #  ifdef DL_GLOBAL
17479 #    define LT_DLGLOBAL         DL_GLOBAL
17480 #  else
17481 #    define LT_DLGLOBAL         0
17482 #  endif
17483 #endif
17484
17485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17486    find out it does not work in some platform. */
17487 #ifndef LT_DLLAZY_OR_NOW
17488 #  ifdef RTLD_LAZY
17489 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17490 #  else
17491 #    ifdef DL_LAZY
17492 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17493 #    else
17494 #      ifdef RTLD_NOW
17495 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17496 #      else
17497 #        ifdef DL_NOW
17498 #          define LT_DLLAZY_OR_NOW      DL_NOW
17499 #        else
17500 #          define LT_DLLAZY_OR_NOW      0
17501 #        endif
17502 #      endif
17503 #    endif
17504 #  endif
17505 #endif
17506
17507 #ifdef __cplusplus
17508 extern "C" void exit (int);
17509 #endif
17510
17511 void fnord() { int i=42;}
17512 int main ()
17513 {
17514   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17515   int status = $lt_dlunknown;
17516
17517   if (self)
17518     {
17519       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17520       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17521       /* dlclose (self); */
17522     }
17523   else
17524     puts (dlerror ());
17525
17526     exit (status);
17527 }
17528 EOF
17529   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530   (eval $ac_link) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17534     (./conftest; exit; ) >&5 2>/dev/null
17535     lt_status=$?
17536     case x$lt_status in
17537       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17538       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17539       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17540     esac
17541   else :
17542     # compilation failed
17543     lt_cv_dlopen_self=no
17544   fi
17545 fi
17546 rm -fr conftest*
17547
17548
17549 fi
17550 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17551 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17552
17553     if test "x$lt_cv_dlopen_self" = xyes; then
17554       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17555       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17556 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17557 if test "${lt_cv_dlopen_self_static+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560           if test "$cross_compiling" = yes; then :
17561   lt_cv_dlopen_self_static=cross
17562 else
17563   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17564   lt_status=$lt_dlunknown
17565   cat > conftest.$ac_ext <<EOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17568
17569 #if HAVE_DLFCN_H
17570 #include <dlfcn.h>
17571 #endif
17572
17573 #include <stdio.h>
17574
17575 #ifdef RTLD_GLOBAL
17576 #  define LT_DLGLOBAL           RTLD_GLOBAL
17577 #else
17578 #  ifdef DL_GLOBAL
17579 #    define LT_DLGLOBAL         DL_GLOBAL
17580 #  else
17581 #    define LT_DLGLOBAL         0
17582 #  endif
17583 #endif
17584
17585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17586    find out it does not work in some platform. */
17587 #ifndef LT_DLLAZY_OR_NOW
17588 #  ifdef RTLD_LAZY
17589 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17590 #  else
17591 #    ifdef DL_LAZY
17592 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17593 #    else
17594 #      ifdef RTLD_NOW
17595 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17596 #      else
17597 #        ifdef DL_NOW
17598 #          define LT_DLLAZY_OR_NOW      DL_NOW
17599 #        else
17600 #          define LT_DLLAZY_OR_NOW      0
17601 #        endif
17602 #      endif
17603 #    endif
17604 #  endif
17605 #endif
17606
17607 #ifdef __cplusplus
17608 extern "C" void exit (int);
17609 #endif
17610
17611 void fnord() { int i=42;}
17612 int main ()
17613 {
17614   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615   int status = $lt_dlunknown;
17616
17617   if (self)
17618     {
17619       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17620       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17621       /* dlclose (self); */
17622     }
17623   else
17624     puts (dlerror ());
17625
17626     exit (status);
17627 }
17628 EOF
17629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17630   (eval $ac_link) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17634     (./conftest; exit; ) >&5 2>/dev/null
17635     lt_status=$?
17636     case x$lt_status in
17637       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17638       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17639       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17640     esac
17641   else :
17642     # compilation failed
17643     lt_cv_dlopen_self_static=no
17644   fi
17645 fi
17646 rm -fr conftest*
17647
17648
17649 fi
17650 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17652     fi
17653
17654     CPPFLAGS="$save_CPPFLAGS"
17655     LDFLAGS="$save_LDFLAGS"
17656     LIBS="$save_LIBS"
17657     ;;
17658   esac
17659
17660   case $lt_cv_dlopen_self in
17661   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17662   *) enable_dlopen_self=unknown ;;
17663   esac
17664
17665   case $lt_cv_dlopen_self_static in
17666   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17667   *) enable_dlopen_self_static=unknown ;;
17668   esac
17669 fi
17670
17671
17672 # Report which library types will actually be built
17673 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17675 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17676 echo "${ECHO_T}$can_build_shared" >&6; }
17677
17678 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17680 test "$can_build_shared" = "no" && enable_shared=no
17681
17682 # On AIX, shared libraries and static libraries use the same namespace, and
17683 # are all built from PIC.
17684 case $host_os in
17685 aix3*)
17686   test "$enable_shared" = yes && enable_static=no
17687   if test -n "$RANLIB"; then
17688     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17689     postinstall_cmds='$RANLIB $lib'
17690   fi
17691   ;;
17692
17693 aix4* | aix5*)
17694   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17695     test "$enable_shared" = yes && enable_static=no
17696   fi
17697     ;;
17698 esac
17699 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17700 echo "${ECHO_T}$enable_shared" >&6; }
17701
17702 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17704 # Make sure either enable_shared or enable_static is yes.
17705 test "$enable_shared" = yes || enable_static=yes
17706 { echo "$as_me:$LINENO: result: $enable_static" >&5
17707 echo "${ECHO_T}$enable_static" >&6; }
17708
17709 # The else clause should only fire when bootstrapping the
17710 # libtool distribution, otherwise you forgot to ship ltmain.sh
17711 # with your package, and you will get complaints that there are
17712 # no rules to generate ltmain.sh.
17713 if test -f "$ltmain"; then
17714   # See if we are running on zsh, and set the options which allow our commands through
17715   # without removal of \ escapes.
17716   if test -n "${ZSH_VERSION+set}" ; then
17717     setopt NO_GLOB_SUBST
17718   fi
17719   # Now quote all the things that may contain metacharacters while being
17720   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17721   # variables and quote the copies for generation of the libtool script.
17722   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17723     SED SHELL STRIP \
17724     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17725     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17726     deplibs_check_method reload_flag reload_cmds need_locks \
17727     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17728     lt_cv_sys_global_symbol_to_c_name_address \
17729     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17730     old_postinstall_cmds old_postuninstall_cmds \
17731     compiler \
17732     CC \
17733     LD \
17734     lt_prog_compiler_wl \
17735     lt_prog_compiler_pic \
17736     lt_prog_compiler_static \
17737     lt_prog_compiler_no_builtin_flag \
17738     export_dynamic_flag_spec \
17739     thread_safe_flag_spec \
17740     whole_archive_flag_spec \
17741     enable_shared_with_static_runtimes \
17742     old_archive_cmds \
17743     old_archive_from_new_cmds \
17744     predep_objects \
17745     postdep_objects \
17746     predeps \
17747     postdeps \
17748     compiler_lib_search_path \
17749     archive_cmds \
17750     archive_expsym_cmds \
17751     postinstall_cmds \
17752     postuninstall_cmds \
17753     old_archive_from_expsyms_cmds \
17754     allow_undefined_flag \
17755     no_undefined_flag \
17756     export_symbols_cmds \
17757     hardcode_libdir_flag_spec \
17758     hardcode_libdir_flag_spec_ld \
17759     hardcode_libdir_separator \
17760     hardcode_automatic \
17761     module_cmds \
17762     module_expsym_cmds \
17763     lt_cv_prog_compiler_c_o \
17764     exclude_expsyms \
17765     include_expsyms; do
17766
17767     case $var in
17768     old_archive_cmds | \
17769     old_archive_from_new_cmds | \
17770     archive_cmds | \
17771     archive_expsym_cmds | \
17772     module_cmds | \
17773     module_expsym_cmds | \
17774     old_archive_from_expsyms_cmds | \
17775     export_symbols_cmds | \
17776     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17777     postinstall_cmds | postuninstall_cmds | \
17778     old_postinstall_cmds | old_postuninstall_cmds | \
17779     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17780       # Double-quote double-evaled strings.
17781       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17782       ;;
17783     *)
17784       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17785       ;;
17786     esac
17787   done
17788
17789   case $lt_echo in
17790   *'\$0 --fallback-echo"')
17791     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17792     ;;
17793   esac
17794
17795 cfgfile="${ofile}T"
17796   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17797   $rm -f "$cfgfile"
17798   { echo "$as_me:$LINENO: creating $ofile" >&5
17799 echo "$as_me: creating $ofile" >&6;}
17800
17801   cat <<__EOF__ >> "$cfgfile"
17802 #! $SHELL
17803
17804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17807 #
17808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17809 # Free Software Foundation, Inc.
17810 #
17811 # This file is part of GNU Libtool:
17812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17813 #
17814 # This program is free software; you can redistribute it and/or modify
17815 # it under the terms of the GNU General Public License as published by
17816 # the Free Software Foundation; either version 2 of the License, or
17817 # (at your option) any later version.
17818 #
17819 # This program is distributed in the hope that it will be useful, but
17820 # WITHOUT ANY WARRANTY; without even the implied warranty of
17821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17822 # General Public License for more details.
17823 #
17824 # You should have received a copy of the GNU General Public License
17825 # along with this program; if not, write to the Free Software
17826 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17827 #
17828 # As a special exception to the GNU General Public License, if you
17829 # distribute this file as part of a program that contains a
17830 # configuration script generated by Autoconf, you may include it under
17831 # the same distribution terms that you use for the rest of that program.
17832
17833 # A sed program that does not truncate output.
17834 SED=$lt_SED
17835
17836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17837 Xsed="$SED -e 1s/^X//"
17838
17839 # The HP-UX ksh and POSIX shell print the target directory to stdout
17840 # if CDPATH is set.
17841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17842
17843 # The names of the tagged configurations supported by this script.
17844 available_tags=
17845
17846 # ### BEGIN LIBTOOL CONFIG
17847
17848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849
17850 # Shell to use when invoking shell scripts.
17851 SHELL=$lt_SHELL
17852
17853 # Whether or not to build shared libraries.
17854 build_libtool_libs=$enable_shared
17855
17856 # Whether or not to build static libraries.
17857 build_old_libs=$enable_static
17858
17859 # Whether or not to add -lc for building shared libraries.
17860 build_libtool_need_lc=$archive_cmds_need_lc
17861
17862 # Whether or not to disallow shared libs when runtime libs are static
17863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17864
17865 # Whether or not to optimize for fast installation.
17866 fast_install=$enable_fast_install
17867
17868 # The host system.
17869 host_alias=$host_alias
17870 host=$host
17871 host_os=$host_os
17872
17873 # The build system.
17874 build_alias=$build_alias
17875 build=$build
17876 build_os=$build_os
17877
17878 # An echo program that does not interpret backslashes.
17879 echo=$lt_echo
17880
17881 # The archiver.
17882 AR=$lt_AR
17883 AR_FLAGS=$lt_AR_FLAGS
17884
17885 # A C compiler.
17886 LTCC=$lt_LTCC
17887
17888 # LTCC compiler flags.
17889 LTCFLAGS=$lt_LTCFLAGS
17890
17891 # A language-specific compiler.
17892 CC=$lt_compiler
17893
17894 # Is the compiler the GNU C compiler?
17895 with_gcc=$GCC
17896
17897 # An ERE matcher.
17898 EGREP=$lt_EGREP
17899
17900 # The linker used to build libraries.
17901 LD=$lt_LD
17902
17903 # Whether we need hard or soft links.
17904 LN_S=$lt_LN_S
17905
17906 # A BSD-compatible nm program.
17907 NM=$lt_NM
17908
17909 # A symbol stripping program
17910 STRIP=$lt_STRIP
17911
17912 # Used to examine libraries when file_magic_cmd begins "file"
17913 MAGIC_CMD=$MAGIC_CMD
17914
17915 # Used on cygwin: DLL creation program.
17916 DLLTOOL="$DLLTOOL"
17917
17918 # Used on cygwin: object dumper.
17919 OBJDUMP="$OBJDUMP"
17920
17921 # Used on cygwin: assembler.
17922 AS="$AS"
17923
17924 # The name of the directory that contains temporary libtool files.
17925 objdir=$objdir
17926
17927 # How to create reloadable object files.
17928 reload_flag=$lt_reload_flag
17929 reload_cmds=$lt_reload_cmds
17930
17931 # How to pass a linker flag through the compiler.
17932 wl=$lt_lt_prog_compiler_wl
17933
17934 # Object file suffix (normally "o").
17935 objext="$ac_objext"
17936
17937 # Old archive suffix (normally "a").
17938 libext="$libext"
17939
17940 # Shared library suffix (normally ".so").
17941 shrext_cmds='$shrext_cmds'
17942
17943 # Executable file suffix (normally "").
17944 exeext="$exeext"
17945
17946 # Additional compiler flags for building library objects.
17947 pic_flag=$lt_lt_prog_compiler_pic
17948 pic_mode=$pic_mode
17949
17950 # What is the maximum length of a command?
17951 max_cmd_len=$lt_cv_sys_max_cmd_len
17952
17953 # Does compiler simultaneously support -c and -o options?
17954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17955
17956 # Must we lock files when doing compilation?
17957 need_locks=$lt_need_locks
17958
17959 # Do we need the lib prefix for modules?
17960 need_lib_prefix=$need_lib_prefix
17961
17962 # Do we need a version for libraries?
17963 need_version=$need_version
17964
17965 # Whether dlopen is supported.
17966 dlopen_support=$enable_dlopen
17967
17968 # Whether dlopen of programs is supported.
17969 dlopen_self=$enable_dlopen_self
17970
17971 # Whether dlopen of statically linked programs is supported.
17972 dlopen_self_static=$enable_dlopen_self_static
17973
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static
17976
17977 # Compiler flag to turn off builtin functions.
17978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17979
17980 # Compiler flag to allow reflexive dlopens.
17981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17982
17983 # Compiler flag to generate shared objects directly from archives.
17984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17985
17986 # Compiler flag to generate thread-safe objects.
17987 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17988
17989 # Library versioning type.
17990 version_type=$version_type
17991
17992 # Format of library name prefix.
17993 libname_spec=$lt_libname_spec
17994
17995 # List of archive names.  First name is the real one, the rest are links.
17996 # The last name is the one that the linker finds with -lNAME.
17997 library_names_spec=$lt_library_names_spec
17998
17999 # The coded name of the library, if different from the real name.
18000 soname_spec=$lt_soname_spec
18001
18002 # Commands used to build and install an old-style archive.
18003 RANLIB=$lt_RANLIB
18004 old_archive_cmds=$lt_old_archive_cmds
18005 old_postinstall_cmds=$lt_old_postinstall_cmds
18006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007
18008 # Create an old-style archive from a shared archive.
18009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18010
18011 # Create a temporary old-style archive to link instead of a shared archive.
18012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18013
18014 # Commands used to build and install a shared archive.
18015 archive_cmds=$lt_archive_cmds
18016 archive_expsym_cmds=$lt_archive_expsym_cmds
18017 postinstall_cmds=$lt_postinstall_cmds
18018 postuninstall_cmds=$lt_postuninstall_cmds
18019
18020 # Commands used to build a loadable module (assumed same as above if empty)
18021 module_cmds=$lt_module_cmds
18022 module_expsym_cmds=$lt_module_expsym_cmds
18023
18024 # Commands to strip libraries.
18025 old_striplib=$lt_old_striplib
18026 striplib=$lt_striplib
18027
18028 # Dependencies to place before the objects being linked to create a
18029 # shared library.
18030 predep_objects=$lt_predep_objects
18031
18032 # Dependencies to place after the objects being linked to create a
18033 # shared library.
18034 postdep_objects=$lt_postdep_objects
18035
18036 # Dependencies to place before the objects being linked to create a
18037 # shared library.
18038 predeps=$lt_predeps
18039
18040 # Dependencies to place after the objects being linked to create a
18041 # shared library.
18042 postdeps=$lt_postdeps
18043
18044 # The library search path used internally by the compiler when linking
18045 # a shared library.
18046 compiler_lib_search_path=$lt_compiler_lib_search_path
18047
18048 # Method to check whether dependent libraries are shared objects.
18049 deplibs_check_method=$lt_deplibs_check_method
18050
18051 # Command to use when deplibs_check_method == file_magic.
18052 file_magic_cmd=$lt_file_magic_cmd
18053
18054 # Flag that allows shared libraries with undefined symbols to be built.
18055 allow_undefined_flag=$lt_allow_undefined_flag
18056
18057 # Flag that forces no undefined symbols.
18058 no_undefined_flag=$lt_no_undefined_flag
18059
18060 # Commands used to finish a libtool library installation in a directory.
18061 finish_cmds=$lt_finish_cmds
18062
18063 # Same as above, but a single script fragment to be evaled but not shown.
18064 finish_eval=$lt_finish_eval
18065
18066 # Take the output of nm and produce a listing of raw symbols and C names.
18067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068
18069 # Transform the output of nm in a proper C declaration
18070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071
18072 # Transform the output of nm in a C name address pair
18073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074
18075 # This is the shared library runtime path variable.
18076 runpath_var=$runpath_var
18077
18078 # This is the shared library path variable.
18079 shlibpath_var=$shlibpath_var
18080
18081 # Is shlibpath searched before the hard-coded library search path?
18082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083
18084 # How to hardcode a shared library path into an executable.
18085 hardcode_action=$hardcode_action
18086
18087 # Whether we should hardcode library paths into libraries.
18088 hardcode_into_libs=$hardcode_into_libs
18089
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18093
18094 # If ld is used when linking, flag to hardcode \$libdir into
18095 # a binary during linking. This must work even if \$libdir does
18096 # not exist.
18097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18098
18099 # Whether we need a single -rpath flag with a separated argument.
18100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18101
18102 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_direct=$hardcode_direct
18105
18106 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_minus_L=$hardcode_minus_L
18109
18110 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111 # the resulting binary.
18112 hardcode_shlibpath_var=$hardcode_shlibpath_var
18113
18114 # Set to yes if building a shared library automatically hardcodes DIR into the library
18115 # and all subsequent libraries and executables linked against it.
18116 hardcode_automatic=$hardcode_automatic
18117
18118 # Variables whose values should be saved in libtool wrapper scripts and
18119 # restored at relink time.
18120 variables_saved_for_relink="$variables_saved_for_relink"
18121
18122 # Whether libtool must link a program against all its dependency libraries.
18123 link_all_deplibs=$link_all_deplibs
18124
18125 # Compile-time system search path for libraries
18126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127
18128 # Run-time system search path for libraries
18129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130
18131 # Fix the shell variable \$srcfile for the compiler.
18132 fix_srcfile_path="$fix_srcfile_path"
18133
18134 # Set to yes if exported symbols are required.
18135 always_export_symbols=$always_export_symbols
18136
18137 # The commands to list exported symbols.
18138 export_symbols_cmds=$lt_export_symbols_cmds
18139
18140 # The commands to extract the exported symbol list from a shared archive.
18141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142
18143 # Symbols that should not be listed in the preloaded symbols.
18144 exclude_expsyms=$lt_exclude_expsyms
18145
18146 # Symbols that must always be exported.
18147 include_expsyms=$lt_include_expsyms
18148
18149 # ### END LIBTOOL CONFIG
18150
18151 __EOF__
18152
18153
18154   case $host_os in
18155   aix3*)
18156     cat <<\EOF >> "$cfgfile"
18157
18158 # AIX sometimes has problems with the GCC collect2 program.  For some
18159 # reason, if we set the COLLECT_NAMES environment variable, the problems
18160 # vanish in a puff of smoke.
18161 if test "X${COLLECT_NAMES+set}" != Xset; then
18162   COLLECT_NAMES=
18163   export COLLECT_NAMES
18164 fi
18165 EOF
18166     ;;
18167   esac
18168
18169   # We use sed instead of cat because bash on DJGPP gets confused if
18170   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18171   # text mode, it properly converts lines to CR/LF.  This bash problem
18172   # is reportedly fixed, but why not run on old versions too?
18173   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18174
18175   mv -f "$cfgfile" "$ofile" || \
18176     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18177   chmod +x "$ofile"
18178
18179 else
18180   # If there is no Makefile yet, we rely on a make rule to execute
18181   # `config.status --recheck' to rerun these tests and create the
18182   # libtool script then.
18183   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18184   if test -f "$ltmain_in"; then
18185     test -f Makefile && make "$ltmain"
18186   fi
18187 fi
18188
18189
18190 ac_ext=c
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195
18196 CC="$lt_save_CC"
18197
18198
18199 # Check whether --with-tags was given.
18200 if test "${with_tags+set}" = set; then
18201   withval=$with_tags; tagnames="$withval"
18202 fi
18203
18204
18205 if test -f "$ltmain" && test -n "$tagnames"; then
18206   if test ! -f "${ofile}"; then
18207     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18208 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18209   fi
18210
18211   if test -z "$LTCC"; then
18212     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18213     if test -z "$LTCC"; then
18214       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18215 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18216     else
18217       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18218 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18219     fi
18220   fi
18221   if test -z "$LTCFLAGS"; then
18222     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18223   fi
18224
18225   # Extract list of available tagged configurations in $ofile.
18226   # Note that this assumes the entire list is on one line.
18227   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18228
18229   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18230   for tagname in $tagnames; do
18231     IFS="$lt_save_ifs"
18232     # Check whether tagname contains only valid characters
18233     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18234     "") ;;
18235     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18236 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18237    { (exit 1); exit 1; }; }
18238         ;;
18239     esac
18240
18241     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18242     then
18243       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18244 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18245    { (exit 1); exit 1; }; }
18246     fi
18247
18248     # Update the list of available tags.
18249     if test -n "$tagname"; then
18250       echo appending configuration tag \"$tagname\" to $ofile
18251
18252       case $tagname in
18253       CXX)
18254         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18255             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18256             (test "X$CXX" != "Xg++"))) ; then
18257           ac_ext=cpp
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18262
18263
18264
18265
18266 archive_cmds_need_lc_CXX=no
18267 allow_undefined_flag_CXX=
18268 always_export_symbols_CXX=no
18269 archive_expsym_cmds_CXX=
18270 export_dynamic_flag_spec_CXX=
18271 hardcode_direct_CXX=no
18272 hardcode_libdir_flag_spec_CXX=
18273 hardcode_libdir_flag_spec_ld_CXX=
18274 hardcode_libdir_separator_CXX=
18275 hardcode_minus_L_CXX=no
18276 hardcode_shlibpath_var_CXX=unsupported
18277 hardcode_automatic_CXX=no
18278 module_cmds_CXX=
18279 module_expsym_cmds_CXX=
18280 link_all_deplibs_CXX=unknown
18281 old_archive_cmds_CXX=$old_archive_cmds
18282 no_undefined_flag_CXX=
18283 whole_archive_flag_spec_CXX=
18284 enable_shared_with_static_runtimes_CXX=no
18285
18286 # Dependencies to place before and after the object being linked:
18287 predep_objects_CXX=
18288 postdep_objects_CXX=
18289 predeps_CXX=
18290 postdeps_CXX=
18291 compiler_lib_search_path_CXX=
18292
18293 # Source file extension for C++ test sources.
18294 ac_ext=cpp
18295
18296 # Object file extension for compiled C++ test sources.
18297 objext=o
18298 objext_CXX=$objext
18299
18300 # Code to be used in simple compile tests
18301 lt_simple_compile_test_code="int some_variable = 0;\n"
18302
18303 # Code to be used in simple link tests
18304 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18305
18306 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18307
18308 # If no C compiler was specified, use CC.
18309 LTCC=${LTCC-"$CC"}
18310
18311 # If no C compiler flags were specified, use CFLAGS.
18312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18313
18314 # Allow CC to be a program name with arguments.
18315 compiler=$CC
18316
18317
18318 # save warnings/boilerplate of simple test code
18319 ac_outfile=conftest.$ac_objext
18320 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18322 _lt_compiler_boilerplate=`cat conftest.err`
18323 $rm conftest*
18324
18325 ac_outfile=conftest.$ac_objext
18326 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18328 _lt_linker_boilerplate=`cat conftest.err`
18329 $rm conftest*
18330
18331
18332 # Allow CC to be a program name with arguments.
18333 lt_save_CC=$CC
18334 lt_save_LD=$LD
18335 lt_save_GCC=$GCC
18336 GCC=$GXX
18337 lt_save_with_gnu_ld=$with_gnu_ld
18338 lt_save_path_LD=$lt_cv_path_LD
18339 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18340   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18341 else
18342   $as_unset lt_cv_prog_gnu_ld
18343 fi
18344 if test -n "${lt_cv_path_LDCXX+set}"; then
18345   lt_cv_path_LD=$lt_cv_path_LDCXX
18346 else
18347   $as_unset lt_cv_path_LD
18348 fi
18349 test -z "${LDCXX+set}" || LD=$LDCXX
18350 CC=${CXX-"c++"}
18351 compiler=$CC
18352 compiler_CXX=$CC
18353 for cc_temp in $compiler""; do
18354   case $cc_temp in
18355     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18356     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18357     \-*) ;;
18358     *) break;;
18359   esac
18360 done
18361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18362
18363
18364 # We don't want -fno-exception wen compiling C++ code, so set the
18365 # no_builtin_flag separately
18366 if test "$GXX" = yes; then
18367   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18368 else
18369   lt_prog_compiler_no_builtin_flag_CXX=
18370 fi
18371
18372 if test "$GXX" = yes; then
18373   # Set up default GNU C++ configuration
18374
18375
18376 # Check whether --with-gnu-ld was given.
18377 if test "${with_gnu_ld+set}" = set; then
18378   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18379 else
18380   with_gnu_ld=no
18381 fi
18382
18383 ac_prog=ld
18384 if test "$GCC" = yes; then
18385   # Check if gcc -print-prog-name=ld gives a path.
18386   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18387 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18388   case $host in
18389   *-*-mingw*)
18390     # gcc leaves a trailing carriage return which upsets mingw
18391     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18392   *)
18393     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18394   esac
18395   case $ac_prog in
18396     # Accept absolute paths.
18397     [\\/]* | ?:[\\/]*)
18398       re_direlt='/[^/][^/]*/\.\./'
18399       # Canonicalize the pathname of ld
18400       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18401       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18402         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18403       done
18404       test -z "$LD" && LD="$ac_prog"
18405       ;;
18406   "")
18407     # If it fails, then pretend we aren't using GCC.
18408     ac_prog=ld
18409     ;;
18410   *)
18411     # If it is relative, then search for the first ld in PATH.
18412     with_gnu_ld=unknown
18413     ;;
18414   esac
18415 elif test "$with_gnu_ld" = yes; then
18416   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18417 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18418 else
18419   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18420 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18421 fi
18422 if test "${lt_cv_path_LD+set}" = set; then
18423   echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425   if test -z "$LD"; then
18426   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18427   for ac_dir in $PATH; do
18428     IFS="$lt_save_ifs"
18429     test -z "$ac_dir" && ac_dir=.
18430     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18431       lt_cv_path_LD="$ac_dir/$ac_prog"
18432       # Check to see if the program is GNU ld.  I'd rather use --version,
18433       # but apparently some variants of GNU ld only accept -v.
18434       # Break only if it was the GNU/non-GNU ld that we prefer.
18435       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18436       *GNU* | *'with BFD'*)
18437         test "$with_gnu_ld" != no && break
18438         ;;
18439       *)
18440         test "$with_gnu_ld" != yes && break
18441         ;;
18442       esac
18443     fi
18444   done
18445   IFS="$lt_save_ifs"
18446 else
18447   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18448 fi
18449 fi
18450
18451 LD="$lt_cv_path_LD"
18452 if test -n "$LD"; then
18453   { echo "$as_me:$LINENO: result: $LD" >&5
18454 echo "${ECHO_T}$LD" >&6; }
18455 else
18456   { echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6; }
18458 fi
18459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18461    { (exit 1); exit 1; }; }
18462 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18464 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18465   echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18468 case `$LD -v 2>&1 </dev/null` in
18469 *GNU* | *'with BFD'*)
18470   lt_cv_prog_gnu_ld=yes
18471   ;;
18472 *)
18473   lt_cv_prog_gnu_ld=no
18474   ;;
18475 esac
18476 fi
18477 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18478 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18479 with_gnu_ld=$lt_cv_prog_gnu_ld
18480
18481
18482
18483   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18484   # archiving commands below assume that GNU ld is being used.
18485   if test "$with_gnu_ld" = yes; then
18486     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487     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'
18488
18489     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18490     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18491
18492     # If archive_cmds runs LD, not CC, wlarc should be empty
18493     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18494     #     investigate it a little bit more. (MM)
18495     wlarc='${wl}'
18496
18497     # ancient GNU ld didn't support --whole-archive et. al.
18498     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18499         grep 'no-whole-archive' > /dev/null; then
18500       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18501     else
18502       whole_archive_flag_spec_CXX=
18503     fi
18504   else
18505     with_gnu_ld=no
18506     wlarc=
18507
18508     # A generic and very simple default shared library creation
18509     # command for GNU C++ for the case where it uses the native
18510     # linker, instead of GNU ld.  If possible, this setting should
18511     # overridden to take advantage of the native linker features on
18512     # the platform it is being used on.
18513     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18514   fi
18515
18516   # Commands to make compiler produce verbose output that lists
18517   # what "hidden" libraries, object files and flags are used when
18518   # linking a shared library.
18519   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18520
18521 else
18522   GXX=no
18523   with_gnu_ld=no
18524   wlarc=
18525 fi
18526
18527 # PORTME: fill in a description of your system's C++ link characteristics
18528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18530 ld_shlibs_CXX=yes
18531 case $host_os in
18532   aix3*)
18533     # FIXME: insert proper C++ library support
18534     ld_shlibs_CXX=no
18535     ;;
18536   aix4* | aix5*)
18537     if test "$host_cpu" = ia64; then
18538       # On IA64, the linker does run time linking by default, so we don't
18539       # have to do anything special.
18540       aix_use_runtimelinking=no
18541       exp_sym_flag='-Bexport'
18542       no_entry_flag=""
18543     else
18544       aix_use_runtimelinking=no
18545
18546       # Test if we are trying to use run time linking or normal
18547       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18548       # need to do runtime linking.
18549       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18550         for ld_flag in $LDFLAGS; do
18551           case $ld_flag in
18552           *-brtl*)
18553             aix_use_runtimelinking=yes
18554             break
18555             ;;
18556           esac
18557         done
18558         ;;
18559       esac
18560
18561       exp_sym_flag='-bexport'
18562       no_entry_flag='-bnoentry'
18563     fi
18564
18565     # When large executables or shared objects are built, AIX ld can
18566     # have problems creating the table of contents.  If linking a library
18567     # or program results in "error TOC overflow" add -mminimal-toc to
18568     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18569     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18570
18571     archive_cmds_CXX=''
18572     hardcode_direct_CXX=yes
18573     hardcode_libdir_separator_CXX=':'
18574     link_all_deplibs_CXX=yes
18575
18576     if test "$GXX" = yes; then
18577       case $host_os in aix4.[012]|aix4.[012].*)
18578       # We only want to do this on AIX 4.2 and lower, the check
18579       # below for broken collect2 doesn't work under 4.3+
18580         collect2name=`${CC} -print-prog-name=collect2`
18581         if test -f "$collect2name" && \
18582            strings "$collect2name" | grep resolve_lib_name >/dev/null
18583         then
18584           # We have reworked collect2
18585           hardcode_direct_CXX=yes
18586         else
18587           # We have old collect2
18588           hardcode_direct_CXX=unsupported
18589           # It fails to find uninstalled libraries when the uninstalled
18590           # path is not listed in the libpath.  Setting hardcode_minus_L
18591           # to unsupported forces relinking
18592           hardcode_minus_L_CXX=yes
18593           hardcode_libdir_flag_spec_CXX='-L$libdir'
18594           hardcode_libdir_separator_CXX=
18595         fi
18596         ;;
18597       esac
18598       shared_flag='-shared'
18599       if test "$aix_use_runtimelinking" = yes; then
18600         shared_flag="$shared_flag "'${wl}-G'
18601       fi
18602     else
18603       # not using gcc
18604       if test "$host_cpu" = ia64; then
18605         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18606         # chokes on -Wl,-G. The following line is correct:
18607         shared_flag='-G'
18608       else
18609         if test "$aix_use_runtimelinking" = yes; then
18610           shared_flag='${wl}-G'
18611         else
18612           shared_flag='${wl}-bM:SRE'
18613         fi
18614       fi
18615     fi
18616
18617     # It seems that -bexpall does not export symbols beginning with
18618     # underscore (_), so it is better to generate a list of symbols to export.
18619     always_export_symbols_CXX=yes
18620     if test "$aix_use_runtimelinking" = yes; then
18621       # Warning - without using the other runtime loading flags (-brtl),
18622       # -berok will link without error, but may produce a broken library.
18623       allow_undefined_flag_CXX='-berok'
18624       # Determine the default libpath from the value encoded in an empty executable.
18625       cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 int
18633 main ()
18634 {
18635
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_link") 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } &&
18654          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18655   { (case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_try") 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; } &&
18664          { ac_try='test -s conftest$ac_exeext'
18665   { (case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_try") 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; }; then
18674
18675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18676 }'`
18677 # Check for a 64-bit object if we didn't find anything.
18678 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; }
18679 }'`; fi
18680 else
18681   echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684
18685 fi
18686
18687 rm -f core conftest.err conftest.$ac_objext \
18688       conftest$ac_exeext conftest.$ac_ext
18689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18690
18691       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18692
18693       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"
18694      else
18695       if test "$host_cpu" = ia64; then
18696         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18697         allow_undefined_flag_CXX="-z nodefs"
18698         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"
18699       else
18700         # Determine the default libpath from the value encoded in an empty executable.
18701         cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707
18708 int
18709 main ()
18710 {
18711
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_link") 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } &&
18730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18731   { (case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736   (eval "$ac_try") 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; } &&
18740          { ac_try='test -s conftest$ac_exeext'
18741   { (case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_try") 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; }; then
18750
18751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18752 }'`
18753 # Check for a 64-bit object if we didn't find anything.
18754 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; }
18755 }'`; fi
18756 else
18757   echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760
18761 fi
18762
18763 rm -f core conftest.err conftest.$ac_objext \
18764       conftest$ac_exeext conftest.$ac_ext
18765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18766
18767         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18768         # Warning - without using the other run time loading flags,
18769         # -berok will link without error, but may produce a broken library.
18770         no_undefined_flag_CXX=' ${wl}-bernotok'
18771         allow_undefined_flag_CXX=' ${wl}-berok'
18772         # Exported symbols can be pulled into shared objects from archives
18773         whole_archive_flag_spec_CXX='$convenience'
18774         archive_cmds_need_lc_CXX=yes
18775         # This is similar to how AIX traditionally builds its shared libraries.
18776         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'
18777       fi
18778     fi
18779     ;;
18780
18781   beos*)
18782     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18783       allow_undefined_flag_CXX=unsupported
18784       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18785       # support --undefined.  This deserves some investigation.  FIXME
18786       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787     else
18788       ld_shlibs_CXX=no
18789     fi
18790     ;;
18791
18792   chorus*)
18793     case $cc_basename in
18794       *)
18795         # FIXME: insert proper C++ library support
18796         ld_shlibs_CXX=no
18797         ;;
18798     esac
18799     ;;
18800
18801   cygwin* | mingw* | pw32*)
18802     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18803     # as there is no search path for DLLs.
18804     hardcode_libdir_flag_spec_CXX='-L$libdir'
18805     allow_undefined_flag_CXX=unsupported
18806     always_export_symbols_CXX=no
18807     enable_shared_with_static_runtimes_CXX=yes
18808
18809     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18810       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'
18811       # If the export-symbols file already is a .def file (1st line
18812       # is EXPORTS), use it as is; otherwise, prepend...
18813       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18814         cp $export_symbols $output_objdir/$soname.def;
18815       else
18816         echo EXPORTS > $output_objdir/$soname.def;
18817         cat $export_symbols >> $output_objdir/$soname.def;
18818       fi~
18819       $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'
18820     else
18821       ld_shlibs_CXX=no
18822     fi
18823   ;;
18824       darwin* | rhapsody*)
18825         case $host_os in
18826         rhapsody* | darwin1.[012])
18827          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18828          ;;
18829        *) # Darwin 1.3 on
18830          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18831            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18832          else
18833            case ${MACOSX_DEPLOYMENT_TARGET} in
18834              10.[012])
18835                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836                ;;
18837              10.*)
18838                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18839                ;;
18840            esac
18841          fi
18842          ;;
18843         esac
18844       archive_cmds_need_lc_CXX=no
18845       hardcode_direct_CXX=no
18846       hardcode_automatic_CXX=yes
18847       hardcode_shlibpath_var_CXX=unsupported
18848       whole_archive_flag_spec_CXX=''
18849       link_all_deplibs_CXX=yes
18850
18851     if test "$GXX" = yes ; then
18852       lt_int_apple_cc_single_mod=no
18853       output_verbose_link_cmd='echo'
18854       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18855        lt_int_apple_cc_single_mod=yes
18856       fi
18857       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18858        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18859       else
18860           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'
18861         fi
18862         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18863         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18864           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18865             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}'
18866           else
18867             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}'
18868           fi
18869             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}'
18870       else
18871       case $cc_basename in
18872         xlc*)
18873          output_verbose_link_cmd='echo'
18874           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'
18875           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18876           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18877           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}'
18878           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}'
18879           ;;
18880        *)
18881          ld_shlibs_CXX=no
18882           ;;
18883       esac
18884       fi
18885         ;;
18886
18887   dgux*)
18888     case $cc_basename in
18889       ec++*)
18890         # FIXME: insert proper C++ library support
18891         ld_shlibs_CXX=no
18892         ;;
18893       ghcx*)
18894         # Green Hills C++ Compiler
18895         # FIXME: insert proper C++ library support
18896         ld_shlibs_CXX=no
18897         ;;
18898       *)
18899         # FIXME: insert proper C++ library support
18900         ld_shlibs_CXX=no
18901         ;;
18902     esac
18903     ;;
18904   freebsd[12]*)
18905     # C++ shared libraries reported to be fairly broken before switch to ELF
18906     ld_shlibs_CXX=no
18907     ;;
18908   freebsd-elf*)
18909     archive_cmds_need_lc_CXX=no
18910     ;;
18911   freebsd* | kfreebsd*-gnu | dragonfly*)
18912     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18913     # conventions
18914     ld_shlibs_CXX=yes
18915     ;;
18916   gnu*)
18917     ;;
18918   hpux9*)
18919     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18920     hardcode_libdir_separator_CXX=:
18921     export_dynamic_flag_spec_CXX='${wl}-E'
18922     hardcode_direct_CXX=yes
18923     hardcode_minus_L_CXX=yes # Not in the search PATH,
18924                                 # but as the default
18925                                 # location of the library.
18926
18927     case $cc_basename in
18928     CC*)
18929       # FIXME: insert proper C++ library support
18930       ld_shlibs_CXX=no
18931       ;;
18932     aCC*)
18933       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'
18934       # Commands to make compiler produce verbose output that lists
18935       # what "hidden" libraries, object files and flags are used when
18936       # linking a shared library.
18937       #
18938       # There doesn't appear to be a way to prevent this compiler from
18939       # explicitly linking system object files so we need to strip them
18940       # from the output so that they don't get included in the library
18941       # dependencies.
18942       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'
18943       ;;
18944     *)
18945       if test "$GXX" = yes; then
18946         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'
18947       else
18948         # FIXME: insert proper C++ library support
18949         ld_shlibs_CXX=no
18950       fi
18951       ;;
18952     esac
18953     ;;
18954   hpux10*|hpux11*)
18955     if test $with_gnu_ld = no; then
18956       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18957       hardcode_libdir_separator_CXX=:
18958
18959       case $host_cpu in
18960       hppa*64*|ia64*)
18961         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18962         ;;
18963       *)
18964         export_dynamic_flag_spec_CXX='${wl}-E'
18965         ;;
18966       esac
18967     fi
18968     case $host_cpu in
18969     hppa*64*|ia64*)
18970       hardcode_direct_CXX=no
18971       hardcode_shlibpath_var_CXX=no
18972       ;;
18973     *)
18974       hardcode_direct_CXX=yes
18975       hardcode_minus_L_CXX=yes # Not in the search PATH,
18976                                               # but as the default
18977                                               # location of the library.
18978       ;;
18979     esac
18980
18981     case $cc_basename in
18982       CC*)
18983         # FIXME: insert proper C++ library support
18984         ld_shlibs_CXX=no
18985         ;;
18986       aCC*)
18987         case $host_cpu in
18988         hppa*64*)
18989           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18990           ;;
18991         ia64*)
18992           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18993           ;;
18994         *)
18995           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18996           ;;
18997         esac
18998         # Commands to make compiler produce verbose output that lists
18999         # what "hidden" libraries, object files and flags are used when
19000         # linking a shared library.
19001         #
19002         # There doesn't appear to be a way to prevent this compiler from
19003         # explicitly linking system object files so we need to strip them
19004         # from the output so that they don't get included in the library
19005         # dependencies.
19006         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'
19007         ;;
19008       *)
19009         if test "$GXX" = yes; then
19010           if test $with_gnu_ld = no; then
19011             case $host_cpu in
19012             hppa*64*)
19013               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19014               ;;
19015             ia64*)
19016               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19017               ;;
19018             *)
19019               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'
19020               ;;
19021             esac
19022           fi
19023         else
19024           # FIXME: insert proper C++ library support
19025           ld_shlibs_CXX=no
19026         fi
19027         ;;
19028     esac
19029     ;;
19030   interix3*)
19031     hardcode_direct_CXX=no
19032     hardcode_shlibpath_var_CXX=no
19033     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19034     export_dynamic_flag_spec_CXX='${wl}-E'
19035     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19036     # Instead, shared libraries are loaded at an image base (0x10000000 by
19037     # default) and relocated if they conflict, which is a slow very memory
19038     # consuming and fragmenting process.  To avoid this, we pick a random,
19039     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19040     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19041     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'
19042     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'
19043     ;;
19044   irix5* | irix6*)
19045     case $cc_basename in
19046       CC*)
19047         # SGI C++
19048         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'
19049
19050         # Archives containing C++ object files must be created using
19051         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19052         # necessary to make sure instantiated templates are included
19053         # in the archive.
19054         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19055         ;;
19056       *)
19057         if test "$GXX" = yes; then
19058           if test "$with_gnu_ld" = no; then
19059             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'
19060           else
19061             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'
19062           fi
19063         fi
19064         link_all_deplibs_CXX=yes
19065         ;;
19066     esac
19067     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19068     hardcode_libdir_separator_CXX=:
19069     ;;
19070   linux*)
19071     case $cc_basename in
19072       KCC*)
19073         # Kuck and Associates, Inc. (KAI) C++ Compiler
19074
19075         # KCC will only create a shared library if the output file
19076         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19077         # to its proper name (with version) after linking.
19078         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'
19079         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'
19080         # Commands to make compiler produce verbose output that lists
19081         # what "hidden" libraries, object files and flags are used when
19082         # linking a shared library.
19083         #
19084         # There doesn't appear to be a way to prevent this compiler from
19085         # explicitly linking system object files so we need to strip them
19086         # from the output so that they don't get included in the library
19087         # dependencies.
19088         output_verbose_link_cmd='templist=`$CC $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'
19089
19090         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19091         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19092
19093         # Archives containing C++ object files must be created using
19094         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19095         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19096         ;;
19097       icpc*)
19098         # Intel C++
19099         with_gnu_ld=yes
19100         # version 8.0 and above of icpc choke on multiply defined symbols
19101         # if we add $predep_objects and $postdep_objects, however 7.1 and
19102         # earlier do not add the objects themselves.
19103         case `$CC -V 2>&1` in
19104         *"Version 7."*)
19105           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106           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'
19107           ;;
19108         *)  # Version 8.0 or newer
19109           tmp_idyn=
19110           case $host_cpu in
19111             ia64*) tmp_idyn=' -i_dynamic';;
19112           esac
19113           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114           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'
19115           ;;
19116         esac
19117         archive_cmds_need_lc_CXX=no
19118         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19120         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19121         ;;
19122       pgCC*)
19123         # Portland Group C++ compiler
19124         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19125         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'
19126
19127         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19128         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19129         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'
19130         ;;
19131       cxx*)
19132         # Compaq C++
19133         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134         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'
19135
19136         runpath_var=LD_RUN_PATH
19137         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19138         hardcode_libdir_separator_CXX=:
19139
19140         # Commands to make compiler produce verbose output that lists
19141         # what "hidden" libraries, object files and flags are used when
19142         # linking a shared library.
19143         #
19144         # There doesn't appear to be a way to prevent this compiler from
19145         # explicitly linking system object files so we need to strip them
19146         # from the output so that they don't get included in the library
19147         # dependencies.
19148         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'
19149         ;;
19150     esac
19151     ;;
19152   lynxos*)
19153     # FIXME: insert proper C++ library support
19154     ld_shlibs_CXX=no
19155     ;;
19156   m88k*)
19157     # FIXME: insert proper C++ library support
19158     ld_shlibs_CXX=no
19159     ;;
19160   mvs*)
19161     case $cc_basename in
19162       cxx*)
19163         # FIXME: insert proper C++ library support
19164         ld_shlibs_CXX=no
19165         ;;
19166       *)
19167         # FIXME: insert proper C++ library support
19168         ld_shlibs_CXX=no
19169         ;;
19170     esac
19171     ;;
19172   netbsd*)
19173     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19174       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19175       wlarc=
19176       hardcode_libdir_flag_spec_CXX='-R$libdir'
19177       hardcode_direct_CXX=yes
19178       hardcode_shlibpath_var_CXX=no
19179     fi
19180     # Workaround some broken pre-1.5 toolchains
19181     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19182     ;;
19183   openbsd2*)
19184     # C++ shared libraries are fairly broken
19185     ld_shlibs_CXX=no
19186     ;;
19187   openbsd*)
19188     hardcode_direct_CXX=yes
19189     hardcode_shlibpath_var_CXX=no
19190     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19191     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19192     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19194       export_dynamic_flag_spec_CXX='${wl}-E'
19195       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19196     fi
19197     output_verbose_link_cmd='echo'
19198     ;;
19199   osf3*)
19200     case $cc_basename in
19201       KCC*)
19202         # Kuck and Associates, Inc. (KAI) C++ Compiler
19203
19204         # KCC will only create a shared library if the output file
19205         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19206         # to its proper name (with version) after linking.
19207         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'
19208
19209         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19210         hardcode_libdir_separator_CXX=:
19211
19212         # Archives containing C++ object files must be created using
19213         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19214         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19215
19216         ;;
19217       RCC*)
19218         # Rational C++ 2.4.1
19219         # FIXME: insert proper C++ library support
19220         ld_shlibs_CXX=no
19221         ;;
19222       cxx*)
19223         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19224         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'
19225
19226         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19227         hardcode_libdir_separator_CXX=:
19228
19229         # Commands to make compiler produce verbose output that lists
19230         # what "hidden" libraries, object files and flags are used when
19231         # linking a shared library.
19232         #
19233         # There doesn't appear to be a way to prevent this compiler from
19234         # explicitly linking system object files so we need to strip them
19235         # from the output so that they don't get included in the library
19236         # dependencies.
19237         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'
19238         ;;
19239       *)
19240         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19242           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'
19243
19244           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19245           hardcode_libdir_separator_CXX=:
19246
19247           # Commands to make compiler produce verbose output that lists
19248           # what "hidden" libraries, object files and flags are used when
19249           # linking a shared library.
19250           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19251
19252         else
19253           # FIXME: insert proper C++ library support
19254           ld_shlibs_CXX=no
19255         fi
19256         ;;
19257     esac
19258     ;;
19259   osf4* | osf5*)
19260     case $cc_basename in
19261       KCC*)
19262         # Kuck and Associates, Inc. (KAI) C++ Compiler
19263
19264         # KCC will only create a shared library if the output file
19265         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266         # to its proper name (with version) after linking.
19267         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'
19268
19269         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270         hardcode_libdir_separator_CXX=:
19271
19272         # Archives containing C++ object files must be created using
19273         # the KAI C++ compiler.
19274         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19275         ;;
19276       RCC*)
19277         # Rational C++ 2.4.1
19278         # FIXME: insert proper C++ library support
19279         ld_shlibs_CXX=no
19280         ;;
19281       cxx*)
19282         allow_undefined_flag_CXX=' -expect_unresolved \*'
19283         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'
19284         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19285           echo "-hidden">> $lib.exp~
19286           $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~
19287           $rm $lib.exp'
19288
19289         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290         hardcode_libdir_separator_CXX=:
19291
19292         # Commands to make compiler produce verbose output that lists
19293         # what "hidden" libraries, object files and flags are used when
19294         # linking a shared library.
19295         #
19296         # There doesn't appear to be a way to prevent this compiler from
19297         # explicitly linking system object files so we need to strip them
19298         # from the output so that they don't get included in the library
19299         # dependencies.
19300         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'
19301         ;;
19302       *)
19303         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19304           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19305          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'
19306
19307           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19308           hardcode_libdir_separator_CXX=:
19309
19310           # Commands to make compiler produce verbose output that lists
19311           # what "hidden" libraries, object files and flags are used when
19312           # linking a shared library.
19313           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19314
19315         else
19316           # FIXME: insert proper C++ library support
19317           ld_shlibs_CXX=no
19318         fi
19319         ;;
19320     esac
19321     ;;
19322   psos*)
19323     # FIXME: insert proper C++ library support
19324     ld_shlibs_CXX=no
19325     ;;
19326   sunos4*)
19327     case $cc_basename in
19328       CC*)
19329         # Sun C++ 4.x
19330         # FIXME: insert proper C++ library support
19331         ld_shlibs_CXX=no
19332         ;;
19333       lcc*)
19334         # Lucid
19335         # FIXME: insert proper C++ library support
19336         ld_shlibs_CXX=no
19337         ;;
19338       *)
19339         # FIXME: insert proper C++ library support
19340         ld_shlibs_CXX=no
19341         ;;
19342     esac
19343     ;;
19344   solaris*)
19345     case $cc_basename in
19346       CC*)
19347         # Sun C++ 4.2, 5.x and Centerline C++
19348         archive_cmds_need_lc_CXX=yes
19349         no_undefined_flag_CXX=' -zdefs'
19350         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19351         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19352         $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'
19353
19354         hardcode_libdir_flag_spec_CXX='-R$libdir'
19355         hardcode_shlibpath_var_CXX=no
19356         case $host_os in
19357           solaris2.[0-5] | solaris2.[0-5].*) ;;
19358           *)
19359             # The C++ compiler is used as linker so we must use $wl
19360             # flag to pass the commands to the underlying system
19361             # linker. We must also pass each convience library through
19362             # to the system linker between allextract/defaultextract.
19363             # The C++ compiler will combine linker options so we
19364             # cannot just pass the convience library names through
19365             # without $wl.
19366             # Supported since Solaris 2.6 (maybe 2.5.1?)
19367             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'
19368             ;;
19369         esac
19370         link_all_deplibs_CXX=yes
19371
19372         output_verbose_link_cmd='echo'
19373
19374         # Archives containing C++ object files must be created using
19375         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19376         # necessary to make sure instantiated templates are included
19377         # in the archive.
19378         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19379         ;;
19380       gcx*)
19381         # Green Hills C++ Compiler
19382         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19383
19384         # The C++ compiler must be used to create the archive.
19385         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19386         ;;
19387       *)
19388         # GNU C++ compiler with Solaris linker
19389         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19390           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19391           if $CC --version | grep -v '^2\.7' > /dev/null; then
19392             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19393             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19394                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19395
19396             # Commands to make compiler produce verbose output that lists
19397             # what "hidden" libraries, object files and flags are used when
19398             # linking a shared library.
19399             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19400           else
19401             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19402             # platform.
19403             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19404             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19405                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19406
19407             # Commands to make compiler produce verbose output that lists
19408             # what "hidden" libraries, object files and flags are used when
19409             # linking a shared library.
19410             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19411           fi
19412
19413           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19414         fi
19415         ;;
19416     esac
19417     ;;
19418   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19419     no_undefined_flag_CXX='${wl}-z,text'
19420     archive_cmds_need_lc_CXX=no
19421     hardcode_shlibpath_var_CXX=no
19422     runpath_var='LD_RUN_PATH'
19423
19424     case $cc_basename in
19425       CC*)
19426         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19427         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19428         ;;
19429       *)
19430         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19432         ;;
19433     esac
19434     ;;
19435   sysv5* | sco3.2v5* | sco5v6*)
19436     # Note: We can NOT use -z defs as we might desire, because we do not
19437     # link with -lc, and that would cause any symbols used from libc to
19438     # always be unresolved, which means just about no library would
19439     # ever link correctly.  If we're not using GNU ld we use -z text
19440     # though, which does catch some bad symbols but isn't as heavy-handed
19441     # as -z defs.
19442     # For security reasons, it is highly recommended that you always
19443     # use absolute paths for naming shared libraries, and exclude the
19444     # DT_RUNPATH tag from executables and libraries.  But doing so
19445     # requires that you compile everything twice, which is a pain.
19446     # So that behaviour is only enabled if SCOABSPATH is set to a
19447     # non-empty value in the environment.  Most likely only useful for
19448     # creating official distributions of packages.
19449     # This is a hack until libtool officially supports absolute path
19450     # names for shared libraries.
19451     no_undefined_flag_CXX='${wl}-z,text'
19452     allow_undefined_flag_CXX='${wl}-z,nodefs'
19453     archive_cmds_need_lc_CXX=no
19454     hardcode_shlibpath_var_CXX=no
19455     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19456     hardcode_libdir_separator_CXX=':'
19457     link_all_deplibs_CXX=yes
19458     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19459     runpath_var='LD_RUN_PATH'
19460
19461     case $cc_basename in
19462       CC*)
19463         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19464         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19465         ;;
19466       *)
19467         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19469         ;;
19470     esac
19471     ;;
19472   tandem*)
19473     case $cc_basename in
19474       NCC*)
19475         # NonStop-UX NCC 3.20
19476         # FIXME: insert proper C++ library support
19477         ld_shlibs_CXX=no
19478         ;;
19479       *)
19480         # FIXME: insert proper C++ library support
19481         ld_shlibs_CXX=no
19482         ;;
19483     esac
19484     ;;
19485   vxworks*)
19486     # FIXME: insert proper C++ library support
19487     ld_shlibs_CXX=no
19488     ;;
19489   *)
19490     # FIXME: insert proper C++ library support
19491     ld_shlibs_CXX=no
19492     ;;
19493 esac
19494 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19495 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19496 test "$ld_shlibs_CXX" = no && can_build_shared=no
19497
19498 GCC_CXX="$GXX"
19499 LD_CXX="$LD"
19500
19501
19502 cat > conftest.$ac_ext <<EOF
19503 class Foo
19504 {
19505 public:
19506   Foo (void) { a = 0; }
19507 private:
19508   int a;
19509 };
19510 EOF
19511
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513   (eval $ac_compile) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; then
19517   # Parse the compiler output and extract the necessary
19518   # objects, libraries and library flags.
19519
19520   # Sentinel used to keep track of whether or not we are before
19521   # the conftest object file.
19522   pre_test_object_deps_done=no
19523
19524   # The `*' in the case matches for architectures that use `case' in
19525   # $output_verbose_cmd can trigger glob expansion during the loop
19526   # eval without this substitution.
19527   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19528
19529   for p in `eval $output_verbose_link_cmd`; do
19530     case $p in
19531
19532     -L* | -R* | -l*)
19533        # Some compilers place space between "-{L,R}" and the path.
19534        # Remove the space.
19535        if test $p = "-L" \
19536           || test $p = "-R"; then
19537          prev=$p
19538          continue
19539        else
19540          prev=
19541        fi
19542
19543        if test "$pre_test_object_deps_done" = no; then
19544          case $p in
19545          -L* | -R*)
19546            # Internal compiler library paths should come after those
19547            # provided the user.  The postdeps already come after the
19548            # user supplied libs so there is no need to process them.
19549            if test -z "$compiler_lib_search_path_CXX"; then
19550              compiler_lib_search_path_CXX="${prev}${p}"
19551            else
19552              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19553            fi
19554            ;;
19555          # The "-l" case would never come before the object being
19556          # linked, so don't bother handling this case.
19557          esac
19558        else
19559          if test -z "$postdeps_CXX"; then
19560            postdeps_CXX="${prev}${p}"
19561          else
19562            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19563          fi
19564        fi
19565        ;;
19566
19567     *.$objext)
19568        # This assumes that the test object file only shows up
19569        # once in the compiler output.
19570        if test "$p" = "conftest.$objext"; then
19571          pre_test_object_deps_done=yes
19572          continue
19573        fi
19574
19575        if test "$pre_test_object_deps_done" = no; then
19576          if test -z "$predep_objects_CXX"; then
19577            predep_objects_CXX="$p"
19578          else
19579            predep_objects_CXX="$predep_objects_CXX $p"
19580          fi
19581        else
19582          if test -z "$postdep_objects_CXX"; then
19583            postdep_objects_CXX="$p"
19584          else
19585            postdep_objects_CXX="$postdep_objects_CXX $p"
19586          fi
19587        fi
19588        ;;
19589
19590     *) ;; # Ignore the rest.
19591
19592     esac
19593   done
19594
19595   # Clean up.
19596   rm -f a.out a.exe
19597 else
19598   echo "libtool.m4: error: problem compiling CXX test program"
19599 fi
19600
19601 $rm -f confest.$objext
19602
19603 # PORTME: override above test on systems where it is broken
19604 case $host_os in
19605 interix3*)
19606   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19607   # hack all around it, let's just trust "g++" to DTRT.
19608   predep_objects_CXX=
19609   postdep_objects_CXX=
19610   postdeps_CXX=
19611   ;;
19612
19613 solaris*)
19614   case $cc_basename in
19615   CC*)
19616     # Adding this requires a known-good setup of shared libraries for
19617     # Sun compiler versions before 5.6, else PIC objects from an old
19618     # archive will be linked into the output, leading to subtle bugs.
19619     postdeps_CXX='-lCstd -lCrun'
19620     ;;
19621   esac
19622   ;;
19623 esac
19624
19625
19626 case " $postdeps_CXX " in
19627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19628 esac
19629
19630 lt_prog_compiler_wl_CXX=
19631 lt_prog_compiler_pic_CXX=
19632 lt_prog_compiler_static_CXX=
19633
19634 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19636
19637   # C++ specific cases for pic, static, wl, etc.
19638   if test "$GXX" = yes; then
19639     lt_prog_compiler_wl_CXX='-Wl,'
19640     lt_prog_compiler_static_CXX='-static'
19641
19642     case $host_os in
19643     aix*)
19644       # All AIX code is PIC.
19645       if test "$host_cpu" = ia64; then
19646         # AIX 5 now supports IA64 processor
19647         lt_prog_compiler_static_CXX='-Bstatic'
19648       fi
19649       ;;
19650     amigaos*)
19651       # FIXME: we need at least 68020 code to build shared libraries, but
19652       # adding the `-m68020' flag to GCC prevents building anything better,
19653       # like `-m68040'.
19654       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19655       ;;
19656     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19657       # PIC is the default for these OSes.
19658       ;;
19659     mingw* | os2* | pw32*)
19660       # This hack is so that the source file can tell whether it is being
19661       # built for inclusion in a dll (and should export symbols for example).
19662       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19663       ;;
19664     darwin* | rhapsody*)
19665       # PIC is the default on this platform
19666       # Common symbols not allowed in MH_DYLIB files
19667       lt_prog_compiler_pic_CXX='-fno-common'
19668       ;;
19669     *djgpp*)
19670       # DJGPP does not support shared libraries at all
19671       lt_prog_compiler_pic_CXX=
19672       ;;
19673     interix3*)
19674       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19675       # Instead, we relocate shared libraries at runtime.
19676       ;;
19677     sysv4*MP*)
19678       if test -d /usr/nec; then
19679         lt_prog_compiler_pic_CXX=-Kconform_pic
19680       fi
19681       ;;
19682     hpux*)
19683       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19684       # not for PA HP-UX.
19685       case $host_cpu in
19686       hppa*64*|ia64*)
19687         ;;
19688       *)
19689         lt_prog_compiler_pic_CXX='-fPIC'
19690         ;;
19691       esac
19692       ;;
19693     *)
19694       lt_prog_compiler_pic_CXX='-fPIC'
19695       ;;
19696     esac
19697   else
19698     case $host_os in
19699       aix4* | aix5*)
19700         # All AIX code is PIC.
19701         if test "$host_cpu" = ia64; then
19702           # AIX 5 now supports IA64 processor
19703           lt_prog_compiler_static_CXX='-Bstatic'
19704         else
19705           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19706         fi
19707         ;;
19708       chorus*)
19709         case $cc_basename in
19710         cxch68*)
19711           # Green Hills C++ Compiler
19712           # _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"
19713           ;;
19714         esac
19715         ;;
19716        darwin*)
19717          # PIC is the default on this platform
19718          # Common symbols not allowed in MH_DYLIB files
19719          case $cc_basename in
19720            xlc*)
19721            lt_prog_compiler_pic_CXX='-qnocommon'
19722            lt_prog_compiler_wl_CXX='-Wl,'
19723            ;;
19724          esac
19725        ;;
19726       dgux*)
19727         case $cc_basename in
19728           ec++*)
19729             lt_prog_compiler_pic_CXX='-KPIC'
19730             ;;
19731           ghcx*)
19732             # Green Hills C++ Compiler
19733             lt_prog_compiler_pic_CXX='-pic'
19734             ;;
19735           *)
19736             ;;
19737         esac
19738         ;;
19739       freebsd* | kfreebsd*-gnu | dragonfly*)
19740         # FreeBSD uses GNU C++
19741         ;;
19742       hpux9* | hpux10* | hpux11*)
19743         case $cc_basename in
19744           CC*)
19745             lt_prog_compiler_wl_CXX='-Wl,'
19746             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19747             if test "$host_cpu" != ia64; then
19748               lt_prog_compiler_pic_CXX='+Z'
19749             fi
19750             ;;
19751           aCC*)
19752             lt_prog_compiler_wl_CXX='-Wl,'
19753             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19754             case $host_cpu in
19755             hppa*64*|ia64*)
19756               # +Z the default
19757               ;;
19758             *)
19759               lt_prog_compiler_pic_CXX='+Z'
19760               ;;
19761             esac
19762             ;;
19763           *)
19764             ;;
19765         esac
19766         ;;
19767       interix*)
19768         # This is c89, which is MS Visual C++ (no shared libs)
19769         # Anyone wants to do a port?
19770         ;;
19771       irix5* | irix6* | nonstopux*)
19772         case $cc_basename in
19773           CC*)
19774             lt_prog_compiler_wl_CXX='-Wl,'
19775             lt_prog_compiler_static_CXX='-non_shared'
19776             # CC pic flag -KPIC is the default.
19777             ;;
19778           *)
19779             ;;
19780         esac
19781         ;;
19782       linux*)
19783         case $cc_basename in
19784           KCC*)
19785             # KAI C++ Compiler
19786             lt_prog_compiler_wl_CXX='--backend -Wl,'
19787             lt_prog_compiler_pic_CXX='-fPIC'
19788             ;;
19789           icpc* | ecpc*)
19790             # Intel C++
19791             lt_prog_compiler_wl_CXX='-Wl,'
19792             lt_prog_compiler_pic_CXX='-KPIC'
19793             lt_prog_compiler_static_CXX='-static'
19794             ;;
19795           pgCC*)
19796             # Portland Group C++ compiler.
19797             lt_prog_compiler_wl_CXX='-Wl,'
19798             lt_prog_compiler_pic_CXX='-fpic'
19799             lt_prog_compiler_static_CXX='-Bstatic'
19800             ;;
19801           cxx*)
19802             # Compaq C++
19803             # Make sure the PIC flag is empty.  It appears that all Alpha
19804             # Linux and Compaq Tru64 Unix objects are PIC.
19805             lt_prog_compiler_pic_CXX=
19806             lt_prog_compiler_static_CXX='-non_shared'
19807             ;;
19808           *)
19809             ;;
19810         esac
19811         ;;
19812       lynxos*)
19813         ;;
19814       m88k*)
19815         ;;
19816       mvs*)
19817         case $cc_basename in
19818           cxx*)
19819             lt_prog_compiler_pic_CXX='-W c,exportall'
19820             ;;
19821           *)
19822             ;;
19823         esac
19824         ;;
19825       netbsd*)
19826         ;;
19827       osf3* | osf4* | osf5*)
19828         case $cc_basename in
19829           KCC*)
19830             lt_prog_compiler_wl_CXX='--backend -Wl,'
19831             ;;
19832           RCC*)
19833             # Rational C++ 2.4.1
19834             lt_prog_compiler_pic_CXX='-pic'
19835             ;;
19836           cxx*)
19837             # Digital/Compaq C++
19838             lt_prog_compiler_wl_CXX='-Wl,'
19839             # Make sure the PIC flag is empty.  It appears that all Alpha
19840             # Linux and Compaq Tru64 Unix objects are PIC.
19841             lt_prog_compiler_pic_CXX=
19842             lt_prog_compiler_static_CXX='-non_shared'
19843             ;;
19844           *)
19845             ;;
19846         esac
19847         ;;
19848       psos*)
19849         ;;
19850       solaris*)
19851         case $cc_basename in
19852           CC*)
19853             # Sun C++ 4.2, 5.x and Centerline C++
19854             lt_prog_compiler_pic_CXX='-KPIC'
19855             lt_prog_compiler_static_CXX='-Bstatic'
19856             lt_prog_compiler_wl_CXX='-Qoption ld '
19857             ;;
19858           gcx*)
19859             # Green Hills C++ Compiler
19860             lt_prog_compiler_pic_CXX='-PIC'
19861             ;;
19862           *)
19863             ;;
19864         esac
19865         ;;
19866       sunos4*)
19867         case $cc_basename in
19868           CC*)
19869             # Sun C++ 4.x
19870             lt_prog_compiler_pic_CXX='-pic'
19871             lt_prog_compiler_static_CXX='-Bstatic'
19872             ;;
19873           lcc*)
19874             # Lucid
19875             lt_prog_compiler_pic_CXX='-pic'
19876             ;;
19877           *)
19878             ;;
19879         esac
19880         ;;
19881       tandem*)
19882         case $cc_basename in
19883           NCC*)
19884             # NonStop-UX NCC 3.20
19885             lt_prog_compiler_pic_CXX='-KPIC'
19886             ;;
19887           *)
19888             ;;
19889         esac
19890         ;;
19891       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19892         case $cc_basename in
19893           CC*)
19894             lt_prog_compiler_wl_CXX='-Wl,'
19895             lt_prog_compiler_pic_CXX='-KPIC'
19896             lt_prog_compiler_static_CXX='-Bstatic'
19897             ;;
19898         esac
19899         ;;
19900       vxworks*)
19901         ;;
19902       *)
19903         lt_prog_compiler_can_build_shared_CXX=no
19904         ;;
19905     esac
19906   fi
19907
19908 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19910
19911 #
19912 # Check to make sure the PIC flag actually works.
19913 #
19914 if test -n "$lt_prog_compiler_pic_CXX"; then
19915
19916 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19918 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19919   echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921   lt_prog_compiler_pic_works_CXX=no
19922   ac_outfile=conftest.$ac_objext
19923    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19924    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19925    # Insert the option either (1) after the last *FLAGS variable, or
19926    # (2) before a word containing "conftest.", or (3) at the end.
19927    # Note that $ac_compile itself does not contain backslashes and begins
19928    # with a dollar sign (not a hyphen), so the echo should work correctly.
19929    # The option is referenced via a variable to avoid confusing sed.
19930    lt_compile=`echo "$ac_compile" | $SED \
19931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19933    -e 's:$: $lt_compiler_flag:'`
19934    (eval echo "\"\$as_me:19934: $lt_compile\"" >&5)
19935    (eval "$lt_compile" 2>conftest.err)
19936    ac_status=$?
19937    cat conftest.err >&5
19938    echo "$as_me:19938: \$? = $ac_status" >&5
19939    if (exit $ac_status) && test -s "$ac_outfile"; then
19940      # The compiler can only warn and ignore the option if not recognized
19941      # So say no if there are warnings other than the usual output.
19942      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19945        lt_prog_compiler_pic_works_CXX=yes
19946      fi
19947    fi
19948    $rm conftest*
19949
19950 fi
19951 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19952 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19953
19954 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19955     case $lt_prog_compiler_pic_CXX in
19956      "" | " "*) ;;
19957      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19958      esac
19959 else
19960     lt_prog_compiler_pic_CXX=
19961      lt_prog_compiler_can_build_shared_CXX=no
19962 fi
19963
19964 fi
19965 case $host_os in
19966   # For platforms which do not support PIC, -DPIC is meaningless:
19967   *djgpp*)
19968     lt_prog_compiler_pic_CXX=
19969     ;;
19970   *)
19971     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19972     ;;
19973 esac
19974
19975 #
19976 # Check to make sure the static flag actually works.
19977 #
19978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19979 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19981 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   lt_prog_compiler_static_works_CXX=no
19985    save_LDFLAGS="$LDFLAGS"
19986    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19987    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19988    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19989      # The linker can only warn and ignore the option if not recognized
19990      # So say no if there are warnings
19991      if test -s conftest.err; then
19992        # Append any errors to the config.log.
19993        cat conftest.err 1>&5
19994        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19995        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19996        if diff conftest.exp conftest.er2 >/dev/null; then
19997          lt_prog_compiler_static_works_CXX=yes
19998        fi
19999      else
20000        lt_prog_compiler_static_works_CXX=yes
20001      fi
20002    fi
20003    $rm conftest*
20004    LDFLAGS="$save_LDFLAGS"
20005
20006 fi
20007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20008 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20009
20010 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20011     :
20012 else
20013     lt_prog_compiler_static_CXX=
20014 fi
20015
20016
20017 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20020   echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022   lt_cv_prog_compiler_c_o_CXX=no
20023    $rm -r conftest 2>/dev/null
20024    mkdir conftest
20025    cd conftest
20026    mkdir out
20027    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20028
20029    lt_compiler_flag="-o out/conftest2.$ac_objext"
20030    # Insert the option either (1) after the last *FLAGS variable, or
20031    # (2) before a word containing "conftest.", or (3) at the end.
20032    # Note that $ac_compile itself does not contain backslashes and begins
20033    # with a dollar sign (not a hyphen), so the echo should work correctly.
20034    lt_compile=`echo "$ac_compile" | $SED \
20035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20037    -e 's:$: $lt_compiler_flag:'`
20038    (eval echo "\"\$as_me:20038: $lt_compile\"" >&5)
20039    (eval "$lt_compile" 2>out/conftest.err)
20040    ac_status=$?
20041    cat out/conftest.err >&5
20042    echo "$as_me:20042: \$? = $ac_status" >&5
20043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20044    then
20045      # The compiler can only warn and ignore the option if not recognized
20046      # So say no if there are warnings
20047      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20050        lt_cv_prog_compiler_c_o_CXX=yes
20051      fi
20052    fi
20053    chmod u+w . 2>&5
20054    $rm conftest*
20055    # SGI C++ compiler will create directory out/ii_files/ for
20056    # template instantiation
20057    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20058    $rm out/* && rmdir out
20059    cd ..
20060    rmdir conftest
20061    $rm conftest*
20062
20063 fi
20064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20066
20067
20068 hard_links="nottested"
20069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20070   # do not overwrite the value of need_locks provided by the user
20071   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20073   hard_links=yes
20074   $rm conftest*
20075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20076   touch conftest.a
20077   ln conftest.a conftest.b 2>&5 || hard_links=no
20078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20079   { echo "$as_me:$LINENO: result: $hard_links" >&5
20080 echo "${ECHO_T}$hard_links" >&6; }
20081   if test "$hard_links" = no; then
20082     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20084     need_locks=warn
20085   fi
20086 else
20087   need_locks=no
20088 fi
20089
20090 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20092
20093   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20094   case $host_os in
20095   aix4* | aix5*)
20096     # If we're using GNU nm, then we don't want the "-C" option.
20097     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20098     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20099       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'
20100     else
20101       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'
20102     fi
20103     ;;
20104   pw32*)
20105     export_symbols_cmds_CXX="$ltdll_cmds"
20106   ;;
20107   cygwin* | mingw*)
20108     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'
20109   ;;
20110   *)
20111     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20112   ;;
20113   esac
20114
20115 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20116 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20117 test "$ld_shlibs_CXX" = no && can_build_shared=no
20118
20119 #
20120 # Do we need to explicitly link libc?
20121 #
20122 case "x$archive_cmds_need_lc_CXX" in
20123 x|xyes)
20124   # Assume -lc should be added
20125   archive_cmds_need_lc_CXX=yes
20126
20127   if test "$enable_shared" = yes && test "$GCC" = yes; then
20128     case $archive_cmds_CXX in
20129     *'~'*)
20130       # FIXME: we may have to deal with multi-command sequences.
20131       ;;
20132     '$CC '*)
20133       # Test whether the compiler implicitly links with -lc since on some
20134       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20135       # to ld, don't add -lc before -lgcc.
20136       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20137 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20138       $rm conftest*
20139       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20140
20141       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } 2>conftest.err; then
20146         soname=conftest
20147         lib=conftest
20148         libobjs=conftest.$ac_objext
20149         deplibs=
20150         wl=$lt_prog_compiler_wl_CXX
20151         pic_flag=$lt_prog_compiler_pic_CXX
20152         compiler_flags=-v
20153         linker_flags=-v
20154         verstring=
20155         output_objdir=.
20156         libname=conftest
20157         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20158         allow_undefined_flag_CXX=
20159         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20160   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }
20164         then
20165           archive_cmds_need_lc_CXX=no
20166         else
20167           archive_cmds_need_lc_CXX=yes
20168         fi
20169         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20170       else
20171         cat conftest.err 1>&5
20172       fi
20173       $rm conftest*
20174       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20175 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20176       ;;
20177     esac
20178   fi
20179   ;;
20180 esac
20181
20182 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20184 library_names_spec=
20185 libname_spec='lib$name'
20186 soname_spec=
20187 shrext_cmds=".so"
20188 postinstall_cmds=
20189 postuninstall_cmds=
20190 finish_cmds=
20191 finish_eval=
20192 shlibpath_var=
20193 shlibpath_overrides_runpath=unknown
20194 version_type=none
20195 dynamic_linker="$host_os ld.so"
20196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20197 if test "$GCC" = yes; then
20198   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20199   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20200     # if the path contains ";" then we assume it to be the separator
20201     # otherwise default to the standard path separator (i.e. ":") - it is
20202     # assumed that no part of a normal pathname contains ";" but that should
20203     # okay in the real world where ";" in dirpaths is itself problematic.
20204     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20205   else
20206     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20207   fi
20208 else
20209   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20210 fi
20211 need_lib_prefix=unknown
20212 hardcode_into_libs=no
20213
20214 # when you set need_version to no, make sure it does not cause -set_version
20215 # flags to be left without arguments
20216 need_version=unknown
20217
20218 case $host_os in
20219 aix3*)
20220   version_type=linux
20221   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20222   shlibpath_var=LIBPATH
20223
20224   # AIX 3 has no versioning support, so we append a major version to the name.
20225   soname_spec='${libname}${release}${shared_ext}$major'
20226   ;;
20227
20228 aix4* | aix5*)
20229   version_type=linux
20230   need_lib_prefix=no
20231   need_version=no
20232   hardcode_into_libs=yes
20233   if test "$host_cpu" = ia64; then
20234     # AIX 5 supports IA64
20235     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20236     shlibpath_var=LD_LIBRARY_PATH
20237   else
20238     # With GCC up to 2.95.x, collect2 would create an import file
20239     # for dependence libraries.  The import file would start with
20240     # the line `#! .'.  This would cause the generated library to
20241     # depend on `.', always an invalid library.  This was fixed in
20242     # development snapshots of GCC prior to 3.0.
20243     case $host_os in
20244       aix4 | aix4.[01] | aix4.[01].*)
20245       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20246            echo ' yes '
20247            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20248         :
20249       else
20250         can_build_shared=no
20251       fi
20252       ;;
20253     esac
20254     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20255     # soname into executable. Probably we can add versioning support to
20256     # collect2, so additional links can be useful in future.
20257     if test "$aix_use_runtimelinking" = yes; then
20258       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20259       # instead of lib<name>.a to let people know that these are not
20260       # typical AIX shared libraries.
20261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262     else
20263       # We preserve .a as extension for shared libraries through AIX4.2
20264       # and later when we are not doing run time linking.
20265       library_names_spec='${libname}${release}.a $libname.a'
20266       soname_spec='${libname}${release}${shared_ext}$major'
20267     fi
20268     shlibpath_var=LIBPATH
20269   fi
20270   ;;
20271
20272 amigaos*)
20273   library_names_spec='$libname.ixlibrary $libname.a'
20274   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20275   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'
20276   ;;
20277
20278 beos*)
20279   library_names_spec='${libname}${shared_ext}'
20280   dynamic_linker="$host_os ld.so"
20281   shlibpath_var=LIBRARY_PATH
20282   ;;
20283
20284 bsdi[45]*)
20285   version_type=linux
20286   need_version=no
20287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288   soname_spec='${libname}${release}${shared_ext}$major'
20289   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20290   shlibpath_var=LD_LIBRARY_PATH
20291   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20292   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20293   # the default ld.so.conf also contains /usr/contrib/lib and
20294   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20295   # libtool to hard-code these into programs
20296   ;;
20297
20298 cygwin* | mingw* | pw32*)
20299   version_type=windows
20300   shrext_cmds=".dll"
20301   need_version=no
20302   need_lib_prefix=no
20303
20304   case $GCC,$host_os in
20305   yes,cygwin* | yes,mingw* | yes,pw32*)
20306     library_names_spec='$libname.dll.a'
20307     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20308     postinstall_cmds='base_file=`basename \${file}`~
20309       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20310       dldir=$destdir/`dirname \$dlpath`~
20311       test -d \$dldir || mkdir -p \$dldir~
20312       $install_prog $dir/$dlname \$dldir/$dlname~
20313       chmod a+x \$dldir/$dlname'
20314     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20315       dlpath=$dir/\$dldll~
20316        $rm \$dlpath'
20317     shlibpath_overrides_runpath=yes
20318
20319     case $host_os in
20320     cygwin*)
20321       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20322       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20323       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20324       ;;
20325     mingw*)
20326       # MinGW DLLs use traditional 'lib' prefix
20327       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20328       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20330         # It is most probably a Windows format PATH printed by
20331         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20332         # path with ; separators, and with drive letters. We can handle the
20333         # drive letters (cygwin fileutils understands them), so leave them,
20334         # especially as we might pass files found there to a mingw objdump,
20335         # which wouldn't understand a cygwinified path. Ahh.
20336         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20337       else
20338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20339       fi
20340       ;;
20341     pw32*)
20342       # pw32 DLLs use 'pw' prefix rather than 'lib'
20343       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20344       ;;
20345     esac
20346     ;;
20347
20348   *)
20349     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20350     ;;
20351   esac
20352   dynamic_linker='Win32 ld.exe'
20353   # FIXME: first we should search . and the directory the executable is in
20354   shlibpath_var=PATH
20355   ;;
20356
20357 darwin* | rhapsody*)
20358   dynamic_linker="$host_os dyld"
20359   version_type=darwin
20360   need_lib_prefix=no
20361   need_version=no
20362   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20363   soname_spec='${libname}${release}${major}$shared_ext'
20364   shlibpath_overrides_runpath=yes
20365   shlibpath_var=DYLD_LIBRARY_PATH
20366   shrext_cmds='.dylib'
20367   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20368   if test "$GCC" = yes; then
20369     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"`
20370   else
20371     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20372   fi
20373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20374   ;;
20375
20376 dgux*)
20377   version_type=linux
20378   need_lib_prefix=no
20379   need_version=no
20380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20381   soname_spec='${libname}${release}${shared_ext}$major'
20382   shlibpath_var=LD_LIBRARY_PATH
20383   ;;
20384
20385 freebsd1*)
20386   dynamic_linker=no
20387   ;;
20388
20389 kfreebsd*-gnu)
20390   version_type=linux
20391   need_lib_prefix=no
20392   need_version=no
20393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20394   soname_spec='${libname}${release}${shared_ext}$major'
20395   shlibpath_var=LD_LIBRARY_PATH
20396   shlibpath_overrides_runpath=no
20397   hardcode_into_libs=yes
20398   dynamic_linker='GNU ld.so'
20399   ;;
20400
20401 freebsd* | dragonfly*)
20402   # DragonFly does not have aout.  When/if they implement a new
20403   # versioning mechanism, adjust this.
20404   if test -x /usr/bin/objformat; then
20405     objformat=`/usr/bin/objformat`
20406   else
20407     case $host_os in
20408     freebsd[123]*) objformat=aout ;;
20409     *) objformat=elf ;;
20410     esac
20411   fi
20412   version_type=freebsd-$objformat
20413   case $version_type in
20414     freebsd-elf*)
20415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20416       need_version=no
20417       need_lib_prefix=no
20418       ;;
20419     freebsd-*)
20420       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20421       need_version=yes
20422       ;;
20423   esac
20424   shlibpath_var=LD_LIBRARY_PATH
20425   case $host_os in
20426   freebsd2*)
20427     shlibpath_overrides_runpath=yes
20428     ;;
20429   freebsd3.[01]* | freebsdelf3.[01]*)
20430     shlibpath_overrides_runpath=yes
20431     hardcode_into_libs=yes
20432     ;;
20433   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20434   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20435     shlibpath_overrides_runpath=no
20436     hardcode_into_libs=yes
20437     ;;
20438   freebsd*) # from 4.6 on
20439     shlibpath_overrides_runpath=yes
20440     hardcode_into_libs=yes
20441     ;;
20442   esac
20443   ;;
20444
20445 gnu*)
20446   version_type=linux
20447   need_lib_prefix=no
20448   need_version=no
20449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20450   soname_spec='${libname}${release}${shared_ext}$major'
20451   shlibpath_var=LD_LIBRARY_PATH
20452   hardcode_into_libs=yes
20453   ;;
20454
20455 hpux9* | hpux10* | hpux11*)
20456   # Give a soname corresponding to the major version so that dld.sl refuses to
20457   # link against other versions.
20458   version_type=sunos
20459   need_lib_prefix=no
20460   need_version=no
20461   case $host_cpu in
20462   ia64*)
20463     shrext_cmds='.so'
20464     hardcode_into_libs=yes
20465     dynamic_linker="$host_os dld.so"
20466     shlibpath_var=LD_LIBRARY_PATH
20467     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469     soname_spec='${libname}${release}${shared_ext}$major'
20470     if test "X$HPUX_IA64_MODE" = X32; then
20471       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20472     else
20473       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20474     fi
20475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20476     ;;
20477    hppa*64*)
20478      shrext_cmds='.sl'
20479      hardcode_into_libs=yes
20480      dynamic_linker="$host_os dld.sl"
20481      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20482      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484      soname_spec='${libname}${release}${shared_ext}$major'
20485      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20486      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20487      ;;
20488    *)
20489     shrext_cmds='.sl'
20490     dynamic_linker="$host_os dld.sl"
20491     shlibpath_var=SHLIB_PATH
20492     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494     soname_spec='${libname}${release}${shared_ext}$major'
20495     ;;
20496   esac
20497   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20498   postinstall_cmds='chmod 555 $lib'
20499   ;;
20500
20501 interix3*)
20502   version_type=linux
20503   need_lib_prefix=no
20504   need_version=no
20505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20506   soname_spec='${libname}${release}${shared_ext}$major'
20507   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20508   shlibpath_var=LD_LIBRARY_PATH
20509   shlibpath_overrides_runpath=no
20510   hardcode_into_libs=yes
20511   ;;
20512
20513 irix5* | irix6* | nonstopux*)
20514   case $host_os in
20515     nonstopux*) version_type=nonstopux ;;
20516     *)
20517         if test "$lt_cv_prog_gnu_ld" = yes; then
20518                 version_type=linux
20519         else
20520                 version_type=irix
20521         fi ;;
20522   esac
20523   need_lib_prefix=no
20524   need_version=no
20525   soname_spec='${libname}${release}${shared_ext}$major'
20526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20527   case $host_os in
20528   irix5* | nonstopux*)
20529     libsuff= shlibsuff=
20530     ;;
20531   *)
20532     case $LD in # libtool.m4 will add one of these switches to LD
20533     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20534       libsuff= shlibsuff= libmagic=32-bit;;
20535     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20536       libsuff=32 shlibsuff=N32 libmagic=N32;;
20537     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20538       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20539     *) libsuff= shlibsuff= libmagic=never-match;;
20540     esac
20541     ;;
20542   esac
20543   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20544   shlibpath_overrides_runpath=no
20545   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20546   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20547   hardcode_into_libs=yes
20548   ;;
20549
20550 # No shared lib support for Linux oldld, aout, or coff.
20551 linux*oldld* | linux*aout* | linux*coff*)
20552   dynamic_linker=no
20553   ;;
20554
20555 # This must be Linux ELF.
20556 linux*)
20557   version_type=linux
20558   need_lib_prefix=no
20559   need_version=no
20560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561   soname_spec='${libname}${release}${shared_ext}$major'
20562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20563   shlibpath_var=LD_LIBRARY_PATH
20564   shlibpath_overrides_runpath=no
20565   # This implies no fast_install, which is unacceptable.
20566   # Some rework will be needed to allow for fast_install
20567   # before this can be enabled.
20568   hardcode_into_libs=yes
20569
20570   # Append ld.so.conf contents to the search path
20571   if test -f /etc/ld.so.conf; then
20572     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' ' '`
20573     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20574   fi
20575
20576   # We used to test for /lib/ld.so.1 and disable shared libraries on
20577   # powerpc, because MkLinux only supported shared libraries with the
20578   # GNU dynamic linker.  Since this was broken with cross compilers,
20579   # most powerpc-linux boxes support dynamic linking these days and
20580   # people can always --disable-shared, the test was removed, and we
20581   # assume the GNU/Linux dynamic linker is in use.
20582   dynamic_linker='GNU/Linux ld.so'
20583   ;;
20584
20585 knetbsd*-gnu)
20586   version_type=linux
20587   need_lib_prefix=no
20588   need_version=no
20589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590   soname_spec='${libname}${release}${shared_ext}$major'
20591   shlibpath_var=LD_LIBRARY_PATH
20592   shlibpath_overrides_runpath=no
20593   hardcode_into_libs=yes
20594   dynamic_linker='GNU ld.so'
20595   ;;
20596
20597 netbsd*)
20598   version_type=sunos
20599   need_lib_prefix=no
20600   need_version=no
20601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20604     dynamic_linker='NetBSD (a.out) ld.so'
20605   else
20606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20607     soname_spec='${libname}${release}${shared_ext}$major'
20608     dynamic_linker='NetBSD ld.elf_so'
20609   fi
20610   shlibpath_var=LD_LIBRARY_PATH
20611   shlibpath_overrides_runpath=yes
20612   hardcode_into_libs=yes
20613   ;;
20614
20615 newsos6)
20616   version_type=linux
20617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618   shlibpath_var=LD_LIBRARY_PATH
20619   shlibpath_overrides_runpath=yes
20620   ;;
20621
20622 nto-qnx*)
20623   version_type=linux
20624   need_lib_prefix=no
20625   need_version=no
20626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20627   soname_spec='${libname}${release}${shared_ext}$major'
20628   shlibpath_var=LD_LIBRARY_PATH
20629   shlibpath_overrides_runpath=yes
20630   ;;
20631
20632 openbsd*)
20633   version_type=sunos
20634   sys_lib_dlsearch_path_spec="/usr/lib"
20635   need_lib_prefix=no
20636   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20637   case $host_os in
20638     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20639     *)                         need_version=no  ;;
20640   esac
20641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20643   shlibpath_var=LD_LIBRARY_PATH
20644   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20645     case $host_os in
20646       openbsd2.[89] | openbsd2.[89].*)
20647         shlibpath_overrides_runpath=no
20648         ;;
20649       *)
20650         shlibpath_overrides_runpath=yes
20651         ;;
20652       esac
20653   else
20654     shlibpath_overrides_runpath=yes
20655   fi
20656   ;;
20657
20658 os2*)
20659   libname_spec='$name'
20660   shrext_cmds=".dll"
20661   need_lib_prefix=no
20662   library_names_spec='$libname${shared_ext} $libname.a'
20663   dynamic_linker='OS/2 ld.exe'
20664   shlibpath_var=LIBPATH
20665   ;;
20666
20667 osf3* | osf4* | osf5*)
20668   version_type=osf
20669   need_lib_prefix=no
20670   need_version=no
20671   soname_spec='${libname}${release}${shared_ext}$major'
20672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673   shlibpath_var=LD_LIBRARY_PATH
20674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20676   ;;
20677
20678 solaris*)
20679   version_type=linux
20680   need_lib_prefix=no
20681   need_version=no
20682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683   soname_spec='${libname}${release}${shared_ext}$major'
20684   shlibpath_var=LD_LIBRARY_PATH
20685   shlibpath_overrides_runpath=yes
20686   hardcode_into_libs=yes
20687   # ldd complains unless libraries are executable
20688   postinstall_cmds='chmod +x $lib'
20689   ;;
20690
20691 sunos4*)
20692   version_type=sunos
20693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20695   shlibpath_var=LD_LIBRARY_PATH
20696   shlibpath_overrides_runpath=yes
20697   if test "$with_gnu_ld" = yes; then
20698     need_lib_prefix=no
20699   fi
20700   need_version=yes
20701   ;;
20702
20703 sysv4 | sysv4.3*)
20704   version_type=linux
20705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706   soname_spec='${libname}${release}${shared_ext}$major'
20707   shlibpath_var=LD_LIBRARY_PATH
20708   case $host_vendor in
20709     sni)
20710       shlibpath_overrides_runpath=no
20711       need_lib_prefix=no
20712       export_dynamic_flag_spec='${wl}-Blargedynsym'
20713       runpath_var=LD_RUN_PATH
20714       ;;
20715     siemens)
20716       need_lib_prefix=no
20717       ;;
20718     motorola)
20719       need_lib_prefix=no
20720       need_version=no
20721       shlibpath_overrides_runpath=no
20722       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20723       ;;
20724   esac
20725   ;;
20726
20727 sysv4*MP*)
20728   if test -d /usr/nec ;then
20729     version_type=linux
20730     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20731     soname_spec='$libname${shared_ext}.$major'
20732     shlibpath_var=LD_LIBRARY_PATH
20733   fi
20734   ;;
20735
20736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20737   version_type=freebsd-elf
20738   need_lib_prefix=no
20739   need_version=no
20740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20741   soname_spec='${libname}${release}${shared_ext}$major'
20742   shlibpath_var=LD_LIBRARY_PATH
20743   hardcode_into_libs=yes
20744   if test "$with_gnu_ld" = yes; then
20745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20746     shlibpath_overrides_runpath=no
20747   else
20748     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20749     shlibpath_overrides_runpath=yes
20750     case $host_os in
20751       sco3.2v5*)
20752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20753         ;;
20754     esac
20755   fi
20756   sys_lib_dlsearch_path_spec='/usr/lib'
20757   ;;
20758
20759 uts4*)
20760   version_type=linux
20761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762   soname_spec='${libname}${release}${shared_ext}$major'
20763   shlibpath_var=LD_LIBRARY_PATH
20764   ;;
20765
20766 *)
20767   dynamic_linker=no
20768   ;;
20769 esac
20770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20771 echo "${ECHO_T}$dynamic_linker" >&6; }
20772 test "$dynamic_linker" = no && can_build_shared=no
20773
20774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20775 if test "$GCC" = yes; then
20776   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20777 fi
20778
20779 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20781 hardcode_action_CXX=
20782 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20783    test -n "$runpath_var_CXX" || \
20784    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20785
20786   # We can hardcode non-existant directories.
20787   if test "$hardcode_direct_CXX" != no &&
20788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20789      # have to relink, otherwise we might link with an installed library
20790      # when we should be linking with a yet-to-be-installed one
20791      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20792      test "$hardcode_minus_L_CXX" != no; then
20793     # Linking always hardcodes the temporary library directory.
20794     hardcode_action_CXX=relink
20795   else
20796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20797     hardcode_action_CXX=immediate
20798   fi
20799 else
20800   # We cannot hardcode anything, or else we can only hardcode existing
20801   # directories.
20802   hardcode_action_CXX=unsupported
20803 fi
20804 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20805 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20806
20807 if test "$hardcode_action_CXX" = relink; then
20808   # Fast installation is not supported
20809   enable_fast_install=no
20810 elif test "$shlibpath_overrides_runpath" = yes ||
20811      test "$enable_shared" = no; then
20812   # Fast installation is not necessary
20813   enable_fast_install=needless
20814 fi
20815
20816
20817 # The else clause should only fire when bootstrapping the
20818 # libtool distribution, otherwise you forgot to ship ltmain.sh
20819 # with your package, and you will get complaints that there are
20820 # no rules to generate ltmain.sh.
20821 if test -f "$ltmain"; then
20822   # See if we are running on zsh, and set the options which allow our commands through
20823   # without removal of \ escapes.
20824   if test -n "${ZSH_VERSION+set}" ; then
20825     setopt NO_GLOB_SUBST
20826   fi
20827   # Now quote all the things that may contain metacharacters while being
20828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20829   # variables and quote the copies for generation of the libtool script.
20830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20831     SED SHELL STRIP \
20832     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20833     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20834     deplibs_check_method reload_flag reload_cmds need_locks \
20835     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20836     lt_cv_sys_global_symbol_to_c_name_address \
20837     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20838     old_postinstall_cmds old_postuninstall_cmds \
20839     compiler_CXX \
20840     CC_CXX \
20841     LD_CXX \
20842     lt_prog_compiler_wl_CXX \
20843     lt_prog_compiler_pic_CXX \
20844     lt_prog_compiler_static_CXX \
20845     lt_prog_compiler_no_builtin_flag_CXX \
20846     export_dynamic_flag_spec_CXX \
20847     thread_safe_flag_spec_CXX \
20848     whole_archive_flag_spec_CXX \
20849     enable_shared_with_static_runtimes_CXX \
20850     old_archive_cmds_CXX \
20851     old_archive_from_new_cmds_CXX \
20852     predep_objects_CXX \
20853     postdep_objects_CXX \
20854     predeps_CXX \
20855     postdeps_CXX \
20856     compiler_lib_search_path_CXX \
20857     archive_cmds_CXX \
20858     archive_expsym_cmds_CXX \
20859     postinstall_cmds_CXX \
20860     postuninstall_cmds_CXX \
20861     old_archive_from_expsyms_cmds_CXX \
20862     allow_undefined_flag_CXX \
20863     no_undefined_flag_CXX \
20864     export_symbols_cmds_CXX \
20865     hardcode_libdir_flag_spec_CXX \
20866     hardcode_libdir_flag_spec_ld_CXX \
20867     hardcode_libdir_separator_CXX \
20868     hardcode_automatic_CXX \
20869     module_cmds_CXX \
20870     module_expsym_cmds_CXX \
20871     lt_cv_prog_compiler_c_o_CXX \
20872     exclude_expsyms_CXX \
20873     include_expsyms_CXX; do
20874
20875     case $var in
20876     old_archive_cmds_CXX | \
20877     old_archive_from_new_cmds_CXX | \
20878     archive_cmds_CXX | \
20879     archive_expsym_cmds_CXX | \
20880     module_cmds_CXX | \
20881     module_expsym_cmds_CXX | \
20882     old_archive_from_expsyms_cmds_CXX | \
20883     export_symbols_cmds_CXX | \
20884     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20885     postinstall_cmds | postuninstall_cmds | \
20886     old_postinstall_cmds | old_postuninstall_cmds | \
20887     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20888       # Double-quote double-evaled strings.
20889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20890       ;;
20891     *)
20892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20893       ;;
20894     esac
20895   done
20896
20897   case $lt_echo in
20898   *'\$0 --fallback-echo"')
20899     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20900     ;;
20901   esac
20902
20903 cfgfile="$ofile"
20904
20905   cat <<__EOF__ >> "$cfgfile"
20906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20907
20908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20909
20910 # Shell to use when invoking shell scripts.
20911 SHELL=$lt_SHELL
20912
20913 # Whether or not to build shared libraries.
20914 build_libtool_libs=$enable_shared
20915
20916 # Whether or not to build static libraries.
20917 build_old_libs=$enable_static
20918
20919 # Whether or not to add -lc for building shared libraries.
20920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20921
20922 # Whether or not to disallow shared libs when runtime libs are static
20923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20924
20925 # Whether or not to optimize for fast installation.
20926 fast_install=$enable_fast_install
20927
20928 # The host system.
20929 host_alias=$host_alias
20930 host=$host
20931 host_os=$host_os
20932
20933 # The build system.
20934 build_alias=$build_alias
20935 build=$build
20936 build_os=$build_os
20937
20938 # An echo program that does not interpret backslashes.
20939 echo=$lt_echo
20940
20941 # The archiver.
20942 AR=$lt_AR
20943 AR_FLAGS=$lt_AR_FLAGS
20944
20945 # A C compiler.
20946 LTCC=$lt_LTCC
20947
20948 # LTCC compiler flags.
20949 LTCFLAGS=$lt_LTCFLAGS
20950
20951 # A language-specific compiler.
20952 CC=$lt_compiler_CXX
20953
20954 # Is the compiler the GNU C compiler?
20955 with_gcc=$GCC_CXX
20956
20957 # An ERE matcher.
20958 EGREP=$lt_EGREP
20959
20960 # The linker used to build libraries.
20961 LD=$lt_LD_CXX
20962
20963 # Whether we need hard or soft links.
20964 LN_S=$lt_LN_S
20965
20966 # A BSD-compatible nm program.
20967 NM=$lt_NM
20968
20969 # A symbol stripping program
20970 STRIP=$lt_STRIP
20971
20972 # Used to examine libraries when file_magic_cmd begins "file"
20973 MAGIC_CMD=$MAGIC_CMD
20974
20975 # Used on cygwin: DLL creation program.
20976 DLLTOOL="$DLLTOOL"
20977
20978 # Used on cygwin: object dumper.
20979 OBJDUMP="$OBJDUMP"
20980
20981 # Used on cygwin: assembler.
20982 AS="$AS"
20983
20984 # The name of the directory that contains temporary libtool files.
20985 objdir=$objdir
20986
20987 # How to create reloadable object files.
20988 reload_flag=$lt_reload_flag
20989 reload_cmds=$lt_reload_cmds
20990
20991 # How to pass a linker flag through the compiler.
20992 wl=$lt_lt_prog_compiler_wl_CXX
20993
20994 # Object file suffix (normally "o").
20995 objext="$ac_objext"
20996
20997 # Old archive suffix (normally "a").
20998 libext="$libext"
20999
21000 # Shared library suffix (normally ".so").
21001 shrext_cmds='$shrext_cmds'
21002
21003 # Executable file suffix (normally "").
21004 exeext="$exeext"
21005
21006 # Additional compiler flags for building library objects.
21007 pic_flag=$lt_lt_prog_compiler_pic_CXX
21008 pic_mode=$pic_mode
21009
21010 # What is the maximum length of a command?
21011 max_cmd_len=$lt_cv_sys_max_cmd_len
21012
21013 # Does compiler simultaneously support -c and -o options?
21014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21015
21016 # Must we lock files when doing compilation?
21017 need_locks=$lt_need_locks
21018
21019 # Do we need the lib prefix for modules?
21020 need_lib_prefix=$need_lib_prefix
21021
21022 # Do we need a version for libraries?
21023 need_version=$need_version
21024
21025 # Whether dlopen is supported.
21026 dlopen_support=$enable_dlopen
21027
21028 # Whether dlopen of programs is supported.
21029 dlopen_self=$enable_dlopen_self
21030
21031 # Whether dlopen of statically linked programs is supported.
21032 dlopen_self_static=$enable_dlopen_self_static
21033
21034 # Compiler flag to prevent dynamic linking.
21035 link_static_flag=$lt_lt_prog_compiler_static_CXX
21036
21037 # Compiler flag to turn off builtin functions.
21038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21039
21040 # Compiler flag to allow reflexive dlopens.
21041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21042
21043 # Compiler flag to generate shared objects directly from archives.
21044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21045
21046 # Compiler flag to generate thread-safe objects.
21047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21048
21049 # Library versioning type.
21050 version_type=$version_type
21051
21052 # Format of library name prefix.
21053 libname_spec=$lt_libname_spec
21054
21055 # List of archive names.  First name is the real one, the rest are links.
21056 # The last name is the one that the linker finds with -lNAME.
21057 library_names_spec=$lt_library_names_spec
21058
21059 # The coded name of the library, if different from the real name.
21060 soname_spec=$lt_soname_spec
21061
21062 # Commands used to build and install an old-style archive.
21063 RANLIB=$lt_RANLIB
21064 old_archive_cmds=$lt_old_archive_cmds_CXX
21065 old_postinstall_cmds=$lt_old_postinstall_cmds
21066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21067
21068 # Create an old-style archive from a shared archive.
21069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21070
21071 # Create a temporary old-style archive to link instead of a shared archive.
21072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21073
21074 # Commands used to build and install a shared archive.
21075 archive_cmds=$lt_archive_cmds_CXX
21076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21077 postinstall_cmds=$lt_postinstall_cmds
21078 postuninstall_cmds=$lt_postuninstall_cmds
21079
21080 # Commands used to build a loadable module (assumed same as above if empty)
21081 module_cmds=$lt_module_cmds_CXX
21082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21083
21084 # Commands to strip libraries.
21085 old_striplib=$lt_old_striplib
21086 striplib=$lt_striplib
21087
21088 # Dependencies to place before the objects being linked to create a
21089 # shared library.
21090 predep_objects=$lt_predep_objects_CXX
21091
21092 # Dependencies to place after the objects being linked to create a
21093 # shared library.
21094 postdep_objects=$lt_postdep_objects_CXX
21095
21096 # Dependencies to place before the objects being linked to create a
21097 # shared library.
21098 predeps=$lt_predeps_CXX
21099
21100 # Dependencies to place after the objects being linked to create a
21101 # shared library.
21102 postdeps=$lt_postdeps_CXX
21103
21104 # The library search path used internally by the compiler when linking
21105 # a shared library.
21106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21107
21108 # Method to check whether dependent libraries are shared objects.
21109 deplibs_check_method=$lt_deplibs_check_method
21110
21111 # Command to use when deplibs_check_method == file_magic.
21112 file_magic_cmd=$lt_file_magic_cmd
21113
21114 # Flag that allows shared libraries with undefined symbols to be built.
21115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21116
21117 # Flag that forces no undefined symbols.
21118 no_undefined_flag=$lt_no_undefined_flag_CXX
21119
21120 # Commands used to finish a libtool library installation in a directory.
21121 finish_cmds=$lt_finish_cmds
21122
21123 # Same as above, but a single script fragment to be evaled but not shown.
21124 finish_eval=$lt_finish_eval
21125
21126 # Take the output of nm and produce a listing of raw symbols and C names.
21127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21128
21129 # Transform the output of nm in a proper C declaration
21130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21131
21132 # Transform the output of nm in a C name address pair
21133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21134
21135 # This is the shared library runtime path variable.
21136 runpath_var=$runpath_var
21137
21138 # This is the shared library path variable.
21139 shlibpath_var=$shlibpath_var
21140
21141 # Is shlibpath searched before the hard-coded library search path?
21142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21143
21144 # How to hardcode a shared library path into an executable.
21145 hardcode_action=$hardcode_action_CXX
21146
21147 # Whether we should hardcode library paths into libraries.
21148 hardcode_into_libs=$hardcode_into_libs
21149
21150 # Flag to hardcode \$libdir into a binary during linking.
21151 # This must work even if \$libdir does not exist.
21152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21153
21154 # If ld is used when linking, flag to hardcode \$libdir into
21155 # a binary during linking. This must work even if \$libdir does
21156 # not exist.
21157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21158
21159 # Whether we need a single -rpath flag with a separated argument.
21160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21161
21162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21163 # resulting binary.
21164 hardcode_direct=$hardcode_direct_CXX
21165
21166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21167 # resulting binary.
21168 hardcode_minus_L=$hardcode_minus_L_CXX
21169
21170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21171 # the resulting binary.
21172 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21173
21174 # Set to yes if building a shared library automatically hardcodes DIR into the library
21175 # and all subsequent libraries and executables linked against it.
21176 hardcode_automatic=$hardcode_automatic_CXX
21177
21178 # Variables whose values should be saved in libtool wrapper scripts and
21179 # restored at relink time.
21180 variables_saved_for_relink="$variables_saved_for_relink"
21181
21182 # Whether libtool must link a program against all its dependency libraries.
21183 link_all_deplibs=$link_all_deplibs_CXX
21184
21185 # Compile-time system search path for libraries
21186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21187
21188 # Run-time system search path for libraries
21189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21190
21191 # Fix the shell variable \$srcfile for the compiler.
21192 fix_srcfile_path="$fix_srcfile_path_CXX"
21193
21194 # Set to yes if exported symbols are required.
21195 always_export_symbols=$always_export_symbols_CXX
21196
21197 # The commands to list exported symbols.
21198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21199
21200 # The commands to extract the exported symbol list from a shared archive.
21201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21202
21203 # Symbols that should not be listed in the preloaded symbols.
21204 exclude_expsyms=$lt_exclude_expsyms_CXX
21205
21206 # Symbols that must always be exported.
21207 include_expsyms=$lt_include_expsyms_CXX
21208
21209 # ### END LIBTOOL TAG CONFIG: $tagname
21210
21211 __EOF__
21212
21213
21214 else
21215   # If there is no Makefile yet, we rely on a make rule to execute
21216   # `config.status --recheck' to rerun these tests and create the
21217   # libtool script then.
21218   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21219   if test -f "$ltmain_in"; then
21220     test -f Makefile && make "$ltmain"
21221   fi
21222 fi
21223
21224
21225 ac_ext=c
21226 ac_cpp='$CPP $CPPFLAGS'
21227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21230
21231 CC=$lt_save_CC
21232 LDCXX=$LD
21233 LD=$lt_save_LD
21234 GCC=$lt_save_GCC
21235 with_gnu_ldcxx=$with_gnu_ld
21236 with_gnu_ld=$lt_save_with_gnu_ld
21237 lt_cv_path_LDCXX=$lt_cv_path_LD
21238 lt_cv_path_LD=$lt_save_path_LD
21239 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21240 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21241
21242         else
21243           tagname=""
21244         fi
21245         ;;
21246
21247       F77)
21248         if test -n "$F77" && test "X$F77" != "Xno"; then
21249
21250 ac_ext=f
21251 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21252 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21254
21255
21256 archive_cmds_need_lc_F77=no
21257 allow_undefined_flag_F77=
21258 always_export_symbols_F77=no
21259 archive_expsym_cmds_F77=
21260 export_dynamic_flag_spec_F77=
21261 hardcode_direct_F77=no
21262 hardcode_libdir_flag_spec_F77=
21263 hardcode_libdir_flag_spec_ld_F77=
21264 hardcode_libdir_separator_F77=
21265 hardcode_minus_L_F77=no
21266 hardcode_automatic_F77=no
21267 module_cmds_F77=
21268 module_expsym_cmds_F77=
21269 link_all_deplibs_F77=unknown
21270 old_archive_cmds_F77=$old_archive_cmds
21271 no_undefined_flag_F77=
21272 whole_archive_flag_spec_F77=
21273 enable_shared_with_static_runtimes_F77=no
21274
21275 # Source file extension for f77 test sources.
21276 ac_ext=f
21277
21278 # Object file extension for compiled f77 test sources.
21279 objext=o
21280 objext_F77=$objext
21281
21282 # Code to be used in simple compile tests
21283 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21284
21285 # Code to be used in simple link tests
21286 lt_simple_link_test_code="      program t\n      end\n"
21287
21288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21289
21290 # If no C compiler was specified, use CC.
21291 LTCC=${LTCC-"$CC"}
21292
21293 # If no C compiler flags were specified, use CFLAGS.
21294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21295
21296 # Allow CC to be a program name with arguments.
21297 compiler=$CC
21298
21299
21300 # save warnings/boilerplate of simple test code
21301 ac_outfile=conftest.$ac_objext
21302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21304 _lt_compiler_boilerplate=`cat conftest.err`
21305 $rm conftest*
21306
21307 ac_outfile=conftest.$ac_objext
21308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21310 _lt_linker_boilerplate=`cat conftest.err`
21311 $rm conftest*
21312
21313
21314 # Allow CC to be a program name with arguments.
21315 lt_save_CC="$CC"
21316 CC=${F77-"f77"}
21317 compiler=$CC
21318 compiler_F77=$CC
21319 for cc_temp in $compiler""; do
21320   case $cc_temp in
21321     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21322     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21323     \-*) ;;
21324     *) break;;
21325   esac
21326 done
21327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21328
21329
21330 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21332 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21333 echo "${ECHO_T}$can_build_shared" >&6; }
21334
21335 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21337 test "$can_build_shared" = "no" && enable_shared=no
21338
21339 # On AIX, shared libraries and static libraries use the same namespace, and
21340 # are all built from PIC.
21341 case $host_os in
21342 aix3*)
21343   test "$enable_shared" = yes && enable_static=no
21344   if test -n "$RANLIB"; then
21345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21346     postinstall_cmds='$RANLIB $lib'
21347   fi
21348   ;;
21349 aix4* | aix5*)
21350   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21351     test "$enable_shared" = yes && enable_static=no
21352   fi
21353   ;;
21354 esac
21355 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21356 echo "${ECHO_T}$enable_shared" >&6; }
21357
21358 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21360 # Make sure either enable_shared or enable_static is yes.
21361 test "$enable_shared" = yes || enable_static=yes
21362 { echo "$as_me:$LINENO: result: $enable_static" >&5
21363 echo "${ECHO_T}$enable_static" >&6; }
21364
21365 GCC_F77="$G77"
21366 LD_F77="$LD"
21367
21368 lt_prog_compiler_wl_F77=
21369 lt_prog_compiler_pic_F77=
21370 lt_prog_compiler_static_F77=
21371
21372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21374
21375   if test "$GCC" = yes; then
21376     lt_prog_compiler_wl_F77='-Wl,'
21377     lt_prog_compiler_static_F77='-static'
21378
21379     case $host_os in
21380       aix*)
21381       # All AIX code is PIC.
21382       if test "$host_cpu" = ia64; then
21383         # AIX 5 now supports IA64 processor
21384         lt_prog_compiler_static_F77='-Bstatic'
21385       fi
21386       ;;
21387
21388     amigaos*)
21389       # FIXME: we need at least 68020 code to build shared libraries, but
21390       # adding the `-m68020' flag to GCC prevents building anything better,
21391       # like `-m68040'.
21392       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21393       ;;
21394
21395     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21396       # PIC is the default for these OSes.
21397       ;;
21398
21399     mingw* | pw32* | os2*)
21400       # This hack is so that the source file can tell whether it is being
21401       # built for inclusion in a dll (and should export symbols for example).
21402       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21403       ;;
21404
21405     darwin* | rhapsody*)
21406       # PIC is the default on this platform
21407       # Common symbols not allowed in MH_DYLIB files
21408       lt_prog_compiler_pic_F77='-fno-common'
21409       ;;
21410
21411     interix3*)
21412       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21413       # Instead, we relocate shared libraries at runtime.
21414       ;;
21415
21416     msdosdjgpp*)
21417       # Just because we use GCC doesn't mean we suddenly get shared libraries
21418       # on systems that don't support them.
21419       lt_prog_compiler_can_build_shared_F77=no
21420       enable_shared=no
21421       ;;
21422
21423     sysv4*MP*)
21424       if test -d /usr/nec; then
21425         lt_prog_compiler_pic_F77=-Kconform_pic
21426       fi
21427       ;;
21428
21429     hpux*)
21430       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21431       # not for PA HP-UX.
21432       case $host_cpu in
21433       hppa*64*|ia64*)
21434         # +Z the default
21435         ;;
21436       *)
21437         lt_prog_compiler_pic_F77='-fPIC'
21438         ;;
21439       esac
21440       ;;
21441
21442     *)
21443       lt_prog_compiler_pic_F77='-fPIC'
21444       ;;
21445     esac
21446   else
21447     # PORTME Check for flag to pass linker flags through the system compiler.
21448     case $host_os in
21449     aix*)
21450       lt_prog_compiler_wl_F77='-Wl,'
21451       if test "$host_cpu" = ia64; then
21452         # AIX 5 now supports IA64 processor
21453         lt_prog_compiler_static_F77='-Bstatic'
21454       else
21455         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21456       fi
21457       ;;
21458       darwin*)
21459         # PIC is the default on this platform
21460         # Common symbols not allowed in MH_DYLIB files
21461        case $cc_basename in
21462          xlc*)
21463          lt_prog_compiler_pic_F77='-qnocommon'
21464          lt_prog_compiler_wl_F77='-Wl,'
21465          ;;
21466        esac
21467        ;;
21468
21469     mingw* | pw32* | os2*)
21470       # This hack is so that the source file can tell whether it is being
21471       # built for inclusion in a dll (and should export symbols for example).
21472       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21473       ;;
21474
21475     hpux9* | hpux10* | hpux11*)
21476       lt_prog_compiler_wl_F77='-Wl,'
21477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21478       # not for PA HP-UX.
21479       case $host_cpu in
21480       hppa*64*|ia64*)
21481         # +Z the default
21482         ;;
21483       *)
21484         lt_prog_compiler_pic_F77='+Z'
21485         ;;
21486       esac
21487       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21488       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21489       ;;
21490
21491     irix5* | irix6* | nonstopux*)
21492       lt_prog_compiler_wl_F77='-Wl,'
21493       # PIC (with -KPIC) is the default.
21494       lt_prog_compiler_static_F77='-non_shared'
21495       ;;
21496
21497     newsos6)
21498       lt_prog_compiler_pic_F77='-KPIC'
21499       lt_prog_compiler_static_F77='-Bstatic'
21500       ;;
21501
21502     linux*)
21503       case $cc_basename in
21504       icc* | ecc*)
21505         lt_prog_compiler_wl_F77='-Wl,'
21506         lt_prog_compiler_pic_F77='-KPIC'
21507         lt_prog_compiler_static_F77='-static'
21508         ;;
21509       pgcc* | pgf77* | pgf90* | pgf95*)
21510         # Portland Group compilers (*not* the Pentium gcc compiler,
21511         # which looks to be a dead project)
21512         lt_prog_compiler_wl_F77='-Wl,'
21513         lt_prog_compiler_pic_F77='-fpic'
21514         lt_prog_compiler_static_F77='-Bstatic'
21515         ;;
21516       ccc*)
21517         lt_prog_compiler_wl_F77='-Wl,'
21518         # All Alpha code is PIC.
21519         lt_prog_compiler_static_F77='-non_shared'
21520         ;;
21521       esac
21522       ;;
21523
21524     osf3* | osf4* | osf5*)
21525       lt_prog_compiler_wl_F77='-Wl,'
21526       # All OSF/1 code is PIC.
21527       lt_prog_compiler_static_F77='-non_shared'
21528       ;;
21529
21530     solaris*)
21531       lt_prog_compiler_pic_F77='-KPIC'
21532       lt_prog_compiler_static_F77='-Bstatic'
21533       case $cc_basename in
21534       f77* | f90* | f95*)
21535         lt_prog_compiler_wl_F77='-Qoption ld ';;
21536       *)
21537         lt_prog_compiler_wl_F77='-Wl,';;
21538       esac
21539       ;;
21540
21541     sunos4*)
21542       lt_prog_compiler_wl_F77='-Qoption ld '
21543       lt_prog_compiler_pic_F77='-PIC'
21544       lt_prog_compiler_static_F77='-Bstatic'
21545       ;;
21546
21547     sysv4 | sysv4.2uw2* | sysv4.3*)
21548       lt_prog_compiler_wl_F77='-Wl,'
21549       lt_prog_compiler_pic_F77='-KPIC'
21550       lt_prog_compiler_static_F77='-Bstatic'
21551       ;;
21552
21553     sysv4*MP*)
21554       if test -d /usr/nec ;then
21555         lt_prog_compiler_pic_F77='-Kconform_pic'
21556         lt_prog_compiler_static_F77='-Bstatic'
21557       fi
21558       ;;
21559
21560     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21561       lt_prog_compiler_wl_F77='-Wl,'
21562       lt_prog_compiler_pic_F77='-KPIC'
21563       lt_prog_compiler_static_F77='-Bstatic'
21564       ;;
21565
21566     unicos*)
21567       lt_prog_compiler_wl_F77='-Wl,'
21568       lt_prog_compiler_can_build_shared_F77=no
21569       ;;
21570
21571     uts4*)
21572       lt_prog_compiler_pic_F77='-pic'
21573       lt_prog_compiler_static_F77='-Bstatic'
21574       ;;
21575
21576     *)
21577       lt_prog_compiler_can_build_shared_F77=no
21578       ;;
21579     esac
21580   fi
21581
21582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21583 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21584
21585 #
21586 # Check to make sure the PIC flag actually works.
21587 #
21588 if test -n "$lt_prog_compiler_pic_F77"; then
21589
21590 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21592 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595   lt_prog_compiler_pic_works_F77=no
21596   ac_outfile=conftest.$ac_objext
21597    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21598    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21599    # Insert the option either (1) after the last *FLAGS variable, or
21600    # (2) before a word containing "conftest.", or (3) at the end.
21601    # Note that $ac_compile itself does not contain backslashes and begins
21602    # with a dollar sign (not a hyphen), so the echo should work correctly.
21603    # The option is referenced via a variable to avoid confusing sed.
21604    lt_compile=`echo "$ac_compile" | $SED \
21605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21607    -e 's:$: $lt_compiler_flag:'`
21608    (eval echo "\"\$as_me:21608: $lt_compile\"" >&5)
21609    (eval "$lt_compile" 2>conftest.err)
21610    ac_status=$?
21611    cat conftest.err >&5
21612    echo "$as_me:21612: \$? = $ac_status" >&5
21613    if (exit $ac_status) && test -s "$ac_outfile"; then
21614      # The compiler can only warn and ignore the option if not recognized
21615      # So say no if there are warnings other than the usual output.
21616      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21619        lt_prog_compiler_pic_works_F77=yes
21620      fi
21621    fi
21622    $rm conftest*
21623
21624 fi
21625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21626 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21627
21628 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21629     case $lt_prog_compiler_pic_F77 in
21630      "" | " "*) ;;
21631      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21632      esac
21633 else
21634     lt_prog_compiler_pic_F77=
21635      lt_prog_compiler_can_build_shared_F77=no
21636 fi
21637
21638 fi
21639 case $host_os in
21640   # For platforms which do not support PIC, -DPIC is meaningless:
21641   *djgpp*)
21642     lt_prog_compiler_pic_F77=
21643     ;;
21644   *)
21645     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21646     ;;
21647 esac
21648
21649 #
21650 # Check to make sure the static flag actually works.
21651 #
21652 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21653 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21655 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21656   echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658   lt_prog_compiler_static_works_F77=no
21659    save_LDFLAGS="$LDFLAGS"
21660    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21661    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21663      # The linker can only warn and ignore the option if not recognized
21664      # So say no if there are warnings
21665      if test -s conftest.err; then
21666        # Append any errors to the config.log.
21667        cat conftest.err 1>&5
21668        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21670        if diff conftest.exp conftest.er2 >/dev/null; then
21671          lt_prog_compiler_static_works_F77=yes
21672        fi
21673      else
21674        lt_prog_compiler_static_works_F77=yes
21675      fi
21676    fi
21677    $rm conftest*
21678    LDFLAGS="$save_LDFLAGS"
21679
21680 fi
21681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21682 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21683
21684 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21685     :
21686 else
21687     lt_prog_compiler_static_F77=
21688 fi
21689
21690
21691 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21693 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21694   echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696   lt_cv_prog_compiler_c_o_F77=no
21697    $rm -r conftest 2>/dev/null
21698    mkdir conftest
21699    cd conftest
21700    mkdir out
21701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21702
21703    lt_compiler_flag="-o out/conftest2.$ac_objext"
21704    # Insert the option either (1) after the last *FLAGS variable, or
21705    # (2) before a word containing "conftest.", or (3) at the end.
21706    # Note that $ac_compile itself does not contain backslashes and begins
21707    # with a dollar sign (not a hyphen), so the echo should work correctly.
21708    lt_compile=`echo "$ac_compile" | $SED \
21709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21711    -e 's:$: $lt_compiler_flag:'`
21712    (eval echo "\"\$as_me:21712: $lt_compile\"" >&5)
21713    (eval "$lt_compile" 2>out/conftest.err)
21714    ac_status=$?
21715    cat out/conftest.err >&5
21716    echo "$as_me:21716: \$? = $ac_status" >&5
21717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21718    then
21719      # The compiler can only warn and ignore the option if not recognized
21720      # So say no if there are warnings
21721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21724        lt_cv_prog_compiler_c_o_F77=yes
21725      fi
21726    fi
21727    chmod u+w . 2>&5
21728    $rm conftest*
21729    # SGI C++ compiler will create directory out/ii_files/ for
21730    # template instantiation
21731    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21732    $rm out/* && rmdir out
21733    cd ..
21734    rmdir conftest
21735    $rm conftest*
21736
21737 fi
21738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21740
21741
21742 hard_links="nottested"
21743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21744   # do not overwrite the value of need_locks provided by the user
21745   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21747   hard_links=yes
21748   $rm conftest*
21749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21750   touch conftest.a
21751   ln conftest.a conftest.b 2>&5 || hard_links=no
21752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21753   { echo "$as_me:$LINENO: result: $hard_links" >&5
21754 echo "${ECHO_T}$hard_links" >&6; }
21755   if test "$hard_links" = no; then
21756     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21758     need_locks=warn
21759   fi
21760 else
21761   need_locks=no
21762 fi
21763
21764 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21766
21767   runpath_var=
21768   allow_undefined_flag_F77=
21769   enable_shared_with_static_runtimes_F77=no
21770   archive_cmds_F77=
21771   archive_expsym_cmds_F77=
21772   old_archive_From_new_cmds_F77=
21773   old_archive_from_expsyms_cmds_F77=
21774   export_dynamic_flag_spec_F77=
21775   whole_archive_flag_spec_F77=
21776   thread_safe_flag_spec_F77=
21777   hardcode_libdir_flag_spec_F77=
21778   hardcode_libdir_flag_spec_ld_F77=
21779   hardcode_libdir_separator_F77=
21780   hardcode_direct_F77=no
21781   hardcode_minus_L_F77=no
21782   hardcode_shlibpath_var_F77=unsupported
21783   link_all_deplibs_F77=unknown
21784   hardcode_automatic_F77=no
21785   module_cmds_F77=
21786   module_expsym_cmds_F77=
21787   always_export_symbols_F77=no
21788   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21789   # include_expsyms should be a list of space-separated symbols to be *always*
21790   # included in the symbol list
21791   include_expsyms_F77=
21792   # exclude_expsyms can be an extended regexp of symbols to exclude
21793   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21794   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21795   # as well as any symbol that contains `d'.
21796   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21797   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21798   # platforms (ab)use it in PIC code, but their linkers get confused if
21799   # the symbol is explicitly referenced.  Since portable code cannot
21800   # rely on this symbol name, it's probably fine to never include it in
21801   # preloaded symbol tables.
21802   extract_expsyms_cmds=
21803   # Just being paranoid about ensuring that cc_basename is set.
21804   for cc_temp in $compiler""; do
21805   case $cc_temp in
21806     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21807     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21808     \-*) ;;
21809     *) break;;
21810   esac
21811 done
21812 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21813
21814   case $host_os in
21815   cygwin* | mingw* | pw32*)
21816     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21817     # When not using gcc, we currently assume that we are using
21818     # Microsoft Visual C++.
21819     if test "$GCC" != yes; then
21820       with_gnu_ld=no
21821     fi
21822     ;;
21823   interix*)
21824     # we just hope/assume this is gcc and not c89 (= MSVC++)
21825     with_gnu_ld=yes
21826     ;;
21827   openbsd*)
21828     with_gnu_ld=no
21829     ;;
21830   esac
21831
21832   ld_shlibs_F77=yes
21833   if test "$with_gnu_ld" = yes; then
21834     # If archive_cmds runs LD, not CC, wlarc should be empty
21835     wlarc='${wl}'
21836
21837     # Set some defaults for GNU ld with shared library support. These
21838     # are reset later if shared libraries are not supported. Putting them
21839     # here allows them to be overridden if necessary.
21840     runpath_var=LD_RUN_PATH
21841     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21842     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21843     # ancient GNU ld didn't support --whole-archive et. al.
21844     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21845         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21846       else
21847         whole_archive_flag_spec_F77=
21848     fi
21849     supports_anon_versioning=no
21850     case `$LD -v 2>/dev/null` in
21851       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21852       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21853       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21854       *\ 2.11.*) ;; # other 2.11 versions
21855       *) supports_anon_versioning=yes ;;
21856     esac
21857
21858     # See if GNU ld supports shared libraries.
21859     case $host_os in
21860     aix3* | aix4* | aix5*)
21861       # On AIX/PPC, the GNU linker is very broken
21862       if test "$host_cpu" != ia64; then
21863         ld_shlibs_F77=no
21864         cat <<EOF 1>&2
21865
21866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21867 *** to be unable to reliably create shared libraries on AIX.
21868 *** Therefore, libtool is disabling shared libraries support.  If you
21869 *** really care for shared libraries, you may want to modify your PATH
21870 *** so that a non-GNU linker is found, and then restart.
21871
21872 EOF
21873       fi
21874       ;;
21875
21876     amigaos*)
21877       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)'
21878       hardcode_libdir_flag_spec_F77='-L$libdir'
21879       hardcode_minus_L_F77=yes
21880
21881       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21882       # that the semantics of dynamic libraries on AmigaOS, at least up
21883       # to version 4, is to share data among multiple programs linked
21884       # with the same dynamic library.  Since this doesn't match the
21885       # behavior of shared libraries on other platforms, we can't use
21886       # them.
21887       ld_shlibs_F77=no
21888       ;;
21889
21890     beos*)
21891       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892         allow_undefined_flag_F77=unsupported
21893         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21894         # support --undefined.  This deserves some investigation.  FIXME
21895         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896       else
21897         ld_shlibs_F77=no
21898       fi
21899       ;;
21900
21901     cygwin* | mingw* | pw32*)
21902       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21903       # as there is no search path for DLLs.
21904       hardcode_libdir_flag_spec_F77='-L$libdir'
21905       allow_undefined_flag_F77=unsupported
21906       always_export_symbols_F77=no
21907       enable_shared_with_static_runtimes_F77=yes
21908       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21909
21910       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21911         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21912         # If the export-symbols file already is a .def file (1st line
21913         # is EXPORTS), use it as is; otherwise, prepend...
21914         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21915           cp $export_symbols $output_objdir/$soname.def;
21916         else
21917           echo EXPORTS > $output_objdir/$soname.def;
21918           cat $export_symbols >> $output_objdir/$soname.def;
21919         fi~
21920         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21921       else
21922         ld_shlibs_F77=no
21923       fi
21924       ;;
21925
21926     interix3*)
21927       hardcode_direct_F77=no
21928       hardcode_shlibpath_var_F77=no
21929       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21930       export_dynamic_flag_spec_F77='${wl}-E'
21931       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21932       # Instead, shared libraries are loaded at an image base (0x10000000 by
21933       # default) and relocated if they conflict, which is a slow very memory
21934       # consuming and fragmenting process.  To avoid this, we pick a random,
21935       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21936       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21937       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'
21938       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'
21939       ;;
21940
21941     linux*)
21942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21943         tmp_addflag=
21944         case $cc_basename,$host_cpu in
21945         pgcc*)                          # Portland Group C compiler
21946           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'
21947           tmp_addflag=' $pic_flag'
21948           ;;
21949         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21950           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'
21951           tmp_addflag=' $pic_flag -Mnomain' ;;
21952         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21953           tmp_addflag=' -i_dynamic' ;;
21954         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21955           tmp_addflag=' -i_dynamic -nofor_main' ;;
21956         ifc* | ifort*)                  # Intel Fortran compiler
21957           tmp_addflag=' -nofor_main' ;;
21958         esac
21959         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21960
21961         if test $supports_anon_versioning = yes; then
21962           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21963   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21964   $echo "local: *; };" >> $output_objdir/$libname.ver~
21965           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21966         fi
21967       else
21968         ld_shlibs_F77=no
21969       fi
21970       ;;
21971
21972     netbsd*)
21973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21974         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21975         wlarc=
21976       else
21977         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21978         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21979       fi
21980       ;;
21981
21982     solaris*)
21983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21984         ld_shlibs_F77=no
21985         cat <<EOF 1>&2
21986
21987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21988 *** create shared libraries on Solaris systems.  Therefore, libtool
21989 *** is disabling shared libraries support.  We urge you to upgrade GNU
21990 *** binutils to release 2.9.1 or newer.  Another option is to modify
21991 *** your PATH or compiler configuration so that the native linker is
21992 *** used, and then restart.
21993
21994 EOF
21995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21996         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21997         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21998       else
21999         ld_shlibs_F77=no
22000       fi
22001       ;;
22002
22003     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22004       case `$LD -v 2>&1` in
22005         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22006         ld_shlibs_F77=no
22007         cat <<_LT_EOF 1>&2
22008
22009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22010 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22011 *** is disabling shared libraries support.  We urge you to upgrade GNU
22012 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22013 *** your PATH or compiler configuration so that the native linker is
22014 *** used, and then restart.
22015
22016 _LT_EOF
22017         ;;
22018         *)
22019           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22020             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22021             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22022             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22023           else
22024             ld_shlibs_F77=no
22025           fi
22026         ;;
22027       esac
22028       ;;
22029
22030     sunos4*)
22031       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032       wlarc=
22033       hardcode_direct_F77=yes
22034       hardcode_shlibpath_var_F77=no
22035       ;;
22036
22037     *)
22038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22041       else
22042         ld_shlibs_F77=no
22043       fi
22044       ;;
22045     esac
22046
22047     if test "$ld_shlibs_F77" = no; then
22048       runpath_var=
22049       hardcode_libdir_flag_spec_F77=
22050       export_dynamic_flag_spec_F77=
22051       whole_archive_flag_spec_F77=
22052     fi
22053   else
22054     # PORTME fill in a description of your system's linker (not GNU ld)
22055     case $host_os in
22056     aix3*)
22057       allow_undefined_flag_F77=unsupported
22058       always_export_symbols_F77=yes
22059       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'
22060       # Note: this linker hardcodes the directories in LIBPATH if there
22061       # are no directories specified by -L.
22062       hardcode_minus_L_F77=yes
22063       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22064         # Neither direct hardcoding nor static linking is supported with a
22065         # broken collect2.
22066         hardcode_direct_F77=unsupported
22067       fi
22068       ;;
22069
22070     aix4* | aix5*)
22071       if test "$host_cpu" = ia64; then
22072         # On IA64, the linker does run time linking by default, so we don't
22073         # have to do anything special.
22074         aix_use_runtimelinking=no
22075         exp_sym_flag='-Bexport'
22076         no_entry_flag=""
22077       else
22078         # If we're using GNU nm, then we don't want the "-C" option.
22079         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22080         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22081           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'
22082         else
22083           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'
22084         fi
22085         aix_use_runtimelinking=no
22086
22087         # Test if we are trying to use run time linking or normal
22088         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22089         # need to do runtime linking.
22090         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22091           for ld_flag in $LDFLAGS; do
22092           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22093             aix_use_runtimelinking=yes
22094             break
22095           fi
22096           done
22097           ;;
22098         esac
22099
22100         exp_sym_flag='-bexport'
22101         no_entry_flag='-bnoentry'
22102       fi
22103
22104       # When large executables or shared objects are built, AIX ld can
22105       # have problems creating the table of contents.  If linking a library
22106       # or program results in "error TOC overflow" add -mminimal-toc to
22107       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22108       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22109
22110       archive_cmds_F77=''
22111       hardcode_direct_F77=yes
22112       hardcode_libdir_separator_F77=':'
22113       link_all_deplibs_F77=yes
22114
22115       if test "$GCC" = yes; then
22116         case $host_os in aix4.[012]|aix4.[012].*)
22117         # We only want to do this on AIX 4.2 and lower, the check
22118         # below for broken collect2 doesn't work under 4.3+
22119           collect2name=`${CC} -print-prog-name=collect2`
22120           if test -f "$collect2name" && \
22121            strings "$collect2name" | grep resolve_lib_name >/dev/null
22122           then
22123           # We have reworked collect2
22124           hardcode_direct_F77=yes
22125           else
22126           # We have old collect2
22127           hardcode_direct_F77=unsupported
22128           # It fails to find uninstalled libraries when the uninstalled
22129           # path is not listed in the libpath.  Setting hardcode_minus_L
22130           # to unsupported forces relinking
22131           hardcode_minus_L_F77=yes
22132           hardcode_libdir_flag_spec_F77='-L$libdir'
22133           hardcode_libdir_separator_F77=
22134           fi
22135           ;;
22136         esac
22137         shared_flag='-shared'
22138         if test "$aix_use_runtimelinking" = yes; then
22139           shared_flag="$shared_flag "'${wl}-G'
22140         fi
22141       else
22142         # not using gcc
22143         if test "$host_cpu" = ia64; then
22144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22145         # chokes on -Wl,-G. The following line is correct:
22146           shared_flag='-G'
22147         else
22148           if test "$aix_use_runtimelinking" = yes; then
22149             shared_flag='${wl}-G'
22150           else
22151             shared_flag='${wl}-bM:SRE'
22152           fi
22153         fi
22154       fi
22155
22156       # It seems that -bexpall does not export symbols beginning with
22157       # underscore (_), so it is better to generate a list of symbols to export.
22158       always_export_symbols_F77=yes
22159       if test "$aix_use_runtimelinking" = yes; then
22160         # Warning - without using the other runtime loading flags (-brtl),
22161         # -berok will link without error, but may produce a broken library.
22162         allow_undefined_flag_F77='-berok'
22163        # Determine the default libpath from the value encoded in an empty executable.
22164        cat >conftest.$ac_ext <<_ACEOF
22165       program main
22166
22167       end
22168 _ACEOF
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_link") 2>conftest.er1
22177   ac_status=$?
22178   grep -v '^ *+' conftest.er1 >conftest.err
22179   rm -f conftest.er1
22180   cat conftest.err >&5
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); } &&
22183          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22184   { (case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_try") 2>&5
22190   ac_status=$?
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; } &&
22193          { ac_try='test -s conftest$ac_exeext'
22194   { (case "(($ac_try" in
22195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196   *) ac_try_echo=$ac_try;;
22197 esac
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199   (eval "$ac_try") 2>&5
22200   ac_status=$?
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); }; }; then
22203
22204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22205 }'`
22206 # Check for a 64-bit object if we didn't find anything.
22207 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; }
22208 }'`; fi
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213
22214 fi
22215
22216 rm -f core conftest.err conftest.$ac_objext \
22217       conftest$ac_exeext conftest.$ac_ext
22218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22219
22220        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22221         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"
22222        else
22223         if test "$host_cpu" = ia64; then
22224           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22225           allow_undefined_flag_F77="-z nodefs"
22226           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"
22227         else
22228          # Determine the default libpath from the value encoded in an empty executable.
22229          cat >conftest.$ac_ext <<_ACEOF
22230       program main
22231
22232       end
22233 _ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241   (eval "$ac_link") 2>conftest.er1
22242   ac_status=$?
22243   grep -v '^ *+' conftest.er1 >conftest.err
22244   rm -f conftest.er1
22245   cat conftest.err >&5
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } &&
22248          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22249   { (case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254   (eval "$ac_try") 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; } &&
22258          { ac_try='test -s conftest$ac_exeext'
22259   { (case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264   (eval "$ac_try") 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; }; then
22268
22269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22270 }'`
22271 # Check for a 64-bit object if we didn't find anything.
22272 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; }
22273 }'`; fi
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278
22279 fi
22280
22281 rm -f core conftest.err conftest.$ac_objext \
22282       conftest$ac_exeext conftest.$ac_ext
22283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22284
22285          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22286           # Warning - without using the other run time loading flags,
22287           # -berok will link without error, but may produce a broken library.
22288           no_undefined_flag_F77=' ${wl}-bernotok'
22289           allow_undefined_flag_F77=' ${wl}-berok'
22290           # Exported symbols can be pulled into shared objects from archives
22291           whole_archive_flag_spec_F77='$convenience'
22292           archive_cmds_need_lc_F77=yes
22293           # This is similar to how AIX traditionally builds its shared libraries.
22294           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'
22295         fi
22296       fi
22297       ;;
22298
22299     amigaos*)
22300       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)'
22301       hardcode_libdir_flag_spec_F77='-L$libdir'
22302       hardcode_minus_L_F77=yes
22303       # see comment about different semantics on the GNU ld section
22304       ld_shlibs_F77=no
22305       ;;
22306
22307     bsdi[45]*)
22308       export_dynamic_flag_spec_F77=-rdynamic
22309       ;;
22310
22311     cygwin* | mingw* | pw32*)
22312       # When not using gcc, we currently assume that we are using
22313       # Microsoft Visual C++.
22314       # hardcode_libdir_flag_spec is actually meaningless, as there is
22315       # no search path for DLLs.
22316       hardcode_libdir_flag_spec_F77=' '
22317       allow_undefined_flag_F77=unsupported
22318       # Tell ltmain to make .lib files, not .a files.
22319       libext=lib
22320       # Tell ltmain to make .dll files, not .so files.
22321       shrext_cmds=".dll"
22322       # FIXME: Setting linknames here is a bad hack.
22323       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22324       # The linker will automatically build a .lib file if we build a DLL.
22325       old_archive_From_new_cmds_F77='true'
22326       # FIXME: Should let the user specify the lib program.
22327       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22328       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22329       enable_shared_with_static_runtimes_F77=yes
22330       ;;
22331
22332     darwin* | rhapsody*)
22333       case $host_os in
22334         rhapsody* | darwin1.[012])
22335          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22336          ;;
22337        *) # Darwin 1.3 on
22338          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22339            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22340          else
22341            case ${MACOSX_DEPLOYMENT_TARGET} in
22342              10.[012])
22343                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22344                ;;
22345              10.*)
22346                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22347                ;;
22348            esac
22349          fi
22350          ;;
22351       esac
22352       archive_cmds_need_lc_F77=no
22353       hardcode_direct_F77=no
22354       hardcode_automatic_F77=yes
22355       hardcode_shlibpath_var_F77=unsupported
22356       whole_archive_flag_spec_F77=''
22357       link_all_deplibs_F77=yes
22358     if test "$GCC" = yes ; then
22359         output_verbose_link_cmd='echo'
22360         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22361       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22362       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22363       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}'
22364       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}'
22365     else
22366       case $cc_basename in
22367         xlc*)
22368          output_verbose_link_cmd='echo'
22369          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22370          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22371           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22372          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}'
22373           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}'
22374           ;;
22375        *)
22376          ld_shlibs_F77=no
22377           ;;
22378       esac
22379     fi
22380       ;;
22381
22382     dgux*)
22383       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22384       hardcode_libdir_flag_spec_F77='-L$libdir'
22385       hardcode_shlibpath_var_F77=no
22386       ;;
22387
22388     freebsd1*)
22389       ld_shlibs_F77=no
22390       ;;
22391
22392     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22393     # support.  Future versions do this automatically, but an explicit c++rt0.o
22394     # does not break anything, and helps significantly (at the cost of a little
22395     # extra space).
22396     freebsd2.2*)
22397       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22398       hardcode_libdir_flag_spec_F77='-R$libdir'
22399       hardcode_direct_F77=yes
22400       hardcode_shlibpath_var_F77=no
22401       ;;
22402
22403     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22404     freebsd2*)
22405       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22406       hardcode_direct_F77=yes
22407       hardcode_minus_L_F77=yes
22408       hardcode_shlibpath_var_F77=no
22409       ;;
22410
22411     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22412     freebsd* | kfreebsd*-gnu | dragonfly*)
22413       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22414       hardcode_libdir_flag_spec_F77='-R$libdir'
22415       hardcode_direct_F77=yes
22416       hardcode_shlibpath_var_F77=no
22417       ;;
22418
22419     hpux9*)
22420       if test "$GCC" = yes; then
22421         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'
22422       else
22423         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'
22424       fi
22425       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22426       hardcode_libdir_separator_F77=:
22427       hardcode_direct_F77=yes
22428
22429       # hardcode_minus_L: Not really in the search PATH,
22430       # but as the default location of the library.
22431       hardcode_minus_L_F77=yes
22432       export_dynamic_flag_spec_F77='${wl}-E'
22433       ;;
22434
22435     hpux10*)
22436       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22437         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22438       else
22439         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22440       fi
22441       if test "$with_gnu_ld" = no; then
22442         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22443         hardcode_libdir_separator_F77=:
22444
22445         hardcode_direct_F77=yes
22446         export_dynamic_flag_spec_F77='${wl}-E'
22447
22448         # hardcode_minus_L: Not really in the search PATH,
22449         # but as the default location of the library.
22450         hardcode_minus_L_F77=yes
22451       fi
22452       ;;
22453
22454     hpux11*)
22455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22456         case $host_cpu in
22457         hppa*64*)
22458           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459           ;;
22460         ia64*)
22461           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22462           ;;
22463         *)
22464           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22465           ;;
22466         esac
22467       else
22468         case $host_cpu in
22469         hppa*64*)
22470           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22471           ;;
22472         ia64*)
22473           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22474           ;;
22475         *)
22476           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22477           ;;
22478         esac
22479       fi
22480       if test "$with_gnu_ld" = no; then
22481         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22482         hardcode_libdir_separator_F77=:
22483
22484         case $host_cpu in
22485         hppa*64*|ia64*)
22486           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22487           hardcode_direct_F77=no
22488           hardcode_shlibpath_var_F77=no
22489           ;;
22490         *)
22491           hardcode_direct_F77=yes
22492           export_dynamic_flag_spec_F77='${wl}-E'
22493
22494           # hardcode_minus_L: Not really in the search PATH,
22495           # but as the default location of the library.
22496           hardcode_minus_L_F77=yes
22497           ;;
22498         esac
22499       fi
22500       ;;
22501
22502     irix5* | irix6* | nonstopux*)
22503       if test "$GCC" = yes; then
22504         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'
22505       else
22506         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'
22507         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22508       fi
22509       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22510       hardcode_libdir_separator_F77=:
22511       link_all_deplibs_F77=yes
22512       ;;
22513
22514     netbsd*)
22515       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22516         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22517       else
22518         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22519       fi
22520       hardcode_libdir_flag_spec_F77='-R$libdir'
22521       hardcode_direct_F77=yes
22522       hardcode_shlibpath_var_F77=no
22523       ;;
22524
22525     newsos6)
22526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527       hardcode_direct_F77=yes
22528       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22529       hardcode_libdir_separator_F77=:
22530       hardcode_shlibpath_var_F77=no
22531       ;;
22532
22533     openbsd*)
22534       hardcode_direct_F77=yes
22535       hardcode_shlibpath_var_F77=no
22536       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22537         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22538         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22539         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22540         export_dynamic_flag_spec_F77='${wl}-E'
22541       else
22542        case $host_os in
22543          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22544            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22545            hardcode_libdir_flag_spec_F77='-R$libdir'
22546            ;;
22547          *)
22548            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22549            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22550            ;;
22551        esac
22552       fi
22553       ;;
22554
22555     os2*)
22556       hardcode_libdir_flag_spec_F77='-L$libdir'
22557       hardcode_minus_L_F77=yes
22558       allow_undefined_flag_F77=unsupported
22559       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'
22560       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22561       ;;
22562
22563     osf3*)
22564       if test "$GCC" = yes; then
22565         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22566         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'
22567       else
22568         allow_undefined_flag_F77=' -expect_unresolved \*'
22569         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'
22570       fi
22571       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22572       hardcode_libdir_separator_F77=:
22573       ;;
22574
22575     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22576       if test "$GCC" = yes; then
22577         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22578         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'
22579         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22580       else
22581         allow_undefined_flag_F77=' -expect_unresolved \*'
22582         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'
22583         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~
22584         $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'
22585
22586         # Both c and cxx compiler support -rpath directly
22587         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22588       fi
22589       hardcode_libdir_separator_F77=:
22590       ;;
22591
22592     solaris*)
22593       no_undefined_flag_F77=' -z text'
22594       if test "$GCC" = yes; then
22595         wlarc='${wl}'
22596         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22597         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22599       else
22600         wlarc=''
22601         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22602         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22603         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22604       fi
22605       hardcode_libdir_flag_spec_F77='-R$libdir'
22606       hardcode_shlibpath_var_F77=no
22607       case $host_os in
22608       solaris2.[0-5] | solaris2.[0-5].*) ;;
22609       *)
22610         # The compiler driver will combine linker options so we
22611         # cannot just pass the convience library names through
22612         # without $wl, iff we do not link with $LD.
22613         # Luckily, gcc supports the same syntax we need for Sun Studio.
22614         # Supported since Solaris 2.6 (maybe 2.5.1?)
22615         case $wlarc in
22616         '')
22617           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22618         *)
22619           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' ;;
22620         esac ;;
22621       esac
22622       link_all_deplibs_F77=yes
22623       ;;
22624
22625     sunos4*)
22626       if test "x$host_vendor" = xsequent; then
22627         # Use $CC to link under sequent, because it throws in some extra .o
22628         # files that make .init and .fini sections work.
22629         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22630       else
22631         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22632       fi
22633       hardcode_libdir_flag_spec_F77='-L$libdir'
22634       hardcode_direct_F77=yes
22635       hardcode_minus_L_F77=yes
22636       hardcode_shlibpath_var_F77=no
22637       ;;
22638
22639     sysv4)
22640       case $host_vendor in
22641         sni)
22642           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643           hardcode_direct_F77=yes # is this really true???
22644         ;;
22645         siemens)
22646           ## LD is ld it makes a PLAMLIB
22647           ## CC just makes a GrossModule.
22648           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649           reload_cmds_F77='$CC -r -o $output$reload_objs'
22650           hardcode_direct_F77=no
22651         ;;
22652         motorola)
22653           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22655         ;;
22656       esac
22657       runpath_var='LD_RUN_PATH'
22658       hardcode_shlibpath_var_F77=no
22659       ;;
22660
22661     sysv4.3*)
22662       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663       hardcode_shlibpath_var_F77=no
22664       export_dynamic_flag_spec_F77='-Bexport'
22665       ;;
22666
22667     sysv4*MP*)
22668       if test -d /usr/nec; then
22669         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670         hardcode_shlibpath_var_F77=no
22671         runpath_var=LD_RUN_PATH
22672         hardcode_runpath_var=yes
22673         ld_shlibs_F77=yes
22674       fi
22675       ;;
22676
22677     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22678       no_undefined_flag_F77='${wl}-z,text'
22679       archive_cmds_need_lc_F77=no
22680       hardcode_shlibpath_var_F77=no
22681       runpath_var='LD_RUN_PATH'
22682
22683       if test "$GCC" = yes; then
22684         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22685         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22686       else
22687         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22688         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22689       fi
22690       ;;
22691
22692     sysv5* | sco3.2v5* | sco5v6*)
22693       # Note: We can NOT use -z defs as we might desire, because we do not
22694       # link with -lc, and that would cause any symbols used from libc to
22695       # always be unresolved, which means just about no library would
22696       # ever link correctly.  If we're not using GNU ld we use -z text
22697       # though, which does catch some bad symbols but isn't as heavy-handed
22698       # as -z defs.
22699       no_undefined_flag_F77='${wl}-z,text'
22700       allow_undefined_flag_F77='${wl}-z,nodefs'
22701       archive_cmds_need_lc_F77=no
22702       hardcode_shlibpath_var_F77=no
22703       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22704       hardcode_libdir_separator_F77=':'
22705       link_all_deplibs_F77=yes
22706       export_dynamic_flag_spec_F77='${wl}-Bexport'
22707       runpath_var='LD_RUN_PATH'
22708
22709       if test "$GCC" = yes; then
22710         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22711         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22712       else
22713         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22714         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22715       fi
22716       ;;
22717
22718     uts4*)
22719       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720       hardcode_libdir_flag_spec_F77='-L$libdir'
22721       hardcode_shlibpath_var_F77=no
22722       ;;
22723
22724     *)
22725       ld_shlibs_F77=no
22726       ;;
22727     esac
22728   fi
22729
22730 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22731 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22732 test "$ld_shlibs_F77" = no && can_build_shared=no
22733
22734 #
22735 # Do we need to explicitly link libc?
22736 #
22737 case "x$archive_cmds_need_lc_F77" in
22738 x|xyes)
22739   # Assume -lc should be added
22740   archive_cmds_need_lc_F77=yes
22741
22742   if test "$enable_shared" = yes && test "$GCC" = yes; then
22743     case $archive_cmds_F77 in
22744     *'~'*)
22745       # FIXME: we may have to deal with multi-command sequences.
22746       ;;
22747     '$CC '*)
22748       # Test whether the compiler implicitly links with -lc since on some
22749       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22750       # to ld, don't add -lc before -lgcc.
22751       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22753       $rm conftest*
22754       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22755
22756       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757   (eval $ac_compile) 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } 2>conftest.err; then
22761         soname=conftest
22762         lib=conftest
22763         libobjs=conftest.$ac_objext
22764         deplibs=
22765         wl=$lt_prog_compiler_wl_F77
22766         pic_flag=$lt_prog_compiler_pic_F77
22767         compiler_flags=-v
22768         linker_flags=-v
22769         verstring=
22770         output_objdir=.
22771         libname=conftest
22772         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22773         allow_undefined_flag_F77=
22774         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22775   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22776   ac_status=$?
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); }
22779         then
22780           archive_cmds_need_lc_F77=no
22781         else
22782           archive_cmds_need_lc_F77=yes
22783         fi
22784         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22785       else
22786         cat conftest.err 1>&5
22787       fi
22788       $rm conftest*
22789       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22790 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22791       ;;
22792     esac
22793   fi
22794   ;;
22795 esac
22796
22797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22799 library_names_spec=
22800 libname_spec='lib$name'
22801 soname_spec=
22802 shrext_cmds=".so"
22803 postinstall_cmds=
22804 postuninstall_cmds=
22805 finish_cmds=
22806 finish_eval=
22807 shlibpath_var=
22808 shlibpath_overrides_runpath=unknown
22809 version_type=none
22810 dynamic_linker="$host_os ld.so"
22811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22812 if test "$GCC" = yes; then
22813   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22814   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22815     # if the path contains ";" then we assume it to be the separator
22816     # otherwise default to the standard path separator (i.e. ":") - it is
22817     # assumed that no part of a normal pathname contains ";" but that should
22818     # okay in the real world where ";" in dirpaths is itself problematic.
22819     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22820   else
22821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22822   fi
22823 else
22824   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22825 fi
22826 need_lib_prefix=unknown
22827 hardcode_into_libs=no
22828
22829 # when you set need_version to no, make sure it does not cause -set_version
22830 # flags to be left without arguments
22831 need_version=unknown
22832
22833 case $host_os in
22834 aix3*)
22835   version_type=linux
22836   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22837   shlibpath_var=LIBPATH
22838
22839   # AIX 3 has no versioning support, so we append a major version to the name.
22840   soname_spec='${libname}${release}${shared_ext}$major'
22841   ;;
22842
22843 aix4* | aix5*)
22844   version_type=linux
22845   need_lib_prefix=no
22846   need_version=no
22847   hardcode_into_libs=yes
22848   if test "$host_cpu" = ia64; then
22849     # AIX 5 supports IA64
22850     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22851     shlibpath_var=LD_LIBRARY_PATH
22852   else
22853     # With GCC up to 2.95.x, collect2 would create an import file
22854     # for dependence libraries.  The import file would start with
22855     # the line `#! .'.  This would cause the generated library to
22856     # depend on `.', always an invalid library.  This was fixed in
22857     # development snapshots of GCC prior to 3.0.
22858     case $host_os in
22859       aix4 | aix4.[01] | aix4.[01].*)
22860       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22861            echo ' yes '
22862            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22863         :
22864       else
22865         can_build_shared=no
22866       fi
22867       ;;
22868     esac
22869     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22870     # soname into executable. Probably we can add versioning support to
22871     # collect2, so additional links can be useful in future.
22872     if test "$aix_use_runtimelinking" = yes; then
22873       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22874       # instead of lib<name>.a to let people know that these are not
22875       # typical AIX shared libraries.
22876       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877     else
22878       # We preserve .a as extension for shared libraries through AIX4.2
22879       # and later when we are not doing run time linking.
22880       library_names_spec='${libname}${release}.a $libname.a'
22881       soname_spec='${libname}${release}${shared_ext}$major'
22882     fi
22883     shlibpath_var=LIBPATH
22884   fi
22885   ;;
22886
22887 amigaos*)
22888   library_names_spec='$libname.ixlibrary $libname.a'
22889   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22890   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'
22891   ;;
22892
22893 beos*)
22894   library_names_spec='${libname}${shared_ext}'
22895   dynamic_linker="$host_os ld.so"
22896   shlibpath_var=LIBRARY_PATH
22897   ;;
22898
22899 bsdi[45]*)
22900   version_type=linux
22901   need_version=no
22902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22903   soname_spec='${libname}${release}${shared_ext}$major'
22904   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22905   shlibpath_var=LD_LIBRARY_PATH
22906   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22907   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22908   # the default ld.so.conf also contains /usr/contrib/lib and
22909   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22910   # libtool to hard-code these into programs
22911   ;;
22912
22913 cygwin* | mingw* | pw32*)
22914   version_type=windows
22915   shrext_cmds=".dll"
22916   need_version=no
22917   need_lib_prefix=no
22918
22919   case $GCC,$host_os in
22920   yes,cygwin* | yes,mingw* | yes,pw32*)
22921     library_names_spec='$libname.dll.a'
22922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22923     postinstall_cmds='base_file=`basename \${file}`~
22924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22925       dldir=$destdir/`dirname \$dlpath`~
22926       test -d \$dldir || mkdir -p \$dldir~
22927       $install_prog $dir/$dlname \$dldir/$dlname~
22928       chmod a+x \$dldir/$dlname'
22929     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22930       dlpath=$dir/\$dldll~
22931        $rm \$dlpath'
22932     shlibpath_overrides_runpath=yes
22933
22934     case $host_os in
22935     cygwin*)
22936       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22937       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22938       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22939       ;;
22940     mingw*)
22941       # MinGW DLLs use traditional 'lib' prefix
22942       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22943       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22945         # It is most probably a Windows format PATH printed by
22946         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22947         # path with ; separators, and with drive letters. We can handle the
22948         # drive letters (cygwin fileutils understands them), so leave them,
22949         # especially as we might pass files found there to a mingw objdump,
22950         # which wouldn't understand a cygwinified path. Ahh.
22951         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22952       else
22953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22954       fi
22955       ;;
22956     pw32*)
22957       # pw32 DLLs use 'pw' prefix rather than 'lib'
22958       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22959       ;;
22960     esac
22961     ;;
22962
22963   *)
22964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22965     ;;
22966   esac
22967   dynamic_linker='Win32 ld.exe'
22968   # FIXME: first we should search . and the directory the executable is in
22969   shlibpath_var=PATH
22970   ;;
22971
22972 darwin* | rhapsody*)
22973   dynamic_linker="$host_os dyld"
22974   version_type=darwin
22975   need_lib_prefix=no
22976   need_version=no
22977   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22978   soname_spec='${libname}${release}${major}$shared_ext'
22979   shlibpath_overrides_runpath=yes
22980   shlibpath_var=DYLD_LIBRARY_PATH
22981   shrext_cmds='.dylib'
22982   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22983   if test "$GCC" = yes; then
22984     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"`
22985   else
22986     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22987   fi
22988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22989   ;;
22990
22991 dgux*)
22992   version_type=linux
22993   need_lib_prefix=no
22994   need_version=no
22995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22996   soname_spec='${libname}${release}${shared_ext}$major'
22997   shlibpath_var=LD_LIBRARY_PATH
22998   ;;
22999
23000 freebsd1*)
23001   dynamic_linker=no
23002   ;;
23003
23004 kfreebsd*-gnu)
23005   version_type=linux
23006   need_lib_prefix=no
23007   need_version=no
23008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23009   soname_spec='${libname}${release}${shared_ext}$major'
23010   shlibpath_var=LD_LIBRARY_PATH
23011   shlibpath_overrides_runpath=no
23012   hardcode_into_libs=yes
23013   dynamic_linker='GNU ld.so'
23014   ;;
23015
23016 freebsd* | dragonfly*)
23017   # DragonFly does not have aout.  When/if they implement a new
23018   # versioning mechanism, adjust this.
23019   if test -x /usr/bin/objformat; then
23020     objformat=`/usr/bin/objformat`
23021   else
23022     case $host_os in
23023     freebsd[123]*) objformat=aout ;;
23024     *) objformat=elf ;;
23025     esac
23026   fi
23027   version_type=freebsd-$objformat
23028   case $version_type in
23029     freebsd-elf*)
23030       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23031       need_version=no
23032       need_lib_prefix=no
23033       ;;
23034     freebsd-*)
23035       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23036       need_version=yes
23037       ;;
23038   esac
23039   shlibpath_var=LD_LIBRARY_PATH
23040   case $host_os in
23041   freebsd2*)
23042     shlibpath_overrides_runpath=yes
23043     ;;
23044   freebsd3.[01]* | freebsdelf3.[01]*)
23045     shlibpath_overrides_runpath=yes
23046     hardcode_into_libs=yes
23047     ;;
23048   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23049   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23050     shlibpath_overrides_runpath=no
23051     hardcode_into_libs=yes
23052     ;;
23053   freebsd*) # from 4.6 on
23054     shlibpath_overrides_runpath=yes
23055     hardcode_into_libs=yes
23056     ;;
23057   esac
23058   ;;
23059
23060 gnu*)
23061   version_type=linux
23062   need_lib_prefix=no
23063   need_version=no
23064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23065   soname_spec='${libname}${release}${shared_ext}$major'
23066   shlibpath_var=LD_LIBRARY_PATH
23067   hardcode_into_libs=yes
23068   ;;
23069
23070 hpux9* | hpux10* | hpux11*)
23071   # Give a soname corresponding to the major version so that dld.sl refuses to
23072   # link against other versions.
23073   version_type=sunos
23074   need_lib_prefix=no
23075   need_version=no
23076   case $host_cpu in
23077   ia64*)
23078     shrext_cmds='.so'
23079     hardcode_into_libs=yes
23080     dynamic_linker="$host_os dld.so"
23081     shlibpath_var=LD_LIBRARY_PATH
23082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084     soname_spec='${libname}${release}${shared_ext}$major'
23085     if test "X$HPUX_IA64_MODE" = X32; then
23086       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23087     else
23088       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23089     fi
23090     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23091     ;;
23092    hppa*64*)
23093      shrext_cmds='.sl'
23094      hardcode_into_libs=yes
23095      dynamic_linker="$host_os dld.sl"
23096      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23097      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23098      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099      soname_spec='${libname}${release}${shared_ext}$major'
23100      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23101      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23102      ;;
23103    *)
23104     shrext_cmds='.sl'
23105     dynamic_linker="$host_os dld.sl"
23106     shlibpath_var=SHLIB_PATH
23107     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23109     soname_spec='${libname}${release}${shared_ext}$major'
23110     ;;
23111   esac
23112   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23113   postinstall_cmds='chmod 555 $lib'
23114   ;;
23115
23116 interix3*)
23117   version_type=linux
23118   need_lib_prefix=no
23119   need_version=no
23120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23121   soname_spec='${libname}${release}${shared_ext}$major'
23122   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23123   shlibpath_var=LD_LIBRARY_PATH
23124   shlibpath_overrides_runpath=no
23125   hardcode_into_libs=yes
23126   ;;
23127
23128 irix5* | irix6* | nonstopux*)
23129   case $host_os in
23130     nonstopux*) version_type=nonstopux ;;
23131     *)
23132         if test "$lt_cv_prog_gnu_ld" = yes; then
23133                 version_type=linux
23134         else
23135                 version_type=irix
23136         fi ;;
23137   esac
23138   need_lib_prefix=no
23139   need_version=no
23140   soname_spec='${libname}${release}${shared_ext}$major'
23141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23142   case $host_os in
23143   irix5* | nonstopux*)
23144     libsuff= shlibsuff=
23145     ;;
23146   *)
23147     case $LD in # libtool.m4 will add one of these switches to LD
23148     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23149       libsuff= shlibsuff= libmagic=32-bit;;
23150     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23151       libsuff=32 shlibsuff=N32 libmagic=N32;;
23152     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23153       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23154     *) libsuff= shlibsuff= libmagic=never-match;;
23155     esac
23156     ;;
23157   esac
23158   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23159   shlibpath_overrides_runpath=no
23160   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23161   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23162   hardcode_into_libs=yes
23163   ;;
23164
23165 # No shared lib support for Linux oldld, aout, or coff.
23166 linux*oldld* | linux*aout* | linux*coff*)
23167   dynamic_linker=no
23168   ;;
23169
23170 # This must be Linux ELF.
23171 linux*)
23172   version_type=linux
23173   need_lib_prefix=no
23174   need_version=no
23175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23176   soname_spec='${libname}${release}${shared_ext}$major'
23177   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23178   shlibpath_var=LD_LIBRARY_PATH
23179   shlibpath_overrides_runpath=no
23180   # This implies no fast_install, which is unacceptable.
23181   # Some rework will be needed to allow for fast_install
23182   # before this can be enabled.
23183   hardcode_into_libs=yes
23184
23185   # Append ld.so.conf contents to the search path
23186   if test -f /etc/ld.so.conf; then
23187     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' ' '`
23188     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23189   fi
23190
23191   # We used to test for /lib/ld.so.1 and disable shared libraries on
23192   # powerpc, because MkLinux only supported shared libraries with the
23193   # GNU dynamic linker.  Since this was broken with cross compilers,
23194   # most powerpc-linux boxes support dynamic linking these days and
23195   # people can always --disable-shared, the test was removed, and we
23196   # assume the GNU/Linux dynamic linker is in use.
23197   dynamic_linker='GNU/Linux ld.so'
23198   ;;
23199
23200 knetbsd*-gnu)
23201   version_type=linux
23202   need_lib_prefix=no
23203   need_version=no
23204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205   soname_spec='${libname}${release}${shared_ext}$major'
23206   shlibpath_var=LD_LIBRARY_PATH
23207   shlibpath_overrides_runpath=no
23208   hardcode_into_libs=yes
23209   dynamic_linker='GNU ld.so'
23210   ;;
23211
23212 netbsd*)
23213   version_type=sunos
23214   need_lib_prefix=no
23215   need_version=no
23216   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23218     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23219     dynamic_linker='NetBSD (a.out) ld.so'
23220   else
23221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23222     soname_spec='${libname}${release}${shared_ext}$major'
23223     dynamic_linker='NetBSD ld.elf_so'
23224   fi
23225   shlibpath_var=LD_LIBRARY_PATH
23226   shlibpath_overrides_runpath=yes
23227   hardcode_into_libs=yes
23228   ;;
23229
23230 newsos6)
23231   version_type=linux
23232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233   shlibpath_var=LD_LIBRARY_PATH
23234   shlibpath_overrides_runpath=yes
23235   ;;
23236
23237 nto-qnx*)
23238   version_type=linux
23239   need_lib_prefix=no
23240   need_version=no
23241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23242   soname_spec='${libname}${release}${shared_ext}$major'
23243   shlibpath_var=LD_LIBRARY_PATH
23244   shlibpath_overrides_runpath=yes
23245   ;;
23246
23247 openbsd*)
23248   version_type=sunos
23249   sys_lib_dlsearch_path_spec="/usr/lib"
23250   need_lib_prefix=no
23251   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23252   case $host_os in
23253     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23254     *)                         need_version=no  ;;
23255   esac
23256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23257   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23258   shlibpath_var=LD_LIBRARY_PATH
23259   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23260     case $host_os in
23261       openbsd2.[89] | openbsd2.[89].*)
23262         shlibpath_overrides_runpath=no
23263         ;;
23264       *)
23265         shlibpath_overrides_runpath=yes
23266         ;;
23267       esac
23268   else
23269     shlibpath_overrides_runpath=yes
23270   fi
23271   ;;
23272
23273 os2*)
23274   libname_spec='$name'
23275   shrext_cmds=".dll"
23276   need_lib_prefix=no
23277   library_names_spec='$libname${shared_ext} $libname.a'
23278   dynamic_linker='OS/2 ld.exe'
23279   shlibpath_var=LIBPATH
23280   ;;
23281
23282 osf3* | osf4* | osf5*)
23283   version_type=osf
23284   need_lib_prefix=no
23285   need_version=no
23286   soname_spec='${libname}${release}${shared_ext}$major'
23287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288   shlibpath_var=LD_LIBRARY_PATH
23289   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23290   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23291   ;;
23292
23293 solaris*)
23294   version_type=linux
23295   need_lib_prefix=no
23296   need_version=no
23297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298   soname_spec='${libname}${release}${shared_ext}$major'
23299   shlibpath_var=LD_LIBRARY_PATH
23300   shlibpath_overrides_runpath=yes
23301   hardcode_into_libs=yes
23302   # ldd complains unless libraries are executable
23303   postinstall_cmds='chmod +x $lib'
23304   ;;
23305
23306 sunos4*)
23307   version_type=sunos
23308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23309   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23310   shlibpath_var=LD_LIBRARY_PATH
23311   shlibpath_overrides_runpath=yes
23312   if test "$with_gnu_ld" = yes; then
23313     need_lib_prefix=no
23314   fi
23315   need_version=yes
23316   ;;
23317
23318 sysv4 | sysv4.3*)
23319   version_type=linux
23320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23321   soname_spec='${libname}${release}${shared_ext}$major'
23322   shlibpath_var=LD_LIBRARY_PATH
23323   case $host_vendor in
23324     sni)
23325       shlibpath_overrides_runpath=no
23326       need_lib_prefix=no
23327       export_dynamic_flag_spec='${wl}-Blargedynsym'
23328       runpath_var=LD_RUN_PATH
23329       ;;
23330     siemens)
23331       need_lib_prefix=no
23332       ;;
23333     motorola)
23334       need_lib_prefix=no
23335       need_version=no
23336       shlibpath_overrides_runpath=no
23337       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23338       ;;
23339   esac
23340   ;;
23341
23342 sysv4*MP*)
23343   if test -d /usr/nec ;then
23344     version_type=linux
23345     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23346     soname_spec='$libname${shared_ext}.$major'
23347     shlibpath_var=LD_LIBRARY_PATH
23348   fi
23349   ;;
23350
23351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23352   version_type=freebsd-elf
23353   need_lib_prefix=no
23354   need_version=no
23355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23356   soname_spec='${libname}${release}${shared_ext}$major'
23357   shlibpath_var=LD_LIBRARY_PATH
23358   hardcode_into_libs=yes
23359   if test "$with_gnu_ld" = yes; then
23360     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23361     shlibpath_overrides_runpath=no
23362   else
23363     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23364     shlibpath_overrides_runpath=yes
23365     case $host_os in
23366       sco3.2v5*)
23367         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23368         ;;
23369     esac
23370   fi
23371   sys_lib_dlsearch_path_spec='/usr/lib'
23372   ;;
23373
23374 uts4*)
23375   version_type=linux
23376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23377   soname_spec='${libname}${release}${shared_ext}$major'
23378   shlibpath_var=LD_LIBRARY_PATH
23379   ;;
23380
23381 *)
23382   dynamic_linker=no
23383   ;;
23384 esac
23385 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23386 echo "${ECHO_T}$dynamic_linker" >&6; }
23387 test "$dynamic_linker" = no && can_build_shared=no
23388
23389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23390 if test "$GCC" = yes; then
23391   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23392 fi
23393
23394 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23395 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23396 hardcode_action_F77=
23397 if test -n "$hardcode_libdir_flag_spec_F77" || \
23398    test -n "$runpath_var_F77" || \
23399    test "X$hardcode_automatic_F77" = "Xyes" ; then
23400
23401   # We can hardcode non-existant directories.
23402   if test "$hardcode_direct_F77" != no &&
23403      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23404      # have to relink, otherwise we might link with an installed library
23405      # when we should be linking with a yet-to-be-installed one
23406      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23407      test "$hardcode_minus_L_F77" != no; then
23408     # Linking always hardcodes the temporary library directory.
23409     hardcode_action_F77=relink
23410   else
23411     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23412     hardcode_action_F77=immediate
23413   fi
23414 else
23415   # We cannot hardcode anything, or else we can only hardcode existing
23416   # directories.
23417   hardcode_action_F77=unsupported
23418 fi
23419 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23420 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23421
23422 if test "$hardcode_action_F77" = relink; then
23423   # Fast installation is not supported
23424   enable_fast_install=no
23425 elif test "$shlibpath_overrides_runpath" = yes ||
23426      test "$enable_shared" = no; then
23427   # Fast installation is not necessary
23428   enable_fast_install=needless
23429 fi
23430
23431
23432 # The else clause should only fire when bootstrapping the
23433 # libtool distribution, otherwise you forgot to ship ltmain.sh
23434 # with your package, and you will get complaints that there are
23435 # no rules to generate ltmain.sh.
23436 if test -f "$ltmain"; then
23437   # See if we are running on zsh, and set the options which allow our commands through
23438   # without removal of \ escapes.
23439   if test -n "${ZSH_VERSION+set}" ; then
23440     setopt NO_GLOB_SUBST
23441   fi
23442   # Now quote all the things that may contain metacharacters while being
23443   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23444   # variables and quote the copies for generation of the libtool script.
23445   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23446     SED SHELL STRIP \
23447     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23448     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23449     deplibs_check_method reload_flag reload_cmds need_locks \
23450     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23451     lt_cv_sys_global_symbol_to_c_name_address \
23452     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23453     old_postinstall_cmds old_postuninstall_cmds \
23454     compiler_F77 \
23455     CC_F77 \
23456     LD_F77 \
23457     lt_prog_compiler_wl_F77 \
23458     lt_prog_compiler_pic_F77 \
23459     lt_prog_compiler_static_F77 \
23460     lt_prog_compiler_no_builtin_flag_F77 \
23461     export_dynamic_flag_spec_F77 \
23462     thread_safe_flag_spec_F77 \
23463     whole_archive_flag_spec_F77 \
23464     enable_shared_with_static_runtimes_F77 \
23465     old_archive_cmds_F77 \
23466     old_archive_from_new_cmds_F77 \
23467     predep_objects_F77 \
23468     postdep_objects_F77 \
23469     predeps_F77 \
23470     postdeps_F77 \
23471     compiler_lib_search_path_F77 \
23472     archive_cmds_F77 \
23473     archive_expsym_cmds_F77 \
23474     postinstall_cmds_F77 \
23475     postuninstall_cmds_F77 \
23476     old_archive_from_expsyms_cmds_F77 \
23477     allow_undefined_flag_F77 \
23478     no_undefined_flag_F77 \
23479     export_symbols_cmds_F77 \
23480     hardcode_libdir_flag_spec_F77 \
23481     hardcode_libdir_flag_spec_ld_F77 \
23482     hardcode_libdir_separator_F77 \
23483     hardcode_automatic_F77 \
23484     module_cmds_F77 \
23485     module_expsym_cmds_F77 \
23486     lt_cv_prog_compiler_c_o_F77 \
23487     exclude_expsyms_F77 \
23488     include_expsyms_F77; do
23489
23490     case $var in
23491     old_archive_cmds_F77 | \
23492     old_archive_from_new_cmds_F77 | \
23493     archive_cmds_F77 | \
23494     archive_expsym_cmds_F77 | \
23495     module_cmds_F77 | \
23496     module_expsym_cmds_F77 | \
23497     old_archive_from_expsyms_cmds_F77 | \
23498     export_symbols_cmds_F77 | \
23499     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23500     postinstall_cmds | postuninstall_cmds | \
23501     old_postinstall_cmds | old_postuninstall_cmds | \
23502     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23503       # Double-quote double-evaled strings.
23504       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23505       ;;
23506     *)
23507       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23508       ;;
23509     esac
23510   done
23511
23512   case $lt_echo in
23513   *'\$0 --fallback-echo"')
23514     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23515     ;;
23516   esac
23517
23518 cfgfile="$ofile"
23519
23520   cat <<__EOF__ >> "$cfgfile"
23521 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23522
23523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23524
23525 # Shell to use when invoking shell scripts.
23526 SHELL=$lt_SHELL
23527
23528 # Whether or not to build shared libraries.
23529 build_libtool_libs=$enable_shared
23530
23531 # Whether or not to build static libraries.
23532 build_old_libs=$enable_static
23533
23534 # Whether or not to add -lc for building shared libraries.
23535 build_libtool_need_lc=$archive_cmds_need_lc_F77
23536
23537 # Whether or not to disallow shared libs when runtime libs are static
23538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23539
23540 # Whether or not to optimize for fast installation.
23541 fast_install=$enable_fast_install
23542
23543 # The host system.
23544 host_alias=$host_alias
23545 host=$host
23546 host_os=$host_os
23547
23548 # The build system.
23549 build_alias=$build_alias
23550 build=$build
23551 build_os=$build_os
23552
23553 # An echo program that does not interpret backslashes.
23554 echo=$lt_echo
23555
23556 # The archiver.
23557 AR=$lt_AR
23558 AR_FLAGS=$lt_AR_FLAGS
23559
23560 # A C compiler.
23561 LTCC=$lt_LTCC
23562
23563 # LTCC compiler flags.
23564 LTCFLAGS=$lt_LTCFLAGS
23565
23566 # A language-specific compiler.
23567 CC=$lt_compiler_F77
23568
23569 # Is the compiler the GNU C compiler?
23570 with_gcc=$GCC_F77
23571
23572 # An ERE matcher.
23573 EGREP=$lt_EGREP
23574
23575 # The linker used to build libraries.
23576 LD=$lt_LD_F77
23577
23578 # Whether we need hard or soft links.
23579 LN_S=$lt_LN_S
23580
23581 # A BSD-compatible nm program.
23582 NM=$lt_NM
23583
23584 # A symbol stripping program
23585 STRIP=$lt_STRIP
23586
23587 # Used to examine libraries when file_magic_cmd begins "file"
23588 MAGIC_CMD=$MAGIC_CMD
23589
23590 # Used on cygwin: DLL creation program.
23591 DLLTOOL="$DLLTOOL"
23592
23593 # Used on cygwin: object dumper.
23594 OBJDUMP="$OBJDUMP"
23595
23596 # Used on cygwin: assembler.
23597 AS="$AS"
23598
23599 # The name of the directory that contains temporary libtool files.
23600 objdir=$objdir
23601
23602 # How to create reloadable object files.
23603 reload_flag=$lt_reload_flag
23604 reload_cmds=$lt_reload_cmds
23605
23606 # How to pass a linker flag through the compiler.
23607 wl=$lt_lt_prog_compiler_wl_F77
23608
23609 # Object file suffix (normally "o").
23610 objext="$ac_objext"
23611
23612 # Old archive suffix (normally "a").
23613 libext="$libext"
23614
23615 # Shared library suffix (normally ".so").
23616 shrext_cmds='$shrext_cmds'
23617
23618 # Executable file suffix (normally "").
23619 exeext="$exeext"
23620
23621 # Additional compiler flags for building library objects.
23622 pic_flag=$lt_lt_prog_compiler_pic_F77
23623 pic_mode=$pic_mode
23624
23625 # What is the maximum length of a command?
23626 max_cmd_len=$lt_cv_sys_max_cmd_len
23627
23628 # Does compiler simultaneously support -c and -o options?
23629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23630
23631 # Must we lock files when doing compilation?
23632 need_locks=$lt_need_locks
23633
23634 # Do we need the lib prefix for modules?
23635 need_lib_prefix=$need_lib_prefix
23636
23637 # Do we need a version for libraries?
23638 need_version=$need_version
23639
23640 # Whether dlopen is supported.
23641 dlopen_support=$enable_dlopen
23642
23643 # Whether dlopen of programs is supported.
23644 dlopen_self=$enable_dlopen_self
23645
23646 # Whether dlopen of statically linked programs is supported.
23647 dlopen_self_static=$enable_dlopen_self_static
23648
23649 # Compiler flag to prevent dynamic linking.
23650 link_static_flag=$lt_lt_prog_compiler_static_F77
23651
23652 # Compiler flag to turn off builtin functions.
23653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23654
23655 # Compiler flag to allow reflexive dlopens.
23656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23657
23658 # Compiler flag to generate shared objects directly from archives.
23659 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23660
23661 # Compiler flag to generate thread-safe objects.
23662 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23663
23664 # Library versioning type.
23665 version_type=$version_type
23666
23667 # Format of library name prefix.
23668 libname_spec=$lt_libname_spec
23669
23670 # List of archive names.  First name is the real one, the rest are links.
23671 # The last name is the one that the linker finds with -lNAME.
23672 library_names_spec=$lt_library_names_spec
23673
23674 # The coded name of the library, if different from the real name.
23675 soname_spec=$lt_soname_spec
23676
23677 # Commands used to build and install an old-style archive.
23678 RANLIB=$lt_RANLIB
23679 old_archive_cmds=$lt_old_archive_cmds_F77
23680 old_postinstall_cmds=$lt_old_postinstall_cmds
23681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23682
23683 # Create an old-style archive from a shared archive.
23684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23685
23686 # Create a temporary old-style archive to link instead of a shared archive.
23687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23688
23689 # Commands used to build and install a shared archive.
23690 archive_cmds=$lt_archive_cmds_F77
23691 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23692 postinstall_cmds=$lt_postinstall_cmds
23693 postuninstall_cmds=$lt_postuninstall_cmds
23694
23695 # Commands used to build a loadable module (assumed same as above if empty)
23696 module_cmds=$lt_module_cmds_F77
23697 module_expsym_cmds=$lt_module_expsym_cmds_F77
23698
23699 # Commands to strip libraries.
23700 old_striplib=$lt_old_striplib
23701 striplib=$lt_striplib
23702
23703 # Dependencies to place before the objects being linked to create a
23704 # shared library.
23705 predep_objects=$lt_predep_objects_F77
23706
23707 # Dependencies to place after the objects being linked to create a
23708 # shared library.
23709 postdep_objects=$lt_postdep_objects_F77
23710
23711 # Dependencies to place before the objects being linked to create a
23712 # shared library.
23713 predeps=$lt_predeps_F77
23714
23715 # Dependencies to place after the objects being linked to create a
23716 # shared library.
23717 postdeps=$lt_postdeps_F77
23718
23719 # The library search path used internally by the compiler when linking
23720 # a shared library.
23721 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23722
23723 # Method to check whether dependent libraries are shared objects.
23724 deplibs_check_method=$lt_deplibs_check_method
23725
23726 # Command to use when deplibs_check_method == file_magic.
23727 file_magic_cmd=$lt_file_magic_cmd
23728
23729 # Flag that allows shared libraries with undefined symbols to be built.
23730 allow_undefined_flag=$lt_allow_undefined_flag_F77
23731
23732 # Flag that forces no undefined symbols.
23733 no_undefined_flag=$lt_no_undefined_flag_F77
23734
23735 # Commands used to finish a libtool library installation in a directory.
23736 finish_cmds=$lt_finish_cmds
23737
23738 # Same as above, but a single script fragment to be evaled but not shown.
23739 finish_eval=$lt_finish_eval
23740
23741 # Take the output of nm and produce a listing of raw symbols and C names.
23742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23743
23744 # Transform the output of nm in a proper C declaration
23745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23746
23747 # Transform the output of nm in a C name address pair
23748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23749
23750 # This is the shared library runtime path variable.
23751 runpath_var=$runpath_var
23752
23753 # This is the shared library path variable.
23754 shlibpath_var=$shlibpath_var
23755
23756 # Is shlibpath searched before the hard-coded library search path?
23757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23758
23759 # How to hardcode a shared library path into an executable.
23760 hardcode_action=$hardcode_action_F77
23761
23762 # Whether we should hardcode library paths into libraries.
23763 hardcode_into_libs=$hardcode_into_libs
23764
23765 # Flag to hardcode \$libdir into a binary during linking.
23766 # This must work even if \$libdir does not exist.
23767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23768
23769 # If ld is used when linking, flag to hardcode \$libdir into
23770 # a binary during linking. This must work even if \$libdir does
23771 # not exist.
23772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23773
23774 # Whether we need a single -rpath flag with a separated argument.
23775 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23776
23777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23778 # resulting binary.
23779 hardcode_direct=$hardcode_direct_F77
23780
23781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23782 # resulting binary.
23783 hardcode_minus_L=$hardcode_minus_L_F77
23784
23785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23786 # the resulting binary.
23787 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23788
23789 # Set to yes if building a shared library automatically hardcodes DIR into the library
23790 # and all subsequent libraries and executables linked against it.
23791 hardcode_automatic=$hardcode_automatic_F77
23792
23793 # Variables whose values should be saved in libtool wrapper scripts and
23794 # restored at relink time.
23795 variables_saved_for_relink="$variables_saved_for_relink"
23796
23797 # Whether libtool must link a program against all its dependency libraries.
23798 link_all_deplibs=$link_all_deplibs_F77
23799
23800 # Compile-time system search path for libraries
23801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23802
23803 # Run-time system search path for libraries
23804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23805
23806 # Fix the shell variable \$srcfile for the compiler.
23807 fix_srcfile_path="$fix_srcfile_path_F77"
23808
23809 # Set to yes if exported symbols are required.
23810 always_export_symbols=$always_export_symbols_F77
23811
23812 # The commands to list exported symbols.
23813 export_symbols_cmds=$lt_export_symbols_cmds_F77
23814
23815 # The commands to extract the exported symbol list from a shared archive.
23816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23817
23818 # Symbols that should not be listed in the preloaded symbols.
23819 exclude_expsyms=$lt_exclude_expsyms_F77
23820
23821 # Symbols that must always be exported.
23822 include_expsyms=$lt_include_expsyms_F77
23823
23824 # ### END LIBTOOL TAG CONFIG: $tagname
23825
23826 __EOF__
23827
23828
23829 else
23830   # If there is no Makefile yet, we rely on a make rule to execute
23831   # `config.status --recheck' to rerun these tests and create the
23832   # libtool script then.
23833   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23834   if test -f "$ltmain_in"; then
23835     test -f Makefile && make "$ltmain"
23836   fi
23837 fi
23838
23839
23840 ac_ext=c
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845
23846 CC="$lt_save_CC"
23847
23848         else
23849           tagname=""
23850         fi
23851         ;;
23852
23853       GCJ)
23854         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23855           ac_ext=c
23856 ac_cpp='$CPP $CPPFLAGS'
23857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23860
23861
23862 # Source file extension for Java test sources.
23863 ac_ext=java
23864
23865 # Object file extension for compiled Java test sources.
23866 objext=o
23867 objext_GCJ=$objext
23868
23869 # Code to be used in simple compile tests
23870 lt_simple_compile_test_code="class foo {}\n"
23871
23872 # Code to be used in simple link tests
23873 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23874
23875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23876
23877 # If no C compiler was specified, use CC.
23878 LTCC=${LTCC-"$CC"}
23879
23880 # If no C compiler flags were specified, use CFLAGS.
23881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23882
23883 # Allow CC to be a program name with arguments.
23884 compiler=$CC
23885
23886
23887 # save warnings/boilerplate of simple test code
23888 ac_outfile=conftest.$ac_objext
23889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23891 _lt_compiler_boilerplate=`cat conftest.err`
23892 $rm conftest*
23893
23894 ac_outfile=conftest.$ac_objext
23895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23897 _lt_linker_boilerplate=`cat conftest.err`
23898 $rm conftest*
23899
23900
23901 # Allow CC to be a program name with arguments.
23902 lt_save_CC="$CC"
23903 CC=${GCJ-"gcj"}
23904 compiler=$CC
23905 compiler_GCJ=$CC
23906 for cc_temp in $compiler""; do
23907   case $cc_temp in
23908     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23909     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23910     \-*) ;;
23911     *) break;;
23912   esac
23913 done
23914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23915
23916
23917 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23918 archive_cmds_need_lc_GCJ=no
23919
23920 old_archive_cmds_GCJ=$old_archive_cmds
23921
23922
23923 lt_prog_compiler_no_builtin_flag_GCJ=
23924
23925 if test "$GCC" = yes; then
23926   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23927
23928
23929 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23930 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23931 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   lt_cv_prog_compiler_rtti_exceptions=no
23935   ac_outfile=conftest.$ac_objext
23936    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23937    lt_compiler_flag="-fno-rtti -fno-exceptions"
23938    # Insert the option either (1) after the last *FLAGS variable, or
23939    # (2) before a word containing "conftest.", or (3) at the end.
23940    # Note that $ac_compile itself does not contain backslashes and begins
23941    # with a dollar sign (not a hyphen), so the echo should work correctly.
23942    # The option is referenced via a variable to avoid confusing sed.
23943    lt_compile=`echo "$ac_compile" | $SED \
23944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23946    -e 's:$: $lt_compiler_flag:'`
23947    (eval echo "\"\$as_me:23947: $lt_compile\"" >&5)
23948    (eval "$lt_compile" 2>conftest.err)
23949    ac_status=$?
23950    cat conftest.err >&5
23951    echo "$as_me:23951: \$? = $ac_status" >&5
23952    if (exit $ac_status) && test -s "$ac_outfile"; then
23953      # The compiler can only warn and ignore the option if not recognized
23954      # So say no if there are warnings other than the usual output.
23955      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23956      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23957      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23958        lt_cv_prog_compiler_rtti_exceptions=yes
23959      fi
23960    fi
23961    $rm conftest*
23962
23963 fi
23964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23965 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23966
23967 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23968     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23969 else
23970     :
23971 fi
23972
23973 fi
23974
23975 lt_prog_compiler_wl_GCJ=
23976 lt_prog_compiler_pic_GCJ=
23977 lt_prog_compiler_static_GCJ=
23978
23979 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23981
23982   if test "$GCC" = yes; then
23983     lt_prog_compiler_wl_GCJ='-Wl,'
23984     lt_prog_compiler_static_GCJ='-static'
23985
23986     case $host_os in
23987       aix*)
23988       # All AIX code is PIC.
23989       if test "$host_cpu" = ia64; then
23990         # AIX 5 now supports IA64 processor
23991         lt_prog_compiler_static_GCJ='-Bstatic'
23992       fi
23993       ;;
23994
23995     amigaos*)
23996       # FIXME: we need at least 68020 code to build shared libraries, but
23997       # adding the `-m68020' flag to GCC prevents building anything better,
23998       # like `-m68040'.
23999       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24000       ;;
24001
24002     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24003       # PIC is the default for these OSes.
24004       ;;
24005
24006     mingw* | pw32* | os2*)
24007       # This hack is so that the source file can tell whether it is being
24008       # built for inclusion in a dll (and should export symbols for example).
24009       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24010       ;;
24011
24012     darwin* | rhapsody*)
24013       # PIC is the default on this platform
24014       # Common symbols not allowed in MH_DYLIB files
24015       lt_prog_compiler_pic_GCJ='-fno-common'
24016       ;;
24017
24018     interix3*)
24019       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24020       # Instead, we relocate shared libraries at runtime.
24021       ;;
24022
24023     msdosdjgpp*)
24024       # Just because we use GCC doesn't mean we suddenly get shared libraries
24025       # on systems that don't support them.
24026       lt_prog_compiler_can_build_shared_GCJ=no
24027       enable_shared=no
24028       ;;
24029
24030     sysv4*MP*)
24031       if test -d /usr/nec; then
24032         lt_prog_compiler_pic_GCJ=-Kconform_pic
24033       fi
24034       ;;
24035
24036     hpux*)
24037       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24038       # not for PA HP-UX.
24039       case $host_cpu in
24040       hppa*64*|ia64*)
24041         # +Z the default
24042         ;;
24043       *)
24044         lt_prog_compiler_pic_GCJ='-fPIC'
24045         ;;
24046       esac
24047       ;;
24048
24049     *)
24050       lt_prog_compiler_pic_GCJ='-fPIC'
24051       ;;
24052     esac
24053   else
24054     # PORTME Check for flag to pass linker flags through the system compiler.
24055     case $host_os in
24056     aix*)
24057       lt_prog_compiler_wl_GCJ='-Wl,'
24058       if test "$host_cpu" = ia64; then
24059         # AIX 5 now supports IA64 processor
24060         lt_prog_compiler_static_GCJ='-Bstatic'
24061       else
24062         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24063       fi
24064       ;;
24065       darwin*)
24066         # PIC is the default on this platform
24067         # Common symbols not allowed in MH_DYLIB files
24068        case $cc_basename in
24069          xlc*)
24070          lt_prog_compiler_pic_GCJ='-qnocommon'
24071          lt_prog_compiler_wl_GCJ='-Wl,'
24072          ;;
24073        esac
24074        ;;
24075
24076     mingw* | pw32* | os2*)
24077       # This hack is so that the source file can tell whether it is being
24078       # built for inclusion in a dll (and should export symbols for example).
24079       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24080       ;;
24081
24082     hpux9* | hpux10* | hpux11*)
24083       lt_prog_compiler_wl_GCJ='-Wl,'
24084       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24085       # not for PA HP-UX.
24086       case $host_cpu in
24087       hppa*64*|ia64*)
24088         # +Z the default
24089         ;;
24090       *)
24091         lt_prog_compiler_pic_GCJ='+Z'
24092         ;;
24093       esac
24094       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24095       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24096       ;;
24097
24098     irix5* | irix6* | nonstopux*)
24099       lt_prog_compiler_wl_GCJ='-Wl,'
24100       # PIC (with -KPIC) is the default.
24101       lt_prog_compiler_static_GCJ='-non_shared'
24102       ;;
24103
24104     newsos6)
24105       lt_prog_compiler_pic_GCJ='-KPIC'
24106       lt_prog_compiler_static_GCJ='-Bstatic'
24107       ;;
24108
24109     linux*)
24110       case $cc_basename in
24111       icc* | ecc*)
24112         lt_prog_compiler_wl_GCJ='-Wl,'
24113         lt_prog_compiler_pic_GCJ='-KPIC'
24114         lt_prog_compiler_static_GCJ='-static'
24115         ;;
24116       pgcc* | pgf77* | pgf90* | pgf95*)
24117         # Portland Group compilers (*not* the Pentium gcc compiler,
24118         # which looks to be a dead project)
24119         lt_prog_compiler_wl_GCJ='-Wl,'
24120         lt_prog_compiler_pic_GCJ='-fpic'
24121         lt_prog_compiler_static_GCJ='-Bstatic'
24122         ;;
24123       ccc*)
24124         lt_prog_compiler_wl_GCJ='-Wl,'
24125         # All Alpha code is PIC.
24126         lt_prog_compiler_static_GCJ='-non_shared'
24127         ;;
24128       esac
24129       ;;
24130
24131     osf3* | osf4* | osf5*)
24132       lt_prog_compiler_wl_GCJ='-Wl,'
24133       # All OSF/1 code is PIC.
24134       lt_prog_compiler_static_GCJ='-non_shared'
24135       ;;
24136
24137     solaris*)
24138       lt_prog_compiler_pic_GCJ='-KPIC'
24139       lt_prog_compiler_static_GCJ='-Bstatic'
24140       case $cc_basename in
24141       f77* | f90* | f95*)
24142         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24143       *)
24144         lt_prog_compiler_wl_GCJ='-Wl,';;
24145       esac
24146       ;;
24147
24148     sunos4*)
24149       lt_prog_compiler_wl_GCJ='-Qoption ld '
24150       lt_prog_compiler_pic_GCJ='-PIC'
24151       lt_prog_compiler_static_GCJ='-Bstatic'
24152       ;;
24153
24154     sysv4 | sysv4.2uw2* | sysv4.3*)
24155       lt_prog_compiler_wl_GCJ='-Wl,'
24156       lt_prog_compiler_pic_GCJ='-KPIC'
24157       lt_prog_compiler_static_GCJ='-Bstatic'
24158       ;;
24159
24160     sysv4*MP*)
24161       if test -d /usr/nec ;then
24162         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24163         lt_prog_compiler_static_GCJ='-Bstatic'
24164       fi
24165       ;;
24166
24167     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24168       lt_prog_compiler_wl_GCJ='-Wl,'
24169       lt_prog_compiler_pic_GCJ='-KPIC'
24170       lt_prog_compiler_static_GCJ='-Bstatic'
24171       ;;
24172
24173     unicos*)
24174       lt_prog_compiler_wl_GCJ='-Wl,'
24175       lt_prog_compiler_can_build_shared_GCJ=no
24176       ;;
24177
24178     uts4*)
24179       lt_prog_compiler_pic_GCJ='-pic'
24180       lt_prog_compiler_static_GCJ='-Bstatic'
24181       ;;
24182
24183     *)
24184       lt_prog_compiler_can_build_shared_GCJ=no
24185       ;;
24186     esac
24187   fi
24188
24189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24190 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24191
24192 #
24193 # Check to make sure the PIC flag actually works.
24194 #
24195 if test -n "$lt_prog_compiler_pic_GCJ"; then
24196
24197 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24199 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24200   echo $ECHO_N "(cached) $ECHO_C" >&6
24201 else
24202   lt_prog_compiler_pic_works_GCJ=no
24203   ac_outfile=conftest.$ac_objext
24204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24206    # Insert the option either (1) after the last *FLAGS variable, or
24207    # (2) before a word containing "conftest.", or (3) at the end.
24208    # Note that $ac_compile itself does not contain backslashes and begins
24209    # with a dollar sign (not a hyphen), so the echo should work correctly.
24210    # The option is referenced via a variable to avoid confusing sed.
24211    lt_compile=`echo "$ac_compile" | $SED \
24212    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24214    -e 's:$: $lt_compiler_flag:'`
24215    (eval echo "\"\$as_me:24215: $lt_compile\"" >&5)
24216    (eval "$lt_compile" 2>conftest.err)
24217    ac_status=$?
24218    cat conftest.err >&5
24219    echo "$as_me:24219: \$? = $ac_status" >&5
24220    if (exit $ac_status) && test -s "$ac_outfile"; then
24221      # The compiler can only warn and ignore the option if not recognized
24222      # So say no if there are warnings other than the usual output.
24223      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24224      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24225      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24226        lt_prog_compiler_pic_works_GCJ=yes
24227      fi
24228    fi
24229    $rm conftest*
24230
24231 fi
24232 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24233 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24234
24235 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24236     case $lt_prog_compiler_pic_GCJ in
24237      "" | " "*) ;;
24238      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24239      esac
24240 else
24241     lt_prog_compiler_pic_GCJ=
24242      lt_prog_compiler_can_build_shared_GCJ=no
24243 fi
24244
24245 fi
24246 case $host_os in
24247   # For platforms which do not support PIC, -DPIC is meaningless:
24248   *djgpp*)
24249     lt_prog_compiler_pic_GCJ=
24250     ;;
24251   *)
24252     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24253     ;;
24254 esac
24255
24256 #
24257 # Check to make sure the static flag actually works.
24258 #
24259 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24260 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24261 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24262 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24263   echo $ECHO_N "(cached) $ECHO_C" >&6
24264 else
24265   lt_prog_compiler_static_works_GCJ=no
24266    save_LDFLAGS="$LDFLAGS"
24267    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24268    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24269    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24270      # The linker can only warn and ignore the option if not recognized
24271      # So say no if there are warnings
24272      if test -s conftest.err; then
24273        # Append any errors to the config.log.
24274        cat conftest.err 1>&5
24275        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24276        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24277        if diff conftest.exp conftest.er2 >/dev/null; then
24278          lt_prog_compiler_static_works_GCJ=yes
24279        fi
24280      else
24281        lt_prog_compiler_static_works_GCJ=yes
24282      fi
24283    fi
24284    $rm conftest*
24285    LDFLAGS="$save_LDFLAGS"
24286
24287 fi
24288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24289 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24290
24291 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24292     :
24293 else
24294     lt_prog_compiler_static_GCJ=
24295 fi
24296
24297
24298 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24299 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24300 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24301   echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303   lt_cv_prog_compiler_c_o_GCJ=no
24304    $rm -r conftest 2>/dev/null
24305    mkdir conftest
24306    cd conftest
24307    mkdir out
24308    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24309
24310    lt_compiler_flag="-o out/conftest2.$ac_objext"
24311    # Insert the option either (1) after the last *FLAGS variable, or
24312    # (2) before a word containing "conftest.", or (3) at the end.
24313    # Note that $ac_compile itself does not contain backslashes and begins
24314    # with a dollar sign (not a hyphen), so the echo should work correctly.
24315    lt_compile=`echo "$ac_compile" | $SED \
24316    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24318    -e 's:$: $lt_compiler_flag:'`
24319    (eval echo "\"\$as_me:24319: $lt_compile\"" >&5)
24320    (eval "$lt_compile" 2>out/conftest.err)
24321    ac_status=$?
24322    cat out/conftest.err >&5
24323    echo "$as_me:24323: \$? = $ac_status" >&5
24324    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24325    then
24326      # The compiler can only warn and ignore the option if not recognized
24327      # So say no if there are warnings
24328      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24329      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24330      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24331        lt_cv_prog_compiler_c_o_GCJ=yes
24332      fi
24333    fi
24334    chmod u+w . 2>&5
24335    $rm conftest*
24336    # SGI C++ compiler will create directory out/ii_files/ for
24337    # template instantiation
24338    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24339    $rm out/* && rmdir out
24340    cd ..
24341    rmdir conftest
24342    $rm conftest*
24343
24344 fi
24345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24347
24348
24349 hard_links="nottested"
24350 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24351   # do not overwrite the value of need_locks provided by the user
24352   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24354   hard_links=yes
24355   $rm conftest*
24356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24357   touch conftest.a
24358   ln conftest.a conftest.b 2>&5 || hard_links=no
24359   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24360   { echo "$as_me:$LINENO: result: $hard_links" >&5
24361 echo "${ECHO_T}$hard_links" >&6; }
24362   if test "$hard_links" = no; then
24363     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24365     need_locks=warn
24366   fi
24367 else
24368   need_locks=no
24369 fi
24370
24371 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24373
24374   runpath_var=
24375   allow_undefined_flag_GCJ=
24376   enable_shared_with_static_runtimes_GCJ=no
24377   archive_cmds_GCJ=
24378   archive_expsym_cmds_GCJ=
24379   old_archive_From_new_cmds_GCJ=
24380   old_archive_from_expsyms_cmds_GCJ=
24381   export_dynamic_flag_spec_GCJ=
24382   whole_archive_flag_spec_GCJ=
24383   thread_safe_flag_spec_GCJ=
24384   hardcode_libdir_flag_spec_GCJ=
24385   hardcode_libdir_flag_spec_ld_GCJ=
24386   hardcode_libdir_separator_GCJ=
24387   hardcode_direct_GCJ=no
24388   hardcode_minus_L_GCJ=no
24389   hardcode_shlibpath_var_GCJ=unsupported
24390   link_all_deplibs_GCJ=unknown
24391   hardcode_automatic_GCJ=no
24392   module_cmds_GCJ=
24393   module_expsym_cmds_GCJ=
24394   always_export_symbols_GCJ=no
24395   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24396   # include_expsyms should be a list of space-separated symbols to be *always*
24397   # included in the symbol list
24398   include_expsyms_GCJ=
24399   # exclude_expsyms can be an extended regexp of symbols to exclude
24400   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24401   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24402   # as well as any symbol that contains `d'.
24403   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24404   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24405   # platforms (ab)use it in PIC code, but their linkers get confused if
24406   # the symbol is explicitly referenced.  Since portable code cannot
24407   # rely on this symbol name, it's probably fine to never include it in
24408   # preloaded symbol tables.
24409   extract_expsyms_cmds=
24410   # Just being paranoid about ensuring that cc_basename is set.
24411   for cc_temp in $compiler""; do
24412   case $cc_temp in
24413     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24414     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24415     \-*) ;;
24416     *) break;;
24417   esac
24418 done
24419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24420
24421   case $host_os in
24422   cygwin* | mingw* | pw32*)
24423     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24424     # When not using gcc, we currently assume that we are using
24425     # Microsoft Visual C++.
24426     if test "$GCC" != yes; then
24427       with_gnu_ld=no
24428     fi
24429     ;;
24430   interix*)
24431     # we just hope/assume this is gcc and not c89 (= MSVC++)
24432     with_gnu_ld=yes
24433     ;;
24434   openbsd*)
24435     with_gnu_ld=no
24436     ;;
24437   esac
24438
24439   ld_shlibs_GCJ=yes
24440   if test "$with_gnu_ld" = yes; then
24441     # If archive_cmds runs LD, not CC, wlarc should be empty
24442     wlarc='${wl}'
24443
24444     # Set some defaults for GNU ld with shared library support. These
24445     # are reset later if shared libraries are not supported. Putting them
24446     # here allows them to be overridden if necessary.
24447     runpath_var=LD_RUN_PATH
24448     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24449     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24450     # ancient GNU ld didn't support --whole-archive et. al.
24451     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24452         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24453       else
24454         whole_archive_flag_spec_GCJ=
24455     fi
24456     supports_anon_versioning=no
24457     case `$LD -v 2>/dev/null` in
24458       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24459       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24460       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24461       *\ 2.11.*) ;; # other 2.11 versions
24462       *) supports_anon_versioning=yes ;;
24463     esac
24464
24465     # See if GNU ld supports shared libraries.
24466     case $host_os in
24467     aix3* | aix4* | aix5*)
24468       # On AIX/PPC, the GNU linker is very broken
24469       if test "$host_cpu" != ia64; then
24470         ld_shlibs_GCJ=no
24471         cat <<EOF 1>&2
24472
24473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24474 *** to be unable to reliably create shared libraries on AIX.
24475 *** Therefore, libtool is disabling shared libraries support.  If you
24476 *** really care for shared libraries, you may want to modify your PATH
24477 *** so that a non-GNU linker is found, and then restart.
24478
24479 EOF
24480       fi
24481       ;;
24482
24483     amigaos*)
24484       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)'
24485       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24486       hardcode_minus_L_GCJ=yes
24487
24488       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24489       # that the semantics of dynamic libraries on AmigaOS, at least up
24490       # to version 4, is to share data among multiple programs linked
24491       # with the same dynamic library.  Since this doesn't match the
24492       # behavior of shared libraries on other platforms, we can't use
24493       # them.
24494       ld_shlibs_GCJ=no
24495       ;;
24496
24497     beos*)
24498       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499         allow_undefined_flag_GCJ=unsupported
24500         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24501         # support --undefined.  This deserves some investigation.  FIXME
24502         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503       else
24504         ld_shlibs_GCJ=no
24505       fi
24506       ;;
24507
24508     cygwin* | mingw* | pw32*)
24509       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24510       # as there is no search path for DLLs.
24511       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24512       allow_undefined_flag_GCJ=unsupported
24513       always_export_symbols_GCJ=no
24514       enable_shared_with_static_runtimes_GCJ=yes
24515       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24516
24517       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24518         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24519         # If the export-symbols file already is a .def file (1st line
24520         # is EXPORTS), use it as is; otherwise, prepend...
24521         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24522           cp $export_symbols $output_objdir/$soname.def;
24523         else
24524           echo EXPORTS > $output_objdir/$soname.def;
24525           cat $export_symbols >> $output_objdir/$soname.def;
24526         fi~
24527         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24528       else
24529         ld_shlibs_GCJ=no
24530       fi
24531       ;;
24532
24533     interix3*)
24534       hardcode_direct_GCJ=no
24535       hardcode_shlibpath_var_GCJ=no
24536       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24537       export_dynamic_flag_spec_GCJ='${wl}-E'
24538       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24539       # Instead, shared libraries are loaded at an image base (0x10000000 by
24540       # default) and relocated if they conflict, which is a slow very memory
24541       # consuming and fragmenting process.  To avoid this, we pick a random,
24542       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24543       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24544       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'
24545       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'
24546       ;;
24547
24548     linux*)
24549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24550         tmp_addflag=
24551         case $cc_basename,$host_cpu in
24552         pgcc*)                          # Portland Group C compiler
24553           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'
24554           tmp_addflag=' $pic_flag'
24555           ;;
24556         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24557           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'
24558           tmp_addflag=' $pic_flag -Mnomain' ;;
24559         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24560           tmp_addflag=' -i_dynamic' ;;
24561         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24562           tmp_addflag=' -i_dynamic -nofor_main' ;;
24563         ifc* | ifort*)                  # Intel Fortran compiler
24564           tmp_addflag=' -nofor_main' ;;
24565         esac
24566         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24567
24568         if test $supports_anon_versioning = yes; then
24569           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24570   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24571   $echo "local: *; };" >> $output_objdir/$libname.ver~
24572           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24573         fi
24574       else
24575         ld_shlibs_GCJ=no
24576       fi
24577       ;;
24578
24579     netbsd*)
24580       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24581         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24582         wlarc=
24583       else
24584         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24585         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24586       fi
24587       ;;
24588
24589     solaris*)
24590       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24591         ld_shlibs_GCJ=no
24592         cat <<EOF 1>&2
24593
24594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24595 *** create shared libraries on Solaris systems.  Therefore, libtool
24596 *** is disabling shared libraries support.  We urge you to upgrade GNU
24597 *** binutils to release 2.9.1 or newer.  Another option is to modify
24598 *** your PATH or compiler configuration so that the native linker is
24599 *** used, and then restart.
24600
24601 EOF
24602       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24603         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24604         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24605       else
24606         ld_shlibs_GCJ=no
24607       fi
24608       ;;
24609
24610     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24611       case `$LD -v 2>&1` in
24612         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24613         ld_shlibs_GCJ=no
24614         cat <<_LT_EOF 1>&2
24615
24616 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24617 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24618 *** is disabling shared libraries support.  We urge you to upgrade GNU
24619 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24620 *** your PATH or compiler configuration so that the native linker is
24621 *** used, and then restart.
24622
24623 _LT_EOF
24624         ;;
24625         *)
24626           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24627             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24628             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24629             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24630           else
24631             ld_shlibs_GCJ=no
24632           fi
24633         ;;
24634       esac
24635       ;;
24636
24637     sunos4*)
24638       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24639       wlarc=
24640       hardcode_direct_GCJ=yes
24641       hardcode_shlibpath_var_GCJ=no
24642       ;;
24643
24644     *)
24645       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24646         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24647         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24648       else
24649         ld_shlibs_GCJ=no
24650       fi
24651       ;;
24652     esac
24653
24654     if test "$ld_shlibs_GCJ" = no; then
24655       runpath_var=
24656       hardcode_libdir_flag_spec_GCJ=
24657       export_dynamic_flag_spec_GCJ=
24658       whole_archive_flag_spec_GCJ=
24659     fi
24660   else
24661     # PORTME fill in a description of your system's linker (not GNU ld)
24662     case $host_os in
24663     aix3*)
24664       allow_undefined_flag_GCJ=unsupported
24665       always_export_symbols_GCJ=yes
24666       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'
24667       # Note: this linker hardcodes the directories in LIBPATH if there
24668       # are no directories specified by -L.
24669       hardcode_minus_L_GCJ=yes
24670       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24671         # Neither direct hardcoding nor static linking is supported with a
24672         # broken collect2.
24673         hardcode_direct_GCJ=unsupported
24674       fi
24675       ;;
24676
24677     aix4* | aix5*)
24678       if test "$host_cpu" = ia64; then
24679         # On IA64, the linker does run time linking by default, so we don't
24680         # have to do anything special.
24681         aix_use_runtimelinking=no
24682         exp_sym_flag='-Bexport'
24683         no_entry_flag=""
24684       else
24685         # If we're using GNU nm, then we don't want the "-C" option.
24686         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24687         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24688           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'
24689         else
24690           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'
24691         fi
24692         aix_use_runtimelinking=no
24693
24694         # Test if we are trying to use run time linking or normal
24695         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24696         # need to do runtime linking.
24697         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24698           for ld_flag in $LDFLAGS; do
24699           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24700             aix_use_runtimelinking=yes
24701             break
24702           fi
24703           done
24704           ;;
24705         esac
24706
24707         exp_sym_flag='-bexport'
24708         no_entry_flag='-bnoentry'
24709       fi
24710
24711       # When large executables or shared objects are built, AIX ld can
24712       # have problems creating the table of contents.  If linking a library
24713       # or program results in "error TOC overflow" add -mminimal-toc to
24714       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24715       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24716
24717       archive_cmds_GCJ=''
24718       hardcode_direct_GCJ=yes
24719       hardcode_libdir_separator_GCJ=':'
24720       link_all_deplibs_GCJ=yes
24721
24722       if test "$GCC" = yes; then
24723         case $host_os in aix4.[012]|aix4.[012].*)
24724         # We only want to do this on AIX 4.2 and lower, the check
24725         # below for broken collect2 doesn't work under 4.3+
24726           collect2name=`${CC} -print-prog-name=collect2`
24727           if test -f "$collect2name" && \
24728            strings "$collect2name" | grep resolve_lib_name >/dev/null
24729           then
24730           # We have reworked collect2
24731           hardcode_direct_GCJ=yes
24732           else
24733           # We have old collect2
24734           hardcode_direct_GCJ=unsupported
24735           # It fails to find uninstalled libraries when the uninstalled
24736           # path is not listed in the libpath.  Setting hardcode_minus_L
24737           # to unsupported forces relinking
24738           hardcode_minus_L_GCJ=yes
24739           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24740           hardcode_libdir_separator_GCJ=
24741           fi
24742           ;;
24743         esac
24744         shared_flag='-shared'
24745         if test "$aix_use_runtimelinking" = yes; then
24746           shared_flag="$shared_flag "'${wl}-G'
24747         fi
24748       else
24749         # not using gcc
24750         if test "$host_cpu" = ia64; then
24751         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24752         # chokes on -Wl,-G. The following line is correct:
24753           shared_flag='-G'
24754         else
24755           if test "$aix_use_runtimelinking" = yes; then
24756             shared_flag='${wl}-G'
24757           else
24758             shared_flag='${wl}-bM:SRE'
24759           fi
24760         fi
24761       fi
24762
24763       # It seems that -bexpall does not export symbols beginning with
24764       # underscore (_), so it is better to generate a list of symbols to export.
24765       always_export_symbols_GCJ=yes
24766       if test "$aix_use_runtimelinking" = yes; then
24767         # Warning - without using the other runtime loading flags (-brtl),
24768         # -berok will link without error, but may produce a broken library.
24769         allow_undefined_flag_GCJ='-berok'
24770        # Determine the default libpath from the value encoded in an empty executable.
24771        cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h.  */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h.  */
24777
24778 int
24779 main ()
24780 {
24781
24782   ;
24783   return 0;
24784 }
24785 _ACEOF
24786 rm -f conftest.$ac_objext conftest$ac_exeext
24787 if { (ac_try="$ac_link"
24788 case "(($ac_try" in
24789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790   *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793   (eval "$ac_link") 2>conftest.er1
24794   ac_status=$?
24795   grep -v '^ *+' conftest.er1 >conftest.err
24796   rm -f conftest.er1
24797   cat conftest.err >&5
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); } &&
24800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24801   { (case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_try") 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; } &&
24810          { ac_try='test -s conftest$ac_exeext'
24811   { (case "(($ac_try" in
24812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813   *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816   (eval "$ac_try") 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; }; then
24820
24821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24822 }'`
24823 # Check for a 64-bit object if we didn't find anything.
24824 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; }
24825 }'`; fi
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext \
24834       conftest$ac_exeext conftest.$ac_ext
24835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24836
24837        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24838         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"
24839        else
24840         if test "$host_cpu" = ia64; then
24841           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24842           allow_undefined_flag_GCJ="-z nodefs"
24843           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"
24844         else
24845          # Determine the default libpath from the value encoded in an empty executable.
24846          cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852
24853 int
24854 main ()
24855 {
24856
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (ac_try="$ac_link"
24863 case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_link") 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } &&
24875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24876   { (case "(($ac_try" in
24877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878   *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881   (eval "$ac_try") 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; } &&
24885          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24895
24896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24897 }'`
24898 # Check for a 64-bit object if we didn't find anything.
24899 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; }
24900 }'`; fi
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905
24906 fi
24907
24908 rm -f core conftest.err conftest.$ac_objext \
24909       conftest$ac_exeext conftest.$ac_ext
24910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24911
24912          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24913           # Warning - without using the other run time loading flags,
24914           # -berok will link without error, but may produce a broken library.
24915           no_undefined_flag_GCJ=' ${wl}-bernotok'
24916           allow_undefined_flag_GCJ=' ${wl}-berok'
24917           # Exported symbols can be pulled into shared objects from archives
24918           whole_archive_flag_spec_GCJ='$convenience'
24919           archive_cmds_need_lc_GCJ=yes
24920           # This is similar to how AIX traditionally builds its shared libraries.
24921           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'
24922         fi
24923       fi
24924       ;;
24925
24926     amigaos*)
24927       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)'
24928       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24929       hardcode_minus_L_GCJ=yes
24930       # see comment about different semantics on the GNU ld section
24931       ld_shlibs_GCJ=no
24932       ;;
24933
24934     bsdi[45]*)
24935       export_dynamic_flag_spec_GCJ=-rdynamic
24936       ;;
24937
24938     cygwin* | mingw* | pw32*)
24939       # When not using gcc, we currently assume that we are using
24940       # Microsoft Visual C++.
24941       # hardcode_libdir_flag_spec is actually meaningless, as there is
24942       # no search path for DLLs.
24943       hardcode_libdir_flag_spec_GCJ=' '
24944       allow_undefined_flag_GCJ=unsupported
24945       # Tell ltmain to make .lib files, not .a files.
24946       libext=lib
24947       # Tell ltmain to make .dll files, not .so files.
24948       shrext_cmds=".dll"
24949       # FIXME: Setting linknames here is a bad hack.
24950       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24951       # The linker will automatically build a .lib file if we build a DLL.
24952       old_archive_From_new_cmds_GCJ='true'
24953       # FIXME: Should let the user specify the lib program.
24954       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24955       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24956       enable_shared_with_static_runtimes_GCJ=yes
24957       ;;
24958
24959     darwin* | rhapsody*)
24960       case $host_os in
24961         rhapsody* | darwin1.[012])
24962          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24963          ;;
24964        *) # Darwin 1.3 on
24965          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24966            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24967          else
24968            case ${MACOSX_DEPLOYMENT_TARGET} in
24969              10.[012])
24970                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24971                ;;
24972              10.*)
24973                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24974                ;;
24975            esac
24976          fi
24977          ;;
24978       esac
24979       archive_cmds_need_lc_GCJ=no
24980       hardcode_direct_GCJ=no
24981       hardcode_automatic_GCJ=yes
24982       hardcode_shlibpath_var_GCJ=unsupported
24983       whole_archive_flag_spec_GCJ=''
24984       link_all_deplibs_GCJ=yes
24985     if test "$GCC" = yes ; then
24986         output_verbose_link_cmd='echo'
24987         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24988       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24989       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24990       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}'
24991       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}'
24992     else
24993       case $cc_basename in
24994         xlc*)
24995          output_verbose_link_cmd='echo'
24996          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24997          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24998           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24999          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}'
25000           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}'
25001           ;;
25002        *)
25003          ld_shlibs_GCJ=no
25004           ;;
25005       esac
25006     fi
25007       ;;
25008
25009     dgux*)
25010       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25011       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25012       hardcode_shlibpath_var_GCJ=no
25013       ;;
25014
25015     freebsd1*)
25016       ld_shlibs_GCJ=no
25017       ;;
25018
25019     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25020     # support.  Future versions do this automatically, but an explicit c++rt0.o
25021     # does not break anything, and helps significantly (at the cost of a little
25022     # extra space).
25023     freebsd2.2*)
25024       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25025       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026       hardcode_direct_GCJ=yes
25027       hardcode_shlibpath_var_GCJ=no
25028       ;;
25029
25030     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25031     freebsd2*)
25032       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25033       hardcode_direct_GCJ=yes
25034       hardcode_minus_L_GCJ=yes
25035       hardcode_shlibpath_var_GCJ=no
25036       ;;
25037
25038     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25039     freebsd* | kfreebsd*-gnu | dragonfly*)
25040       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25041       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042       hardcode_direct_GCJ=yes
25043       hardcode_shlibpath_var_GCJ=no
25044       ;;
25045
25046     hpux9*)
25047       if test "$GCC" = yes; then
25048         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'
25049       else
25050         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'
25051       fi
25052       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25053       hardcode_libdir_separator_GCJ=:
25054       hardcode_direct_GCJ=yes
25055
25056       # hardcode_minus_L: Not really in the search PATH,
25057       # but as the default location of the library.
25058       hardcode_minus_L_GCJ=yes
25059       export_dynamic_flag_spec_GCJ='${wl}-E'
25060       ;;
25061
25062     hpux10*)
25063       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25064         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25065       else
25066         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25067       fi
25068       if test "$with_gnu_ld" = no; then
25069         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25070         hardcode_libdir_separator_GCJ=:
25071
25072         hardcode_direct_GCJ=yes
25073         export_dynamic_flag_spec_GCJ='${wl}-E'
25074
25075         # hardcode_minus_L: Not really in the search PATH,
25076         # but as the default location of the library.
25077         hardcode_minus_L_GCJ=yes
25078       fi
25079       ;;
25080
25081     hpux11*)
25082       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25083         case $host_cpu in
25084         hppa*64*)
25085           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25086           ;;
25087         ia64*)
25088           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25089           ;;
25090         *)
25091           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25092           ;;
25093         esac
25094       else
25095         case $host_cpu in
25096         hppa*64*)
25097           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25098           ;;
25099         ia64*)
25100           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25101           ;;
25102         *)
25103           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25104           ;;
25105         esac
25106       fi
25107       if test "$with_gnu_ld" = no; then
25108         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25109         hardcode_libdir_separator_GCJ=:
25110
25111         case $host_cpu in
25112         hppa*64*|ia64*)
25113           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25114           hardcode_direct_GCJ=no
25115           hardcode_shlibpath_var_GCJ=no
25116           ;;
25117         *)
25118           hardcode_direct_GCJ=yes
25119           export_dynamic_flag_spec_GCJ='${wl}-E'
25120
25121           # hardcode_minus_L: Not really in the search PATH,
25122           # but as the default location of the library.
25123           hardcode_minus_L_GCJ=yes
25124           ;;
25125         esac
25126       fi
25127       ;;
25128
25129     irix5* | irix6* | nonstopux*)
25130       if test "$GCC" = yes; then
25131         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'
25132       else
25133         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'
25134         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25135       fi
25136       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25137       hardcode_libdir_separator_GCJ=:
25138       link_all_deplibs_GCJ=yes
25139       ;;
25140
25141     netbsd*)
25142       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25143         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25144       else
25145         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25146       fi
25147       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148       hardcode_direct_GCJ=yes
25149       hardcode_shlibpath_var_GCJ=no
25150       ;;
25151
25152     newsos6)
25153       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154       hardcode_direct_GCJ=yes
25155       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25156       hardcode_libdir_separator_GCJ=:
25157       hardcode_shlibpath_var_GCJ=no
25158       ;;
25159
25160     openbsd*)
25161       hardcode_direct_GCJ=yes
25162       hardcode_shlibpath_var_GCJ=no
25163       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25164         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25165         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25166         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25167         export_dynamic_flag_spec_GCJ='${wl}-E'
25168       else
25169        case $host_os in
25170          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25171            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25172            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25173            ;;
25174          *)
25175            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25176            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25177            ;;
25178        esac
25179       fi
25180       ;;
25181
25182     os2*)
25183       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25184       hardcode_minus_L_GCJ=yes
25185       allow_undefined_flag_GCJ=unsupported
25186       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'
25187       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25188       ;;
25189
25190     osf3*)
25191       if test "$GCC" = yes; then
25192         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25193         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'
25194       else
25195         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25196         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'
25197       fi
25198       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25199       hardcode_libdir_separator_GCJ=:
25200       ;;
25201
25202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25203       if test "$GCC" = yes; then
25204         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25205         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'
25206         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25207       else
25208         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25209         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'
25210         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~
25211         $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'
25212
25213         # Both c and cxx compiler support -rpath directly
25214         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25215       fi
25216       hardcode_libdir_separator_GCJ=:
25217       ;;
25218
25219     solaris*)
25220       no_undefined_flag_GCJ=' -z text'
25221       if test "$GCC" = yes; then
25222         wlarc='${wl}'
25223         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25224         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25225           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25226       else
25227         wlarc=''
25228         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25229         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25230         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25231       fi
25232       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233       hardcode_shlibpath_var_GCJ=no
25234       case $host_os in
25235       solaris2.[0-5] | solaris2.[0-5].*) ;;
25236       *)
25237         # The compiler driver will combine linker options so we
25238         # cannot just pass the convience library names through
25239         # without $wl, iff we do not link with $LD.
25240         # Luckily, gcc supports the same syntax we need for Sun Studio.
25241         # Supported since Solaris 2.6 (maybe 2.5.1?)
25242         case $wlarc in
25243         '')
25244           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25245         *)
25246           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' ;;
25247         esac ;;
25248       esac
25249       link_all_deplibs_GCJ=yes
25250       ;;
25251
25252     sunos4*)
25253       if test "x$host_vendor" = xsequent; then
25254         # Use $CC to link under sequent, because it throws in some extra .o
25255         # files that make .init and .fini sections work.
25256         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25257       else
25258         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25259       fi
25260       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25261       hardcode_direct_GCJ=yes
25262       hardcode_minus_L_GCJ=yes
25263       hardcode_shlibpath_var_GCJ=no
25264       ;;
25265
25266     sysv4)
25267       case $host_vendor in
25268         sni)
25269           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270           hardcode_direct_GCJ=yes # is this really true???
25271         ;;
25272         siemens)
25273           ## LD is ld it makes a PLAMLIB
25274           ## CC just makes a GrossModule.
25275           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25276           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25277           hardcode_direct_GCJ=no
25278         ;;
25279         motorola)
25280           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25281           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25282         ;;
25283       esac
25284       runpath_var='LD_RUN_PATH'
25285       hardcode_shlibpath_var_GCJ=no
25286       ;;
25287
25288     sysv4.3*)
25289       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25290       hardcode_shlibpath_var_GCJ=no
25291       export_dynamic_flag_spec_GCJ='-Bexport'
25292       ;;
25293
25294     sysv4*MP*)
25295       if test -d /usr/nec; then
25296         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25297         hardcode_shlibpath_var_GCJ=no
25298         runpath_var=LD_RUN_PATH
25299         hardcode_runpath_var=yes
25300         ld_shlibs_GCJ=yes
25301       fi
25302       ;;
25303
25304     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25305       no_undefined_flag_GCJ='${wl}-z,text'
25306       archive_cmds_need_lc_GCJ=no
25307       hardcode_shlibpath_var_GCJ=no
25308       runpath_var='LD_RUN_PATH'
25309
25310       if test "$GCC" = yes; then
25311         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25312         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25313       else
25314         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25315         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25316       fi
25317       ;;
25318
25319     sysv5* | sco3.2v5* | sco5v6*)
25320       # Note: We can NOT use -z defs as we might desire, because we do not
25321       # link with -lc, and that would cause any symbols used from libc to
25322       # always be unresolved, which means just about no library would
25323       # ever link correctly.  If we're not using GNU ld we use -z text
25324       # though, which does catch some bad symbols but isn't as heavy-handed
25325       # as -z defs.
25326       no_undefined_flag_GCJ='${wl}-z,text'
25327       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25328       archive_cmds_need_lc_GCJ=no
25329       hardcode_shlibpath_var_GCJ=no
25330       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25331       hardcode_libdir_separator_GCJ=':'
25332       link_all_deplibs_GCJ=yes
25333       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25334       runpath_var='LD_RUN_PATH'
25335
25336       if test "$GCC" = yes; then
25337         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25338         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25339       else
25340         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25341         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25342       fi
25343       ;;
25344
25345     uts4*)
25346       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25348       hardcode_shlibpath_var_GCJ=no
25349       ;;
25350
25351     *)
25352       ld_shlibs_GCJ=no
25353       ;;
25354     esac
25355   fi
25356
25357 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25358 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25359 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25360
25361 #
25362 # Do we need to explicitly link libc?
25363 #
25364 case "x$archive_cmds_need_lc_GCJ" in
25365 x|xyes)
25366   # Assume -lc should be added
25367   archive_cmds_need_lc_GCJ=yes
25368
25369   if test "$enable_shared" = yes && test "$GCC" = yes; then
25370     case $archive_cmds_GCJ in
25371     *'~'*)
25372       # FIXME: we may have to deal with multi-command sequences.
25373       ;;
25374     '$CC '*)
25375       # Test whether the compiler implicitly links with -lc since on some
25376       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25377       # to ld, don't add -lc before -lgcc.
25378       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25380       $rm conftest*
25381       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25382
25383       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25384   (eval $ac_compile) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); } 2>conftest.err; then
25388         soname=conftest
25389         lib=conftest
25390         libobjs=conftest.$ac_objext
25391         deplibs=
25392         wl=$lt_prog_compiler_wl_GCJ
25393         pic_flag=$lt_prog_compiler_pic_GCJ
25394         compiler_flags=-v
25395         linker_flags=-v
25396         verstring=
25397         output_objdir=.
25398         libname=conftest
25399         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25400         allow_undefined_flag_GCJ=
25401         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25402   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25403   ac_status=$?
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); }
25406         then
25407           archive_cmds_need_lc_GCJ=no
25408         else
25409           archive_cmds_need_lc_GCJ=yes
25410         fi
25411         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25412       else
25413         cat conftest.err 1>&5
25414       fi
25415       $rm conftest*
25416       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25417 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25418       ;;
25419     esac
25420   fi
25421   ;;
25422 esac
25423
25424 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25426 library_names_spec=
25427 libname_spec='lib$name'
25428 soname_spec=
25429 shrext_cmds=".so"
25430 postinstall_cmds=
25431 postuninstall_cmds=
25432 finish_cmds=
25433 finish_eval=
25434 shlibpath_var=
25435 shlibpath_overrides_runpath=unknown
25436 version_type=none
25437 dynamic_linker="$host_os ld.so"
25438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25439 if test "$GCC" = yes; then
25440   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25441   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25442     # if the path contains ";" then we assume it to be the separator
25443     # otherwise default to the standard path separator (i.e. ":") - it is
25444     # assumed that no part of a normal pathname contains ";" but that should
25445     # okay in the real world where ";" in dirpaths is itself problematic.
25446     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25447   else
25448     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25449   fi
25450 else
25451   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25452 fi
25453 need_lib_prefix=unknown
25454 hardcode_into_libs=no
25455
25456 # when you set need_version to no, make sure it does not cause -set_version
25457 # flags to be left without arguments
25458 need_version=unknown
25459
25460 case $host_os in
25461 aix3*)
25462   version_type=linux
25463   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25464   shlibpath_var=LIBPATH
25465
25466   # AIX 3 has no versioning support, so we append a major version to the name.
25467   soname_spec='${libname}${release}${shared_ext}$major'
25468   ;;
25469
25470 aix4* | aix5*)
25471   version_type=linux
25472   need_lib_prefix=no
25473   need_version=no
25474   hardcode_into_libs=yes
25475   if test "$host_cpu" = ia64; then
25476     # AIX 5 supports IA64
25477     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25478     shlibpath_var=LD_LIBRARY_PATH
25479   else
25480     # With GCC up to 2.95.x, collect2 would create an import file
25481     # for dependence libraries.  The import file would start with
25482     # the line `#! .'.  This would cause the generated library to
25483     # depend on `.', always an invalid library.  This was fixed in
25484     # development snapshots of GCC prior to 3.0.
25485     case $host_os in
25486       aix4 | aix4.[01] | aix4.[01].*)
25487       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25488            echo ' yes '
25489            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25490         :
25491       else
25492         can_build_shared=no
25493       fi
25494       ;;
25495     esac
25496     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25497     # soname into executable. Probably we can add versioning support to
25498     # collect2, so additional links can be useful in future.
25499     if test "$aix_use_runtimelinking" = yes; then
25500       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25501       # instead of lib<name>.a to let people know that these are not
25502       # typical AIX shared libraries.
25503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504     else
25505       # We preserve .a as extension for shared libraries through AIX4.2
25506       # and later when we are not doing run time linking.
25507       library_names_spec='${libname}${release}.a $libname.a'
25508       soname_spec='${libname}${release}${shared_ext}$major'
25509     fi
25510     shlibpath_var=LIBPATH
25511   fi
25512   ;;
25513
25514 amigaos*)
25515   library_names_spec='$libname.ixlibrary $libname.a'
25516   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25517   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'
25518   ;;
25519
25520 beos*)
25521   library_names_spec='${libname}${shared_ext}'
25522   dynamic_linker="$host_os ld.so"
25523   shlibpath_var=LIBRARY_PATH
25524   ;;
25525
25526 bsdi[45]*)
25527   version_type=linux
25528   need_version=no
25529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25530   soname_spec='${libname}${release}${shared_ext}$major'
25531   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25532   shlibpath_var=LD_LIBRARY_PATH
25533   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25534   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25535   # the default ld.so.conf also contains /usr/contrib/lib and
25536   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25537   # libtool to hard-code these into programs
25538   ;;
25539
25540 cygwin* | mingw* | pw32*)
25541   version_type=windows
25542   shrext_cmds=".dll"
25543   need_version=no
25544   need_lib_prefix=no
25545
25546   case $GCC,$host_os in
25547   yes,cygwin* | yes,mingw* | yes,pw32*)
25548     library_names_spec='$libname.dll.a'
25549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25550     postinstall_cmds='base_file=`basename \${file}`~
25551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25552       dldir=$destdir/`dirname \$dlpath`~
25553       test -d \$dldir || mkdir -p \$dldir~
25554       $install_prog $dir/$dlname \$dldir/$dlname~
25555       chmod a+x \$dldir/$dlname'
25556     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25557       dlpath=$dir/\$dldll~
25558        $rm \$dlpath'
25559     shlibpath_overrides_runpath=yes
25560
25561     case $host_os in
25562     cygwin*)
25563       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25564       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25565       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25566       ;;
25567     mingw*)
25568       # MinGW DLLs use traditional 'lib' prefix
25569       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25570       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25572         # It is most probably a Windows format PATH printed by
25573         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25574         # path with ; separators, and with drive letters. We can handle the
25575         # drive letters (cygwin fileutils understands them), so leave them,
25576         # especially as we might pass files found there to a mingw objdump,
25577         # which wouldn't understand a cygwinified path. Ahh.
25578         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25579       else
25580         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25581       fi
25582       ;;
25583     pw32*)
25584       # pw32 DLLs use 'pw' prefix rather than 'lib'
25585       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25586       ;;
25587     esac
25588     ;;
25589
25590   *)
25591     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25592     ;;
25593   esac
25594   dynamic_linker='Win32 ld.exe'
25595   # FIXME: first we should search . and the directory the executable is in
25596   shlibpath_var=PATH
25597   ;;
25598
25599 darwin* | rhapsody*)
25600   dynamic_linker="$host_os dyld"
25601   version_type=darwin
25602   need_lib_prefix=no
25603   need_version=no
25604   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25605   soname_spec='${libname}${release}${major}$shared_ext'
25606   shlibpath_overrides_runpath=yes
25607   shlibpath_var=DYLD_LIBRARY_PATH
25608   shrext_cmds='.dylib'
25609   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25610   if test "$GCC" = yes; then
25611     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"`
25612   else
25613     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25614   fi
25615   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25616   ;;
25617
25618 dgux*)
25619   version_type=linux
25620   need_lib_prefix=no
25621   need_version=no
25622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25623   soname_spec='${libname}${release}${shared_ext}$major'
25624   shlibpath_var=LD_LIBRARY_PATH
25625   ;;
25626
25627 freebsd1*)
25628   dynamic_linker=no
25629   ;;
25630
25631 kfreebsd*-gnu)
25632   version_type=linux
25633   need_lib_prefix=no
25634   need_version=no
25635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25636   soname_spec='${libname}${release}${shared_ext}$major'
25637   shlibpath_var=LD_LIBRARY_PATH
25638   shlibpath_overrides_runpath=no
25639   hardcode_into_libs=yes
25640   dynamic_linker='GNU ld.so'
25641   ;;
25642
25643 freebsd* | dragonfly*)
25644   # DragonFly does not have aout.  When/if they implement a new
25645   # versioning mechanism, adjust this.
25646   if test -x /usr/bin/objformat; then
25647     objformat=`/usr/bin/objformat`
25648   else
25649     case $host_os in
25650     freebsd[123]*) objformat=aout ;;
25651     *) objformat=elf ;;
25652     esac
25653   fi
25654   version_type=freebsd-$objformat
25655   case $version_type in
25656     freebsd-elf*)
25657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25658       need_version=no
25659       need_lib_prefix=no
25660       ;;
25661     freebsd-*)
25662       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25663       need_version=yes
25664       ;;
25665   esac
25666   shlibpath_var=LD_LIBRARY_PATH
25667   case $host_os in
25668   freebsd2*)
25669     shlibpath_overrides_runpath=yes
25670     ;;
25671   freebsd3.[01]* | freebsdelf3.[01]*)
25672     shlibpath_overrides_runpath=yes
25673     hardcode_into_libs=yes
25674     ;;
25675   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25676   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25677     shlibpath_overrides_runpath=no
25678     hardcode_into_libs=yes
25679     ;;
25680   freebsd*) # from 4.6 on
25681     shlibpath_overrides_runpath=yes
25682     hardcode_into_libs=yes
25683     ;;
25684   esac
25685   ;;
25686
25687 gnu*)
25688   version_type=linux
25689   need_lib_prefix=no
25690   need_version=no
25691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25692   soname_spec='${libname}${release}${shared_ext}$major'
25693   shlibpath_var=LD_LIBRARY_PATH
25694   hardcode_into_libs=yes
25695   ;;
25696
25697 hpux9* | hpux10* | hpux11*)
25698   # Give a soname corresponding to the major version so that dld.sl refuses to
25699   # link against other versions.
25700   version_type=sunos
25701   need_lib_prefix=no
25702   need_version=no
25703   case $host_cpu in
25704   ia64*)
25705     shrext_cmds='.so'
25706     hardcode_into_libs=yes
25707     dynamic_linker="$host_os dld.so"
25708     shlibpath_var=LD_LIBRARY_PATH
25709     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711     soname_spec='${libname}${release}${shared_ext}$major'
25712     if test "X$HPUX_IA64_MODE" = X32; then
25713       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25714     else
25715       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25716     fi
25717     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25718     ;;
25719    hppa*64*)
25720      shrext_cmds='.sl'
25721      hardcode_into_libs=yes
25722      dynamic_linker="$host_os dld.sl"
25723      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25724      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726      soname_spec='${libname}${release}${shared_ext}$major'
25727      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25728      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25729      ;;
25730    *)
25731     shrext_cmds='.sl'
25732     dynamic_linker="$host_os dld.sl"
25733     shlibpath_var=SHLIB_PATH
25734     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25736     soname_spec='${libname}${release}${shared_ext}$major'
25737     ;;
25738   esac
25739   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25740   postinstall_cmds='chmod 555 $lib'
25741   ;;
25742
25743 interix3*)
25744   version_type=linux
25745   need_lib_prefix=no
25746   need_version=no
25747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25748   soname_spec='${libname}${release}${shared_ext}$major'
25749   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25750   shlibpath_var=LD_LIBRARY_PATH
25751   shlibpath_overrides_runpath=no
25752   hardcode_into_libs=yes
25753   ;;
25754
25755 irix5* | irix6* | nonstopux*)
25756   case $host_os in
25757     nonstopux*) version_type=nonstopux ;;
25758     *)
25759         if test "$lt_cv_prog_gnu_ld" = yes; then
25760                 version_type=linux
25761         else
25762                 version_type=irix
25763         fi ;;
25764   esac
25765   need_lib_prefix=no
25766   need_version=no
25767   soname_spec='${libname}${release}${shared_ext}$major'
25768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25769   case $host_os in
25770   irix5* | nonstopux*)
25771     libsuff= shlibsuff=
25772     ;;
25773   *)
25774     case $LD in # libtool.m4 will add one of these switches to LD
25775     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25776       libsuff= shlibsuff= libmagic=32-bit;;
25777     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25778       libsuff=32 shlibsuff=N32 libmagic=N32;;
25779     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25780       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25781     *) libsuff= shlibsuff= libmagic=never-match;;
25782     esac
25783     ;;
25784   esac
25785   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25786   shlibpath_overrides_runpath=no
25787   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25788   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25789   hardcode_into_libs=yes
25790   ;;
25791
25792 # No shared lib support for Linux oldld, aout, or coff.
25793 linux*oldld* | linux*aout* | linux*coff*)
25794   dynamic_linker=no
25795   ;;
25796
25797 # This must be Linux ELF.
25798 linux*)
25799   version_type=linux
25800   need_lib_prefix=no
25801   need_version=no
25802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25803   soname_spec='${libname}${release}${shared_ext}$major'
25804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25805   shlibpath_var=LD_LIBRARY_PATH
25806   shlibpath_overrides_runpath=no
25807   # This implies no fast_install, which is unacceptable.
25808   # Some rework will be needed to allow for fast_install
25809   # before this can be enabled.
25810   hardcode_into_libs=yes
25811
25812   # Append ld.so.conf contents to the search path
25813   if test -f /etc/ld.so.conf; then
25814     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' ' '`
25815     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25816   fi
25817
25818   # We used to test for /lib/ld.so.1 and disable shared libraries on
25819   # powerpc, because MkLinux only supported shared libraries with the
25820   # GNU dynamic linker.  Since this was broken with cross compilers,
25821   # most powerpc-linux boxes support dynamic linking these days and
25822   # people can always --disable-shared, the test was removed, and we
25823   # assume the GNU/Linux dynamic linker is in use.
25824   dynamic_linker='GNU/Linux ld.so'
25825   ;;
25826
25827 knetbsd*-gnu)
25828   version_type=linux
25829   need_lib_prefix=no
25830   need_version=no
25831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832   soname_spec='${libname}${release}${shared_ext}$major'
25833   shlibpath_var=LD_LIBRARY_PATH
25834   shlibpath_overrides_runpath=no
25835   hardcode_into_libs=yes
25836   dynamic_linker='GNU ld.so'
25837   ;;
25838
25839 netbsd*)
25840   version_type=sunos
25841   need_lib_prefix=no
25842   need_version=no
25843   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25846     dynamic_linker='NetBSD (a.out) ld.so'
25847   else
25848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25849     soname_spec='${libname}${release}${shared_ext}$major'
25850     dynamic_linker='NetBSD ld.elf_so'
25851   fi
25852   shlibpath_var=LD_LIBRARY_PATH
25853   shlibpath_overrides_runpath=yes
25854   hardcode_into_libs=yes
25855   ;;
25856
25857 newsos6)
25858   version_type=linux
25859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860   shlibpath_var=LD_LIBRARY_PATH
25861   shlibpath_overrides_runpath=yes
25862   ;;
25863
25864 nto-qnx*)
25865   version_type=linux
25866   need_lib_prefix=no
25867   need_version=no
25868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25869   soname_spec='${libname}${release}${shared_ext}$major'
25870   shlibpath_var=LD_LIBRARY_PATH
25871   shlibpath_overrides_runpath=yes
25872   ;;
25873
25874 openbsd*)
25875   version_type=sunos
25876   sys_lib_dlsearch_path_spec="/usr/lib"
25877   need_lib_prefix=no
25878   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25879   case $host_os in
25880     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25881     *)                         need_version=no  ;;
25882   esac
25883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25884   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25885   shlibpath_var=LD_LIBRARY_PATH
25886   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25887     case $host_os in
25888       openbsd2.[89] | openbsd2.[89].*)
25889         shlibpath_overrides_runpath=no
25890         ;;
25891       *)
25892         shlibpath_overrides_runpath=yes
25893         ;;
25894       esac
25895   else
25896     shlibpath_overrides_runpath=yes
25897   fi
25898   ;;
25899
25900 os2*)
25901   libname_spec='$name'
25902   shrext_cmds=".dll"
25903   need_lib_prefix=no
25904   library_names_spec='$libname${shared_ext} $libname.a'
25905   dynamic_linker='OS/2 ld.exe'
25906   shlibpath_var=LIBPATH
25907   ;;
25908
25909 osf3* | osf4* | osf5*)
25910   version_type=osf
25911   need_lib_prefix=no
25912   need_version=no
25913   soname_spec='${libname}${release}${shared_ext}$major'
25914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915   shlibpath_var=LD_LIBRARY_PATH
25916   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25917   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25918   ;;
25919
25920 solaris*)
25921   version_type=linux
25922   need_lib_prefix=no
25923   need_version=no
25924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925   soname_spec='${libname}${release}${shared_ext}$major'
25926   shlibpath_var=LD_LIBRARY_PATH
25927   shlibpath_overrides_runpath=yes
25928   hardcode_into_libs=yes
25929   # ldd complains unless libraries are executable
25930   postinstall_cmds='chmod +x $lib'
25931   ;;
25932
25933 sunos4*)
25934   version_type=sunos
25935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25936   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25937   shlibpath_var=LD_LIBRARY_PATH
25938   shlibpath_overrides_runpath=yes
25939   if test "$with_gnu_ld" = yes; then
25940     need_lib_prefix=no
25941   fi
25942   need_version=yes
25943   ;;
25944
25945 sysv4 | sysv4.3*)
25946   version_type=linux
25947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25948   soname_spec='${libname}${release}${shared_ext}$major'
25949   shlibpath_var=LD_LIBRARY_PATH
25950   case $host_vendor in
25951     sni)
25952       shlibpath_overrides_runpath=no
25953       need_lib_prefix=no
25954       export_dynamic_flag_spec='${wl}-Blargedynsym'
25955       runpath_var=LD_RUN_PATH
25956       ;;
25957     siemens)
25958       need_lib_prefix=no
25959       ;;
25960     motorola)
25961       need_lib_prefix=no
25962       need_version=no
25963       shlibpath_overrides_runpath=no
25964       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25965       ;;
25966   esac
25967   ;;
25968
25969 sysv4*MP*)
25970   if test -d /usr/nec ;then
25971     version_type=linux
25972     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25973     soname_spec='$libname${shared_ext}.$major'
25974     shlibpath_var=LD_LIBRARY_PATH
25975   fi
25976   ;;
25977
25978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25979   version_type=freebsd-elf
25980   need_lib_prefix=no
25981   need_version=no
25982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25983   soname_spec='${libname}${release}${shared_ext}$major'
25984   shlibpath_var=LD_LIBRARY_PATH
25985   hardcode_into_libs=yes
25986   if test "$with_gnu_ld" = yes; then
25987     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25988     shlibpath_overrides_runpath=no
25989   else
25990     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25991     shlibpath_overrides_runpath=yes
25992     case $host_os in
25993       sco3.2v5*)
25994         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25995         ;;
25996     esac
25997   fi
25998   sys_lib_dlsearch_path_spec='/usr/lib'
25999   ;;
26000
26001 uts4*)
26002   version_type=linux
26003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26004   soname_spec='${libname}${release}${shared_ext}$major'
26005   shlibpath_var=LD_LIBRARY_PATH
26006   ;;
26007
26008 *)
26009   dynamic_linker=no
26010   ;;
26011 esac
26012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26013 echo "${ECHO_T}$dynamic_linker" >&6; }
26014 test "$dynamic_linker" = no && can_build_shared=no
26015
26016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26017 if test "$GCC" = yes; then
26018   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26019 fi
26020
26021 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26023 hardcode_action_GCJ=
26024 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26025    test -n "$runpath_var_GCJ" || \
26026    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26027
26028   # We can hardcode non-existant directories.
26029   if test "$hardcode_direct_GCJ" != no &&
26030      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26031      # have to relink, otherwise we might link with an installed library
26032      # when we should be linking with a yet-to-be-installed one
26033      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26034      test "$hardcode_minus_L_GCJ" != no; then
26035     # Linking always hardcodes the temporary library directory.
26036     hardcode_action_GCJ=relink
26037   else
26038     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26039     hardcode_action_GCJ=immediate
26040   fi
26041 else
26042   # We cannot hardcode anything, or else we can only hardcode existing
26043   # directories.
26044   hardcode_action_GCJ=unsupported
26045 fi
26046 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26047 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26048
26049 if test "$hardcode_action_GCJ" = relink; then
26050   # Fast installation is not supported
26051   enable_fast_install=no
26052 elif test "$shlibpath_overrides_runpath" = yes ||
26053      test "$enable_shared" = no; then
26054   # Fast installation is not necessary
26055   enable_fast_install=needless
26056 fi
26057
26058
26059 # The else clause should only fire when bootstrapping the
26060 # libtool distribution, otherwise you forgot to ship ltmain.sh
26061 # with your package, and you will get complaints that there are
26062 # no rules to generate ltmain.sh.
26063 if test -f "$ltmain"; then
26064   # See if we are running on zsh, and set the options which allow our commands through
26065   # without removal of \ escapes.
26066   if test -n "${ZSH_VERSION+set}" ; then
26067     setopt NO_GLOB_SUBST
26068   fi
26069   # Now quote all the things that may contain metacharacters while being
26070   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26071   # variables and quote the copies for generation of the libtool script.
26072   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26073     SED SHELL STRIP \
26074     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26075     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26076     deplibs_check_method reload_flag reload_cmds need_locks \
26077     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26078     lt_cv_sys_global_symbol_to_c_name_address \
26079     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26080     old_postinstall_cmds old_postuninstall_cmds \
26081     compiler_GCJ \
26082     CC_GCJ \
26083     LD_GCJ \
26084     lt_prog_compiler_wl_GCJ \
26085     lt_prog_compiler_pic_GCJ \
26086     lt_prog_compiler_static_GCJ \
26087     lt_prog_compiler_no_builtin_flag_GCJ \
26088     export_dynamic_flag_spec_GCJ \
26089     thread_safe_flag_spec_GCJ \
26090     whole_archive_flag_spec_GCJ \
26091     enable_shared_with_static_runtimes_GCJ \
26092     old_archive_cmds_GCJ \
26093     old_archive_from_new_cmds_GCJ \
26094     predep_objects_GCJ \
26095     postdep_objects_GCJ \
26096     predeps_GCJ \
26097     postdeps_GCJ \
26098     compiler_lib_search_path_GCJ \
26099     archive_cmds_GCJ \
26100     archive_expsym_cmds_GCJ \
26101     postinstall_cmds_GCJ \
26102     postuninstall_cmds_GCJ \
26103     old_archive_from_expsyms_cmds_GCJ \
26104     allow_undefined_flag_GCJ \
26105     no_undefined_flag_GCJ \
26106     export_symbols_cmds_GCJ \
26107     hardcode_libdir_flag_spec_GCJ \
26108     hardcode_libdir_flag_spec_ld_GCJ \
26109     hardcode_libdir_separator_GCJ \
26110     hardcode_automatic_GCJ \
26111     module_cmds_GCJ \
26112     module_expsym_cmds_GCJ \
26113     lt_cv_prog_compiler_c_o_GCJ \
26114     exclude_expsyms_GCJ \
26115     include_expsyms_GCJ; do
26116
26117     case $var in
26118     old_archive_cmds_GCJ | \
26119     old_archive_from_new_cmds_GCJ | \
26120     archive_cmds_GCJ | \
26121     archive_expsym_cmds_GCJ | \
26122     module_cmds_GCJ | \
26123     module_expsym_cmds_GCJ | \
26124     old_archive_from_expsyms_cmds_GCJ | \
26125     export_symbols_cmds_GCJ | \
26126     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26127     postinstall_cmds | postuninstall_cmds | \
26128     old_postinstall_cmds | old_postuninstall_cmds | \
26129     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26130       # Double-quote double-evaled strings.
26131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26132       ;;
26133     *)
26134       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26135       ;;
26136     esac
26137   done
26138
26139   case $lt_echo in
26140   *'\$0 --fallback-echo"')
26141     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26142     ;;
26143   esac
26144
26145 cfgfile="$ofile"
26146
26147   cat <<__EOF__ >> "$cfgfile"
26148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26149
26150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26151
26152 # Shell to use when invoking shell scripts.
26153 SHELL=$lt_SHELL
26154
26155 # Whether or not to build shared libraries.
26156 build_libtool_libs=$enable_shared
26157
26158 # Whether or not to build static libraries.
26159 build_old_libs=$enable_static
26160
26161 # Whether or not to add -lc for building shared libraries.
26162 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26163
26164 # Whether or not to disallow shared libs when runtime libs are static
26165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26166
26167 # Whether or not to optimize for fast installation.
26168 fast_install=$enable_fast_install
26169
26170 # The host system.
26171 host_alias=$host_alias
26172 host=$host
26173 host_os=$host_os
26174
26175 # The build system.
26176 build_alias=$build_alias
26177 build=$build
26178 build_os=$build_os
26179
26180 # An echo program that does not interpret backslashes.
26181 echo=$lt_echo
26182
26183 # The archiver.
26184 AR=$lt_AR
26185 AR_FLAGS=$lt_AR_FLAGS
26186
26187 # A C compiler.
26188 LTCC=$lt_LTCC
26189
26190 # LTCC compiler flags.
26191 LTCFLAGS=$lt_LTCFLAGS
26192
26193 # A language-specific compiler.
26194 CC=$lt_compiler_GCJ
26195
26196 # Is the compiler the GNU C compiler?
26197 with_gcc=$GCC_GCJ
26198
26199 # An ERE matcher.
26200 EGREP=$lt_EGREP
26201
26202 # The linker used to build libraries.
26203 LD=$lt_LD_GCJ
26204
26205 # Whether we need hard or soft links.
26206 LN_S=$lt_LN_S
26207
26208 # A BSD-compatible nm program.
26209 NM=$lt_NM
26210
26211 # A symbol stripping program
26212 STRIP=$lt_STRIP
26213
26214 # Used to examine libraries when file_magic_cmd begins "file"
26215 MAGIC_CMD=$MAGIC_CMD
26216
26217 # Used on cygwin: DLL creation program.
26218 DLLTOOL="$DLLTOOL"
26219
26220 # Used on cygwin: object dumper.
26221 OBJDUMP="$OBJDUMP"
26222
26223 # Used on cygwin: assembler.
26224 AS="$AS"
26225
26226 # The name of the directory that contains temporary libtool files.
26227 objdir=$objdir
26228
26229 # How to create reloadable object files.
26230 reload_flag=$lt_reload_flag
26231 reload_cmds=$lt_reload_cmds
26232
26233 # How to pass a linker flag through the compiler.
26234 wl=$lt_lt_prog_compiler_wl_GCJ
26235
26236 # Object file suffix (normally "o").
26237 objext="$ac_objext"
26238
26239 # Old archive suffix (normally "a").
26240 libext="$libext"
26241
26242 # Shared library suffix (normally ".so").
26243 shrext_cmds='$shrext_cmds'
26244
26245 # Executable file suffix (normally "").
26246 exeext="$exeext"
26247
26248 # Additional compiler flags for building library objects.
26249 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26250 pic_mode=$pic_mode
26251
26252 # What is the maximum length of a command?
26253 max_cmd_len=$lt_cv_sys_max_cmd_len
26254
26255 # Does compiler simultaneously support -c and -o options?
26256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26257
26258 # Must we lock files when doing compilation?
26259 need_locks=$lt_need_locks
26260
26261 # Do we need the lib prefix for modules?
26262 need_lib_prefix=$need_lib_prefix
26263
26264 # Do we need a version for libraries?
26265 need_version=$need_version
26266
26267 # Whether dlopen is supported.
26268 dlopen_support=$enable_dlopen
26269
26270 # Whether dlopen of programs is supported.
26271 dlopen_self=$enable_dlopen_self
26272
26273 # Whether dlopen of statically linked programs is supported.
26274 dlopen_self_static=$enable_dlopen_self_static
26275
26276 # Compiler flag to prevent dynamic linking.
26277 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26278
26279 # Compiler flag to turn off builtin functions.
26280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26281
26282 # Compiler flag to allow reflexive dlopens.
26283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26284
26285 # Compiler flag to generate shared objects directly from archives.
26286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26287
26288 # Compiler flag to generate thread-safe objects.
26289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26290
26291 # Library versioning type.
26292 version_type=$version_type
26293
26294 # Format of library name prefix.
26295 libname_spec=$lt_libname_spec
26296
26297 # List of archive names.  First name is the real one, the rest are links.
26298 # The last name is the one that the linker finds with -lNAME.
26299 library_names_spec=$lt_library_names_spec
26300
26301 # The coded name of the library, if different from the real name.
26302 soname_spec=$lt_soname_spec
26303
26304 # Commands used to build and install an old-style archive.
26305 RANLIB=$lt_RANLIB
26306 old_archive_cmds=$lt_old_archive_cmds_GCJ
26307 old_postinstall_cmds=$lt_old_postinstall_cmds
26308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26309
26310 # Create an old-style archive from a shared archive.
26311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26312
26313 # Create a temporary old-style archive to link instead of a shared archive.
26314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26315
26316 # Commands used to build and install a shared archive.
26317 archive_cmds=$lt_archive_cmds_GCJ
26318 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26319 postinstall_cmds=$lt_postinstall_cmds
26320 postuninstall_cmds=$lt_postuninstall_cmds
26321
26322 # Commands used to build a loadable module (assumed same as above if empty)
26323 module_cmds=$lt_module_cmds_GCJ
26324 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26325
26326 # Commands to strip libraries.
26327 old_striplib=$lt_old_striplib
26328 striplib=$lt_striplib
26329
26330 # Dependencies to place before the objects being linked to create a
26331 # shared library.
26332 predep_objects=$lt_predep_objects_GCJ
26333
26334 # Dependencies to place after the objects being linked to create a
26335 # shared library.
26336 postdep_objects=$lt_postdep_objects_GCJ
26337
26338 # Dependencies to place before the objects being linked to create a
26339 # shared library.
26340 predeps=$lt_predeps_GCJ
26341
26342 # Dependencies to place after the objects being linked to create a
26343 # shared library.
26344 postdeps=$lt_postdeps_GCJ
26345
26346 # The library search path used internally by the compiler when linking
26347 # a shared library.
26348 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26349
26350 # Method to check whether dependent libraries are shared objects.
26351 deplibs_check_method=$lt_deplibs_check_method
26352
26353 # Command to use when deplibs_check_method == file_magic.
26354 file_magic_cmd=$lt_file_magic_cmd
26355
26356 # Flag that allows shared libraries with undefined symbols to be built.
26357 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26358
26359 # Flag that forces no undefined symbols.
26360 no_undefined_flag=$lt_no_undefined_flag_GCJ
26361
26362 # Commands used to finish a libtool library installation in a directory.
26363 finish_cmds=$lt_finish_cmds
26364
26365 # Same as above, but a single script fragment to be evaled but not shown.
26366 finish_eval=$lt_finish_eval
26367
26368 # Take the output of nm and produce a listing of raw symbols and C names.
26369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26370
26371 # Transform the output of nm in a proper C declaration
26372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26373
26374 # Transform the output of nm in a C name address pair
26375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26376
26377 # This is the shared library runtime path variable.
26378 runpath_var=$runpath_var
26379
26380 # This is the shared library path variable.
26381 shlibpath_var=$shlibpath_var
26382
26383 # Is shlibpath searched before the hard-coded library search path?
26384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26385
26386 # How to hardcode a shared library path into an executable.
26387 hardcode_action=$hardcode_action_GCJ
26388
26389 # Whether we should hardcode library paths into libraries.
26390 hardcode_into_libs=$hardcode_into_libs
26391
26392 # Flag to hardcode \$libdir into a binary during linking.
26393 # This must work even if \$libdir does not exist.
26394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26395
26396 # If ld is used when linking, flag to hardcode \$libdir into
26397 # a binary during linking. This must work even if \$libdir does
26398 # not exist.
26399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26400
26401 # Whether we need a single -rpath flag with a separated argument.
26402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26403
26404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26405 # resulting binary.
26406 hardcode_direct=$hardcode_direct_GCJ
26407
26408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26409 # resulting binary.
26410 hardcode_minus_L=$hardcode_minus_L_GCJ
26411
26412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26413 # the resulting binary.
26414 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26415
26416 # Set to yes if building a shared library automatically hardcodes DIR into the library
26417 # and all subsequent libraries and executables linked against it.
26418 hardcode_automatic=$hardcode_automatic_GCJ
26419
26420 # Variables whose values should be saved in libtool wrapper scripts and
26421 # restored at relink time.
26422 variables_saved_for_relink="$variables_saved_for_relink"
26423
26424 # Whether libtool must link a program against all its dependency libraries.
26425 link_all_deplibs=$link_all_deplibs_GCJ
26426
26427 # Compile-time system search path for libraries
26428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26429
26430 # Run-time system search path for libraries
26431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26432
26433 # Fix the shell variable \$srcfile for the compiler.
26434 fix_srcfile_path="$fix_srcfile_path_GCJ"
26435
26436 # Set to yes if exported symbols are required.
26437 always_export_symbols=$always_export_symbols_GCJ
26438
26439 # The commands to list exported symbols.
26440 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26441
26442 # The commands to extract the exported symbol list from a shared archive.
26443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26444
26445 # Symbols that should not be listed in the preloaded symbols.
26446 exclude_expsyms=$lt_exclude_expsyms_GCJ
26447
26448 # Symbols that must always be exported.
26449 include_expsyms=$lt_include_expsyms_GCJ
26450
26451 # ### END LIBTOOL TAG CONFIG: $tagname
26452
26453 __EOF__
26454
26455
26456 else
26457   # If there is no Makefile yet, we rely on a make rule to execute
26458   # `config.status --recheck' to rerun these tests and create the
26459   # libtool script then.
26460   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26461   if test -f "$ltmain_in"; then
26462     test -f Makefile && make "$ltmain"
26463   fi
26464 fi
26465
26466
26467 ac_ext=c
26468 ac_cpp='$CPP $CPPFLAGS'
26469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26472
26473 CC="$lt_save_CC"
26474
26475         else
26476           tagname=""
26477         fi
26478         ;;
26479
26480       RC)
26481         ac_ext=c
26482 ac_cpp='$CPP $CPPFLAGS'
26483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26486
26487
26488 # Source file extension for RC test sources.
26489 ac_ext=rc
26490
26491 # Object file extension for compiled RC test sources.
26492 objext=o
26493 objext_RC=$objext
26494
26495 # Code to be used in simple compile tests
26496 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26497
26498 # Code to be used in simple link tests
26499 lt_simple_link_test_code="$lt_simple_compile_test_code"
26500
26501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26502
26503 # If no C compiler was specified, use CC.
26504 LTCC=${LTCC-"$CC"}
26505
26506 # If no C compiler flags were specified, use CFLAGS.
26507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26508
26509 # Allow CC to be a program name with arguments.
26510 compiler=$CC
26511
26512
26513 # save warnings/boilerplate of simple test code
26514 ac_outfile=conftest.$ac_objext
26515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26517 _lt_compiler_boilerplate=`cat conftest.err`
26518 $rm conftest*
26519
26520 ac_outfile=conftest.$ac_objext
26521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26523 _lt_linker_boilerplate=`cat conftest.err`
26524 $rm conftest*
26525
26526
26527 # Allow CC to be a program name with arguments.
26528 lt_save_CC="$CC"
26529 CC=${RC-"windres"}
26530 compiler=$CC
26531 compiler_RC=$CC
26532 for cc_temp in $compiler""; do
26533   case $cc_temp in
26534     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26535     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26536     \-*) ;;
26537     *) break;;
26538   esac
26539 done
26540 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26541
26542 lt_cv_prog_compiler_c_o_RC=yes
26543
26544 # The else clause should only fire when bootstrapping the
26545 # libtool distribution, otherwise you forgot to ship ltmain.sh
26546 # with your package, and you will get complaints that there are
26547 # no rules to generate ltmain.sh.
26548 if test -f "$ltmain"; then
26549   # See if we are running on zsh, and set the options which allow our commands through
26550   # without removal of \ escapes.
26551   if test -n "${ZSH_VERSION+set}" ; then
26552     setopt NO_GLOB_SUBST
26553   fi
26554   # Now quote all the things that may contain metacharacters while being
26555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26556   # variables and quote the copies for generation of the libtool script.
26557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26558     SED SHELL STRIP \
26559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26561     deplibs_check_method reload_flag reload_cmds need_locks \
26562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26563     lt_cv_sys_global_symbol_to_c_name_address \
26564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26565     old_postinstall_cmds old_postuninstall_cmds \
26566     compiler_RC \
26567     CC_RC \
26568     LD_RC \
26569     lt_prog_compiler_wl_RC \
26570     lt_prog_compiler_pic_RC \
26571     lt_prog_compiler_static_RC \
26572     lt_prog_compiler_no_builtin_flag_RC \
26573     export_dynamic_flag_spec_RC \
26574     thread_safe_flag_spec_RC \
26575     whole_archive_flag_spec_RC \
26576     enable_shared_with_static_runtimes_RC \
26577     old_archive_cmds_RC \
26578     old_archive_from_new_cmds_RC \
26579     predep_objects_RC \
26580     postdep_objects_RC \
26581     predeps_RC \
26582     postdeps_RC \
26583     compiler_lib_search_path_RC \
26584     archive_cmds_RC \
26585     archive_expsym_cmds_RC \
26586     postinstall_cmds_RC \
26587     postuninstall_cmds_RC \
26588     old_archive_from_expsyms_cmds_RC \
26589     allow_undefined_flag_RC \
26590     no_undefined_flag_RC \
26591     export_symbols_cmds_RC \
26592     hardcode_libdir_flag_spec_RC \
26593     hardcode_libdir_flag_spec_ld_RC \
26594     hardcode_libdir_separator_RC \
26595     hardcode_automatic_RC \
26596     module_cmds_RC \
26597     module_expsym_cmds_RC \
26598     lt_cv_prog_compiler_c_o_RC \
26599     exclude_expsyms_RC \
26600     include_expsyms_RC; do
26601
26602     case $var in
26603     old_archive_cmds_RC | \
26604     old_archive_from_new_cmds_RC | \
26605     archive_cmds_RC | \
26606     archive_expsym_cmds_RC | \
26607     module_cmds_RC | \
26608     module_expsym_cmds_RC | \
26609     old_archive_from_expsyms_cmds_RC | \
26610     export_symbols_cmds_RC | \
26611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26612     postinstall_cmds | postuninstall_cmds | \
26613     old_postinstall_cmds | old_postuninstall_cmds | \
26614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26615       # Double-quote double-evaled strings.
26616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26617       ;;
26618     *)
26619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26620       ;;
26621     esac
26622   done
26623
26624   case $lt_echo in
26625   *'\$0 --fallback-echo"')
26626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26627     ;;
26628   esac
26629
26630 cfgfile="$ofile"
26631
26632   cat <<__EOF__ >> "$cfgfile"
26633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26634
26635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26636
26637 # Shell to use when invoking shell scripts.
26638 SHELL=$lt_SHELL
26639
26640 # Whether or not to build shared libraries.
26641 build_libtool_libs=$enable_shared
26642
26643 # Whether or not to build static libraries.
26644 build_old_libs=$enable_static
26645
26646 # Whether or not to add -lc for building shared libraries.
26647 build_libtool_need_lc=$archive_cmds_need_lc_RC
26648
26649 # Whether or not to disallow shared libs when runtime libs are static
26650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26651
26652 # Whether or not to optimize for fast installation.
26653 fast_install=$enable_fast_install
26654
26655 # The host system.
26656 host_alias=$host_alias
26657 host=$host
26658 host_os=$host_os
26659
26660 # The build system.
26661 build_alias=$build_alias
26662 build=$build
26663 build_os=$build_os
26664
26665 # An echo program that does not interpret backslashes.
26666 echo=$lt_echo
26667
26668 # The archiver.
26669 AR=$lt_AR
26670 AR_FLAGS=$lt_AR_FLAGS
26671
26672 # A C compiler.
26673 LTCC=$lt_LTCC
26674
26675 # LTCC compiler flags.
26676 LTCFLAGS=$lt_LTCFLAGS
26677
26678 # A language-specific compiler.
26679 CC=$lt_compiler_RC
26680
26681 # Is the compiler the GNU C compiler?
26682 with_gcc=$GCC_RC
26683
26684 # An ERE matcher.
26685 EGREP=$lt_EGREP
26686
26687 # The linker used to build libraries.
26688 LD=$lt_LD_RC
26689
26690 # Whether we need hard or soft links.
26691 LN_S=$lt_LN_S
26692
26693 # A BSD-compatible nm program.
26694 NM=$lt_NM
26695
26696 # A symbol stripping program
26697 STRIP=$lt_STRIP
26698
26699 # Used to examine libraries when file_magic_cmd begins "file"
26700 MAGIC_CMD=$MAGIC_CMD
26701
26702 # Used on cygwin: DLL creation program.
26703 DLLTOOL="$DLLTOOL"
26704
26705 # Used on cygwin: object dumper.
26706 OBJDUMP="$OBJDUMP"
26707
26708 # Used on cygwin: assembler.
26709 AS="$AS"
26710
26711 # The name of the directory that contains temporary libtool files.
26712 objdir=$objdir
26713
26714 # How to create reloadable object files.
26715 reload_flag=$lt_reload_flag
26716 reload_cmds=$lt_reload_cmds
26717
26718 # How to pass a linker flag through the compiler.
26719 wl=$lt_lt_prog_compiler_wl_RC
26720
26721 # Object file suffix (normally "o").
26722 objext="$ac_objext"
26723
26724 # Old archive suffix (normally "a").
26725 libext="$libext"
26726
26727 # Shared library suffix (normally ".so").
26728 shrext_cmds='$shrext_cmds'
26729
26730 # Executable file suffix (normally "").
26731 exeext="$exeext"
26732
26733 # Additional compiler flags for building library objects.
26734 pic_flag=$lt_lt_prog_compiler_pic_RC
26735 pic_mode=$pic_mode
26736
26737 # What is the maximum length of a command?
26738 max_cmd_len=$lt_cv_sys_max_cmd_len
26739
26740 # Does compiler simultaneously support -c and -o options?
26741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26742
26743 # Must we lock files when doing compilation?
26744 need_locks=$lt_need_locks
26745
26746 # Do we need the lib prefix for modules?
26747 need_lib_prefix=$need_lib_prefix
26748
26749 # Do we need a version for libraries?
26750 need_version=$need_version
26751
26752 # Whether dlopen is supported.
26753 dlopen_support=$enable_dlopen
26754
26755 # Whether dlopen of programs is supported.
26756 dlopen_self=$enable_dlopen_self
26757
26758 # Whether dlopen of statically linked programs is supported.
26759 dlopen_self_static=$enable_dlopen_self_static
26760
26761 # Compiler flag to prevent dynamic linking.
26762 link_static_flag=$lt_lt_prog_compiler_static_RC
26763
26764 # Compiler flag to turn off builtin functions.
26765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26766
26767 # Compiler flag to allow reflexive dlopens.
26768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26769
26770 # Compiler flag to generate shared objects directly from archives.
26771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26772
26773 # Compiler flag to generate thread-safe objects.
26774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26775
26776 # Library versioning type.
26777 version_type=$version_type
26778
26779 # Format of library name prefix.
26780 libname_spec=$lt_libname_spec
26781
26782 # List of archive names.  First name is the real one, the rest are links.
26783 # The last name is the one that the linker finds with -lNAME.
26784 library_names_spec=$lt_library_names_spec
26785
26786 # The coded name of the library, if different from the real name.
26787 soname_spec=$lt_soname_spec
26788
26789 # Commands used to build and install an old-style archive.
26790 RANLIB=$lt_RANLIB
26791 old_archive_cmds=$lt_old_archive_cmds_RC
26792 old_postinstall_cmds=$lt_old_postinstall_cmds
26793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26794
26795 # Create an old-style archive from a shared archive.
26796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26797
26798 # Create a temporary old-style archive to link instead of a shared archive.
26799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26800
26801 # Commands used to build and install a shared archive.
26802 archive_cmds=$lt_archive_cmds_RC
26803 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26804 postinstall_cmds=$lt_postinstall_cmds
26805 postuninstall_cmds=$lt_postuninstall_cmds
26806
26807 # Commands used to build a loadable module (assumed same as above if empty)
26808 module_cmds=$lt_module_cmds_RC
26809 module_expsym_cmds=$lt_module_expsym_cmds_RC
26810
26811 # Commands to strip libraries.
26812 old_striplib=$lt_old_striplib
26813 striplib=$lt_striplib
26814
26815 # Dependencies to place before the objects being linked to create a
26816 # shared library.
26817 predep_objects=$lt_predep_objects_RC
26818
26819 # Dependencies to place after the objects being linked to create a
26820 # shared library.
26821 postdep_objects=$lt_postdep_objects_RC
26822
26823 # Dependencies to place before the objects being linked to create a
26824 # shared library.
26825 predeps=$lt_predeps_RC
26826
26827 # Dependencies to place after the objects being linked to create a
26828 # shared library.
26829 postdeps=$lt_postdeps_RC
26830
26831 # The library search path used internally by the compiler when linking
26832 # a shared library.
26833 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26834
26835 # Method to check whether dependent libraries are shared objects.
26836 deplibs_check_method=$lt_deplibs_check_method
26837
26838 # Command to use when deplibs_check_method == file_magic.
26839 file_magic_cmd=$lt_file_magic_cmd
26840
26841 # Flag that allows shared libraries with undefined symbols to be built.
26842 allow_undefined_flag=$lt_allow_undefined_flag_RC
26843
26844 # Flag that forces no undefined symbols.
26845 no_undefined_flag=$lt_no_undefined_flag_RC
26846
26847 # Commands used to finish a libtool library installation in a directory.
26848 finish_cmds=$lt_finish_cmds
26849
26850 # Same as above, but a single script fragment to be evaled but not shown.
26851 finish_eval=$lt_finish_eval
26852
26853 # Take the output of nm and produce a listing of raw symbols and C names.
26854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26855
26856 # Transform the output of nm in a proper C declaration
26857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26858
26859 # Transform the output of nm in a C name address pair
26860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26861
26862 # This is the shared library runtime path variable.
26863 runpath_var=$runpath_var
26864
26865 # This is the shared library path variable.
26866 shlibpath_var=$shlibpath_var
26867
26868 # Is shlibpath searched before the hard-coded library search path?
26869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26870
26871 # How to hardcode a shared library path into an executable.
26872 hardcode_action=$hardcode_action_RC
26873
26874 # Whether we should hardcode library paths into libraries.
26875 hardcode_into_libs=$hardcode_into_libs
26876
26877 # Flag to hardcode \$libdir into a binary during linking.
26878 # This must work even if \$libdir does not exist.
26879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26880
26881 # If ld is used when linking, flag to hardcode \$libdir into
26882 # a binary during linking. This must work even if \$libdir does
26883 # not exist.
26884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26885
26886 # Whether we need a single -rpath flag with a separated argument.
26887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26888
26889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26890 # resulting binary.
26891 hardcode_direct=$hardcode_direct_RC
26892
26893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26894 # resulting binary.
26895 hardcode_minus_L=$hardcode_minus_L_RC
26896
26897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26898 # the resulting binary.
26899 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26900
26901 # Set to yes if building a shared library automatically hardcodes DIR into the library
26902 # and all subsequent libraries and executables linked against it.
26903 hardcode_automatic=$hardcode_automatic_RC
26904
26905 # Variables whose values should be saved in libtool wrapper scripts and
26906 # restored at relink time.
26907 variables_saved_for_relink="$variables_saved_for_relink"
26908
26909 # Whether libtool must link a program against all its dependency libraries.
26910 link_all_deplibs=$link_all_deplibs_RC
26911
26912 # Compile-time system search path for libraries
26913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26914
26915 # Run-time system search path for libraries
26916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26917
26918 # Fix the shell variable \$srcfile for the compiler.
26919 fix_srcfile_path="$fix_srcfile_path_RC"
26920
26921 # Set to yes if exported symbols are required.
26922 always_export_symbols=$always_export_symbols_RC
26923
26924 # The commands to list exported symbols.
26925 export_symbols_cmds=$lt_export_symbols_cmds_RC
26926
26927 # The commands to extract the exported symbol list from a shared archive.
26928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26929
26930 # Symbols that should not be listed in the preloaded symbols.
26931 exclude_expsyms=$lt_exclude_expsyms_RC
26932
26933 # Symbols that must always be exported.
26934 include_expsyms=$lt_include_expsyms_RC
26935
26936 # ### END LIBTOOL TAG CONFIG: $tagname
26937
26938 __EOF__
26939
26940
26941 else
26942   # If there is no Makefile yet, we rely on a make rule to execute
26943   # `config.status --recheck' to rerun these tests and create the
26944   # libtool script then.
26945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26946   if test -f "$ltmain_in"; then
26947     test -f Makefile && make "$ltmain"
26948   fi
26949 fi
26950
26951
26952 ac_ext=c
26953 ac_cpp='$CPP $CPPFLAGS'
26954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26957
26958 CC="$lt_save_CC"
26959
26960         ;;
26961
26962       *)
26963         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26964 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26965    { (exit 1); exit 1; }; }
26966         ;;
26967       esac
26968
26969       # Append the new tag name to the list of available tags.
26970       if test -n "$tagname" ; then
26971       available_tags="$available_tags $tagname"
26972     fi
26973     fi
26974   done
26975   IFS="$lt_save_ifs"
26976
26977   # Now substitute the updated list of available tags.
26978   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26979     mv "${ofile}T" "$ofile"
26980     chmod +x "$ofile"
26981   else
26982     rm -f "${ofile}T"
26983     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26984 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26985    { (exit 1); exit 1; }; }
26986   fi
26987 fi
26988
26989
26990
26991 # This can be used to rebuild libtool when needed
26992 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26993
26994 # Always use our own libtool.
26995 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26996
26997 # Prevent multiple expansion
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019 if test "$lt_cv_dlopen_self" = "yes" ; then
27020
27021 cat >>confdefs.h <<\_ACEOF
27022 #define CAN_DLOPEN_SELF 1
27023 _ACEOF
27024
27025 fi
27026
27027 if test "$WITH_LLVMGCCDIR" = "default" ; then
27028   LLVMGCC="llvm-gcc${EXEEXT}"
27029   LLVMGXX="llvm-g++${EXEEXT}"
27030   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27031 set dummy $LLVMGCC; ac_word=$2
27032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27034 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27035   echo $ECHO_N "(cached) $ECHO_C" >&6
27036 else
27037   case $LLVMGCC in
27038   [\\/]* | ?:[\\/]*)
27039   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27040   ;;
27041   *)
27042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043 for as_dir in $PATH
27044 do
27045   IFS=$as_save_IFS
27046   test -z "$as_dir" && as_dir=.
27047   for ac_exec_ext in '' $ac_executable_extensions; do
27048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27049     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27051     break 2
27052   fi
27053 done
27054 done
27055 IFS=$as_save_IFS
27056
27057   ;;
27058 esac
27059 fi
27060 LLVMGCC=$ac_cv_path_LLVMGCC
27061 if test -n "$LLVMGCC"; then
27062   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27063 echo "${ECHO_T}$LLVMGCC" >&6; }
27064 else
27065   { echo "$as_me:$LINENO: result: no" >&5
27066 echo "${ECHO_T}no" >&6; }
27067 fi
27068
27069
27070   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27071 set dummy $LLVMGXX; ac_word=$2
27072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27074 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077   case $LLVMGXX in
27078   [\\/]* | ?:[\\/]*)
27079   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27080   ;;
27081   *)
27082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27083 for as_dir in $PATH
27084 do
27085   IFS=$as_save_IFS
27086   test -z "$as_dir" && as_dir=.
27087   for ac_exec_ext in '' $ac_executable_extensions; do
27088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27089     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27091     break 2
27092   fi
27093 done
27094 done
27095 IFS=$as_save_IFS
27096
27097   ;;
27098 esac
27099 fi
27100 LLVMGXX=$ac_cv_path_LLVMGXX
27101 if test -n "$LLVMGXX"; then
27102   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27103 echo "${ECHO_T}$LLVMGXX" >&6; }
27104 else
27105   { echo "$as_me:$LINENO: result: no" >&5
27106 echo "${ECHO_T}no" >&6; }
27107 fi
27108
27109
27110 else
27111   if test -z "$LLVMGCC"; then
27112     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27113   fi
27114   if test -z "$LLVMGXX"; then
27115     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27116   fi
27117   LLVMGCC=$LLVMGCC
27118
27119   LLVMGXX=$LLVMGXX
27120
27121 fi
27122
27123 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27124 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27125
27126 ICC=no
27127 IXX=no
27128 case $CC in
27129   icc*|icpc*)
27130     ICC=yes
27131     IXX=yes
27132     ;;
27133    *)
27134     ;;
27135 esac
27136
27137 if test "$GCC" != "yes" && test "$ICC" != "yes"
27138 then
27139   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27140 echo "$as_me: error: gcc|icc required but not found" >&2;}
27141    { (exit 1); exit 1; }; }
27142 fi
27143
27144 if test "$GXX" != "yes" && test "$IXX" != "yes"
27145 then
27146   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27147 echo "$as_me: error: g++|icc required but not found" >&2;}
27148    { (exit 1); exit 1; }; }
27149 fi
27150
27151 if test "$GCC" = "yes"
27152 then
27153   cat >conftest.$ac_ext <<_ACEOF
27154 #if !defined(__GNUC__) || __GNUC__ < 3
27155 #error Unsupported GCC version
27156 #endif
27157
27158 _ACEOF
27159 rm -f conftest.$ac_objext
27160 if { (ac_try="$ac_compile"
27161 case "(($ac_try" in
27162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163   *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166   (eval "$ac_compile") 2>conftest.er1
27167   ac_status=$?
27168   grep -v '^ *+' conftest.er1 >conftest.err
27169   rm -f conftest.er1
27170   cat conftest.err >&5
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); } &&
27173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27174   { (case "(($ac_try" in
27175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176   *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179   (eval "$ac_try") 2>&5
27180   ac_status=$?
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); }; } &&
27183          { ac_try='test -s conftest.$ac_objext'
27184   { (case "(($ac_try" in
27185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186   *) ac_try_echo=$ac_try;;
27187 esac
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189   (eval "$ac_try") 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; }; then
27193   :
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27199 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27200    { (exit 1); exit 1; }; }
27201 fi
27202
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 fi
27205
27206 if test -z "$llvm_cv_gnu_make_command"
27207 then
27208   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27209 echo "$as_me: error: GNU Make required but not found" >&2;}
27210    { (exit 1); exit 1; }; }
27211 fi
27212
27213 { echo "$as_me:$LINENO: result: ok" >&5
27214 echo "${ECHO_T}ok" >&6; }
27215
27216
27217
27218 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27219 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27220 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27221   echo $ECHO_N "(cached) $ECHO_C" >&6
27222 else
27223   ac_check_lib_save_LIBS=$LIBS
27224 LIBS="-lelf  $LIBS"
27225 cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h.  */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h.  */
27231
27232 /* Override any GCC internal prototype to avoid an error.
27233    Use char because int might match the return type of a GCC
27234    builtin and then its argument prototype would still apply.  */
27235 #ifdef __cplusplus
27236 extern "C"
27237 #endif
27238 char elf_begin ();
27239 int
27240 main ()
27241 {
27242 return elf_begin ();
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (ac_try="$ac_link"
27249 case "(($ac_try" in
27250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251   *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254   (eval "$ac_link") 2>conftest.er1
27255   ac_status=$?
27256   grep -v '^ *+' conftest.er1 >conftest.err
27257   rm -f conftest.er1
27258   cat conftest.err >&5
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); } &&
27261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27262   { (case "(($ac_try" in
27263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264   *) ac_try_echo=$ac_try;;
27265 esac
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267   (eval "$ac_try") 2>&5
27268   ac_status=$?
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); }; } &&
27271          { ac_try='test -s conftest$ac_exeext'
27272   { (case "(($ac_try" in
27273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274   *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277   (eval "$ac_try") 2>&5
27278   ac_status=$?
27279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); }; }; then
27281   ac_cv_lib_elf_elf_begin=yes
27282 else
27283   echo "$as_me: failed program was:" >&5
27284 sed 's/^/| /' conftest.$ac_ext >&5
27285
27286         ac_cv_lib_elf_elf_begin=no
27287 fi
27288
27289 rm -f core conftest.err conftest.$ac_objext \
27290       conftest$ac_exeext conftest.$ac_ext
27291 LIBS=$ac_check_lib_save_LIBS
27292 fi
27293 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27294 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27295 if test $ac_cv_lib_elf_elf_begin = yes; then
27296   cat >>confdefs.h <<_ACEOF
27297 #define HAVE_LIBELF 1
27298 _ACEOF
27299
27300   LIBS="-lelf $LIBS"
27301
27302 fi
27303
27304
27305 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27306 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27307 if test "${ac_cv_lib_m_sin+set}" = set; then
27308   echo $ECHO_N "(cached) $ECHO_C" >&6
27309 else
27310   ac_check_lib_save_LIBS=$LIBS
27311 LIBS="-lm  $LIBS"
27312 cat >conftest.$ac_ext <<_ACEOF
27313 /* confdefs.h.  */
27314 _ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h.  */
27318
27319 /* Override any GCC internal prototype to avoid an error.
27320    Use char because int might match the return type of a GCC
27321    builtin and then its argument prototype would still apply.  */
27322 #ifdef __cplusplus
27323 extern "C"
27324 #endif
27325 char sin ();
27326 int
27327 main ()
27328 {
27329 return sin ();
27330   ;
27331   return 0;
27332 }
27333 _ACEOF
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (ac_try="$ac_link"
27336 case "(($ac_try" in
27337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338   *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341   (eval "$ac_link") 2>conftest.er1
27342   ac_status=$?
27343   grep -v '^ *+' conftest.er1 >conftest.err
27344   rm -f conftest.er1
27345   cat conftest.err >&5
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } &&
27348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27349   { (case "(($ac_try" in
27350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351   *) ac_try_echo=$ac_try;;
27352 esac
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354   (eval "$ac_try") 2>&5
27355   ac_status=$?
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); }; } &&
27358          { ac_try='test -s conftest$ac_exeext'
27359   { (case "(($ac_try" in
27360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361   *) ac_try_echo=$ac_try;;
27362 esac
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364   (eval "$ac_try") 2>&5
27365   ac_status=$?
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); }; }; then
27368   ac_cv_lib_m_sin=yes
27369 else
27370   echo "$as_me: failed program was:" >&5
27371 sed 's/^/| /' conftest.$ac_ext >&5
27372
27373         ac_cv_lib_m_sin=no
27374 fi
27375
27376 rm -f core conftest.err conftest.$ac_objext \
27377       conftest$ac_exeext conftest.$ac_ext
27378 LIBS=$ac_check_lib_save_LIBS
27379 fi
27380 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27381 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27382 if test $ac_cv_lib_m_sin = yes; then
27383   cat >>confdefs.h <<_ACEOF
27384 #define HAVE_LIBM 1
27385 _ACEOF
27386
27387   LIBS="-lm $LIBS"
27388
27389 fi
27390
27391 if test "$llvm_cv_os_type" = "MingW" ; then
27392
27393 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27394 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27395 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27396   echo $ECHO_N "(cached) $ECHO_C" >&6
27397 else
27398   ac_check_lib_save_LIBS=$LIBS
27399 LIBS="-limagehlp  $LIBS"
27400 cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h.  */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h.  */
27406
27407
27408 int
27409 main ()
27410 {
27411 return main ();
27412   ;
27413   return 0;
27414 }
27415 _ACEOF
27416 rm -f conftest.$ac_objext conftest$ac_exeext
27417 if { (ac_try="$ac_link"
27418 case "(($ac_try" in
27419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420   *) ac_try_echo=$ac_try;;
27421 esac
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423   (eval "$ac_link") 2>conftest.er1
27424   ac_status=$?
27425   grep -v '^ *+' conftest.er1 >conftest.err
27426   rm -f conftest.er1
27427   cat conftest.err >&5
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); } &&
27430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27431   { (case "(($ac_try" in
27432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433   *) ac_try_echo=$ac_try;;
27434 esac
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436   (eval "$ac_try") 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; } &&
27440          { ac_try='test -s conftest$ac_exeext'
27441   { (case "(($ac_try" in
27442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27443   *) ac_try_echo=$ac_try;;
27444 esac
27445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27446   (eval "$ac_try") 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; }; then
27450   ac_cv_lib_imagehlp_main=yes
27451 else
27452   echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27454
27455         ac_cv_lib_imagehlp_main=no
27456 fi
27457
27458 rm -f core conftest.err conftest.$ac_objext \
27459       conftest$ac_exeext conftest.$ac_ext
27460 LIBS=$ac_check_lib_save_LIBS
27461 fi
27462 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27463 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27464 if test $ac_cv_lib_imagehlp_main = yes; then
27465   cat >>confdefs.h <<_ACEOF
27466 #define HAVE_LIBIMAGEHLP 1
27467 _ACEOF
27468
27469   LIBS="-limagehlp $LIBS"
27470
27471 fi
27472
27473
27474 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27475 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27476 if test "${ac_cv_lib_psapi_main+set}" = set; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 else
27479   ac_check_lib_save_LIBS=$LIBS
27480 LIBS="-lpsapi  $LIBS"
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h.  */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h.  */
27487
27488
27489 int
27490 main ()
27491 {
27492 return main ();
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (ac_try="$ac_link"
27499 case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504   (eval "$ac_link") 2>conftest.er1
27505   ac_status=$?
27506   grep -v '^ *+' conftest.er1 >conftest.err
27507   rm -f conftest.er1
27508   cat conftest.err >&5
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); } &&
27511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27512   { (case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_try") 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; } &&
27521          { ac_try='test -s conftest$ac_exeext'
27522   { (case "(($ac_try" in
27523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524   *) ac_try_echo=$ac_try;;
27525 esac
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527   (eval "$ac_try") 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   ac_cv_lib_psapi_main=yes
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536         ac_cv_lib_psapi_main=no
27537 fi
27538
27539 rm -f core conftest.err conftest.$ac_objext \
27540       conftest$ac_exeext conftest.$ac_ext
27541 LIBS=$ac_check_lib_save_LIBS
27542 fi
27543 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27544 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27545 if test $ac_cv_lib_psapi_main = yes; then
27546   cat >>confdefs.h <<_ACEOF
27547 #define HAVE_LIBPSAPI 1
27548 _ACEOF
27549
27550   LIBS="-lpsapi $LIBS"
27551
27552 fi
27553
27554 fi
27555
27556 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27557 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27558 if test "${ac_cv_search_dlopen+set}" = set; then
27559   echo $ECHO_N "(cached) $ECHO_C" >&6
27560 else
27561   ac_func_search_save_LIBS=$LIBS
27562 cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568
27569 /* Override any GCC internal prototype to avoid an error.
27570    Use char because int might match the return type of a GCC
27571    builtin and then its argument prototype would still apply.  */
27572 #ifdef __cplusplus
27573 extern "C"
27574 #endif
27575 char dlopen ();
27576 int
27577 main ()
27578 {
27579 return dlopen ();
27580   ;
27581   return 0;
27582 }
27583 _ACEOF
27584 for ac_lib in '' dl; do
27585   if test -z "$ac_lib"; then
27586     ac_res="none required"
27587   else
27588     ac_res=-l$ac_lib
27589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27590   fi
27591   rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (ac_try="$ac_link"
27593 case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_link") 2>conftest.er1
27599   ac_status=$?
27600   grep -v '^ *+' conftest.er1 >conftest.err
27601   rm -f conftest.er1
27602   cat conftest.err >&5
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); } &&
27605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606   { (case "(($ac_try" in
27607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608   *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611   (eval "$ac_try") 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; } &&
27615          { ac_try='test -s conftest$ac_exeext'
27616   { (case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_try") 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; }; then
27625   ac_cv_search_dlopen=$ac_res
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630
27631 fi
27632
27633 rm -f core conftest.err conftest.$ac_objext \
27634       conftest$ac_exeext
27635   if test "${ac_cv_search_dlopen+set}" = set; then
27636   break
27637 fi
27638 done
27639 if test "${ac_cv_search_dlopen+set}" = set; then
27640   :
27641 else
27642   ac_cv_search_dlopen=no
27643 fi
27644 rm conftest.$ac_ext
27645 LIBS=$ac_func_search_save_LIBS
27646 fi
27647 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27648 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27649 ac_res=$ac_cv_search_dlopen
27650 if test "$ac_res" != no; then
27651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27652
27653 cat >>confdefs.h <<\_ACEOF
27654 #define HAVE_DLOPEN 1
27655 _ACEOF
27656
27657 else
27658   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27659 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27660 fi
27661
27662
27663 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27664 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27665 if test "${ac_cv_search_mallinfo+set}" = set; then
27666   echo $ECHO_N "(cached) $ECHO_C" >&6
27667 else
27668   ac_func_search_save_LIBS=$LIBS
27669 cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675
27676 /* Override any GCC internal prototype to avoid an error.
27677    Use char because int might match the return type of a GCC
27678    builtin and then its argument prototype would still apply.  */
27679 #ifdef __cplusplus
27680 extern "C"
27681 #endif
27682 char mallinfo ();
27683 int
27684 main ()
27685 {
27686 return mallinfo ();
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
27691 for ac_lib in '' malloc; do
27692   if test -z "$ac_lib"; then
27693     ac_res="none required"
27694   else
27695     ac_res=-l$ac_lib
27696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27697   fi
27698   rm -f conftest.$ac_objext conftest$ac_exeext
27699 if { (ac_try="$ac_link"
27700 case "(($ac_try" in
27701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702   *) ac_try_echo=$ac_try;;
27703 esac
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705   (eval "$ac_link") 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } &&
27712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27713   { (case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_try") 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); }; } &&
27722          { ac_try='test -s conftest$ac_exeext'
27723   { (case "(($ac_try" in
27724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725   *) ac_try_echo=$ac_try;;
27726 esac
27727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728   (eval "$ac_try") 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; }; then
27732   ac_cv_search_mallinfo=$ac_res
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737
27738 fi
27739
27740 rm -f core conftest.err conftest.$ac_objext \
27741       conftest$ac_exeext
27742   if test "${ac_cv_search_mallinfo+set}" = set; then
27743   break
27744 fi
27745 done
27746 if test "${ac_cv_search_mallinfo+set}" = set; then
27747   :
27748 else
27749   ac_cv_search_mallinfo=no
27750 fi
27751 rm conftest.$ac_ext
27752 LIBS=$ac_func_search_save_LIBS
27753 fi
27754 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27755 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27756 ac_res=$ac_cv_search_mallinfo
27757 if test "$ac_res" != no; then
27758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27759
27760 cat >>confdefs.h <<\_ACEOF
27761 #define HAVE_MALLINFO 1
27762 _ACEOF
27763
27764 fi
27765
27766
27767 if test "$ENABLE_THREADS" -eq 1 ; then
27768
27769 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27770 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27771 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27772   echo $ECHO_N "(cached) $ECHO_C" >&6
27773 else
27774   ac_check_lib_save_LIBS=$LIBS
27775 LIBS="-lpthread  $LIBS"
27776 cat >conftest.$ac_ext <<_ACEOF
27777 /* confdefs.h.  */
27778 _ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h.  */
27782
27783 /* Override any GCC internal prototype to avoid an error.
27784    Use char because int might match the return type of a GCC
27785    builtin and then its argument prototype would still apply.  */
27786 #ifdef __cplusplus
27787 extern "C"
27788 #endif
27789 char pthread_mutex_init ();
27790 int
27791 main ()
27792 {
27793 return pthread_mutex_init ();
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 rm -f conftest.$ac_objext conftest$ac_exeext
27799 if { (ac_try="$ac_link"
27800 case "(($ac_try" in
27801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802   *) ac_try_echo=$ac_try;;
27803 esac
27804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27805   (eval "$ac_link") 2>conftest.er1
27806   ac_status=$?
27807   grep -v '^ *+' conftest.er1 >conftest.err
27808   rm -f conftest.er1
27809   cat conftest.err >&5
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); } &&
27812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27813   { (case "(($ac_try" in
27814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27815   *) ac_try_echo=$ac_try;;
27816 esac
27817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27818   (eval "$ac_try") 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; } &&
27822          { ac_try='test -s conftest$ac_exeext'
27823   { (case "(($ac_try" in
27824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825   *) ac_try_echo=$ac_try;;
27826 esac
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828   (eval "$ac_try") 2>&5
27829   ac_status=$?
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); }; }; then
27832   ac_cv_lib_pthread_pthread_mutex_init=yes
27833 else
27834   echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27836
27837         ac_cv_lib_pthread_pthread_mutex_init=no
27838 fi
27839
27840 rm -f core conftest.err conftest.$ac_objext \
27841       conftest$ac_exeext conftest.$ac_ext
27842 LIBS=$ac_check_lib_save_LIBS
27843 fi
27844 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27845 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27846 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27847   cat >>confdefs.h <<_ACEOF
27848 #define HAVE_LIBPTHREAD 1
27849 _ACEOF
27850
27851   LIBS="-lpthread $LIBS"
27852
27853 fi
27854
27855   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27856 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27857 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27858   echo $ECHO_N "(cached) $ECHO_C" >&6
27859 else
27860   ac_func_search_save_LIBS=$LIBS
27861 cat >conftest.$ac_ext <<_ACEOF
27862 /* confdefs.h.  */
27863 _ACEOF
27864 cat confdefs.h >>conftest.$ac_ext
27865 cat >>conftest.$ac_ext <<_ACEOF
27866 /* end confdefs.h.  */
27867
27868 /* Override any GCC internal prototype to avoid an error.
27869    Use char because int might match the return type of a GCC
27870    builtin and then its argument prototype would still apply.  */
27871 #ifdef __cplusplus
27872 extern "C"
27873 #endif
27874 char pthread_mutex_lock ();
27875 int
27876 main ()
27877 {
27878 return pthread_mutex_lock ();
27879   ;
27880   return 0;
27881 }
27882 _ACEOF
27883 for ac_lib in '' pthread; do
27884   if test -z "$ac_lib"; then
27885     ac_res="none required"
27886   else
27887     ac_res=-l$ac_lib
27888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27889   fi
27890   rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894   *) ac_try_echo=$ac_try;;
27895 esac
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897   (eval "$ac_link") 2>conftest.er1
27898   ac_status=$?
27899   grep -v '^ *+' conftest.er1 >conftest.err
27900   rm -f conftest.er1
27901   cat conftest.err >&5
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); } &&
27904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905   { (case "(($ac_try" in
27906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907   *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910   (eval "$ac_try") 2>&5
27911   ac_status=$?
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); }; } &&
27914          { ac_try='test -s conftest$ac_exeext'
27915   { (case "(($ac_try" in
27916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917   *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920   (eval "$ac_try") 2>&5
27921   ac_status=$?
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); }; }; then
27924   ac_cv_search_pthread_mutex_lock=$ac_res
27925 else
27926   echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.$ac_ext >&5
27928
27929
27930 fi
27931
27932 rm -f core conftest.err conftest.$ac_objext \
27933       conftest$ac_exeext
27934   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27935   break
27936 fi
27937 done
27938 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27939   :
27940 else
27941   ac_cv_search_pthread_mutex_lock=no
27942 fi
27943 rm conftest.$ac_ext
27944 LIBS=$ac_func_search_save_LIBS
27945 fi
27946 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27947 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27948 ac_res=$ac_cv_search_pthread_mutex_lock
27949 if test "$ac_res" != no; then
27950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27951
27952 cat >>confdefs.h <<\_ACEOF
27953 #define HAVE_PTHREAD_MUTEX_LOCK 1
27954 _ACEOF
27955
27956 fi
27957
27958 fi
27959
27960
27961 # Check whether --with-udis86 was given.
27962 if test "${with_udis86+set}" = set; then
27963   withval=$with_udis86;
27964       USE_UDIS86=1
27965
27966       case "$withval" in
27967         /usr/lib|yes) ;;
27968         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27969       esac
27970
27971 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27972 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27973 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27974   echo $ECHO_N "(cached) $ECHO_C" >&6
27975 else
27976   ac_check_lib_save_LIBS=$LIBS
27977 LIBS="-ludis86  $LIBS"
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984
27985 /* Override any GCC internal prototype to avoid an error.
27986    Use char because int might match the return type of a GCC
27987    builtin and then its argument prototype would still apply.  */
27988 #ifdef __cplusplus
27989 extern "C"
27990 #endif
27991 char ud_init ();
27992 int
27993 main ()
27994 {
27995 return ud_init ();
27996   ;
27997   return 0;
27998 }
27999 _ACEOF
28000 rm -f conftest.$ac_objext conftest$ac_exeext
28001 if { (ac_try="$ac_link"
28002 case "(($ac_try" in
28003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004   *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007   (eval "$ac_link") 2>conftest.er1
28008   ac_status=$?
28009   grep -v '^ *+' conftest.er1 >conftest.err
28010   rm -f conftest.er1
28011   cat conftest.err >&5
28012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013   (exit $ac_status); } &&
28014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28015   { (case "(($ac_try" in
28016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017   *) ac_try_echo=$ac_try;;
28018 esac
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020   (eval "$ac_try") 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); }; } &&
28024          { ac_try='test -s conftest$ac_exeext'
28025   { (case "(($ac_try" in
28026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027   *) ac_try_echo=$ac_try;;
28028 esac
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030   (eval "$ac_try") 2>&5
28031   ac_status=$?
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); }; }; then
28034   ac_cv_lib_udis86_ud_init=yes
28035 else
28036   echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28038
28039         ac_cv_lib_udis86_ud_init=no
28040 fi
28041
28042 rm -f core conftest.err conftest.$ac_objext \
28043       conftest$ac_exeext conftest.$ac_ext
28044 LIBS=$ac_check_lib_save_LIBS
28045 fi
28046 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28047 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28048 if test $ac_cv_lib_udis86_ud_init = yes; then
28049   cat >>confdefs.h <<_ACEOF
28050 #define HAVE_LIBUDIS86 1
28051 _ACEOF
28052
28053   LIBS="-ludis86 $LIBS"
28054
28055 else
28056
28057         echo "Error! You need to have libudis86 around."
28058         exit -1
28059
28060 fi
28061
28062
28063 else
28064   USE_UDIS86=0
28065
28066 fi
28067
28068
28069 cat >>confdefs.h <<_ACEOF
28070 #define USE_UDIS86 $USE_UDIS86
28071 _ACEOF
28072
28073
28074
28075
28076
28077
28078
28079
28080 ac_header_dirent=no
28081 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28082   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28083 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28084 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28086   echo $ECHO_N "(cached) $ECHO_C" >&6
28087 else
28088   cat >conftest.$ac_ext <<_ACEOF
28089 /* confdefs.h.  */
28090 _ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h.  */
28094 #include <sys/types.h>
28095 #include <$ac_hdr>
28096
28097 int
28098 main ()
28099 {
28100 if ((DIR *) 0)
28101 return 0;
28102   ;
28103   return 0;
28104 }
28105 _ACEOF
28106 rm -f conftest.$ac_objext
28107 if { (ac_try="$ac_compile"
28108 case "(($ac_try" in
28109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110   *) ac_try_echo=$ac_try;;
28111 esac
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113   (eval "$ac_compile") 2>conftest.er1
28114   ac_status=$?
28115   grep -v '^ *+' conftest.er1 >conftest.err
28116   rm -f conftest.er1
28117   cat conftest.err >&5
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); } &&
28120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121   { (case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_try") 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; } &&
28130          { ac_try='test -s conftest.$ac_objext'
28131   { (case "(($ac_try" in
28132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133   *) ac_try_echo=$ac_try;;
28134 esac
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136   (eval "$ac_try") 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; }; then
28140   eval "$as_ac_Header=yes"
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145         eval "$as_ac_Header=no"
28146 fi
28147
28148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28149 fi
28150 ac_res=`eval echo '${'$as_ac_Header'}'`
28151                { echo "$as_me:$LINENO: result: $ac_res" >&5
28152 echo "${ECHO_T}$ac_res" >&6; }
28153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28154   cat >>confdefs.h <<_ACEOF
28155 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28156 _ACEOF
28157
28158 ac_header_dirent=$ac_hdr; break
28159 fi
28160
28161 done
28162 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28163 if test $ac_header_dirent = dirent.h; then
28164   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28166 if test "${ac_cv_search_opendir+set}" = set; then
28167   echo $ECHO_N "(cached) $ECHO_C" >&6
28168 else
28169   ac_func_search_save_LIBS=$LIBS
28170 cat >conftest.$ac_ext <<_ACEOF
28171 /* confdefs.h.  */
28172 _ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h.  */
28176
28177 /* Override any GCC internal prototype to avoid an error.
28178    Use char because int might match the return type of a GCC
28179    builtin and then its argument prototype would still apply.  */
28180 #ifdef __cplusplus
28181 extern "C"
28182 #endif
28183 char opendir ();
28184 int
28185 main ()
28186 {
28187 return opendir ();
28188   ;
28189   return 0;
28190 }
28191 _ACEOF
28192 for ac_lib in '' dir; do
28193   if test -z "$ac_lib"; then
28194     ac_res="none required"
28195   else
28196     ac_res=-l$ac_lib
28197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28198   fi
28199   rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203   *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206   (eval "$ac_link") 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } &&
28213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28214   { (case "(($ac_try" in
28215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216   *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219   (eval "$ac_try") 2>&5
28220   ac_status=$?
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); }; } &&
28223          { ac_try='test -s conftest$ac_exeext'
28224   { (case "(($ac_try" in
28225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226   *) ac_try_echo=$ac_try;;
28227 esac
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229   (eval "$ac_try") 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; }; then
28233   ac_cv_search_opendir=$ac_res
28234 else
28235   echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238
28239 fi
28240
28241 rm -f core conftest.err conftest.$ac_objext \
28242       conftest$ac_exeext
28243   if test "${ac_cv_search_opendir+set}" = set; then
28244   break
28245 fi
28246 done
28247 if test "${ac_cv_search_opendir+set}" = set; then
28248   :
28249 else
28250   ac_cv_search_opendir=no
28251 fi
28252 rm conftest.$ac_ext
28253 LIBS=$ac_func_search_save_LIBS
28254 fi
28255 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28256 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28257 ac_res=$ac_cv_search_opendir
28258 if test "$ac_res" != no; then
28259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28260
28261 fi
28262
28263 else
28264   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28266 if test "${ac_cv_search_opendir+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269   ac_func_search_save_LIBS=$LIBS
28270 cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h.  */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h.  */
28276
28277 /* Override any GCC internal prototype to avoid an error.
28278    Use char because int might match the return type of a GCC
28279    builtin and then its argument prototype would still apply.  */
28280 #ifdef __cplusplus
28281 extern "C"
28282 #endif
28283 char opendir ();
28284 int
28285 main ()
28286 {
28287 return opendir ();
28288   ;
28289   return 0;
28290 }
28291 _ACEOF
28292 for ac_lib in '' x; do
28293   if test -z "$ac_lib"; then
28294     ac_res="none required"
28295   else
28296     ac_res=-l$ac_lib
28297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28298   fi
28299   rm -f conftest.$ac_objext conftest$ac_exeext
28300 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28307   ac_status=$?
28308   grep -v '^ *+' conftest.er1 >conftest.err
28309   rm -f conftest.er1
28310   cat conftest.err >&5
28311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); } &&
28313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28314   { (case "(($ac_try" in
28315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316   *) ac_try_echo=$ac_try;;
28317 esac
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319   (eval "$ac_try") 2>&5
28320   ac_status=$?
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); }; } &&
28323          { ac_try='test -s conftest$ac_exeext'
28324   { (case "(($ac_try" in
28325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326   *) ac_try_echo=$ac_try;;
28327 esac
28328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329   (eval "$ac_try") 2>&5
28330   ac_status=$?
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); }; }; then
28333   ac_cv_search_opendir=$ac_res
28334 else
28335   echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28337
28338
28339 fi
28340
28341 rm -f core conftest.err conftest.$ac_objext \
28342       conftest$ac_exeext
28343   if test "${ac_cv_search_opendir+set}" = set; then
28344   break
28345 fi
28346 done
28347 if test "${ac_cv_search_opendir+set}" = set; then
28348   :
28349 else
28350   ac_cv_search_opendir=no
28351 fi
28352 rm conftest.$ac_ext
28353 LIBS=$ac_func_search_save_LIBS
28354 fi
28355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28357 ac_res=$ac_cv_search_opendir
28358 if test "$ac_res" != no; then
28359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28360
28361 fi
28362
28363 fi
28364
28365 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28366 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28367 if test "${ac_cv_header_mmap_anon+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370    ac_ext=c
28371 ac_cpp='$CPP $CPPFLAGS'
28372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28375
28376   cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382 #include <sys/mman.h>
28383 #include <unistd.h>
28384 #include <fcntl.h>
28385 int
28386 main ()
28387 {
28388 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28389   ;
28390   return 0;
28391 }
28392 _ACEOF
28393 rm -f conftest.$ac_objext
28394 if { (ac_try="$ac_compile"
28395 case "(($ac_try" in
28396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397   *) ac_try_echo=$ac_try;;
28398 esac
28399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400   (eval "$ac_compile") 2>conftest.er1
28401   ac_status=$?
28402   grep -v '^ *+' conftest.er1 >conftest.err
28403   rm -f conftest.er1
28404   cat conftest.err >&5
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); } &&
28407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28408   { (case "(($ac_try" in
28409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410   *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413   (eval "$ac_try") 2>&5
28414   ac_status=$?
28415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416   (exit $ac_status); }; } &&
28417          { ac_try='test -s conftest.$ac_objext'
28418   { (case "(($ac_try" in
28419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420   *) ac_try_echo=$ac_try;;
28421 esac
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423   (eval "$ac_try") 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); }; }; then
28427   ac_cv_header_mmap_anon=yes
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432         ac_cv_header_mmap_anon=no
28433 fi
28434
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28436   ac_ext=c
28437 ac_cpp='$CPP $CPPFLAGS'
28438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28441
28442
28443 fi
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28445 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28446 if test "$ac_cv_header_mmap_anon" = yes; then
28447
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_MMAP_ANONYMOUS 1
28450 _ACEOF
28451
28452 fi
28453
28454 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28455 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_stat_broken+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 #include <sys/types.h>
28466 #include <sys/stat.h>
28467
28468 #if defined S_ISBLK && defined S_IFDIR
28469 # if S_ISBLK (S_IFDIR)
28470 You lose.
28471 # endif
28472 #endif
28473
28474 #if defined S_ISBLK && defined S_IFCHR
28475 # if S_ISBLK (S_IFCHR)
28476 You lose.
28477 # endif
28478 #endif
28479
28480 #if defined S_ISLNK && defined S_IFREG
28481 # if S_ISLNK (S_IFREG)
28482 You lose.
28483 # endif
28484 #endif
28485
28486 #if defined S_ISSOCK && defined S_IFREG
28487 # if S_ISSOCK (S_IFREG)
28488 You lose.
28489 # endif
28490 #endif
28491
28492 _ACEOF
28493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28494   $EGREP "You lose" >/dev/null 2>&1; then
28495   ac_cv_header_stat_broken=yes
28496 else
28497   ac_cv_header_stat_broken=no
28498 fi
28499 rm -f conftest*
28500
28501 fi
28502 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28503 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28504 if test $ac_cv_header_stat_broken = yes; then
28505
28506 cat >>confdefs.h <<\_ACEOF
28507 #define STAT_MACROS_BROKEN 1
28508 _ACEOF
28509
28510 fi
28511
28512 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28514 if test "${ac_cv_header_stdc+set}" = set; then
28515   echo $ECHO_N "(cached) $ECHO_C" >&6
28516 else
28517   cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523 #include <stdlib.h>
28524 #include <stdarg.h>
28525 #include <string.h>
28526 #include <float.h>
28527
28528 int
28529 main ()
28530 {
28531
28532   ;
28533   return 0;
28534 }
28535 _ACEOF
28536 rm -f conftest.$ac_objext
28537 if { (ac_try="$ac_compile"
28538 case "(($ac_try" in
28539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540   *) ac_try_echo=$ac_try;;
28541 esac
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543   (eval "$ac_compile") 2>conftest.er1
28544   ac_status=$?
28545   grep -v '^ *+' conftest.er1 >conftest.err
28546   rm -f conftest.er1
28547   cat conftest.err >&5
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); } &&
28550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28551   { (case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_try") 2>&5
28557   ac_status=$?
28558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559   (exit $ac_status); }; } &&
28560          { ac_try='test -s conftest.$ac_objext'
28561   { (case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_try") 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; }; then
28570   ac_cv_header_stdc=yes
28571 else
28572   echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575         ac_cv_header_stdc=no
28576 fi
28577
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28579
28580 if test $ac_cv_header_stdc = yes; then
28581   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28582   cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588 #include <string.h>
28589
28590 _ACEOF
28591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28592   $EGREP "memchr" >/dev/null 2>&1; then
28593   :
28594 else
28595   ac_cv_header_stdc=no
28596 fi
28597 rm -f conftest*
28598
28599 fi
28600
28601 if test $ac_cv_header_stdc = yes; then
28602   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28603   cat >conftest.$ac_ext <<_ACEOF
28604 /* confdefs.h.  */
28605 _ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h.  */
28609 #include <stdlib.h>
28610
28611 _ACEOF
28612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28613   $EGREP "free" >/dev/null 2>&1; then
28614   :
28615 else
28616   ac_cv_header_stdc=no
28617 fi
28618 rm -f conftest*
28619
28620 fi
28621
28622 if test $ac_cv_header_stdc = yes; then
28623   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28624   if test "$cross_compiling" = yes; then
28625   :
28626 else
28627   cat >conftest.$ac_ext <<_ACEOF
28628 /* confdefs.h.  */
28629 _ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h.  */
28633 #include <ctype.h>
28634 #include <stdlib.h>
28635 #if ((' ' & 0x0FF) == 0x020)
28636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28638 #else
28639 # define ISLOWER(c) \
28640                    (('a' <= (c) && (c) <= 'i') \
28641                      || ('j' <= (c) && (c) <= 'r') \
28642                      || ('s' <= (c) && (c) <= 'z'))
28643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28644 #endif
28645
28646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28647 int
28648 main ()
28649 {
28650   int i;
28651   for (i = 0; i < 256; i++)
28652     if (XOR (islower (i), ISLOWER (i))
28653         || toupper (i) != TOUPPER (i))
28654       return 2;
28655   return 0;
28656 }
28657 _ACEOF
28658 rm -f conftest$ac_exeext
28659 if { (ac_try="$ac_link"
28660 case "(($ac_try" in
28661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662   *) ac_try_echo=$ac_try;;
28663 esac
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665   (eval "$ac_link") 2>&5
28666   ac_status=$?
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28669   { (case "(($ac_try" in
28670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671   *) ac_try_echo=$ac_try;;
28672 esac
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674   (eval "$ac_try") 2>&5
28675   ac_status=$?
28676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677   (exit $ac_status); }; }; then
28678   :
28679 else
28680   echo "$as_me: program exited with status $ac_status" >&5
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ( exit $ac_status )
28685 ac_cv_header_stdc=no
28686 fi
28687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28688 fi
28689
28690
28691 fi
28692 fi
28693 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28694 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28695 if test $ac_cv_header_stdc = yes; then
28696
28697 cat >>confdefs.h <<\_ACEOF
28698 #define STDC_HEADERS 1
28699 _ACEOF
28700
28701 fi
28702
28703 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28704 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28705 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28706   echo $ECHO_N "(cached) $ECHO_C" >&6
28707 else
28708   cat >conftest.$ac_ext <<_ACEOF
28709 /* confdefs.h.  */
28710 _ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h.  */
28714 #include <sys/types.h>
28715 #include <sys/wait.h>
28716 #ifndef WEXITSTATUS
28717 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28718 #endif
28719 #ifndef WIFEXITED
28720 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28721 #endif
28722
28723 int
28724 main ()
28725 {
28726   int s;
28727   wait (&s);
28728   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28729   ;
28730   return 0;
28731 }
28732 _ACEOF
28733 rm -f conftest.$ac_objext
28734 if { (ac_try="$ac_compile"
28735 case "(($ac_try" in
28736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737   *) ac_try_echo=$ac_try;;
28738 esac
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740   (eval "$ac_compile") 2>conftest.er1
28741   ac_status=$?
28742   grep -v '^ *+' conftest.er1 >conftest.err
28743   rm -f conftest.er1
28744   cat conftest.err >&5
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); } &&
28747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28748   { (case "(($ac_try" in
28749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750   *) ac_try_echo=$ac_try;;
28751 esac
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753   (eval "$ac_try") 2>&5
28754   ac_status=$?
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); }; } &&
28757          { ac_try='test -s conftest.$ac_objext'
28758   { (case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_try") 2>&5
28764   ac_status=$?
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); }; }; then
28767   ac_cv_header_sys_wait_h=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772         ac_cv_header_sys_wait_h=no
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776 fi
28777 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28778 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28779 if test $ac_cv_header_sys_wait_h = yes; then
28780
28781 cat >>confdefs.h <<\_ACEOF
28782 #define HAVE_SYS_WAIT_H 1
28783 _ACEOF
28784
28785 fi
28786
28787 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28788 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_time+set}" = set; then
28790   echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792   cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798 #include <sys/types.h>
28799 #include <sys/time.h>
28800 #include <time.h>
28801
28802 int
28803 main ()
28804 {
28805 if ((struct tm *) 0)
28806 return 0;
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815   *) ac_try_echo=$ac_try;;
28816 esac
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818   (eval "$ac_compile") 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } &&
28825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826   { (case "(($ac_try" in
28827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828   *) ac_try_echo=$ac_try;;
28829 esac
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831   (eval "$ac_try") 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; } &&
28835          { ac_try='test -s conftest.$ac_objext'
28836   { (case "(($ac_try" in
28837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838   *) ac_try_echo=$ac_try;;
28839 esac
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841   (eval "$ac_try") 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ac_cv_header_time=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ac_cv_header_time=no
28851 fi
28852
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 fi
28855 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28856 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28857 if test $ac_cv_header_time = yes; then
28858
28859 cat >>confdefs.h <<\_ACEOF
28860 #define TIME_WITH_SYS_TIME 1
28861 _ACEOF
28862
28863 fi
28864
28865
28866
28867
28868
28869
28870
28871
28872 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28873 do
28874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28879   echo $ECHO_N "(cached) $ECHO_C" >&6
28880 fi
28881 ac_res=`eval echo '${'$as_ac_Header'}'`
28882                { echo "$as_me:$LINENO: result: $ac_res" >&5
28883 echo "${ECHO_T}$ac_res" >&6; }
28884 else
28885   # Is the header compilable?
28886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28888 cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h.  */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h.  */
28894 $ac_includes_default
28895 #include <$ac_header>
28896 _ACEOF
28897 rm -f conftest.$ac_objext
28898 if { (ac_try="$ac_compile"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_compile") 2>conftest.er1
28905   ac_status=$?
28906   grep -v '^ *+' conftest.er1 >conftest.err
28907   rm -f conftest.er1
28908   cat conftest.err >&5
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } &&
28911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28912   { (case "(($ac_try" in
28913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914   *) ac_try_echo=$ac_try;;
28915 esac
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917   (eval "$ac_try") 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); }; } &&
28921          { ac_try='test -s conftest.$ac_objext'
28922   { (case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_try") 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); }; }; then
28931   ac_header_compiler=yes
28932 else
28933   echo "$as_me: failed program was:" >&5
28934 sed 's/^/| /' conftest.$ac_ext >&5
28935
28936         ac_header_compiler=no
28937 fi
28938
28939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28941 echo "${ECHO_T}$ac_header_compiler" >&6; }
28942
28943 # Is the header present?
28944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28946 cat >conftest.$ac_ext <<_ACEOF
28947 /* confdefs.h.  */
28948 _ACEOF
28949 cat confdefs.h >>conftest.$ac_ext
28950 cat >>conftest.$ac_ext <<_ACEOF
28951 /* end confdefs.h.  */
28952 #include <$ac_header>
28953 _ACEOF
28954 if { (ac_try="$ac_cpp conftest.$ac_ext"
28955 case "(($ac_try" in
28956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957   *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28961   ac_status=$?
28962   grep -v '^ *+' conftest.er1 >conftest.err
28963   rm -f conftest.er1
28964   cat conftest.err >&5
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); } >/dev/null; then
28967   if test -s conftest.err; then
28968     ac_cpp_err=$ac_c_preproc_warn_flag
28969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28970   else
28971     ac_cpp_err=
28972   fi
28973 else
28974   ac_cpp_err=yes
28975 fi
28976 if test -z "$ac_cpp_err"; then
28977   ac_header_preproc=yes
28978 else
28979   echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982   ac_header_preproc=no
28983 fi
28984
28985 rm -f conftest.err conftest.$ac_ext
28986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28987 echo "${ECHO_T}$ac_header_preproc" >&6; }
28988
28989 # So?  What about this header?
28990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28991   yes:no: )
28992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28996     ac_header_preproc=yes
28997     ;;
28998   no:yes:* )
28999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29011     ( cat <<\_ASBOX
29012 ## ----------------------------------- ##
29013 ## Report this to llvmbugs@cs.uiuc.edu ##
29014 ## ----------------------------------- ##
29015 _ASBOX
29016      ) | sed "s/^/$as_me: WARNING:     /" >&2
29017     ;;
29018 esac
29019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29022   echo $ECHO_N "(cached) $ECHO_C" >&6
29023 else
29024   eval "$as_ac_Header=\$ac_header_preproc"
29025 fi
29026 ac_res=`eval echo '${'$as_ac_Header'}'`
29027                { echo "$as_me:$LINENO: result: $ac_res" >&5
29028 echo "${ECHO_T}$ac_res" >&6; }
29029
29030 fi
29031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29032   cat >>confdefs.h <<_ACEOF
29033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29034 _ACEOF
29035
29036 fi
29037
29038 done
29039
29040
29041
29042
29043
29044
29045
29046 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29047 do
29048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29054 fi
29055 ac_res=`eval echo '${'$as_ac_Header'}'`
29056                { echo "$as_me:$LINENO: result: $ac_res" >&5
29057 echo "${ECHO_T}$ac_res" >&6; }
29058 else
29059   # Is the header compilable?
29060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29062 cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068 $ac_includes_default
29069 #include <$ac_header>
29070 _ACEOF
29071 rm -f conftest.$ac_objext
29072 if { (ac_try="$ac_compile"
29073 case "(($ac_try" in
29074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075   *) ac_try_echo=$ac_try;;
29076 esac
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078   (eval "$ac_compile") 2>conftest.er1
29079   ac_status=$?
29080   grep -v '^ *+' conftest.er1 >conftest.err
29081   rm -f conftest.er1
29082   cat conftest.err >&5
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); } &&
29085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29086   { (case "(($ac_try" in
29087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088   *) ac_try_echo=$ac_try;;
29089 esac
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091   (eval "$ac_try") 2>&5
29092   ac_status=$?
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); }; } &&
29095          { ac_try='test -s conftest.$ac_objext'
29096   { (case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101   (eval "$ac_try") 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); }; }; then
29105   ac_header_compiler=yes
29106 else
29107   echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29109
29110         ac_header_compiler=no
29111 fi
29112
29113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29115 echo "${ECHO_T}$ac_header_compiler" >&6; }
29116
29117 # Is the header present?
29118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29120 cat >conftest.$ac_ext <<_ACEOF
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126 #include <$ac_header>
29127 _ACEOF
29128 if { (ac_try="$ac_cpp conftest.$ac_ext"
29129 case "(($ac_try" in
29130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131   *) ac_try_echo=$ac_try;;
29132 esac
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29135   ac_status=$?
29136   grep -v '^ *+' conftest.er1 >conftest.err
29137   rm -f conftest.er1
29138   cat conftest.err >&5
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); } >/dev/null; then
29141   if test -s conftest.err; then
29142     ac_cpp_err=$ac_c_preproc_warn_flag
29143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29144   else
29145     ac_cpp_err=
29146   fi
29147 else
29148   ac_cpp_err=yes
29149 fi
29150 if test -z "$ac_cpp_err"; then
29151   ac_header_preproc=yes
29152 else
29153   echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29155
29156   ac_header_preproc=no
29157 fi
29158
29159 rm -f conftest.err conftest.$ac_ext
29160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29161 echo "${ECHO_T}$ac_header_preproc" >&6; }
29162
29163 # So?  What about this header?
29164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29165   yes:no: )
29166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29170     ac_header_preproc=yes
29171     ;;
29172   no:yes:* )
29173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29185     ( cat <<\_ASBOX
29186 ## ----------------------------------- ##
29187 ## Report this to llvmbugs@cs.uiuc.edu ##
29188 ## ----------------------------------- ##
29189 _ASBOX
29190      ) | sed "s/^/$as_me: WARNING:     /" >&2
29191     ;;
29192 esac
29193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198   eval "$as_ac_Header=\$ac_header_preproc"
29199 fi
29200 ac_res=`eval echo '${'$as_ac_Header'}'`
29201                { echo "$as_me:$LINENO: result: $ac_res" >&5
29202 echo "${ECHO_T}$ac_res" >&6; }
29203
29204 fi
29205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29206   cat >>confdefs.h <<_ACEOF
29207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29208 _ACEOF
29209
29210 fi
29211
29212 done
29213
29214
29215 for ac_header in windows.h
29216 do
29217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29222   echo $ECHO_N "(cached) $ECHO_C" >&6
29223 fi
29224 ac_res=`eval echo '${'$as_ac_Header'}'`
29225                { echo "$as_me:$LINENO: result: $ac_res" >&5
29226 echo "${ECHO_T}$ac_res" >&6; }
29227 else
29228   # Is the header compilable?
29229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29231 cat >conftest.$ac_ext <<_ACEOF
29232 /* confdefs.h.  */
29233 _ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h.  */
29237 $ac_includes_default
29238 #include <$ac_header>
29239 _ACEOF
29240 rm -f conftest.$ac_objext
29241 if { (ac_try="$ac_compile"
29242 case "(($ac_try" in
29243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244   *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247   (eval "$ac_compile") 2>conftest.er1
29248   ac_status=$?
29249   grep -v '^ *+' conftest.er1 >conftest.err
29250   rm -f conftest.er1
29251   cat conftest.err >&5
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); } &&
29254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29255   { (case "(($ac_try" in
29256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257   *) ac_try_echo=$ac_try;;
29258 esac
29259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260   (eval "$ac_try") 2>&5
29261   ac_status=$?
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); }; } &&
29264          { ac_try='test -s conftest.$ac_objext'
29265   { (case "(($ac_try" in
29266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267   *) ac_try_echo=$ac_try;;
29268 esac
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270   (eval "$ac_try") 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; }; then
29274   ac_header_compiler=yes
29275 else
29276   echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29278
29279         ac_header_compiler=no
29280 fi
29281
29282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29284 echo "${ECHO_T}$ac_header_compiler" >&6; }
29285
29286 # Is the header present?
29287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29289 cat >conftest.$ac_ext <<_ACEOF
29290 /* confdefs.h.  */
29291 _ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h.  */
29295 #include <$ac_header>
29296 _ACEOF
29297 if { (ac_try="$ac_cpp conftest.$ac_ext"
29298 case "(($ac_try" in
29299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300   *) ac_try_echo=$ac_try;;
29301 esac
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29304   ac_status=$?
29305   grep -v '^ *+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } >/dev/null; then
29310   if test -s conftest.err; then
29311     ac_cpp_err=$ac_c_preproc_warn_flag
29312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29313   else
29314     ac_cpp_err=
29315   fi
29316 else
29317   ac_cpp_err=yes
29318 fi
29319 if test -z "$ac_cpp_err"; then
29320   ac_header_preproc=yes
29321 else
29322   echo "$as_me: failed program was:" >&5
29323 sed 's/^/| /' conftest.$ac_ext >&5
29324
29325   ac_header_preproc=no
29326 fi
29327
29328 rm -f conftest.err conftest.$ac_ext
29329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29330 echo "${ECHO_T}$ac_header_preproc" >&6; }
29331
29332 # So?  What about this header?
29333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29334   yes:no: )
29335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29339     ac_header_preproc=yes
29340     ;;
29341   no:yes:* )
29342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29354     ( cat <<\_ASBOX
29355 ## ----------------------------------- ##
29356 ## Report this to llvmbugs@cs.uiuc.edu ##
29357 ## ----------------------------------- ##
29358 _ASBOX
29359      ) | sed "s/^/$as_me: WARNING:     /" >&2
29360     ;;
29361 esac
29362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29365   echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29367   eval "$as_ac_Header=\$ac_header_preproc"
29368 fi
29369 ac_res=`eval echo '${'$as_ac_Header'}'`
29370                { echo "$as_me:$LINENO: result: $ac_res" >&5
29371 echo "${ECHO_T}$ac_res" >&6; }
29372
29373 fi
29374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29375   cat >>confdefs.h <<_ACEOF
29376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29377 _ACEOF
29378
29379 fi
29380
29381 done
29382
29383
29384
29385
29386
29387 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29388 do
29389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 fi
29396 ac_res=`eval echo '${'$as_ac_Header'}'`
29397                { echo "$as_me:$LINENO: result: $ac_res" >&5
29398 echo "${ECHO_T}$ac_res" >&6; }
29399 else
29400   # Is the header compilable?
29401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29403 cat >conftest.$ac_ext <<_ACEOF
29404 /* confdefs.h.  */
29405 _ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h.  */
29409 $ac_includes_default
29410 #include <$ac_header>
29411 _ACEOF
29412 rm -f conftest.$ac_objext
29413 if { (ac_try="$ac_compile"
29414 case "(($ac_try" in
29415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416   *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419   (eval "$ac_compile") 2>conftest.er1
29420   ac_status=$?
29421   grep -v '^ *+' conftest.er1 >conftest.err
29422   rm -f conftest.er1
29423   cat conftest.err >&5
29424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425   (exit $ac_status); } &&
29426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427   { (case "(($ac_try" in
29428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429   *) ac_try_echo=$ac_try;;
29430 esac
29431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432   (eval "$ac_try") 2>&5
29433   ac_status=$?
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); }; } &&
29436          { ac_try='test -s conftest.$ac_objext'
29437   { (case "(($ac_try" in
29438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439   *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442   (eval "$ac_try") 2>&5
29443   ac_status=$?
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); }; }; then
29446   ac_header_compiler=yes
29447 else
29448   echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451         ac_header_compiler=no
29452 fi
29453
29454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456 echo "${ECHO_T}$ac_header_compiler" >&6; }
29457
29458 # Is the header present?
29459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29461 cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467 #include <$ac_header>
29468 _ACEOF
29469 if { (ac_try="$ac_cpp conftest.$ac_ext"
29470 case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29476   ac_status=$?
29477   grep -v '^ *+' conftest.er1 >conftest.err
29478   rm -f conftest.er1
29479   cat conftest.err >&5
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); } >/dev/null; then
29482   if test -s conftest.err; then
29483     ac_cpp_err=$ac_c_preproc_warn_flag
29484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29485   else
29486     ac_cpp_err=
29487   fi
29488 else
29489   ac_cpp_err=yes
29490 fi
29491 if test -z "$ac_cpp_err"; then
29492   ac_header_preproc=yes
29493 else
29494   echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29496
29497   ac_header_preproc=no
29498 fi
29499
29500 rm -f conftest.err conftest.$ac_ext
29501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502 echo "${ECHO_T}$ac_header_preproc" >&6; }
29503
29504 # So?  What about this header?
29505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29506   yes:no: )
29507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29511     ac_header_preproc=yes
29512     ;;
29513   no:yes:* )
29514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29526     ( cat <<\_ASBOX
29527 ## ----------------------------------- ##
29528 ## Report this to llvmbugs@cs.uiuc.edu ##
29529 ## ----------------------------------- ##
29530 _ASBOX
29531      ) | sed "s/^/$as_me: WARNING:     /" >&2
29532     ;;
29533 esac
29534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29537   echo $ECHO_N "(cached) $ECHO_C" >&6
29538 else
29539   eval "$as_ac_Header=\$ac_header_preproc"
29540 fi
29541 ac_res=`eval echo '${'$as_ac_Header'}'`
29542                { echo "$as_me:$LINENO: result: $ac_res" >&5
29543 echo "${ECHO_T}$ac_res" >&6; }
29544
29545 fi
29546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547   cat >>confdefs.h <<_ACEOF
29548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29549 _ACEOF
29550
29551 fi
29552
29553 done
29554
29555
29556
29557
29558 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29559 do
29560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29565   echo $ECHO_N "(cached) $ECHO_C" >&6
29566 fi
29567 ac_res=`eval echo '${'$as_ac_Header'}'`
29568                { echo "$as_me:$LINENO: result: $ac_res" >&5
29569 echo "${ECHO_T}$ac_res" >&6; }
29570 else
29571   # Is the header compilable?
29572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29574 cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580 $ac_includes_default
29581 #include <$ac_header>
29582 _ACEOF
29583 rm -f conftest.$ac_objext
29584 if { (ac_try="$ac_compile"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_compile") 2>conftest.er1
29591   ac_status=$?
29592   grep -v '^ *+' conftest.er1 >conftest.err
29593   rm -f conftest.er1
29594   cat conftest.err >&5
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); } &&
29597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29598   { (case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603   (eval "$ac_try") 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; } &&
29607          { ac_try='test -s conftest.$ac_objext'
29608   { (case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_try") 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617   ac_header_compiler=yes
29618 else
29619   echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29621
29622         ac_header_compiler=no
29623 fi
29624
29625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29627 echo "${ECHO_T}$ac_header_compiler" >&6; }
29628
29629 # Is the header present?
29630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29632 cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638 #include <$ac_header>
29639 _ACEOF
29640 if { (ac_try="$ac_cpp conftest.$ac_ext"
29641 case "(($ac_try" in
29642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643   *) ac_try_echo=$ac_try;;
29644 esac
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29647   ac_status=$?
29648   grep -v '^ *+' conftest.er1 >conftest.err
29649   rm -f conftest.er1
29650   cat conftest.err >&5
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } >/dev/null; then
29653   if test -s conftest.err; then
29654     ac_cpp_err=$ac_c_preproc_warn_flag
29655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29656   else
29657     ac_cpp_err=
29658   fi
29659 else
29660   ac_cpp_err=yes
29661 fi
29662 if test -z "$ac_cpp_err"; then
29663   ac_header_preproc=yes
29664 else
29665   echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29667
29668   ac_header_preproc=no
29669 fi
29670
29671 rm -f conftest.err conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673 echo "${ECHO_T}$ac_header_preproc" >&6; }
29674
29675 # So?  What about this header?
29676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29677   yes:no: )
29678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29682     ac_header_preproc=yes
29683     ;;
29684   no:yes:* )
29685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29697     ( cat <<\_ASBOX
29698 ## ----------------------------------- ##
29699 ## Report this to llvmbugs@cs.uiuc.edu ##
29700 ## ----------------------------------- ##
29701 _ASBOX
29702      ) | sed "s/^/$as_me: WARNING:     /" >&2
29703     ;;
29704 esac
29705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29708   echo $ECHO_N "(cached) $ECHO_C" >&6
29709 else
29710   eval "$as_ac_Header=\$ac_header_preproc"
29711 fi
29712 ac_res=`eval echo '${'$as_ac_Header'}'`
29713                { echo "$as_me:$LINENO: result: $ac_res" >&5
29714 echo "${ECHO_T}$ac_res" >&6; }
29715
29716 fi
29717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29718   cat >>confdefs.h <<_ACEOF
29719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29720 _ACEOF
29721
29722 fi
29723
29724 done
29725
29726 if test "$ENABLE_THREADS" -eq 1 ; then
29727
29728 for ac_header in pthread.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  HAVE_PTHREAD=1
29892
29893 else
29894   HAVE_PTHREAD=0
29895
29896 fi
29897
29898 done
29899
29900 else
29901   HAVE_PTHREAD=0
29902
29903 fi
29904
29905
29906
29907   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29908 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29909 if test "${ac_cv_huge_val_sanity+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912
29913     ac_ext=cpp
29914 ac_cpp='$CXXCPP $CPPFLAGS'
29915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29918
29919     CXXFLAGS=-pedantic
29920     if test "$cross_compiling" = yes; then
29921   ac_cv_huge_val_sanity=yes
29922 else
29923   cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h.  */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h.  */
29929 #include <math.h>
29930 int
29931 main ()
29932 {
29933 double x = HUGE_VAL; return x != x;
29934   ;
29935   return 0;
29936 }
29937 _ACEOF
29938 rm -f conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942   *) ac_try_echo=$ac_try;;
29943 esac
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945   (eval "$ac_link") 2>&5
29946   ac_status=$?
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29949   { (case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954   (eval "$ac_try") 2>&5
29955   ac_status=$?
29956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957   (exit $ac_status); }; }; then
29958   ac_cv_huge_val_sanity=yes
29959 else
29960   echo "$as_me: program exited with status $ac_status" >&5
29961 echo "$as_me: failed program was:" >&5
29962 sed 's/^/| /' conftest.$ac_ext >&5
29963
29964 ( exit $ac_status )
29965 ac_cv_huge_val_sanity=no
29966 fi
29967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29968 fi
29969
29970
29971     ac_ext=c
29972 ac_cpp='$CPP $CPPFLAGS'
29973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29976
29977
29978 fi
29979 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29980 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29981   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29982
29983
29984 { echo "$as_me:$LINENO: checking for pid_t" >&5
29985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29986 if test "${ac_cv_type_pid_t+set}" = set; then
29987   echo $ECHO_N "(cached) $ECHO_C" >&6
29988 else
29989   cat >conftest.$ac_ext <<_ACEOF
29990 /* confdefs.h.  */
29991 _ACEOF
29992 cat confdefs.h >>conftest.$ac_ext
29993 cat >>conftest.$ac_ext <<_ACEOF
29994 /* end confdefs.h.  */
29995 $ac_includes_default
29996 typedef pid_t ac__type_new_;
29997 int
29998 main ()
29999 {
30000 if ((ac__type_new_ *) 0)
30001   return 0;
30002 if (sizeof (ac__type_new_))
30003   return 0;
30004   ;
30005   return 0;
30006 }
30007 _ACEOF
30008 rm -f conftest.$ac_objext
30009 if { (ac_try="$ac_compile"
30010 case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_compile") 2>conftest.er1
30016   ac_status=$?
30017   grep -v '^ *+' conftest.er1 >conftest.err
30018   rm -f conftest.er1
30019   cat conftest.err >&5
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); } &&
30022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30023   { (case "(($ac_try" in
30024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025   *) ac_try_echo=$ac_try;;
30026 esac
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028   (eval "$ac_try") 2>&5
30029   ac_status=$?
30030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031   (exit $ac_status); }; } &&
30032          { ac_try='test -s conftest.$ac_objext'
30033   { (case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038   (eval "$ac_try") 2>&5
30039   ac_status=$?
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); }; }; then
30042   ac_cv_type_pid_t=yes
30043 else
30044   echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30046
30047         ac_cv_type_pid_t=no
30048 fi
30049
30050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30051 fi
30052 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30053 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30054 if test $ac_cv_type_pid_t = yes; then
30055   :
30056 else
30057
30058 cat >>confdefs.h <<_ACEOF
30059 #define pid_t int
30060 _ACEOF
30061
30062 fi
30063
30064 { echo "$as_me:$LINENO: checking for size_t" >&5
30065 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30066 if test "${ac_cv_type_size_t+set}" = set; then
30067   echo $ECHO_N "(cached) $ECHO_C" >&6
30068 else
30069   cat >conftest.$ac_ext <<_ACEOF
30070 /* confdefs.h.  */
30071 _ACEOF
30072 cat confdefs.h >>conftest.$ac_ext
30073 cat >>conftest.$ac_ext <<_ACEOF
30074 /* end confdefs.h.  */
30075 $ac_includes_default
30076 typedef size_t ac__type_new_;
30077 int
30078 main ()
30079 {
30080 if ((ac__type_new_ *) 0)
30081   return 0;
30082 if (sizeof (ac__type_new_))
30083   return 0;
30084   ;
30085   return 0;
30086 }
30087 _ACEOF
30088 rm -f conftest.$ac_objext
30089 if { (ac_try="$ac_compile"
30090 case "(($ac_try" in
30091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092   *) ac_try_echo=$ac_try;;
30093 esac
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095   (eval "$ac_compile") 2>conftest.er1
30096   ac_status=$?
30097   grep -v '^ *+' conftest.er1 >conftest.err
30098   rm -f conftest.er1
30099   cat conftest.err >&5
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); } &&
30102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103   { (case "(($ac_try" in
30104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105   *) ac_try_echo=$ac_try;;
30106 esac
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108   (eval "$ac_try") 2>&5
30109   ac_status=$?
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); }; } &&
30112          { ac_try='test -s conftest.$ac_objext'
30113   { (case "(($ac_try" in
30114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115   *) ac_try_echo=$ac_try;;
30116 esac
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118   (eval "$ac_try") 2>&5
30119   ac_status=$?
30120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121   (exit $ac_status); }; }; then
30122   ac_cv_type_size_t=yes
30123 else
30124   echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30126
30127         ac_cv_type_size_t=no
30128 fi
30129
30130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30131 fi
30132 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30133 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30134 if test $ac_cv_type_size_t = yes; then
30135   :
30136 else
30137
30138 cat >>confdefs.h <<_ACEOF
30139 #define size_t unsigned int
30140 _ACEOF
30141
30142 fi
30143
30144 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30145 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30146 if test "${ac_cv_type_signal+set}" = set; then
30147   echo $ECHO_N "(cached) $ECHO_C" >&6
30148 else
30149   cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h.  */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h.  */
30155 #include <sys/types.h>
30156 #include <signal.h>
30157
30158 int
30159 main ()
30160 {
30161 return *(signal (0, 0)) (0) == 1;
30162   ;
30163   return 0;
30164 }
30165 _ACEOF
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_compile") 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } &&
30180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181   { (case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_try") 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest.$ac_objext'
30191   { (case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_try") 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   ac_cv_type_signal=int
30201 else
30202   echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30204
30205         ac_cv_type_signal=void
30206 fi
30207
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209 fi
30210 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30211 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30212
30213 cat >>confdefs.h <<_ACEOF
30214 #define RETSIGTYPE $ac_cv_type_signal
30215 _ACEOF
30216
30217
30218 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30219 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30220 if test "${ac_cv_struct_tm+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223   cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h.  */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h.  */
30229 #include <sys/types.h>
30230 #include <time.h>
30231
30232 int
30233 main ()
30234 {
30235 struct tm *tp; tp->tm_sec;
30236   ;
30237   return 0;
30238 }
30239 _ACEOF
30240 rm -f conftest.$ac_objext
30241 if { (ac_try="$ac_compile"
30242 case "(($ac_try" in
30243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244   *) ac_try_echo=$ac_try;;
30245 esac
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247   (eval "$ac_compile") 2>conftest.er1
30248   ac_status=$?
30249   grep -v '^ *+' conftest.er1 >conftest.err
30250   rm -f conftest.er1
30251   cat conftest.err >&5
30252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253   (exit $ac_status); } &&
30254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30255   { (case "(($ac_try" in
30256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257   *) ac_try_echo=$ac_try;;
30258 esac
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260   (eval "$ac_try") 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; } &&
30264          { ac_try='test -s conftest.$ac_objext'
30265   { (case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_try") 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; }; then
30274   ac_cv_struct_tm=time.h
30275 else
30276   echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30278
30279         ac_cv_struct_tm=sys/time.h
30280 fi
30281
30282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30283 fi
30284 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30285 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30286 if test $ac_cv_struct_tm = sys/time.h; then
30287
30288 cat >>confdefs.h <<\_ACEOF
30289 #define TM_IN_SYS_TIME 1
30290 _ACEOF
30291
30292 fi
30293
30294 { echo "$as_me:$LINENO: checking for int64_t" >&5
30295 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30296 if test "${ac_cv_type_int64_t+set}" = set; then
30297   echo $ECHO_N "(cached) $ECHO_C" >&6
30298 else
30299   cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h.  */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h.  */
30305 $ac_includes_default
30306 typedef int64_t ac__type_new_;
30307 int
30308 main ()
30309 {
30310 if ((ac__type_new_ *) 0)
30311   return 0;
30312 if (sizeof (ac__type_new_))
30313   return 0;
30314   ;
30315   return 0;
30316 }
30317 _ACEOF
30318 rm -f conftest.$ac_objext
30319 if { (ac_try="$ac_compile"
30320 case "(($ac_try" in
30321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322   *) ac_try_echo=$ac_try;;
30323 esac
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325   (eval "$ac_compile") 2>conftest.er1
30326   ac_status=$?
30327   grep -v '^ *+' conftest.er1 >conftest.err
30328   rm -f conftest.er1
30329   cat conftest.err >&5
30330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331   (exit $ac_status); } &&
30332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30333   { (case "(($ac_try" in
30334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335   *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338   (eval "$ac_try") 2>&5
30339   ac_status=$?
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); }; } &&
30342          { ac_try='test -s conftest.$ac_objext'
30343   { (case "(($ac_try" in
30344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345   *) ac_try_echo=$ac_try;;
30346 esac
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348   (eval "$ac_try") 2>&5
30349   ac_status=$?
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); }; }; then
30352   ac_cv_type_int64_t=yes
30353 else
30354   echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30356
30357         ac_cv_type_int64_t=no
30358 fi
30359
30360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30361 fi
30362 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30363 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30364 if test $ac_cv_type_int64_t = yes; then
30365
30366 cat >>confdefs.h <<_ACEOF
30367 #define HAVE_INT64_T 1
30368 _ACEOF
30369
30370
30371 else
30372   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30373 echo "$as_me: error: Type int64_t required but not found" >&2;}
30374    { (exit 1); exit 1; }; }
30375 fi
30376
30377 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30378 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30379 if test "${ac_cv_type_uint64_t+set}" = set; then
30380   echo $ECHO_N "(cached) $ECHO_C" >&6
30381 else
30382   cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h.  */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h.  */
30388 $ac_includes_default
30389 typedef uint64_t ac__type_new_;
30390 int
30391 main ()
30392 {
30393 if ((ac__type_new_ *) 0)
30394   return 0;
30395 if (sizeof (ac__type_new_))
30396   return 0;
30397   ;
30398   return 0;
30399 }
30400 _ACEOF
30401 rm -f conftest.$ac_objext
30402 if { (ac_try="$ac_compile"
30403 case "(($ac_try" in
30404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405   *) ac_try_echo=$ac_try;;
30406 esac
30407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408   (eval "$ac_compile") 2>conftest.er1
30409   ac_status=$?
30410   grep -v '^ *+' conftest.er1 >conftest.err
30411   rm -f conftest.er1
30412   cat conftest.err >&5
30413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414   (exit $ac_status); } &&
30415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30416   { (case "(($ac_try" in
30417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418   *) ac_try_echo=$ac_try;;
30419 esac
30420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421   (eval "$ac_try") 2>&5
30422   ac_status=$?
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); }; } &&
30425          { ac_try='test -s conftest.$ac_objext'
30426   { (case "(($ac_try" in
30427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428   *) ac_try_echo=$ac_try;;
30429 esac
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431   (eval "$ac_try") 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; }; then
30435   ac_cv_type_uint64_t=yes
30436 else
30437   echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30439
30440         ac_cv_type_uint64_t=no
30441 fi
30442
30443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30444 fi
30445 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30446 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30447 if test $ac_cv_type_uint64_t = yes; then
30448
30449 cat >>confdefs.h <<_ACEOF
30450 #define HAVE_UINT64_T 1
30451 _ACEOF
30452
30453
30454 else
30455   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30456 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30457 if test "${ac_cv_type_u_int64_t+set}" = set; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 else
30460   cat >conftest.$ac_ext <<_ACEOF
30461 /* confdefs.h.  */
30462 _ACEOF
30463 cat confdefs.h >>conftest.$ac_ext
30464 cat >>conftest.$ac_ext <<_ACEOF
30465 /* end confdefs.h.  */
30466 $ac_includes_default
30467 typedef u_int64_t ac__type_new_;
30468 int
30469 main ()
30470 {
30471 if ((ac__type_new_ *) 0)
30472   return 0;
30473 if (sizeof (ac__type_new_))
30474   return 0;
30475   ;
30476   return 0;
30477 }
30478 _ACEOF
30479 rm -f conftest.$ac_objext
30480 if { (ac_try="$ac_compile"
30481 case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_compile") 2>conftest.er1
30487   ac_status=$?
30488   grep -v '^ *+' conftest.er1 >conftest.err
30489   rm -f conftest.er1
30490   cat conftest.err >&5
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); } &&
30493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30494   { (case "(($ac_try" in
30495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496   *) ac_try_echo=$ac_try;;
30497 esac
30498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499   (eval "$ac_try") 2>&5
30500   ac_status=$?
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); }; } &&
30503          { ac_try='test -s conftest.$ac_objext'
30504   { (case "(($ac_try" in
30505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506   *) ac_try_echo=$ac_try;;
30507 esac
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509   (eval "$ac_try") 2>&5
30510   ac_status=$?
30511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512   (exit $ac_status); }; }; then
30513   ac_cv_type_u_int64_t=yes
30514 else
30515   echo "$as_me: failed program was:" >&5
30516 sed 's/^/| /' conftest.$ac_ext >&5
30517
30518         ac_cv_type_u_int64_t=no
30519 fi
30520
30521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30522 fi
30523 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30524 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30525 if test $ac_cv_type_u_int64_t = yes; then
30526
30527 cat >>confdefs.h <<_ACEOF
30528 #define HAVE_U_INT64_T 1
30529 _ACEOF
30530
30531
30532 else
30533   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30534 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30535    { (exit 1); exit 1; }; }
30536 fi
30537
30538 fi
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30550 do
30551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30555   echo $ECHO_N "(cached) $ECHO_C" >&6
30556 else
30557   cat >conftest.$ac_ext <<_ACEOF
30558 /* confdefs.h.  */
30559 _ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h.  */
30563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30565 #define $ac_func innocuous_$ac_func
30566
30567 /* System header to define __stub macros and hopefully few prototypes,
30568     which can conflict with char $ac_func (); below.
30569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30570     <limits.h> exists even on freestanding compilers.  */
30571
30572 #ifdef __STDC__
30573 # include <limits.h>
30574 #else
30575 # include <assert.h>
30576 #endif
30577
30578 #undef $ac_func
30579
30580 /* Override any GCC internal prototype to avoid an error.
30581    Use char because int might match the return type of a GCC
30582    builtin and then its argument prototype would still apply.  */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char $ac_func ();
30587 /* The GNU C library defines this for functions which it implements
30588     to always fail with ENOSYS.  Some functions are actually named
30589     something starting with __ and the normal name is an alias.  */
30590 #if defined __stub_$ac_func || defined __stub___$ac_func
30591 choke me
30592 #endif
30593
30594 int
30595 main ()
30596 {
30597 return $ac_func ();
30598   ;
30599   return 0;
30600 }
30601 _ACEOF
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (ac_try="$ac_link"
30604 case "(($ac_try" in
30605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606   *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609   (eval "$ac_link") 2>conftest.er1
30610   ac_status=$?
30611   grep -v '^ *+' conftest.er1 >conftest.err
30612   rm -f conftest.er1
30613   cat conftest.err >&5
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); } &&
30616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617   { (case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622   (eval "$ac_try") 2>&5
30623   ac_status=$?
30624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625   (exit $ac_status); }; } &&
30626          { ac_try='test -s conftest$ac_exeext'
30627   { (case "(($ac_try" in
30628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629   *) ac_try_echo=$ac_try;;
30630 esac
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632   (eval "$ac_try") 2>&5
30633   ac_status=$?
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); }; }; then
30636   eval "$as_ac_var=yes"
30637 else
30638   echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641         eval "$as_ac_var=no"
30642 fi
30643
30644 rm -f core conftest.err conftest.$ac_objext \
30645       conftest$ac_exeext conftest.$ac_ext
30646 fi
30647 ac_res=`eval echo '${'$as_ac_var'}'`
30648                { echo "$as_me:$LINENO: result: $ac_res" >&5
30649 echo "${ECHO_T}$ac_res" >&6; }
30650 if test `eval echo '${'$as_ac_var'}'` = yes; then
30651   cat >>confdefs.h <<_ACEOF
30652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30653 _ACEOF
30654
30655 fi
30656 done
30657
30658
30659
30660
30661
30662 for ac_func in powf fmodf strtof round
30663 do
30664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30668   echo $ECHO_N "(cached) $ECHO_C" >&6
30669 else
30670   cat >conftest.$ac_ext <<_ACEOF
30671 /* confdefs.h.  */
30672 _ACEOF
30673 cat confdefs.h >>conftest.$ac_ext
30674 cat >>conftest.$ac_ext <<_ACEOF
30675 /* end confdefs.h.  */
30676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30678 #define $ac_func innocuous_$ac_func
30679
30680 /* System header to define __stub macros and hopefully few prototypes,
30681     which can conflict with char $ac_func (); below.
30682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30683     <limits.h> exists even on freestanding compilers.  */
30684
30685 #ifdef __STDC__
30686 # include <limits.h>
30687 #else
30688 # include <assert.h>
30689 #endif
30690
30691 #undef $ac_func
30692
30693 /* Override any GCC internal prototype to avoid an error.
30694    Use char because int might match the return type of a GCC
30695    builtin and then its argument prototype would still apply.  */
30696 #ifdef __cplusplus
30697 extern "C"
30698 #endif
30699 char $ac_func ();
30700 /* The GNU C library defines this for functions which it implements
30701     to always fail with ENOSYS.  Some functions are actually named
30702     something starting with __ and the normal name is an alias.  */
30703 #if defined __stub_$ac_func || defined __stub___$ac_func
30704 choke me
30705 #endif
30706
30707 int
30708 main ()
30709 {
30710 return $ac_func ();
30711   ;
30712   return 0;
30713 }
30714 _ACEOF
30715 rm -f conftest.$ac_objext conftest$ac_exeext
30716 if { (ac_try="$ac_link"
30717 case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_link") 2>conftest.er1
30723   ac_status=$?
30724   grep -v '^ *+' conftest.er1 >conftest.err
30725   rm -f conftest.er1
30726   cat conftest.err >&5
30727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728   (exit $ac_status); } &&
30729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730   { (case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_try") 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); }; } &&
30739          { ac_try='test -s conftest$ac_exeext'
30740   { (case "(($ac_try" in
30741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742   *) ac_try_echo=$ac_try;;
30743 esac
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745   (eval "$ac_try") 2>&5
30746   ac_status=$?
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); }; }; then
30749   eval "$as_ac_var=yes"
30750 else
30751   echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754         eval "$as_ac_var=no"
30755 fi
30756
30757 rm -f core conftest.err conftest.$ac_objext \
30758       conftest$ac_exeext conftest.$ac_ext
30759 fi
30760 ac_res=`eval echo '${'$as_ac_var'}'`
30761                { echo "$as_me:$LINENO: result: $ac_res" >&5
30762 echo "${ECHO_T}$ac_res" >&6; }
30763 if test `eval echo '${'$as_ac_var'}'` = yes; then
30764   cat >>confdefs.h <<_ACEOF
30765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30766 _ACEOF
30767
30768 fi
30769 done
30770
30771
30772
30773
30774
30775
30776 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30777 do
30778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30782   echo $ECHO_N "(cached) $ECHO_C" >&6
30783 else
30784   cat >conftest.$ac_ext <<_ACEOF
30785 /* confdefs.h.  */
30786 _ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h.  */
30790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30792 #define $ac_func innocuous_$ac_func
30793
30794 /* System header to define __stub macros and hopefully few prototypes,
30795     which can conflict with char $ac_func (); below.
30796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30797     <limits.h> exists even on freestanding compilers.  */
30798
30799 #ifdef __STDC__
30800 # include <limits.h>
30801 #else
30802 # include <assert.h>
30803 #endif
30804
30805 #undef $ac_func
30806
30807 /* Override any GCC internal prototype to avoid an error.
30808    Use char because int might match the return type of a GCC
30809    builtin and then its argument prototype would still apply.  */
30810 #ifdef __cplusplus
30811 extern "C"
30812 #endif
30813 char $ac_func ();
30814 /* The GNU C library defines this for functions which it implements
30815     to always fail with ENOSYS.  Some functions are actually named
30816     something starting with __ and the normal name is an alias.  */
30817 #if defined __stub_$ac_func || defined __stub___$ac_func
30818 choke me
30819 #endif
30820
30821 int
30822 main ()
30823 {
30824 return $ac_func ();
30825   ;
30826   return 0;
30827 }
30828 _ACEOF
30829 rm -f conftest.$ac_objext conftest$ac_exeext
30830 if { (ac_try="$ac_link"
30831 case "(($ac_try" in
30832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833   *) ac_try_echo=$ac_try;;
30834 esac
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836   (eval "$ac_link") 2>conftest.er1
30837   ac_status=$?
30838   grep -v '^ *+' conftest.er1 >conftest.err
30839   rm -f conftest.er1
30840   cat conftest.err >&5
30841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842   (exit $ac_status); } &&
30843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30844   { (case "(($ac_try" in
30845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846   *) ac_try_echo=$ac_try;;
30847 esac
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849   (eval "$ac_try") 2>&5
30850   ac_status=$?
30851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852   (exit $ac_status); }; } &&
30853          { ac_try='test -s conftest$ac_exeext'
30854   { (case "(($ac_try" in
30855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30856   *) ac_try_echo=$ac_try;;
30857 esac
30858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30859   (eval "$ac_try") 2>&5
30860   ac_status=$?
30861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862   (exit $ac_status); }; }; then
30863   eval "$as_ac_var=yes"
30864 else
30865   echo "$as_me: failed program was:" >&5
30866 sed 's/^/| /' conftest.$ac_ext >&5
30867
30868         eval "$as_ac_var=no"
30869 fi
30870
30871 rm -f core conftest.err conftest.$ac_objext \
30872       conftest$ac_exeext conftest.$ac_ext
30873 fi
30874 ac_res=`eval echo '${'$as_ac_var'}'`
30875                { echo "$as_me:$LINENO: result: $ac_res" >&5
30876 echo "${ECHO_T}$ac_res" >&6; }
30877 if test `eval echo '${'$as_ac_var'}'` = yes; then
30878   cat >>confdefs.h <<_ACEOF
30879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30880 _ACEOF
30881
30882 fi
30883 done
30884
30885
30886
30887
30888 for ac_func in isatty mkdtemp mkstemp
30889 do
30890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30894   echo $ECHO_N "(cached) $ECHO_C" >&6
30895 else
30896   cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h.  */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h.  */
30902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30904 #define $ac_func innocuous_$ac_func
30905
30906 /* System header to define __stub macros and hopefully few prototypes,
30907     which can conflict with char $ac_func (); below.
30908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30909     <limits.h> exists even on freestanding compilers.  */
30910
30911 #ifdef __STDC__
30912 # include <limits.h>
30913 #else
30914 # include <assert.h>
30915 #endif
30916
30917 #undef $ac_func
30918
30919 /* Override any GCC internal prototype to avoid an error.
30920    Use char because int might match the return type of a GCC
30921    builtin and then its argument prototype would still apply.  */
30922 #ifdef __cplusplus
30923 extern "C"
30924 #endif
30925 char $ac_func ();
30926 /* The GNU C library defines this for functions which it implements
30927     to always fail with ENOSYS.  Some functions are actually named
30928     something starting with __ and the normal name is an alias.  */
30929 #if defined __stub_$ac_func || defined __stub___$ac_func
30930 choke me
30931 #endif
30932
30933 int
30934 main ()
30935 {
30936 return $ac_func ();
30937   ;
30938   return 0;
30939 }
30940 _ACEOF
30941 rm -f conftest.$ac_objext conftest$ac_exeext
30942 if { (ac_try="$ac_link"
30943 case "(($ac_try" in
30944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945   *) ac_try_echo=$ac_try;;
30946 esac
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948   (eval "$ac_link") 2>conftest.er1
30949   ac_status=$?
30950   grep -v '^ *+' conftest.er1 >conftest.err
30951   rm -f conftest.er1
30952   cat conftest.err >&5
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); } &&
30955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30956   { (case "(($ac_try" in
30957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958   *) ac_try_echo=$ac_try;;
30959 esac
30960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961   (eval "$ac_try") 2>&5
30962   ac_status=$?
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); }; } &&
30965          { ac_try='test -s conftest$ac_exeext'
30966   { (case "(($ac_try" in
30967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30968   *) ac_try_echo=$ac_try;;
30969 esac
30970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30971   (eval "$ac_try") 2>&5
30972   ac_status=$?
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); }; }; then
30975   eval "$as_ac_var=yes"
30976 else
30977   echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30979
30980         eval "$as_ac_var=no"
30981 fi
30982
30983 rm -f core conftest.err conftest.$ac_objext \
30984       conftest$ac_exeext conftest.$ac_ext
30985 fi
30986 ac_res=`eval echo '${'$as_ac_var'}'`
30987                { echo "$as_me:$LINENO: result: $ac_res" >&5
30988 echo "${ECHO_T}$ac_res" >&6; }
30989 if test `eval echo '${'$as_ac_var'}'` = yes; then
30990   cat >>confdefs.h <<_ACEOF
30991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30992 _ACEOF
30993
30994 fi
30995 done
30996
30997
30998
30999
31000
31001
31002
31003
31004 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31005 do
31006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31010   echo $ECHO_N "(cached) $ECHO_C" >&6
31011 else
31012   cat >conftest.$ac_ext <<_ACEOF
31013 /* confdefs.h.  */
31014 _ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h.  */
31018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31020 #define $ac_func innocuous_$ac_func
31021
31022 /* System header to define __stub macros and hopefully few prototypes,
31023     which can conflict with char $ac_func (); below.
31024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31025     <limits.h> exists even on freestanding compilers.  */
31026
31027 #ifdef __STDC__
31028 # include <limits.h>
31029 #else
31030 # include <assert.h>
31031 #endif
31032
31033 #undef $ac_func
31034
31035 /* Override any GCC internal prototype to avoid an error.
31036    Use char because int might match the return type of a GCC
31037    builtin and then its argument prototype would still apply.  */
31038 #ifdef __cplusplus
31039 extern "C"
31040 #endif
31041 char $ac_func ();
31042 /* The GNU C library defines this for functions which it implements
31043     to always fail with ENOSYS.  Some functions are actually named
31044     something starting with __ and the normal name is an alias.  */
31045 #if defined __stub_$ac_func || defined __stub___$ac_func
31046 choke me
31047 #endif
31048
31049 int
31050 main ()
31051 {
31052 return $ac_func ();
31053   ;
31054   return 0;
31055 }
31056 _ACEOF
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061   *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064   (eval "$ac_link") 2>conftest.er1
31065   ac_status=$?
31066   grep -v '^ *+' conftest.er1 >conftest.err
31067   rm -f conftest.er1
31068   cat conftest.err >&5
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); } &&
31071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31072   { (case "(($ac_try" in
31073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074   *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077   (eval "$ac_try") 2>&5
31078   ac_status=$?
31079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080   (exit $ac_status); }; } &&
31081          { ac_try='test -s conftest$ac_exeext'
31082   { (case "(($ac_try" in
31083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084   *) ac_try_echo=$ac_try;;
31085 esac
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087   (eval "$ac_try") 2>&5
31088   ac_status=$?
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); }; }; then
31091   eval "$as_ac_var=yes"
31092 else
31093   echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31095
31096         eval "$as_ac_var=no"
31097 fi
31098
31099 rm -f core conftest.err conftest.$ac_objext \
31100       conftest$ac_exeext conftest.$ac_ext
31101 fi
31102 ac_res=`eval echo '${'$as_ac_var'}'`
31103                { echo "$as_me:$LINENO: result: $ac_res" >&5
31104 echo "${ECHO_T}$ac_res" >&6; }
31105 if test `eval echo '${'$as_ac_var'}'` = yes; then
31106   cat >>confdefs.h <<_ACEOF
31107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31108 _ACEOF
31109
31110 fi
31111 done
31112
31113
31114
31115
31116
31117 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31118 do
31119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31123   echo $ECHO_N "(cached) $ECHO_C" >&6
31124 else
31125   cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31133 #define $ac_func innocuous_$ac_func
31134
31135 /* System header to define __stub macros and hopefully few prototypes,
31136     which can conflict with char $ac_func (); below.
31137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31138     <limits.h> exists even on freestanding compilers.  */
31139
31140 #ifdef __STDC__
31141 # include <limits.h>
31142 #else
31143 # include <assert.h>
31144 #endif
31145
31146 #undef $ac_func
31147
31148 /* Override any GCC internal prototype to avoid an error.
31149    Use char because int might match the return type of a GCC
31150    builtin and then its argument prototype would still apply.  */
31151 #ifdef __cplusplus
31152 extern "C"
31153 #endif
31154 char $ac_func ();
31155 /* The GNU C library defines this for functions which it implements
31156     to always fail with ENOSYS.  Some functions are actually named
31157     something starting with __ and the normal name is an alias.  */
31158 #if defined __stub_$ac_func || defined __stub___$ac_func
31159 choke me
31160 #endif
31161
31162 int
31163 main ()
31164 {
31165 return $ac_func ();
31166   ;
31167   return 0;
31168 }
31169 _ACEOF
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (ac_try="$ac_link"
31172 case "(($ac_try" in
31173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174   *) ac_try_echo=$ac_try;;
31175 esac
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177   (eval "$ac_link") 2>conftest.er1
31178   ac_status=$?
31179   grep -v '^ *+' conftest.er1 >conftest.err
31180   rm -f conftest.er1
31181   cat conftest.err >&5
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); } &&
31184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31185   { (case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190   (eval "$ac_try") 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; } &&
31194          { ac_try='test -s conftest$ac_exeext'
31195   { (case "(($ac_try" in
31196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197   *) ac_try_echo=$ac_try;;
31198 esac
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200   (eval "$ac_try") 2>&5
31201   ac_status=$?
31202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203   (exit $ac_status); }; }; then
31204   eval "$as_ac_var=yes"
31205 else
31206   echo "$as_me: failed program was:" >&5
31207 sed 's/^/| /' conftest.$ac_ext >&5
31208
31209         eval "$as_ac_var=no"
31210 fi
31211
31212 rm -f core conftest.err conftest.$ac_objext \
31213       conftest$ac_exeext conftest.$ac_ext
31214 fi
31215 ac_res=`eval echo '${'$as_ac_var'}'`
31216                { echo "$as_me:$LINENO: result: $ac_res" >&5
31217 echo "${ECHO_T}$ac_res" >&6; }
31218 if test `eval echo '${'$as_ac_var'}'` = yes; then
31219   cat >>confdefs.h <<_ACEOF
31220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31221 _ACEOF
31222
31223 fi
31224 done
31225
31226
31227
31228
31229
31230 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31231 do
31232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31236   echo $ECHO_N "(cached) $ECHO_C" >&6
31237 else
31238   cat >conftest.$ac_ext <<_ACEOF
31239 /* confdefs.h.  */
31240 _ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h.  */
31244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31246 #define $ac_func innocuous_$ac_func
31247
31248 /* System header to define __stub macros and hopefully few prototypes,
31249     which can conflict with char $ac_func (); below.
31250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31251     <limits.h> exists even on freestanding compilers.  */
31252
31253 #ifdef __STDC__
31254 # include <limits.h>
31255 #else
31256 # include <assert.h>
31257 #endif
31258
31259 #undef $ac_func
31260
31261 /* Override any GCC internal prototype to avoid an error.
31262    Use char because int might match the return type of a GCC
31263    builtin and then its argument prototype would still apply.  */
31264 #ifdef __cplusplus
31265 extern "C"
31266 #endif
31267 char $ac_func ();
31268 /* The GNU C library defines this for functions which it implements
31269     to always fail with ENOSYS.  Some functions are actually named
31270     something starting with __ and the normal name is an alias.  */
31271 #if defined __stub_$ac_func || defined __stub___$ac_func
31272 choke me
31273 #endif
31274
31275 int
31276 main ()
31277 {
31278 return $ac_func ();
31279   ;
31280   return 0;
31281 }
31282 _ACEOF
31283 rm -f conftest.$ac_objext conftest$ac_exeext
31284 if { (ac_try="$ac_link"
31285 case "(($ac_try" in
31286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287   *) ac_try_echo=$ac_try;;
31288 esac
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290   (eval "$ac_link") 2>conftest.er1
31291   ac_status=$?
31292   grep -v '^ *+' conftest.er1 >conftest.err
31293   rm -f conftest.er1
31294   cat conftest.err >&5
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); } &&
31297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31298   { (case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_try") 2>&5
31304   ac_status=$?
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); }; } &&
31307          { ac_try='test -s conftest$ac_exeext'
31308   { (case "(($ac_try" in
31309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310   *) ac_try_echo=$ac_try;;
31311 esac
31312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313   (eval "$ac_try") 2>&5
31314   ac_status=$?
31315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316   (exit $ac_status); }; }; then
31317   eval "$as_ac_var=yes"
31318 else
31319   echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31321
31322         eval "$as_ac_var=no"
31323 fi
31324
31325 rm -f core conftest.err conftest.$ac_objext \
31326       conftest$ac_exeext conftest.$ac_ext
31327 fi
31328 ac_res=`eval echo '${'$as_ac_var'}'`
31329                { echo "$as_me:$LINENO: result: $ac_res" >&5
31330 echo "${ECHO_T}$ac_res" >&6; }
31331 if test `eval echo '${'$as_ac_var'}'` = yes; then
31332   cat >>confdefs.h <<_ACEOF
31333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31334 _ACEOF
31335
31336 fi
31337 done
31338
31339 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31340 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31341 if test "${llvm_cv_c_printf_a+set}" = set; then
31342   echo $ECHO_N "(cached) $ECHO_C" >&6
31343 else
31344   ac_ext=c
31345 ac_cpp='$CPP $CPPFLAGS'
31346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31349
31350  if test "$cross_compiling" = yes; then
31351   llvmac_cv_c_printf_a=no
31352 else
31353   cat >conftest.$ac_ext <<_ACEOF
31354
31355   /* confdefs.h.  */
31356 _ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h.  */
31360
31361 #include <stdio.h>
31362 #include <stdlib.h>
31363
31364 int
31365 main ()
31366 {
31367
31368 volatile double A, B;
31369 char Buffer[100];
31370 A = 1;
31371 A /= 10.0;
31372 sprintf(Buffer, "%a", A);
31373 B = atof(Buffer);
31374 if (A != B)
31375   return (1);
31376 if (A != 0x1.999999999999ap-4)
31377   return (1);
31378 return (0);
31379   ;
31380   return 0;
31381 }
31382 _ACEOF
31383 rm -f conftest$ac_exeext
31384 if { (ac_try="$ac_link"
31385 case "(($ac_try" in
31386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387   *) ac_try_echo=$ac_try;;
31388 esac
31389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31390   (eval "$ac_link") 2>&5
31391   ac_status=$?
31392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31394   { (case "(($ac_try" in
31395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31396   *) ac_try_echo=$ac_try;;
31397 esac
31398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31399   (eval "$ac_try") 2>&5
31400   ac_status=$?
31401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); }; }; then
31403   llvm_cv_c_printf_a=yes
31404 else
31405   echo "$as_me: program exited with status $ac_status" >&5
31406 echo "$as_me: failed program was:" >&5
31407 sed 's/^/| /' conftest.$ac_ext >&5
31408
31409 ( exit $ac_status )
31410 llvmac_cv_c_printf_a=no
31411 fi
31412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31413 fi
31414
31415
31416  ac_ext=c
31417 ac_cpp='$CPP $CPPFLAGS'
31418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31421
31422 fi
31423 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31424 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31425  if test "$llvm_cv_c_printf_a" = "yes"; then
31426
31427 cat >>confdefs.h <<\_ACEOF
31428 #define HAVE_PRINTF_A 1
31429 _ACEOF
31430
31431  fi
31432
31433 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31434 # for constant arguments.  Useless!
31435 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31436 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31437 if test "${ac_cv_working_alloca_h+set}" = set; then
31438   echo $ECHO_N "(cached) $ECHO_C" >&6
31439 else
31440   cat >conftest.$ac_ext <<_ACEOF
31441 /* confdefs.h.  */
31442 _ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h.  */
31446 #include <alloca.h>
31447 int
31448 main ()
31449 {
31450 char *p = (char *) alloca (2 * sizeof (int));
31451                           if (p) return 0;
31452   ;
31453   return 0;
31454 }
31455 _ACEOF
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (ac_try="$ac_link"
31458 case "(($ac_try" in
31459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460   *) ac_try_echo=$ac_try;;
31461 esac
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463   (eval "$ac_link") 2>conftest.er1
31464   ac_status=$?
31465   grep -v '^ *+' conftest.er1 >conftest.err
31466   rm -f conftest.er1
31467   cat conftest.err >&5
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); } &&
31470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471   { (case "(($ac_try" in
31472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473   *) ac_try_echo=$ac_try;;
31474 esac
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476   (eval "$ac_try") 2>&5
31477   ac_status=$?
31478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479   (exit $ac_status); }; } &&
31480          { ac_try='test -s conftest$ac_exeext'
31481   { (case "(($ac_try" in
31482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483   *) ac_try_echo=$ac_try;;
31484 esac
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486   (eval "$ac_try") 2>&5
31487   ac_status=$?
31488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489   (exit $ac_status); }; }; then
31490   ac_cv_working_alloca_h=yes
31491 else
31492   echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31494
31495         ac_cv_working_alloca_h=no
31496 fi
31497
31498 rm -f core conftest.err conftest.$ac_objext \
31499       conftest$ac_exeext conftest.$ac_ext
31500 fi
31501 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31502 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31503 if test $ac_cv_working_alloca_h = yes; then
31504
31505 cat >>confdefs.h <<\_ACEOF
31506 #define HAVE_ALLOCA_H 1
31507 _ACEOF
31508
31509 fi
31510
31511 { echo "$as_me:$LINENO: checking for alloca" >&5
31512 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31513 if test "${ac_cv_func_alloca_works+set}" = set; then
31514   echo $ECHO_N "(cached) $ECHO_C" >&6
31515 else
31516   cat >conftest.$ac_ext <<_ACEOF
31517 /* confdefs.h.  */
31518 _ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h.  */
31522 #ifdef __GNUC__
31523 # define alloca __builtin_alloca
31524 #else
31525 # ifdef _MSC_VER
31526 #  include <malloc.h>
31527 #  define alloca _alloca
31528 # else
31529 #  if HAVE_ALLOCA_H
31530 #   include <alloca.h>
31531 #  else
31532 #   ifdef _AIX
31533  #pragma alloca
31534 #   else
31535 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31536 char *alloca ();
31537 #    endif
31538 #   endif
31539 #  endif
31540 # endif
31541 #endif
31542
31543 int
31544 main ()
31545 {
31546 char *p = (char *) alloca (1);
31547                                     if (p) return 0;
31548   ;
31549   return 0;
31550 }
31551 _ACEOF
31552 rm -f conftest.$ac_objext conftest$ac_exeext
31553 if { (ac_try="$ac_link"
31554 case "(($ac_try" in
31555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556   *) ac_try_echo=$ac_try;;
31557 esac
31558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559   (eval "$ac_link") 2>conftest.er1
31560   ac_status=$?
31561   grep -v '^ *+' conftest.er1 >conftest.err
31562   rm -f conftest.er1
31563   cat conftest.err >&5
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); } &&
31566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31567   { (case "(($ac_try" in
31568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569   *) ac_try_echo=$ac_try;;
31570 esac
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572   (eval "$ac_try") 2>&5
31573   ac_status=$?
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); }; } &&
31576          { ac_try='test -s conftest$ac_exeext'
31577   { (case "(($ac_try" in
31578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579   *) ac_try_echo=$ac_try;;
31580 esac
31581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31582   (eval "$ac_try") 2>&5
31583   ac_status=$?
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); }; }; then
31586   ac_cv_func_alloca_works=yes
31587 else
31588   echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31590
31591         ac_cv_func_alloca_works=no
31592 fi
31593
31594 rm -f core conftest.err conftest.$ac_objext \
31595       conftest$ac_exeext conftest.$ac_ext
31596 fi
31597 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31598 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31599
31600 if test $ac_cv_func_alloca_works = yes; then
31601
31602 cat >>confdefs.h <<\_ACEOF
31603 #define HAVE_ALLOCA 1
31604 _ACEOF
31605
31606 else
31607   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31608 # that cause trouble.  Some versions do not even contain alloca or
31609 # contain a buggy version.  If you still want to use their alloca,
31610 # use ar to extract alloca.o from them instead of compiling alloca.c.
31611
31612 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31613
31614 cat >>confdefs.h <<\_ACEOF
31615 #define C_ALLOCA 1
31616 _ACEOF
31617
31618
31619 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31620 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31621 if test "${ac_cv_os_cray+set}" = set; then
31622   echo $ECHO_N "(cached) $ECHO_C" >&6
31623 else
31624   cat >conftest.$ac_ext <<_ACEOF
31625 /* confdefs.h.  */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h.  */
31630 #if defined CRAY && ! defined CRAY2
31631 webecray
31632 #else
31633 wenotbecray
31634 #endif
31635
31636 _ACEOF
31637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31638   $EGREP "webecray" >/dev/null 2>&1; then
31639   ac_cv_os_cray=yes
31640 else
31641   ac_cv_os_cray=no
31642 fi
31643 rm -f conftest*
31644
31645 fi
31646 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31647 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31648 if test $ac_cv_os_cray = yes; then
31649   for ac_func in _getb67 GETB67 getb67; do
31650     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656   cat >conftest.$ac_ext <<_ACEOF
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31664 #define $ac_func innocuous_$ac_func
31665
31666 /* System header to define __stub macros and hopefully few prototypes,
31667     which can conflict with char $ac_func (); below.
31668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669     <limits.h> exists even on freestanding compilers.  */
31670
31671 #ifdef __STDC__
31672 # include <limits.h>
31673 #else
31674 # include <assert.h>
31675 #endif
31676
31677 #undef $ac_func
31678
31679 /* Override any GCC internal prototype to avoid an error.
31680    Use char because int might match the return type of a GCC
31681    builtin and then its argument prototype would still apply.  */
31682 #ifdef __cplusplus
31683 extern "C"
31684 #endif
31685 char $ac_func ();
31686 /* The GNU C library defines this for functions which it implements
31687     to always fail with ENOSYS.  Some functions are actually named
31688     something starting with __ and the normal name is an alias.  */
31689 #if defined __stub_$ac_func || defined __stub___$ac_func
31690 choke me
31691 #endif
31692
31693 int
31694 main ()
31695 {
31696 return $ac_func ();
31697   ;
31698   return 0;
31699 }
31700 _ACEOF
31701 rm -f conftest.$ac_objext conftest$ac_exeext
31702 if { (ac_try="$ac_link"
31703 case "(($ac_try" in
31704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705   *) ac_try_echo=$ac_try;;
31706 esac
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708   (eval "$ac_link") 2>conftest.er1
31709   ac_status=$?
31710   grep -v '^ *+' conftest.er1 >conftest.err
31711   rm -f conftest.er1
31712   cat conftest.err >&5
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); } &&
31715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31716   { (case "(($ac_try" in
31717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718   *) ac_try_echo=$ac_try;;
31719 esac
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721   (eval "$ac_try") 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); }; } &&
31725          { ac_try='test -s conftest$ac_exeext'
31726   { (case "(($ac_try" in
31727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728   *) ac_try_echo=$ac_try;;
31729 esac
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731   (eval "$ac_try") 2>&5
31732   ac_status=$?
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); }; }; then
31735   eval "$as_ac_var=yes"
31736 else
31737   echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740         eval "$as_ac_var=no"
31741 fi
31742
31743 rm -f core conftest.err conftest.$ac_objext \
31744       conftest$ac_exeext conftest.$ac_ext
31745 fi
31746 ac_res=`eval echo '${'$as_ac_var'}'`
31747                { echo "$as_me:$LINENO: result: $ac_res" >&5
31748 echo "${ECHO_T}$ac_res" >&6; }
31749 if test `eval echo '${'$as_ac_var'}'` = yes; then
31750
31751 cat >>confdefs.h <<_ACEOF
31752 #define CRAY_STACKSEG_END $ac_func
31753 _ACEOF
31754
31755     break
31756 fi
31757
31758   done
31759 fi
31760
31761 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31763 if test "${ac_cv_c_stack_direction+set}" = set; then
31764   echo $ECHO_N "(cached) $ECHO_C" >&6
31765 else
31766   if test "$cross_compiling" = yes; then
31767   ac_cv_c_stack_direction=0
31768 else
31769   cat >conftest.$ac_ext <<_ACEOF
31770 /* confdefs.h.  */
31771 _ACEOF
31772 cat confdefs.h >>conftest.$ac_ext
31773 cat >>conftest.$ac_ext <<_ACEOF
31774 /* end confdefs.h.  */
31775 $ac_includes_default
31776 int
31777 find_stack_direction ()
31778 {
31779   static char *addr = 0;
31780   auto char dummy;
31781   if (addr == 0)
31782     {
31783       addr = &dummy;
31784       return find_stack_direction ();
31785     }
31786   else
31787     return (&dummy > addr) ? 1 : -1;
31788 }
31789
31790 int
31791 main ()
31792 {
31793   return find_stack_direction () < 0;
31794 }
31795 _ACEOF
31796 rm -f conftest$ac_exeext
31797 if { (ac_try="$ac_link"
31798 case "(($ac_try" in
31799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800   *) ac_try_echo=$ac_try;;
31801 esac
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803   (eval "$ac_link") 2>&5
31804   ac_status=$?
31805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31807   { (case "(($ac_try" in
31808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809   *) ac_try_echo=$ac_try;;
31810 esac
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812   (eval "$ac_try") 2>&5
31813   ac_status=$?
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); }; }; then
31816   ac_cv_c_stack_direction=1
31817 else
31818   echo "$as_me: program exited with status $ac_status" >&5
31819 echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31821
31822 ( exit $ac_status )
31823 ac_cv_c_stack_direction=-1
31824 fi
31825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31826 fi
31827
31828
31829 fi
31830 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31831 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31832
31833 cat >>confdefs.h <<_ACEOF
31834 #define STACK_DIRECTION $ac_cv_c_stack_direction
31835 _ACEOF
31836
31837
31838 fi
31839
31840
31841 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31842 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31843 if test "${ac_cv_func_rand48+set}" = set; then
31844   echo $ECHO_N "(cached) $ECHO_C" >&6
31845 else
31846   ac_ext=cpp
31847 ac_cpp='$CXXCPP $CPPFLAGS'
31848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851
31852    cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858 #include <stdlib.h>
31859 int
31860 main ()
31861 {
31862 srand48(0);lrand48();drand48();
31863   ;
31864   return 0;
31865 }
31866 _ACEOF
31867 rm -f conftest.$ac_objext
31868 if { (ac_try="$ac_compile"
31869 case "(($ac_try" in
31870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871   *) ac_try_echo=$ac_try;;
31872 esac
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874   (eval "$ac_compile") 2>conftest.er1
31875   ac_status=$?
31876   grep -v '^ *+' conftest.er1 >conftest.err
31877   rm -f conftest.er1
31878   cat conftest.err >&5
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); } &&
31881          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882   { (case "(($ac_try" in
31883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884   *) ac_try_echo=$ac_try;;
31885 esac
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887   (eval "$ac_try") 2>&5
31888   ac_status=$?
31889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890   (exit $ac_status); }; } &&
31891          { ac_try='test -s conftest.$ac_objext'
31892   { (case "(($ac_try" in
31893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894   *) ac_try_echo=$ac_try;;
31895 esac
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897   (eval "$ac_try") 2>&5
31898   ac_status=$?
31899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); }; }; then
31901   ac_cv_func_rand48=yes
31902 else
31903   echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31905
31906         ac_cv_func_rand48=no
31907 fi
31908
31909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910   ac_ext=c
31911 ac_cpp='$CPP $CPPFLAGS'
31912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31915
31916 fi
31917 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31918 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31919
31920 if test "$ac_cv_func_rand48" = "yes" ; then
31921
31922 cat >>confdefs.h <<\_ACEOF
31923 #define HAVE_RAND48 1
31924 _ACEOF
31925
31926 fi
31927
31928
31929 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31930 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31931 if test "${ac_cv_cxx_namespaces+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   ac_ext=cpp
31935 ac_cpp='$CXXCPP $CPPFLAGS'
31936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31939
31940  cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 namespace Outer { namespace Inner { int i = 0; }}
31947 int
31948 main ()
31949 {
31950 using namespace Outer::Inner; return i;
31951   ;
31952   return 0;
31953 }
31954 _ACEOF
31955 rm -f conftest.$ac_objext
31956 if { (ac_try="$ac_compile"
31957 case "(($ac_try" in
31958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959   *) ac_try_echo=$ac_try;;
31960 esac
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962   (eval "$ac_compile") 2>conftest.er1
31963   ac_status=$?
31964   grep -v '^ *+' conftest.er1 >conftest.err
31965   rm -f conftest.er1
31966   cat conftest.err >&5
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); } &&
31969          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970   { (case "(($ac_try" in
31971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972   *) ac_try_echo=$ac_try;;
31973 esac
31974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975   (eval "$ac_try") 2>&5
31976   ac_status=$?
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); }; } &&
31979          { ac_try='test -s conftest.$ac_objext'
31980   { (case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_try") 2>&5
31986   ac_status=$?
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); }; }; then
31989   ac_cv_cxx_namespaces=yes
31990 else
31991   echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31993
31994         ac_cv_cxx_namespaces=no
31995 fi
31996
31997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31998  ac_ext=c
31999 ac_cpp='$CPP $CPPFLAGS'
32000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
32004
32005 fi
32006 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32007 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32008 if test "$ac_cv_cxx_namespaces" = yes; then
32009
32010 cat >>confdefs.h <<\_ACEOF
32011 #define HAVE_NAMESPACES
32012 _ACEOF
32013
32014 fi
32015
32016 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32018 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32019   echo $ECHO_N "(cached) $ECHO_C" >&6
32020 else
32021
32022   ac_ext=cpp
32023 ac_cpp='$CXXCPP $CPPFLAGS'
32024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32027
32028   cat >conftest.$ac_ext <<_ACEOF
32029 /* confdefs.h.  */
32030 _ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h.  */
32034 #include <ext/hash_map>
32035 #ifdef HAVE_NAMESPACES
32036 using namespace std;
32037 #endif
32038 int
32039 main ()
32040 {
32041 hash_map<int, int> t;
32042   ;
32043   return 0;
32044 }
32045 _ACEOF
32046 rm -f conftest.$ac_objext
32047 if { (ac_try="$ac_compile"
32048 case "(($ac_try" in
32049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050   *) ac_try_echo=$ac_try;;
32051 esac
32052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053   (eval "$ac_compile") 2>conftest.er1
32054   ac_status=$?
32055   grep -v '^ *+' conftest.er1 >conftest.err
32056   rm -f conftest.er1
32057   cat conftest.err >&5
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); } &&
32060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32061   { (case "(($ac_try" in
32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063   *) ac_try_echo=$ac_try;;
32064 esac
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066   (eval "$ac_try") 2>&5
32067   ac_status=$?
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); }; } &&
32070          { ac_try='test -s conftest.$ac_objext'
32071   { (case "(($ac_try" in
32072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073   *) ac_try_echo=$ac_try;;
32074 esac
32075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076   (eval "$ac_try") 2>&5
32077   ac_status=$?
32078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079   (exit $ac_status); }; }; then
32080   ac_cv_cxx_have_std_ext_hash_map=yes
32081 else
32082   echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32084
32085         ac_cv_cxx_have_std_ext_hash_map=no
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089   ac_ext=c
32090 ac_cpp='$CPP $CPPFLAGS'
32091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32094
32095 fi
32096 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32097 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32098  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32099  then
32100
32101 cat >>confdefs.h <<\_ACEOF
32102 #define HAVE_STD_EXT_HASH_MAP 1
32103 _ACEOF
32104
32105  else
32106
32107 cat >>confdefs.h <<\_ACEOF
32108 #define HAVE_STD_EXT_HASH_MAP 0
32109 _ACEOF
32110
32111  fi
32112
32113  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32114 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32115 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32116   echo $ECHO_N "(cached) $ECHO_C" >&6
32117 else
32118
32119   ac_ext=cpp
32120 ac_cpp='$CXXCPP $CPPFLAGS'
32121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32124
32125   cat >conftest.$ac_ext <<_ACEOF
32126 /* confdefs.h.  */
32127 _ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h.  */
32131 #include <ext/hash_map>
32132 #ifdef HAVE_NAMESPACES
32133 using namespace __gnu_cxx;
32134 #endif
32135 int
32136 main ()
32137 {
32138 hash_map<int,int> t;
32139   ;
32140   return 0;
32141 }
32142 _ACEOF
32143 rm -f conftest.$ac_objext
32144 if { (ac_try="$ac_compile"
32145 case "(($ac_try" in
32146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147   *) ac_try_echo=$ac_try;;
32148 esac
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150   (eval "$ac_compile") 2>conftest.er1
32151   ac_status=$?
32152   grep -v '^ *+' conftest.er1 >conftest.err
32153   rm -f conftest.er1
32154   cat conftest.err >&5
32155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156   (exit $ac_status); } &&
32157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32158   { (case "(($ac_try" in
32159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160   *) ac_try_echo=$ac_try;;
32161 esac
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163   (eval "$ac_try") 2>&5
32164   ac_status=$?
32165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166   (exit $ac_status); }; } &&
32167          { ac_try='test -s conftest.$ac_objext'
32168   { (case "(($ac_try" in
32169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170   *) ac_try_echo=$ac_try;;
32171 esac
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173   (eval "$ac_try") 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; }; then
32177   ac_cv_cxx_have_gnu_ext_hash_map=yes
32178 else
32179   echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32181
32182         ac_cv_cxx_have_gnu_ext_hash_map=no
32183 fi
32184
32185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32186   ac_ext=c
32187 ac_cpp='$CPP $CPPFLAGS'
32188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32191
32192 fi
32193 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32194 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32195  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32196  then
32197
32198 cat >>confdefs.h <<\_ACEOF
32199 #define HAVE_GNU_EXT_HASH_MAP 1
32200 _ACEOF
32201
32202  else
32203
32204 cat >>confdefs.h <<\_ACEOF
32205 #define HAVE_GNU_EXT_HASH_MAP 0
32206 _ACEOF
32207
32208  fi
32209
32210  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32211 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32212 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32213   echo $ECHO_N "(cached) $ECHO_C" >&6
32214 else
32215
32216   ac_ext=cpp
32217 ac_cpp='$CXXCPP $CPPFLAGS'
32218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32221
32222   cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h.  */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h.  */
32228 #include <hash_map>
32229 int
32230 main ()
32231 {
32232 hash_map<int,int> t;
32233   ;
32234   return 0;
32235 }
32236 _ACEOF
32237 rm -f conftest.$ac_objext
32238 if { (ac_try="$ac_compile"
32239 case "(($ac_try" in
32240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241   *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244   (eval "$ac_compile") 2>conftest.er1
32245   ac_status=$?
32246   grep -v '^ *+' conftest.er1 >conftest.err
32247   rm -f conftest.er1
32248   cat conftest.err >&5
32249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); } &&
32251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32252   { (case "(($ac_try" in
32253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254   *) ac_try_echo=$ac_try;;
32255 esac
32256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257   (eval "$ac_try") 2>&5
32258   ac_status=$?
32259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260   (exit $ac_status); }; } &&
32261          { ac_try='test -s conftest.$ac_objext'
32262   { (case "(($ac_try" in
32263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264   *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267   (eval "$ac_try") 2>&5
32268   ac_status=$?
32269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270   (exit $ac_status); }; }; then
32271   ac_cv_cxx_have_global_hash_map=yes
32272 else
32273   echo "$as_me: failed program was:" >&5
32274 sed 's/^/| /' conftest.$ac_ext >&5
32275
32276         ac_cv_cxx_have_global_hash_map=no
32277 fi
32278
32279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32280   ac_ext=c
32281 ac_cpp='$CPP $CPPFLAGS'
32282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32285
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32288 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32289  if test "$ac_cv_cxx_have_global_hash_map" = yes
32290  then
32291
32292 cat >>confdefs.h <<\_ACEOF
32293 #define HAVE_GLOBAL_HASH_MAP 1
32294 _ACEOF
32295
32296  else
32297
32298 cat >>confdefs.h <<\_ACEOF
32299 #define HAVE_GLOBAL_HASH_MAP 0
32300 _ACEOF
32301
32302  fi
32303
32304 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32305 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32306 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32307   echo $ECHO_N "(cached) $ECHO_C" >&6
32308 else
32309
32310   ac_ext=cpp
32311 ac_cpp='$CXXCPP $CPPFLAGS'
32312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32315
32316   cat >conftest.$ac_ext <<_ACEOF
32317 /* confdefs.h.  */
32318 _ACEOF
32319 cat confdefs.h >>conftest.$ac_ext
32320 cat >>conftest.$ac_ext <<_ACEOF
32321 /* end confdefs.h.  */
32322 #include <ext/hash_set>
32323 #ifdef HAVE_NAMESPACES
32324 using namespace std;
32325 #endif
32326 int
32327 main ()
32328 {
32329 hash_set<int> t;
32330   ;
32331   return 0;
32332 }
32333 _ACEOF
32334 rm -f conftest.$ac_objext
32335 if { (ac_try="$ac_compile"
32336 case "(($ac_try" in
32337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338   *) ac_try_echo=$ac_try;;
32339 esac
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341   (eval "$ac_compile") 2>conftest.er1
32342   ac_status=$?
32343   grep -v '^ *+' conftest.er1 >conftest.err
32344   rm -f conftest.er1
32345   cat conftest.err >&5
32346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347   (exit $ac_status); } &&
32348          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349   { (case "(($ac_try" in
32350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351   *) ac_try_echo=$ac_try;;
32352 esac
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354   (eval "$ac_try") 2>&5
32355   ac_status=$?
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); }; } &&
32358          { ac_try='test -s conftest.$ac_objext'
32359   { (case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_try") 2>&5
32365   ac_status=$?
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); }; }; then
32368   ac_cv_cxx_have_std_ext_hash_set=yes
32369 else
32370   echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32372
32373         ac_cv_cxx_have_std_ext_hash_set=no
32374 fi
32375
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32377   ac_ext=c
32378 ac_cpp='$CPP $CPPFLAGS'
32379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32382
32383 fi
32384 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32385 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32386  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32387  then
32388
32389 cat >>confdefs.h <<\_ACEOF
32390 #define HAVE_STD_EXT_HASH_SET 1
32391 _ACEOF
32392
32393  else
32394
32395 cat >>confdefs.h <<\_ACEOF
32396 #define HAVE_STD_EXT_HASH_SET 0
32397 _ACEOF
32398
32399  fi
32400
32401  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32402 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32403 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32404   echo $ECHO_N "(cached) $ECHO_C" >&6
32405 else
32406
32407   ac_ext=cpp
32408 ac_cpp='$CXXCPP $CPPFLAGS'
32409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32412
32413   cat >conftest.$ac_ext <<_ACEOF
32414 /* confdefs.h.  */
32415 _ACEOF
32416 cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h.  */
32419 #include <ext/hash_set>
32420 #ifdef HAVE_NAMESPACES
32421 using namespace __gnu_cxx;
32422 #endif
32423 int
32424 main ()
32425 {
32426 hash_set<int> t;
32427   ;
32428   return 0;
32429 }
32430 _ACEOF
32431 rm -f conftest.$ac_objext
32432 if { (ac_try="$ac_compile"
32433 case "(($ac_try" in
32434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435   *) ac_try_echo=$ac_try;;
32436 esac
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438   (eval "$ac_compile") 2>conftest.er1
32439   ac_status=$?
32440   grep -v '^ *+' conftest.er1 >conftest.err
32441   rm -f conftest.er1
32442   cat conftest.err >&5
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); } &&
32445          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32446   { (case "(($ac_try" in
32447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448   *) ac_try_echo=$ac_try;;
32449 esac
32450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32451   (eval "$ac_try") 2>&5
32452   ac_status=$?
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); }; } &&
32455          { ac_try='test -s conftest.$ac_objext'
32456   { (case "(($ac_try" in
32457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458   *) ac_try_echo=$ac_try;;
32459 esac
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461   (eval "$ac_try") 2>&5
32462   ac_status=$?
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); }; }; then
32465   ac_cv_cxx_have_gnu_ext_hash_set=yes
32466 else
32467   echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470         ac_cv_cxx_have_gnu_ext_hash_set=no
32471 fi
32472
32473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474   ac_ext=c
32475 ac_cpp='$CPP $CPPFLAGS'
32476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32479
32480 fi
32481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32482 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32483  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32484  then
32485
32486 cat >>confdefs.h <<\_ACEOF
32487 #define HAVE_GNU_EXT_HASH_SET 1
32488 _ACEOF
32489
32490  else
32491
32492 cat >>confdefs.h <<\_ACEOF
32493 #define HAVE_GNU_EXT_HASH_SET 0
32494 _ACEOF
32495
32496  fi
32497
32498  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32499 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32500 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32501   echo $ECHO_N "(cached) $ECHO_C" >&6
32502 else
32503
32504   ac_ext=cpp
32505 ac_cpp='$CXXCPP $CPPFLAGS'
32506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32509
32510   cat >conftest.$ac_ext <<_ACEOF
32511 /* confdefs.h.  */
32512 _ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h.  */
32516 #include <hash_set>
32517 int
32518 main ()
32519 {
32520 hash_set<int> t; return 0;
32521   ;
32522   return 0;
32523 }
32524 _ACEOF
32525 rm -f conftest.$ac_objext
32526 if { (ac_try="$ac_compile"
32527 case "(($ac_try" in
32528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529   *) ac_try_echo=$ac_try;;
32530 esac
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532   (eval "$ac_compile") 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } &&
32539          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32540   { (case "(($ac_try" in
32541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542   *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545   (eval "$ac_try") 2>&5
32546   ac_status=$?
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); }; } &&
32549          { ac_try='test -s conftest.$ac_objext'
32550   { (case "(($ac_try" in
32551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552   *) ac_try_echo=$ac_try;;
32553 esac
32554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555   (eval "$ac_try") 2>&5
32556   ac_status=$?
32557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558   (exit $ac_status); }; }; then
32559   ac_cv_cxx_have_global_hash_set=yes
32560 else
32561   echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32563
32564         ac_cv_cxx_have_global_hash_set=no
32565 fi
32566
32567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32568   ac_ext=c
32569 ac_cpp='$CPP $CPPFLAGS'
32570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32573
32574 fi
32575 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32576 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32577  if test "$ac_cv_cxx_have_global_hash_set" = yes
32578  then
32579
32580 cat >>confdefs.h <<\_ACEOF
32581 #define HAVE_GLOBAL_HASH_SET 1
32582 _ACEOF
32583
32584  else
32585
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_GLOBAL_HASH_SET 0
32588 _ACEOF
32589
32590  fi
32591
32592 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32593 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32594 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32595   echo $ECHO_N "(cached) $ECHO_C" >&6
32596 else
32597
32598   ac_ext=cpp
32599 ac_cpp='$CXXCPP $CPPFLAGS'
32600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32603
32604   cat >conftest.$ac_ext <<_ACEOF
32605 /* confdefs.h.  */
32606 _ACEOF
32607 cat confdefs.h >>conftest.$ac_ext
32608 cat >>conftest.$ac_ext <<_ACEOF
32609 /* end confdefs.h.  */
32610 #include <iterator>
32611 #ifdef HAVE_NAMESPACES
32612 using namespace std;
32613 #endif
32614 int
32615 main ()
32616 {
32617 iterator<int,int,int> t; return 0;
32618   ;
32619   return 0;
32620 }
32621 _ACEOF
32622 rm -f conftest.$ac_objext
32623 if { (ac_try="$ac_compile"
32624 case "(($ac_try" in
32625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626   *) ac_try_echo=$ac_try;;
32627 esac
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629   (eval "$ac_compile") 2>conftest.er1
32630   ac_status=$?
32631   grep -v '^ *+' conftest.er1 >conftest.err
32632   rm -f conftest.er1
32633   cat conftest.err >&5
32634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635   (exit $ac_status); } &&
32636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32637   { (case "(($ac_try" in
32638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639   *) ac_try_echo=$ac_try;;
32640 esac
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642   (eval "$ac_try") 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; } &&
32646          { ac_try='test -s conftest.$ac_objext'
32647   { (case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_try") 2>&5
32653   ac_status=$?
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); }; }; then
32656   ac_cv_cxx_have_std_iterator=yes
32657 else
32658   echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32660
32661         ac_cv_cxx_have_std_iterator=no
32662 fi
32663
32664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32665   ac_ext=c
32666 ac_cpp='$CPP $CPPFLAGS'
32667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32670
32671
32672 fi
32673 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32674 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32675 if test "$ac_cv_cxx_have_std_iterator" = yes
32676 then
32677
32678 cat >>confdefs.h <<\_ACEOF
32679 #define HAVE_STD_ITERATOR 1
32680 _ACEOF
32681
32682 else
32683
32684 cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_STD_ITERATOR 0
32686 _ACEOF
32687
32688 fi
32689
32690 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32691 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32692 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32693   echo $ECHO_N "(cached) $ECHO_C" >&6
32694 else
32695
32696   ac_ext=cpp
32697 ac_cpp='$CXXCPP $CPPFLAGS'
32698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32701
32702   cat >conftest.$ac_ext <<_ACEOF
32703 /* confdefs.h.  */
32704 _ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h.  */
32708 #include <iterator>
32709 #ifdef HAVE_NAMESPACES
32710 using namespace std;
32711 #endif
32712 int
32713 main ()
32714 {
32715 bidirectional_iterator<int,int> t; return 0;
32716   ;
32717   return 0;
32718 }
32719 _ACEOF
32720 rm -f conftest.$ac_objext
32721 if { (ac_try="$ac_compile"
32722 case "(($ac_try" in
32723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724   *) ac_try_echo=$ac_try;;
32725 esac
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727   (eval "$ac_compile") 2>conftest.er1
32728   ac_status=$?
32729   grep -v '^ *+' conftest.er1 >conftest.err
32730   rm -f conftest.er1
32731   cat conftest.err >&5
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); } &&
32734          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735   { (case "(($ac_try" in
32736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737   *) ac_try_echo=$ac_try;;
32738 esac
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740   (eval "$ac_try") 2>&5
32741   ac_status=$?
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); }; } &&
32744          { ac_try='test -s conftest.$ac_objext'
32745   { (case "(($ac_try" in
32746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747   *) ac_try_echo=$ac_try;;
32748 esac
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750   (eval "$ac_try") 2>&5
32751   ac_status=$?
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); }; }; then
32754   ac_cv_cxx_have_bi_iterator=yes
32755 else
32756   echo "$as_me: failed program was:" >&5
32757 sed 's/^/| /' conftest.$ac_ext >&5
32758
32759         ac_cv_cxx_have_bi_iterator=no
32760 fi
32761
32762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32763   ac_ext=c
32764 ac_cpp='$CPP $CPPFLAGS'
32765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32768
32769
32770 fi
32771 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32772 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32773 if test "$ac_cv_cxx_have_bi_iterator" = yes
32774 then
32775
32776 cat >>confdefs.h <<\_ACEOF
32777 #define HAVE_BI_ITERATOR 1
32778 _ACEOF
32779
32780 else
32781
32782 cat >>confdefs.h <<\_ACEOF
32783 #define HAVE_BI_ITERATOR 0
32784 _ACEOF
32785
32786 fi
32787
32788 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32789 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32790 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32791   echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793
32794   ac_ext=cpp
32795 ac_cpp='$CXXCPP $CPPFLAGS'
32796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32799
32800   cat >conftest.$ac_ext <<_ACEOF
32801 /* confdefs.h.  */
32802 _ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h.  */
32806 #include <iterator>
32807 #ifdef HAVE_NAMESPACES
32808 using namespace std;
32809 #endif
32810 int
32811 main ()
32812 {
32813 forward_iterator<int,int> t; return 0;
32814   ;
32815   return 0;
32816 }
32817 _ACEOF
32818 rm -f conftest.$ac_objext
32819 if { (ac_try="$ac_compile"
32820 case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_compile") 2>conftest.er1
32826   ac_status=$?
32827   grep -v '^ *+' conftest.er1 >conftest.err
32828   rm -f conftest.er1
32829   cat conftest.err >&5
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); } &&
32832          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833   { (case "(($ac_try" in
32834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835   *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838   (eval "$ac_try") 2>&5
32839   ac_status=$?
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); }; } &&
32842          { ac_try='test -s conftest.$ac_objext'
32843   { (case "(($ac_try" in
32844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845   *) ac_try_echo=$ac_try;;
32846 esac
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848   (eval "$ac_try") 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; }; then
32852   ac_cv_cxx_have_fwd_iterator=yes
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         ac_cv_cxx_have_fwd_iterator=no
32858 fi
32859
32860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32861   ac_ext=c
32862 ac_cpp='$CPP $CPPFLAGS'
32863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32866
32867
32868 fi
32869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32870 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32871 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32872 then
32873
32874 cat >>confdefs.h <<\_ACEOF
32875 #define HAVE_FWD_ITERATOR 1
32876 _ACEOF
32877
32878 else
32879
32880 cat >>confdefs.h <<\_ACEOF
32881 #define HAVE_FWD_ITERATOR 0
32882 _ACEOF
32883
32884 fi
32885
32886
32887 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32888 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32889 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32890   echo $ECHO_N "(cached) $ECHO_C" >&6
32891 else
32892   ac_ext=cpp
32893 ac_cpp='$CXXCPP $CPPFLAGS'
32894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32897
32898    cat >conftest.$ac_ext <<_ACEOF
32899 /* confdefs.h.  */
32900 _ACEOF
32901 cat confdefs.h >>conftest.$ac_ext
32902 cat >>conftest.$ac_ext <<_ACEOF
32903 /* end confdefs.h.  */
32904 #include <math.h>
32905 int
32906 main ()
32907 {
32908 float f; isnan(f);
32909   ;
32910   return 0;
32911 }
32912 _ACEOF
32913 rm -f conftest.$ac_objext
32914 if { (ac_try="$ac_compile"
32915 case "(($ac_try" in
32916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32917   *) ac_try_echo=$ac_try;;
32918 esac
32919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32920   (eval "$ac_compile") 2>conftest.er1
32921   ac_status=$?
32922   grep -v '^ *+' conftest.er1 >conftest.err
32923   rm -f conftest.er1
32924   cat conftest.err >&5
32925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926   (exit $ac_status); } &&
32927          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32928   { (case "(($ac_try" in
32929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930   *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933   (eval "$ac_try") 2>&5
32934   ac_status=$?
32935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936   (exit $ac_status); }; } &&
32937          { ac_try='test -s conftest.$ac_objext'
32938   { (case "(($ac_try" in
32939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940   *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943   (eval "$ac_try") 2>&5
32944   ac_status=$?
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); }; }; then
32947   ac_cv_func_isnan_in_math_h=yes
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952         ac_cv_func_isnan_in_math_h=no
32953 fi
32954
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956   ac_ext=c
32957 ac_cpp='$CPP $CPPFLAGS'
32958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32961
32962 fi
32963 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32964 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32965
32966
32967 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32968
32969 cat >>confdefs.h <<\_ACEOF
32970 #define HAVE_ISNAN_IN_MATH_H 1
32971 _ACEOF
32972
32973 fi
32974
32975 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32976 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32977 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 else
32980   ac_ext=cpp
32981 ac_cpp='$CXXCPP $CPPFLAGS'
32982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32985
32986    cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992 #include <cmath>
32993 int
32994 main ()
32995 {
32996 float f; isnan(f);
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_compile") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } &&
33015          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33016   { (case "(($ac_try" in
33017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018   *) ac_try_echo=$ac_try;;
33019 esac
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021   (eval "$ac_try") 2>&5
33022   ac_status=$?
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); }; } &&
33025          { ac_try='test -s conftest.$ac_objext'
33026   { (case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_try") 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); }; }; then
33035   ac_cv_func_isnan_in_cmath=yes
33036 else
33037   echo "$as_me: failed program was:" >&5
33038 sed 's/^/| /' conftest.$ac_ext >&5
33039
33040         ac_cv_func_isnan_in_cmath=no
33041 fi
33042
33043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33044   ac_ext=c
33045 ac_cpp='$CPP $CPPFLAGS'
33046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33049
33050 fi
33051 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33052 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33053
33054 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33055
33056 cat >>confdefs.h <<\_ACEOF
33057 #define HAVE_ISNAN_IN_CMATH 1
33058 _ACEOF
33059
33060 fi
33061
33062 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33063 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33064 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067   ac_ext=cpp
33068 ac_cpp='$CXXCPP $CPPFLAGS'
33069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33072
33073    cat >conftest.$ac_ext <<_ACEOF
33074 /* confdefs.h.  */
33075 _ACEOF
33076 cat confdefs.h >>conftest.$ac_ext
33077 cat >>conftest.$ac_ext <<_ACEOF
33078 /* end confdefs.h.  */
33079 #include <cmath>
33080 int
33081 main ()
33082 {
33083 float f; std::isnan(f);
33084   ;
33085   return 0;
33086 }
33087 _ACEOF
33088 rm -f conftest.$ac_objext
33089 if { (ac_try="$ac_compile"
33090 case "(($ac_try" in
33091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092   *) ac_try_echo=$ac_try;;
33093 esac
33094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095   (eval "$ac_compile") 2>conftest.er1
33096   ac_status=$?
33097   grep -v '^ *+' conftest.er1 >conftest.err
33098   rm -f conftest.er1
33099   cat conftest.err >&5
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); } &&
33102          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33103   { (case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108   (eval "$ac_try") 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; } &&
33112          { ac_try='test -s conftest.$ac_objext'
33113   { (case "(($ac_try" in
33114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115   *) ac_try_echo=$ac_try;;
33116 esac
33117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118   (eval "$ac_try") 2>&5
33119   ac_status=$?
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); }; }; then
33122   ac_cv_func_std_isnan_in_cmath=yes
33123 else
33124   echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33126
33127         ac_cv_func_std_isnan_in_cmath=no
33128 fi
33129
33130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33131   ac_ext=c
33132 ac_cpp='$CPP $CPPFLAGS'
33133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33136
33137 fi
33138 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33139 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33140
33141 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33142
33143 cat >>confdefs.h <<\_ACEOF
33144 #define HAVE_STD_ISNAN_IN_CMATH 1
33145 _ACEOF
33146
33147 fi
33148
33149
33150 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33151 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33152 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33153   echo $ECHO_N "(cached) $ECHO_C" >&6
33154 else
33155   ac_ext=cpp
33156 ac_cpp='$CXXCPP $CPPFLAGS'
33157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
33161    cat >conftest.$ac_ext <<_ACEOF
33162 /* confdefs.h.  */
33163 _ACEOF
33164 cat confdefs.h >>conftest.$ac_ext
33165 cat >>conftest.$ac_ext <<_ACEOF
33166 /* end confdefs.h.  */
33167 #include <math.h>
33168 int
33169 main ()
33170 {
33171 float f; isinf(f);
33172   ;
33173   return 0;
33174 }
33175 _ACEOF
33176 rm -f conftest.$ac_objext
33177 if { (ac_try="$ac_compile"
33178 case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_compile") 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } &&
33190          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33191   { (case "(($ac_try" in
33192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193   *) ac_try_echo=$ac_try;;
33194 esac
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196   (eval "$ac_try") 2>&5
33197   ac_status=$?
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); }; } &&
33200          { ac_try='test -s conftest.$ac_objext'
33201   { (case "(($ac_try" in
33202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203   *) ac_try_echo=$ac_try;;
33204 esac
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206   (eval "$ac_try") 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_func_isinf_in_math_h=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215         ac_cv_func_isinf_in_math_h=no
33216 fi
33217
33218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33219   ac_ext=c
33220 ac_cpp='$CPP $CPPFLAGS'
33221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33224
33225 fi
33226 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33227 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33228
33229 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33230
33231 cat >>confdefs.h <<\_ACEOF
33232 #define HAVE_ISINF_IN_MATH_H 1
33233 _ACEOF
33234
33235 fi
33236
33237 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33238 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33239 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33240   echo $ECHO_N "(cached) $ECHO_C" >&6
33241 else
33242   ac_ext=cpp
33243 ac_cpp='$CXXCPP $CPPFLAGS'
33244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33247
33248    cat >conftest.$ac_ext <<_ACEOF
33249 /* confdefs.h.  */
33250 _ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h.  */
33254 #include <cmath>
33255 int
33256 main ()
33257 {
33258 float f; isinf(f);
33259   ;
33260   return 0;
33261 }
33262 _ACEOF
33263 rm -f conftest.$ac_objext
33264 if { (ac_try="$ac_compile"
33265 case "(($ac_try" in
33266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267   *) ac_try_echo=$ac_try;;
33268 esac
33269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270   (eval "$ac_compile") 2>conftest.er1
33271   ac_status=$?
33272   grep -v '^ *+' conftest.er1 >conftest.err
33273   rm -f conftest.er1
33274   cat conftest.err >&5
33275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276   (exit $ac_status); } &&
33277          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33278   { (case "(($ac_try" in
33279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280   *) ac_try_echo=$ac_try;;
33281 esac
33282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283   (eval "$ac_try") 2>&5
33284   ac_status=$?
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); }; } &&
33287          { ac_try='test -s conftest.$ac_objext'
33288   { (case "(($ac_try" in
33289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290   *) ac_try_echo=$ac_try;;
33291 esac
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293   (eval "$ac_try") 2>&5
33294   ac_status=$?
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); }; }; then
33297   ac_cv_func_isinf_in_cmath=yes
33298 else
33299   echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33301
33302         ac_cv_func_isinf_in_cmath=no
33303 fi
33304
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33306   ac_ext=c
33307 ac_cpp='$CPP $CPPFLAGS'
33308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33311
33312 fi
33313 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33314 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33315
33316 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33317
33318 cat >>confdefs.h <<\_ACEOF
33319 #define HAVE_ISINF_IN_CMATH 1
33320 _ACEOF
33321
33322 fi
33323
33324 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33325 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33326 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33327   echo $ECHO_N "(cached) $ECHO_C" >&6
33328 else
33329   ac_ext=cpp
33330 ac_cpp='$CXXCPP $CPPFLAGS'
33331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33334
33335    cat >conftest.$ac_ext <<_ACEOF
33336 /* confdefs.h.  */
33337 _ACEOF
33338 cat confdefs.h >>conftest.$ac_ext
33339 cat >>conftest.$ac_ext <<_ACEOF
33340 /* end confdefs.h.  */
33341 #include <cmath>
33342 int
33343 main ()
33344 {
33345 float f; std::isinf(f)}
33346   ;
33347   return 0;
33348 }
33349 _ACEOF
33350 rm -f conftest.$ac_objext
33351 if { (ac_try="$ac_compile"
33352 case "(($ac_try" in
33353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354   *) ac_try_echo=$ac_try;;
33355 esac
33356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357   (eval "$ac_compile") 2>conftest.er1
33358   ac_status=$?
33359   grep -v '^ *+' conftest.er1 >conftest.err
33360   rm -f conftest.er1
33361   cat conftest.err >&5
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); } &&
33364          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33365   { (case "(($ac_try" in
33366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367   *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370   (eval "$ac_try") 2>&5
33371   ac_status=$?
33372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373   (exit $ac_status); }; } &&
33374          { ac_try='test -s conftest.$ac_objext'
33375   { (case "(($ac_try" in
33376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33377   *) ac_try_echo=$ac_try;;
33378 esac
33379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33380   (eval "$ac_try") 2>&5
33381   ac_status=$?
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); }; }; then
33384   ac_cv_func_std_isinf_in_cmath=yes
33385 else
33386   echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33388
33389         ac_cv_func_std_isinf_in_cmath=no
33390 fi
33391
33392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33393   ac_ext=c
33394 ac_cpp='$CPP $CPPFLAGS'
33395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33398
33399 fi
33400 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33401 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33402
33403 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33404
33405 cat >>confdefs.h <<\_ACEOF
33406 #define HAVE_STD_ISINF_IN_CMATH 1
33407 _ACEOF
33408
33409 fi
33410
33411 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33412 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33413 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33414   echo $ECHO_N "(cached) $ECHO_C" >&6
33415 else
33416   ac_ext=cpp
33417 ac_cpp='$CXXCPP $CPPFLAGS'
33418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33421
33422    cat >conftest.$ac_ext <<_ACEOF
33423 /* confdefs.h.  */
33424 _ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h.  */
33428 #include <ieeefp.h>
33429 int
33430 main ()
33431 {
33432 float f; finite(f);
33433   ;
33434   return 0;
33435 }
33436 _ACEOF
33437 rm -f conftest.$ac_objext
33438 if { (ac_try="$ac_compile"
33439 case "(($ac_try" in
33440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441   *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444   (eval "$ac_compile") 2>conftest.er1
33445   ac_status=$?
33446   grep -v '^ *+' conftest.er1 >conftest.err
33447   rm -f conftest.er1
33448   cat conftest.err >&5
33449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); } &&
33451          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452   { (case "(($ac_try" in
33453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454   *) ac_try_echo=$ac_try;;
33455 esac
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457   (eval "$ac_try") 2>&5
33458   ac_status=$?
33459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460   (exit $ac_status); }; } &&
33461          { ac_try='test -s conftest.$ac_objext'
33462   { (case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_try") 2>&5
33468   ac_status=$?
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); }; }; then
33471   ac_cv_func_finite_in_ieeefp_h=yes
33472 else
33473   echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.$ac_ext >&5
33475
33476         ac_cv_func_finite_in_ieeefp_h=no
33477 fi
33478
33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33480   ac_ext=c
33481 ac_cpp='$CPP $CPPFLAGS'
33482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33485
33486 fi
33487 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33488 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33489
33490 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33491
33492 cat >>confdefs.h <<\_ACEOF
33493 #define HAVE_FINITE_IN_IEEEFP_H 1
33494 _ACEOF
33495
33496 fi
33497
33498
33499
33500 if test "$llvm_cv_platform_type" = "Unix" ; then
33501
33502
33503 for ac_header in stdlib.h unistd.h
33504 do
33505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33510   echo $ECHO_N "(cached) $ECHO_C" >&6
33511 fi
33512 ac_res=`eval echo '${'$as_ac_Header'}'`
33513                { echo "$as_me:$LINENO: result: $ac_res" >&5
33514 echo "${ECHO_T}$ac_res" >&6; }
33515 else
33516   # Is the header compilable?
33517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33519 cat >conftest.$ac_ext <<_ACEOF
33520 /* confdefs.h.  */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h.  */
33525 $ac_includes_default
33526 #include <$ac_header>
33527 _ACEOF
33528 rm -f conftest.$ac_objext
33529 if { (ac_try="$ac_compile"
33530 case "(($ac_try" in
33531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532   *) ac_try_echo=$ac_try;;
33533 esac
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535   (eval "$ac_compile") 2>conftest.er1
33536   ac_status=$?
33537   grep -v '^ *+' conftest.er1 >conftest.err
33538   rm -f conftest.er1
33539   cat conftest.err >&5
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); } &&
33542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33543   { (case "(($ac_try" in
33544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545   *) ac_try_echo=$ac_try;;
33546 esac
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548   (eval "$ac_try") 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); }; } &&
33552          { ac_try='test -s conftest.$ac_objext'
33553   { (case "(($ac_try" in
33554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555   *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558   (eval "$ac_try") 2>&5
33559   ac_status=$?
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); }; }; then
33562   ac_header_compiler=yes
33563 else
33564   echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33566
33567         ac_header_compiler=no
33568 fi
33569
33570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33572 echo "${ECHO_T}$ac_header_compiler" >&6; }
33573
33574 # Is the header present?
33575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33577 cat >conftest.$ac_ext <<_ACEOF
33578 /* confdefs.h.  */
33579 _ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h.  */
33583 #include <$ac_header>
33584 _ACEOF
33585 if { (ac_try="$ac_cpp conftest.$ac_ext"
33586 case "(($ac_try" in
33587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588   *) ac_try_echo=$ac_try;;
33589 esac
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33592   ac_status=$?
33593   grep -v '^ *+' conftest.er1 >conftest.err
33594   rm -f conftest.er1
33595   cat conftest.err >&5
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); } >/dev/null; then
33598   if test -s conftest.err; then
33599     ac_cpp_err=$ac_c_preproc_warn_flag
33600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33601   else
33602     ac_cpp_err=
33603   fi
33604 else
33605   ac_cpp_err=yes
33606 fi
33607 if test -z "$ac_cpp_err"; then
33608   ac_header_preproc=yes
33609 else
33610   echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613   ac_header_preproc=no
33614 fi
33615
33616 rm -f conftest.err conftest.$ac_ext
33617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33618 echo "${ECHO_T}$ac_header_preproc" >&6; }
33619
33620 # So?  What about this header?
33621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33622   yes:no: )
33623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33627     ac_header_preproc=yes
33628     ;;
33629   no:yes:* )
33630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33642     ( cat <<\_ASBOX
33643 ## ----------------------------------- ##
33644 ## Report this to llvmbugs@cs.uiuc.edu ##
33645 ## ----------------------------------- ##
33646 _ASBOX
33647      ) | sed "s/^/$as_me: WARNING:     /" >&2
33648     ;;
33649 esac
33650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33653   echo $ECHO_N "(cached) $ECHO_C" >&6
33654 else
33655   eval "$as_ac_Header=\$ac_header_preproc"
33656 fi
33657 ac_res=`eval echo '${'$as_ac_Header'}'`
33658                { echo "$as_me:$LINENO: result: $ac_res" >&5
33659 echo "${ECHO_T}$ac_res" >&6; }
33660
33661 fi
33662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33663   cat >>confdefs.h <<_ACEOF
33664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33665 _ACEOF
33666
33667 fi
33668
33669 done
33670
33671
33672 for ac_func in getpagesize
33673 do
33674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33678   echo $ECHO_N "(cached) $ECHO_C" >&6
33679 else
33680   cat >conftest.$ac_ext <<_ACEOF
33681 /* confdefs.h.  */
33682 _ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h.  */
33686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33688 #define $ac_func innocuous_$ac_func
33689
33690 /* System header to define __stub macros and hopefully few prototypes,
33691     which can conflict with char $ac_func (); below.
33692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33693     <limits.h> exists even on freestanding compilers.  */
33694
33695 #ifdef __STDC__
33696 # include <limits.h>
33697 #else
33698 # include <assert.h>
33699 #endif
33700
33701 #undef $ac_func
33702
33703 /* Override any GCC internal prototype to avoid an error.
33704    Use char because int might match the return type of a GCC
33705    builtin and then its argument prototype would still apply.  */
33706 #ifdef __cplusplus
33707 extern "C"
33708 #endif
33709 char $ac_func ();
33710 /* The GNU C library defines this for functions which it implements
33711     to always fail with ENOSYS.  Some functions are actually named
33712     something starting with __ and the normal name is an alias.  */
33713 #if defined __stub_$ac_func || defined __stub___$ac_func
33714 choke me
33715 #endif
33716
33717 int
33718 main ()
33719 {
33720 return $ac_func ();
33721   ;
33722   return 0;
33723 }
33724 _ACEOF
33725 rm -f conftest.$ac_objext conftest$ac_exeext
33726 if { (ac_try="$ac_link"
33727 case "(($ac_try" in
33728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729   *) ac_try_echo=$ac_try;;
33730 esac
33731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33732   (eval "$ac_link") 2>conftest.er1
33733   ac_status=$?
33734   grep -v '^ *+' conftest.er1 >conftest.err
33735   rm -f conftest.er1
33736   cat conftest.err >&5
33737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738   (exit $ac_status); } &&
33739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33740   { (case "(($ac_try" in
33741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742   *) ac_try_echo=$ac_try;;
33743 esac
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745   (eval "$ac_try") 2>&5
33746   ac_status=$?
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); }; } &&
33749          { ac_try='test -s conftest$ac_exeext'
33750   { (case "(($ac_try" in
33751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752   *) ac_try_echo=$ac_try;;
33753 esac
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755   (eval "$ac_try") 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; }; then
33759   eval "$as_ac_var=yes"
33760 else
33761   echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33763
33764         eval "$as_ac_var=no"
33765 fi
33766
33767 rm -f core conftest.err conftest.$ac_objext \
33768       conftest$ac_exeext conftest.$ac_ext
33769 fi
33770 ac_res=`eval echo '${'$as_ac_var'}'`
33771                { echo "$as_me:$LINENO: result: $ac_res" >&5
33772 echo "${ECHO_T}$ac_res" >&6; }
33773 if test `eval echo '${'$as_ac_var'}'` = yes; then
33774   cat >>confdefs.h <<_ACEOF
33775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33776 _ACEOF
33777
33778 fi
33779 done
33780
33781 { echo "$as_me:$LINENO: checking for working mmap" >&5
33782 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33784   echo $ECHO_N "(cached) $ECHO_C" >&6
33785 else
33786   if test "$cross_compiling" = yes; then
33787   ac_cv_func_mmap_fixed_mapped=no
33788 else
33789   cat >conftest.$ac_ext <<_ACEOF
33790 /* confdefs.h.  */
33791 _ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h.  */
33795 $ac_includes_default
33796 /* malloc might have been renamed as rpl_malloc. */
33797 #undef malloc
33798
33799 /* Thanks to Mike Haertel and Jim Avera for this test.
33800    Here is a matrix of mmap possibilities:
33801         mmap private not fixed
33802         mmap private fixed at somewhere currently unmapped
33803         mmap private fixed at somewhere already mapped
33804         mmap shared not fixed
33805         mmap shared fixed at somewhere currently unmapped
33806         mmap shared fixed at somewhere already mapped
33807    For private mappings, we should verify that changes cannot be read()
33808    back from the file, nor mmap's back from the file at a different
33809    address.  (There have been systems where private was not correctly
33810    implemented like the infamous i386 svr4.0, and systems where the
33811    VM page cache was not coherent with the file system buffer cache
33812    like early versions of FreeBSD and possibly contemporary NetBSD.)
33813    For shared mappings, we should conversely verify that changes get
33814    propagated back to all the places they're supposed to be.
33815
33816    Grep wants private fixed already mapped.
33817    The main things grep needs to know about mmap are:
33818    * does it exist and is it safe to write into the mmap'd area
33819    * how to use it (BSD variants)  */
33820
33821 #include <fcntl.h>
33822 #include <sys/mman.h>
33823
33824 #if !STDC_HEADERS && !HAVE_STDLIB_H
33825 char *malloc ();
33826 #endif
33827
33828 /* This mess was copied from the GNU getpagesize.h.  */
33829 #if !HAVE_GETPAGESIZE
33830 /* Assume that all systems that can run configure have sys/param.h.  */
33831 # if !HAVE_SYS_PARAM_H
33832 #  define HAVE_SYS_PARAM_H 1
33833 # endif
33834
33835 # ifdef _SC_PAGESIZE
33836 #  define getpagesize() sysconf(_SC_PAGESIZE)
33837 # else /* no _SC_PAGESIZE */
33838 #  if HAVE_SYS_PARAM_H
33839 #   include <sys/param.h>
33840 #   ifdef EXEC_PAGESIZE
33841 #    define getpagesize() EXEC_PAGESIZE
33842 #   else /* no EXEC_PAGESIZE */
33843 #    ifdef NBPG
33844 #     define getpagesize() NBPG * CLSIZE
33845 #     ifndef CLSIZE
33846 #      define CLSIZE 1
33847 #     endif /* no CLSIZE */
33848 #    else /* no NBPG */
33849 #     ifdef NBPC
33850 #      define getpagesize() NBPC
33851 #     else /* no NBPC */
33852 #      ifdef PAGESIZE
33853 #       define getpagesize() PAGESIZE
33854 #      endif /* PAGESIZE */
33855 #     endif /* no NBPC */
33856 #    endif /* no NBPG */
33857 #   endif /* no EXEC_PAGESIZE */
33858 #  else /* no HAVE_SYS_PARAM_H */
33859 #   define getpagesize() 8192   /* punt totally */
33860 #  endif /* no HAVE_SYS_PARAM_H */
33861 # endif /* no _SC_PAGESIZE */
33862
33863 #endif /* no HAVE_GETPAGESIZE */
33864
33865 int
33866 main ()
33867 {
33868   char *data, *data2, *data3;
33869   int i, pagesize;
33870   int fd;
33871
33872   pagesize = getpagesize ();
33873
33874   /* First, make a file with some known garbage in it. */
33875   data = (char *) malloc (pagesize);
33876   if (!data)
33877     return 1;
33878   for (i = 0; i < pagesize; ++i)
33879     *(data + i) = rand ();
33880   umask (0);
33881   fd = creat ("conftest.mmap", 0600);
33882   if (fd < 0)
33883     return 1;
33884   if (write (fd, data, pagesize) != pagesize)
33885     return 1;
33886   close (fd);
33887
33888   /* Next, try to mmap the file at a fixed address which already has
33889      something else allocated at it.  If we can, also make sure that
33890      we see the same garbage.  */
33891   fd = open ("conftest.mmap", O_RDWR);
33892   if (fd < 0)
33893     return 1;
33894   data2 = (char *) malloc (2 * pagesize);
33895   if (!data2)
33896     return 1;
33897   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33898   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33899                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33900     return 1;
33901   for (i = 0; i < pagesize; ++i)
33902     if (*(data + i) != *(data2 + i))
33903       return 1;
33904
33905   /* Finally, make sure that changes to the mapped area do not
33906      percolate back to the file as seen by read().  (This is a bug on
33907      some variants of i386 svr4.0.)  */
33908   for (i = 0; i < pagesize; ++i)
33909     *(data2 + i) = *(data2 + i) + 1;
33910   data3 = (char *) malloc (pagesize);
33911   if (!data3)
33912     return 1;
33913   if (read (fd, data3, pagesize) != pagesize)
33914     return 1;
33915   for (i = 0; i < pagesize; ++i)
33916     if (*(data + i) != *(data3 + i))
33917       return 1;
33918   close (fd);
33919   return 0;
33920 }
33921 _ACEOF
33922 rm -f conftest$ac_exeext
33923 if { (ac_try="$ac_link"
33924 case "(($ac_try" in
33925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926   *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929   (eval "$ac_link") 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33933   { (case "(($ac_try" in
33934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935   *) ac_try_echo=$ac_try;;
33936 esac
33937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938   (eval "$ac_try") 2>&5
33939   ac_status=$?
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); }; }; then
33942   ac_cv_func_mmap_fixed_mapped=yes
33943 else
33944   echo "$as_me: program exited with status $ac_status" >&5
33945 echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33947
33948 ( exit $ac_status )
33949 ac_cv_func_mmap_fixed_mapped=no
33950 fi
33951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33952 fi
33953
33954
33955 fi
33956 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33957 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33958 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33959
33960 cat >>confdefs.h <<\_ACEOF
33961 #define HAVE_MMAP 1
33962 _ACEOF
33963
33964 fi
33965 rm -f conftest.mmap
33966
33967   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33968 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33969 if test "${ac_cv_func_mmap_file+set}" = set; then
33970   echo $ECHO_N "(cached) $ECHO_C" >&6
33971 else
33972    ac_ext=c
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978   if test "$cross_compiling" = yes; then
33979   ac_cv_func_mmap_file=no
33980 else
33981   cat >conftest.$ac_ext <<_ACEOF
33982
33983     /* confdefs.h.  */
33984 _ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h.  */
33988
33989 #include <sys/types.h>
33990 #include <sys/mman.h>
33991 #include <fcntl.h>
33992
33993 int
33994 main ()
33995 {
33996
33997   int fd;
33998   fd = creat ("foo",0777);
33999   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34000   unlink ("foo");
34001   return (fd != (int) MAP_FAILED);
34002   ;
34003   return 0;
34004 }
34005 _ACEOF
34006 rm -f conftest$ac_exeext
34007 if { (ac_try="$ac_link"
34008 case "(($ac_try" in
34009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010   *) ac_try_echo=$ac_try;;
34011 esac
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013   (eval "$ac_link") 2>&5
34014   ac_status=$?
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34017   { (case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_try") 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; }; then
34026   ac_cv_func_mmap_file=yes
34027 else
34028   echo "$as_me: program exited with status $ac_status" >&5
34029 echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34031
34032 ( exit $ac_status )
34033 ac_cv_func_mmap_file=no
34034 fi
34035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34036 fi
34037
34038
34039   ac_ext=c
34040 ac_cpp='$CPP $CPPFLAGS'
34041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34044
34045
34046 fi
34047 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34048 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34049 if test "$ac_cv_func_mmap_file" = yes; then
34050
34051 cat >>confdefs.h <<\_ACEOF
34052 #define HAVE_MMAP_FILE
34053 _ACEOF
34054
34055    MMAP_FILE=yes
34056
34057 fi
34058
34059   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34060 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34061 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34062   echo $ECHO_N "(cached) $ECHO_C" >&6
34063 else
34064   if test "$llvm_cv_os_type" = "Interix" ; then
34065    ac_cv_need_dev_zero_for_mmap=yes
34066  else
34067    ac_cv_need_dev_zero_for_mmap=no
34068  fi
34069
34070 fi
34071 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34072 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34073 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34074
34075 cat >>confdefs.h <<\_ACEOF
34076 #define NEED_DEV_ZERO_FOR_MMAP 1
34077 _ACEOF
34078
34079 fi
34080
34081   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34082   then
34083     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34084 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34085   fi
34086   if test "$ac_cv_func_mmap_file" = "no"
34087   then
34088     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34089 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34090   fi
34091 fi
34092
34093
34094
34095 for ac_func in __dso_handle
34096 do
34097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34101   echo $ECHO_N "(cached) $ECHO_C" >&6
34102 else
34103   cat >conftest.$ac_ext <<_ACEOF
34104 /* confdefs.h.  */
34105 _ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h.  */
34109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34111 #define $ac_func innocuous_$ac_func
34112
34113 /* System header to define __stub macros and hopefully few prototypes,
34114     which can conflict with char $ac_func (); below.
34115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34116     <limits.h> exists even on freestanding compilers.  */
34117
34118 #ifdef __STDC__
34119 # include <limits.h>
34120 #else
34121 # include <assert.h>
34122 #endif
34123
34124 #undef $ac_func
34125
34126 /* Override any GCC internal prototype to avoid an error.
34127    Use char because int might match the return type of a GCC
34128    builtin and then its argument prototype would still apply.  */
34129 #ifdef __cplusplus
34130 extern "C"
34131 #endif
34132 char $ac_func ();
34133 /* The GNU C library defines this for functions which it implements
34134     to always fail with ENOSYS.  Some functions are actually named
34135     something starting with __ and the normal name is an alias.  */
34136 #if defined __stub_$ac_func || defined __stub___$ac_func
34137 choke me
34138 #endif
34139
34140 int
34141 main ()
34142 {
34143 return $ac_func ();
34144   ;
34145   return 0;
34146 }
34147 _ACEOF
34148 rm -f conftest.$ac_objext conftest$ac_exeext
34149 if { (ac_try="$ac_link"
34150 case "(($ac_try" in
34151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34152   *) ac_try_echo=$ac_try;;
34153 esac
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155   (eval "$ac_link") 2>conftest.er1
34156   ac_status=$?
34157   grep -v '^ *+' conftest.er1 >conftest.err
34158   rm -f conftest.er1
34159   cat conftest.err >&5
34160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161   (exit $ac_status); } &&
34162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34163   { (case "(($ac_try" in
34164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165   *) ac_try_echo=$ac_try;;
34166 esac
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168   (eval "$ac_try") 2>&5
34169   ac_status=$?
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); }; } &&
34172          { ac_try='test -s conftest$ac_exeext'
34173   { (case "(($ac_try" in
34174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175   *) ac_try_echo=$ac_try;;
34176 esac
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178   (eval "$ac_try") 2>&5
34179   ac_status=$?
34180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181   (exit $ac_status); }; }; then
34182   eval "$as_ac_var=yes"
34183 else
34184   echo "$as_me: failed program was:" >&5
34185 sed 's/^/| /' conftest.$ac_ext >&5
34186
34187         eval "$as_ac_var=no"
34188 fi
34189
34190 rm -f core conftest.err conftest.$ac_objext \
34191       conftest$ac_exeext conftest.$ac_ext
34192 fi
34193 ac_res=`eval echo '${'$as_ac_var'}'`
34194                { echo "$as_me:$LINENO: result: $ac_res" >&5
34195 echo "${ECHO_T}$ac_res" >&6; }
34196 if test `eval echo '${'$as_ac_var'}'` = yes; then
34197   cat >>confdefs.h <<_ACEOF
34198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34199 _ACEOF
34200
34201 fi
34202 done
34203
34204
34205 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34206 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34207 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34208   echo $ECHO_N "(cached) $ECHO_C" >&6
34209 else
34210   llvm_cv_llvmgcc_sanity="no"
34211 if test -x "$LLVMGCC" ; then
34212   cp /dev/null conftest.c
34213   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34214       grep 'target datalayout =' > /dev/null 2>&1
34215   if test $? -eq 0 ; then
34216     llvm_cv_llvmgcc_sanity="yes"
34217   fi
34218   rm conftest.c
34219 fi
34220 fi
34221 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34222 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34223
34224 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34225   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34226 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34227   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34228   LLVMCC1=$llvmcc1path
34229
34230   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34231   LLVMCC1PLUS=$llvmcc1pluspath
34232
34233   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34234   LLVMGCCDIR=$llvmgccdir
34235
34236   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34237   LLVMGCCLIBEXEC=$llvmgcclibexec
34238
34239   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34240   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34241   LLVMGCC_VERSION=$llvmgccversion
34242
34243   LLVMGCC_MAJVERS=$llvmgccmajvers
34244
34245   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34246   LLVMGCC_LANGS=$llvmgcclangs
34247
34248   { echo "$as_me:$LINENO: result: ok" >&5
34249 echo "${ECHO_T}ok" >&6; }
34250 fi
34251
34252 SHLIBEXT=$libltdl_cv_shlibext
34253
34254
34255 # Translate the various configuration directories and other basic
34256 # information into substitutions that will end up in Makefile.config.in
34257 # that these configured values can be used by the makefiles
34258 if test "${prefix}" = "NONE" ; then
34259   prefix="/usr/local"
34260 fi
34261 eval LLVM_PREFIX="${prefix}";
34262 eval LLVM_BINDIR="${prefix}/bin";
34263 eval LLVM_LIBDIR="${prefix}/lib";
34264 eval LLVM_DATADIR="${prefix}/share/llvm";
34265 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34266 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34267 eval LLVM_INCLUDEDIR="${prefix}/include";
34268 eval LLVM_INFODIR="${prefix}/info";
34269 eval LLVM_MANDIR="${prefix}/man";
34270 LLVM_CONFIGTIME=`date`
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282 # Place the various directores into the config.h file as #defines so that we
34283 # can know about the installation paths within LLVM.
34284
34285 cat >>confdefs.h <<_ACEOF
34286 #define LLVM_PREFIX "$LLVM_PREFIX"
34287 _ACEOF
34288
34289
34290 cat >>confdefs.h <<_ACEOF
34291 #define LLVM_BINDIR "$LLVM_BINDIR"
34292 _ACEOF
34293
34294
34295 cat >>confdefs.h <<_ACEOF
34296 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34297 _ACEOF
34298
34299
34300 cat >>confdefs.h <<_ACEOF
34301 #define LLVM_DATADIR "$LLVM_DATADIR"
34302 _ACEOF
34303
34304
34305 cat >>confdefs.h <<_ACEOF
34306 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34307 _ACEOF
34308
34309
34310 cat >>confdefs.h <<_ACEOF
34311 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34312 _ACEOF
34313
34314
34315 cat >>confdefs.h <<_ACEOF
34316 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34317 _ACEOF
34318
34319
34320 cat >>confdefs.h <<_ACEOF
34321 #define LLVM_INFODIR "$LLVM_INFODIR"
34322 _ACEOF
34323
34324
34325 cat >>confdefs.h <<_ACEOF
34326 #define LLVM_MANDIR "$LLVM_MANDIR"
34327 _ACEOF
34328
34329
34330 cat >>confdefs.h <<_ACEOF
34331 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34332 _ACEOF
34333
34334
34335 cat >>confdefs.h <<_ACEOF
34336 #define LLVM_HOSTTRIPLE "$host"
34337 _ACEOF
34338
34339
34340 # Determine which bindings to build.
34341 if test "$BINDINGS_TO_BUILD" = auto ; then
34342   BINDINGS_TO_BUILD=""
34343   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34344     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34345   fi
34346 fi
34347 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34348
34349
34350 # This isn't really configurey, but it avoids having to repeat the list in
34351 # other files.
34352 ALL_BINDINGS=ocaml
34353
34354
34355 # Do any work necessary to ensure that bindings have what they need.
34356 binding_prereqs_failed=0
34357 for a_binding in $BINDINGS_TO_BUILD ; do
34358   case "$a_binding" in
34359   ocaml)
34360     if test "x$OCAMLC" = x ; then
34361       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34362 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34363       binding_prereqs_failed=1
34364     fi
34365     if test "x$OCAMLDEP" = x ; then
34366       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34367 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34368       binding_prereqs_failed=1
34369     fi
34370     if test "x$OCAMLOPT" = x ; then
34371       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34372 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34373           fi
34374     if test "x$with_ocaml_libdir" != xauto ; then
34375       OCAML_LIBDIR=$with_ocaml_libdir
34376
34377     else
34378       ocaml_stdlib="`"$OCAMLC" -where`"
34379       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34380       then
34381         # ocaml stdlib is beneath our prefix; use stdlib
34382         OCAML_LIBDIR=$ocaml_stdlib
34383
34384       else
34385         # ocaml stdlib is outside our prefix; use libdir/ocaml
34386         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34387
34388       fi
34389     fi
34390     ;;
34391   esac
34392 done
34393 if test "$binding_prereqs_failed" = 1 ; then
34394   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34395 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34396    { (exit 1); exit 1; }; }
34397 fi
34398
34399 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34400 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34401 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34402   echo $ECHO_N "(cached) $ECHO_C" >&6
34403 else
34404    ac_ext=cpp
34405 ac_cpp='$CXXCPP $CPPFLAGS'
34406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34409
34410   oldcxxflags="$CXXFLAGS"
34411   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34412   cat >conftest.$ac_ext <<_ACEOF
34413 /* confdefs.h.  */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h.  */
34418
34419 int
34420 main ()
34421 {
34422
34423   ;
34424   return 0;
34425 }
34426 _ACEOF
34427 rm -f conftest.$ac_objext
34428 if { (ac_try="$ac_compile"
34429 case "(($ac_try" in
34430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431   *) ac_try_echo=$ac_try;;
34432 esac
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434   (eval "$ac_compile") 2>conftest.er1
34435   ac_status=$?
34436   grep -v '^ *+' conftest.er1 >conftest.err
34437   rm -f conftest.er1
34438   cat conftest.err >&5
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); } &&
34441          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34442   { (case "(($ac_try" in
34443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444   *) ac_try_echo=$ac_try;;
34445 esac
34446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447   (eval "$ac_try") 2>&5
34448   ac_status=$?
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); }; } &&
34451          { ac_try='test -s conftest.$ac_objext'
34452   { (case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457   (eval "$ac_try") 2>&5
34458   ac_status=$?
34459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460   (exit $ac_status); }; }; then
34461   llvm_cv_cxx_visibility_inlines_hidden=yes
34462 else
34463   echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34465
34466         llvm_cv_cxx_visibility_inlines_hidden=no
34467 fi
34468
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470   CXXFLAGS="$oldcxxflags"
34471   ac_ext=c
34472 ac_cpp='$CPP $CPPFLAGS'
34473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34476
34477
34478 fi
34479 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34480 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34481 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34482   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34483
34484 else
34485   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34486
34487 fi
34488
34489
34490
34491 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34492
34493 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34494
34495 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34496
34497 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34498
34499 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34500
34501
34502 ac_config_files="$ac_config_files Makefile.config"
34503
34504
34505 ac_config_files="$ac_config_files llvm.spec"
34506
34507
34508 ac_config_files="$ac_config_files docs/doxygen.cfg"
34509
34510
34511 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34512
34513
34514 ac_config_commands="$ac_config_commands setup"
34515
34516 ac_config_commands="$ac_config_commands Makefile"
34517
34518
34519 ac_config_commands="$ac_config_commands Makefile.common"
34520
34521
34522 ac_config_commands="$ac_config_commands examples/Makefile"
34523
34524
34525 ac_config_commands="$ac_config_commands lib/Makefile"
34526
34527
34528 ac_config_commands="$ac_config_commands runtime/Makefile"
34529
34530
34531 ac_config_commands="$ac_config_commands test/Makefile"
34532
34533
34534 ac_config_commands="$ac_config_commands test/Makefile.tests"
34535
34536
34537 ac_config_commands="$ac_config_commands tools/Makefile"
34538
34539
34540 ac_config_commands="$ac_config_commands utils/Makefile"
34541
34542
34543 ac_config_commands="$ac_config_commands projects/Makefile"
34544
34545
34546 ac_config_commands="$ac_config_commands bindings/Makefile"
34547
34548
34549 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34550
34551
34552
34553 cat >confcache <<\_ACEOF
34554 # This file is a shell script that caches the results of configure
34555 # tests run on this system so they can be shared between configure
34556 # scripts and configure runs, see configure's option --config-cache.
34557 # It is not useful on other systems.  If it contains results you don't
34558 # want to keep, you may remove or edit it.
34559 #
34560 # config.status only pays attention to the cache file if you give it
34561 # the --recheck option to rerun configure.
34562 #
34563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34565 # following values.
34566
34567 _ACEOF
34568
34569 # The following way of writing the cache mishandles newlines in values,
34570 # but we know of no workaround that is simple, portable, and efficient.
34571 # So, we kill variables containing newlines.
34572 # Ultrix sh set writes to stderr and can't be redirected directly,
34573 # and sets the high bit in the cache file unless we assign to the vars.
34574 (
34575   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34576     eval ac_val=\$$ac_var
34577     case $ac_val in #(
34578     *${as_nl}*)
34579       case $ac_var in #(
34580       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34581 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34582       esac
34583       case $ac_var in #(
34584       _ | IFS | as_nl) ;; #(
34585       *) $as_unset $ac_var ;;
34586       esac ;;
34587     esac
34588   done
34589
34590   (set) 2>&1 |
34591     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34592     *${as_nl}ac_space=\ *)
34593       # `set' does not quote correctly, so add quotes (double-quote
34594       # substitution turns \\\\ into \\, and sed turns \\ into \).
34595       sed -n \
34596         "s/'/'\\\\''/g;
34597           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34598       ;; #(
34599     *)
34600       # `set' quotes correctly as required by POSIX, so do not add quotes.
34601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34602       ;;
34603     esac |
34604     sort
34605 ) |
34606   sed '
34607      /^ac_cv_env_/b end
34608      t clear
34609      :clear
34610      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34611      t end
34612      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34613      :end' >>confcache
34614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34615   if test -w "$cache_file"; then
34616     test "x$cache_file" != "x/dev/null" &&
34617       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34618 echo "$as_me: updating cache $cache_file" >&6;}
34619     cat confcache >$cache_file
34620   else
34621     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34622 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34623   fi
34624 fi
34625 rm -f confcache
34626
34627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34628 # Let make expand exec_prefix.
34629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34630
34631 DEFS=-DHAVE_CONFIG_H
34632
34633 ac_libobjs=
34634 ac_ltlibobjs=
34635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34636   # 1. Remove the extension, and $U if already installed.
34637   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34638   ac_i=`echo "$ac_i" | sed "$ac_script"`
34639   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34640   #    will be set to the directory where LIBOBJS objects are built.
34641   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34642   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34643 done
34644 LIBOBJS=$ac_libobjs
34645
34646 LTLIBOBJS=$ac_ltlibobjs
34647
34648
34649 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34650   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34651 Usually this means the macro was only invoked conditionally." >&5
34652 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34653 Usually this means the macro was only invoked conditionally." >&2;}
34654    { (exit 1); exit 1; }; }
34655 fi
34656 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34657   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34658 Usually this means the macro was only invoked conditionally." >&5
34659 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34660 Usually this means the macro was only invoked conditionally." >&2;}
34661    { (exit 1); exit 1; }; }
34662 fi
34663
34664 : ${CONFIG_STATUS=./config.status}
34665 ac_clean_files_save=$ac_clean_files
34666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34669 cat >$CONFIG_STATUS <<_ACEOF
34670 #! $SHELL
34671 # Generated by $as_me.
34672 # Run this file to recreate the current configuration.
34673 # Compiler output produced by configure, useful for debugging
34674 # configure, is in config.log if it exists.
34675
34676 debug=false
34677 ac_cs_recheck=false
34678 ac_cs_silent=false
34679 SHELL=\${CONFIG_SHELL-$SHELL}
34680 _ACEOF
34681
34682 cat >>$CONFIG_STATUS <<\_ACEOF
34683 ## --------------------- ##
34684 ## M4sh Initialization.  ##
34685 ## --------------------- ##
34686
34687 # Be Bourne compatible
34688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34689   emulate sh
34690   NULLCMD=:
34691   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34692   # is contrary to our usage.  Disable this feature.
34693   alias -g '${1+"$@"}'='"$@"'
34694   setopt NO_GLOB_SUBST
34695 else
34696   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34697 fi
34698 BIN_SH=xpg4; export BIN_SH # for Tru64
34699 DUALCASE=1; export DUALCASE # for MKS sh
34700
34701
34702 # PATH needs CR
34703 # Avoid depending upon Character Ranges.
34704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34707 as_cr_digits='0123456789'
34708 as_cr_alnum=$as_cr_Letters$as_cr_digits
34709
34710 # The user is always right.
34711 if test "${PATH_SEPARATOR+set}" != set; then
34712   echo "#! /bin/sh" >conf$$.sh
34713   echo  "exit 0"   >>conf$$.sh
34714   chmod +x conf$$.sh
34715   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34716     PATH_SEPARATOR=';'
34717   else
34718     PATH_SEPARATOR=:
34719   fi
34720   rm -f conf$$.sh
34721 fi
34722
34723 # Support unset when possible.
34724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34725   as_unset=unset
34726 else
34727   as_unset=false
34728 fi
34729
34730
34731 # IFS
34732 # We need space, tab and new line, in precisely that order.  Quoting is
34733 # there to prevent editors from complaining about space-tab.
34734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34735 # splitting by setting IFS to empty value.)
34736 as_nl='
34737 '
34738 IFS=" ""        $as_nl"
34739
34740 # Find who we are.  Look in the path if we contain no directory separator.
34741 case $0 in
34742   *[\\/]* ) as_myself=$0 ;;
34743   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34744 for as_dir in $PATH
34745 do
34746   IFS=$as_save_IFS
34747   test -z "$as_dir" && as_dir=.
34748   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34749 done
34750 IFS=$as_save_IFS
34751
34752      ;;
34753 esac
34754 # We did not find ourselves, most probably we were run as `sh COMMAND'
34755 # in which case we are not to be found in the path.
34756 if test "x$as_myself" = x; then
34757   as_myself=$0
34758 fi
34759 if test ! -f "$as_myself"; then
34760   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34761   { (exit 1); exit 1; }
34762 fi
34763
34764 # Work around bugs in pre-3.0 UWIN ksh.
34765 for as_var in ENV MAIL MAILPATH
34766 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34767 done
34768 PS1='$ '
34769 PS2='> '
34770 PS4='+ '
34771
34772 # NLS nuisances.
34773 for as_var in \
34774   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34775   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34776   LC_TELEPHONE LC_TIME
34777 do
34778   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34779     eval $as_var=C; export $as_var
34780   else
34781     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34782   fi
34783 done
34784
34785 # Required to use basename.
34786 if expr a : '\(a\)' >/dev/null 2>&1 &&
34787    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34788   as_expr=expr
34789 else
34790   as_expr=false
34791 fi
34792
34793 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34794   as_basename=basename
34795 else
34796   as_basename=false
34797 fi
34798
34799
34800 # Name of the executable.
34801 as_me=`$as_basename -- "$0" ||
34802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34803          X"$0" : 'X\(//\)$' \| \
34804          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34805 echo X/"$0" |
34806     sed '/^.*\/\([^/][^/]*\)\/*$/{
34807             s//\1/
34808             q
34809           }
34810           /^X\/\(\/\/\)$/{
34811             s//\1/
34812             q
34813           }
34814           /^X\/\(\/\).*/{
34815             s//\1/
34816             q
34817           }
34818           s/.*/./; q'`
34819
34820 # CDPATH.
34821 $as_unset CDPATH
34822
34823
34824
34825   as_lineno_1=$LINENO
34826   as_lineno_2=$LINENO
34827   test "x$as_lineno_1" != "x$as_lineno_2" &&
34828   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34829
34830   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34831   # uniformly replaced by the line number.  The first 'sed' inserts a
34832   # line-number line after each line using $LINENO; the second 'sed'
34833   # does the real work.  The second script uses 'N' to pair each
34834   # line-number line with the line containing $LINENO, and appends
34835   # trailing '-' during substitution so that $LINENO is not a special
34836   # case at line end.
34837   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34838   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34839   # E. McMahon (1931-1989) for sed's syntax.  :-)
34840   sed -n '
34841     p
34842     /[$]LINENO/=
34843   ' <$as_myself |
34844     sed '
34845       s/[$]LINENO.*/&-/
34846       t lineno
34847       b
34848       :lineno
34849       N
34850       :loop
34851       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34852       t loop
34853       s/-\n.*//
34854     ' >$as_me.lineno &&
34855   chmod +x "$as_me.lineno" ||
34856     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34857    { (exit 1); exit 1; }; }
34858
34859   # Don't try to exec as it changes $[0], causing all sort of problems
34860   # (the dirname of $[0] is not the place where we might find the
34861   # original and so on.  Autoconf is especially sensitive to this).
34862   . "./$as_me.lineno"
34863   # Exit status is that of the last command.
34864   exit
34865 }
34866
34867
34868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34869   as_dirname=dirname
34870 else
34871   as_dirname=false
34872 fi
34873
34874 ECHO_C= ECHO_N= ECHO_T=
34875 case `echo -n x` in
34876 -n*)
34877   case `echo 'x\c'` in
34878   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34879   *)   ECHO_C='\c';;
34880   esac;;
34881 *)
34882   ECHO_N='-n';;
34883 esac
34884
34885 if expr a : '\(a\)' >/dev/null 2>&1 &&
34886    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34887   as_expr=expr
34888 else
34889   as_expr=false
34890 fi
34891
34892 rm -f conf$$ conf$$.exe conf$$.file
34893 if test -d conf$$.dir; then
34894   rm -f conf$$.dir/conf$$.file
34895 else
34896   rm -f conf$$.dir
34897   mkdir conf$$.dir
34898 fi
34899 echo >conf$$.file
34900 if ln -s conf$$.file conf$$ 2>/dev/null; then
34901   as_ln_s='ln -s'
34902   # ... but there are two gotchas:
34903   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34904   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34905   # In both cases, we have to default to `cp -p'.
34906   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34907     as_ln_s='cp -p'
34908 elif ln conf$$.file conf$$ 2>/dev/null; then
34909   as_ln_s=ln
34910 else
34911   as_ln_s='cp -p'
34912 fi
34913 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34914 rmdir conf$$.dir 2>/dev/null
34915
34916 if mkdir -p . 2>/dev/null; then
34917   as_mkdir_p=:
34918 else
34919   test -d ./-p && rmdir ./-p
34920   as_mkdir_p=false
34921 fi
34922
34923 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34924 # systems may use methods other than mode bits to determine executability.
34925 cat >conf$$.file <<_ASEOF
34926 #! /bin/sh
34927 exit 0
34928 _ASEOF
34929 chmod +x conf$$.file
34930 if test -x conf$$.file >/dev/null 2>&1; then
34931   as_executable_p="test -x"
34932 else
34933   as_executable_p=:
34934 fi
34935 rm -f conf$$.file
34936
34937 # Sed expression to map a string onto a valid CPP name.
34938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34939
34940 # Sed expression to map a string onto a valid variable name.
34941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34942
34943
34944 exec 6>&1
34945
34946 # Save the log message, to keep $[0] and so on meaningful, and to
34947 # report actual input values of CONFIG_FILES etc. instead of their
34948 # values after options handling.
34949 ac_log="
34950 This file was extended by llvm $as_me 2.4svn, which was
34951 generated by GNU Autoconf 2.60.  Invocation command line was
34952
34953   CONFIG_FILES    = $CONFIG_FILES
34954   CONFIG_HEADERS  = $CONFIG_HEADERS
34955   CONFIG_LINKS    = $CONFIG_LINKS
34956   CONFIG_COMMANDS = $CONFIG_COMMANDS
34957   $ $0 $@
34958
34959 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34960 "
34961
34962 _ACEOF
34963
34964 cat >>$CONFIG_STATUS <<_ACEOF
34965 # Files that config.status was made for.
34966 config_files="$ac_config_files"
34967 config_headers="$ac_config_headers"
34968 config_commands="$ac_config_commands"
34969
34970 _ACEOF
34971
34972 cat >>$CONFIG_STATUS <<\_ACEOF
34973 ac_cs_usage="\
34974 \`$as_me' instantiates files from templates according to the
34975 current configuration.
34976
34977 Usage: $0 [OPTIONS] [FILE]...
34978
34979   -h, --help       print this help, then exit
34980   -V, --version    print version number, then exit
34981   -q, --quiet      do not print progress messages
34982   -d, --debug      don't remove temporary files
34983       --recheck    update $as_me by reconfiguring in the same conditions
34984   --file=FILE[:TEMPLATE]
34985                    instantiate the configuration file FILE
34986   --header=FILE[:TEMPLATE]
34987                    instantiate the configuration header FILE
34988
34989 Configuration files:
34990 $config_files
34991
34992 Configuration headers:
34993 $config_headers
34994
34995 Configuration commands:
34996 $config_commands
34997
34998 Report bugs to <bug-autoconf@gnu.org>."
34999
35000 _ACEOF
35001 cat >>$CONFIG_STATUS <<_ACEOF
35002 ac_cs_version="\\
35003 llvm config.status 2.4svn
35004 configured by $0, generated by GNU Autoconf 2.60,
35005   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35006
35007 Copyright (C) 2006 Free Software Foundation, Inc.
35008 This config.status script is free software; the Free Software Foundation
35009 gives unlimited permission to copy, distribute and modify it."
35010
35011 ac_pwd='$ac_pwd'
35012 srcdir='$srcdir'
35013 INSTALL='$INSTALL'
35014 _ACEOF
35015
35016 cat >>$CONFIG_STATUS <<\_ACEOF
35017 # If no file are specified by the user, then we need to provide default
35018 # value.  By we need to know if files were specified by the user.
35019 ac_need_defaults=:
35020 while test $# != 0
35021 do
35022   case $1 in
35023   --*=*)
35024     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35025     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35026     ac_shift=:
35027     ;;
35028   *)
35029     ac_option=$1
35030     ac_optarg=$2
35031     ac_shift=shift
35032     ;;
35033   esac
35034
35035   case $ac_option in
35036   # Handling of the options.
35037   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35038     ac_cs_recheck=: ;;
35039   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35040     echo "$ac_cs_version"; exit ;;
35041   --debug | --debu | --deb | --de | --d | -d )
35042     debug=: ;;
35043   --file | --fil | --fi | --f )
35044     $ac_shift
35045     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35046     ac_need_defaults=false;;
35047   --header | --heade | --head | --hea )
35048     $ac_shift
35049     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35050     ac_need_defaults=false;;
35051   --he | --h)
35052     # Conflict between --help and --header
35053     { echo "$as_me: error: ambiguous option: $1
35054 Try \`$0 --help' for more information." >&2
35055    { (exit 1); exit 1; }; };;
35056   --help | --hel | -h )
35057     echo "$ac_cs_usage"; exit ;;
35058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35059   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35060     ac_cs_silent=: ;;
35061
35062   # This is an error.
35063   -*) { echo "$as_me: error: unrecognized option: $1
35064 Try \`$0 --help' for more information." >&2
35065    { (exit 1); exit 1; }; } ;;
35066
35067   *) ac_config_targets="$ac_config_targets $1"
35068      ac_need_defaults=false ;;
35069
35070   esac
35071   shift
35072 done
35073
35074 ac_configure_extra_args=
35075
35076 if $ac_cs_silent; then
35077   exec 6>/dev/null
35078   ac_configure_extra_args="$ac_configure_extra_args --silent"
35079 fi
35080
35081 _ACEOF
35082 cat >>$CONFIG_STATUS <<_ACEOF
35083 if \$ac_cs_recheck; then
35084   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35085   CONFIG_SHELL=$SHELL
35086   export CONFIG_SHELL
35087   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35088 fi
35089
35090 _ACEOF
35091 cat >>$CONFIG_STATUS <<\_ACEOF
35092 exec 5>>config.log
35093 {
35094   echo
35095   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35096 ## Running $as_me. ##
35097 _ASBOX
35098   echo "$ac_log"
35099 } >&5
35100
35101 _ACEOF
35102 cat >>$CONFIG_STATUS <<_ACEOF
35103 #
35104 # INIT-COMMANDS
35105 #
35106 llvm_src="${srcdir}"
35107
35108 _ACEOF
35109
35110 cat >>$CONFIG_STATUS <<\_ACEOF
35111
35112 # Handling of arguments.
35113 for ac_config_target in $ac_config_targets
35114 do
35115   case $ac_config_target in
35116     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35117     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35118     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35119     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35120     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35121     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35122     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35123     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35124     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35125     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35126     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35127     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35128     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35129     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35130     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35131     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35132     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35133     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35134     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35135     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35136     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35137     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35138
35139   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35141    { (exit 1); exit 1; }; };;
35142   esac
35143 done
35144
35145
35146 # If the user did not use the arguments to specify the items to instantiate,
35147 # then the envvar interface is used.  Set only those that are not.
35148 # We use the long form for the default assignment because of an extremely
35149 # bizarre bug on SunOS 4.1.3.
35150 if $ac_need_defaults; then
35151   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35152   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35153   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35154 fi
35155
35156 # Have a temporary directory for convenience.  Make it in the build tree
35157 # simply because there is no reason against having it here, and in addition,
35158 # creating and moving files from /tmp can sometimes cause problems.
35159 # Hook for its removal unless debugging.
35160 # Note that there is a small window in which the directory will not be cleaned:
35161 # after its creation but before its name has been assigned to `$tmp'.
35162 $debug ||
35163 {
35164   tmp=
35165   trap 'exit_status=$?
35166   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35167 ' 0
35168   trap '{ (exit 1); exit 1; }' 1 2 13 15
35169 }
35170 # Create a (secure) tmp directory for tmp files.
35171
35172 {
35173   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35174   test -n "$tmp" && test -d "$tmp"
35175 }  ||
35176 {
35177   tmp=./conf$$-$RANDOM
35178   (umask 077 && mkdir "$tmp")
35179 } ||
35180 {
35181    echo "$me: cannot create a temporary directory in ." >&2
35182    { (exit 1); exit 1; }
35183 }
35184
35185 #
35186 # Set up the sed scripts for CONFIG_FILES section.
35187 #
35188
35189 # No need to generate the scripts if there are no CONFIG_FILES.
35190 # This happens for instance when ./config.status config.h
35191 if test -n "$CONFIG_FILES"; then
35192
35193 _ACEOF
35194
35195
35196
35197 ac_delim='%!_!# '
35198 for ac_last_try in false false false false false :; do
35199   cat >conf$$subs.sed <<_ACEOF
35200 SHELL!$SHELL$ac_delim
35201 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35202 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35203 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35204 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35205 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35206 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35207 exec_prefix!$exec_prefix$ac_delim
35208 prefix!$prefix$ac_delim
35209 program_transform_name!$program_transform_name$ac_delim
35210 bindir!$bindir$ac_delim
35211 sbindir!$sbindir$ac_delim
35212 libexecdir!$libexecdir$ac_delim
35213 datarootdir!$datarootdir$ac_delim
35214 datadir!$datadir$ac_delim
35215 sysconfdir!$sysconfdir$ac_delim
35216 sharedstatedir!$sharedstatedir$ac_delim
35217 localstatedir!$localstatedir$ac_delim
35218 includedir!$includedir$ac_delim
35219 oldincludedir!$oldincludedir$ac_delim
35220 docdir!$docdir$ac_delim
35221 infodir!$infodir$ac_delim
35222 htmldir!$htmldir$ac_delim
35223 dvidir!$dvidir$ac_delim
35224 pdfdir!$pdfdir$ac_delim
35225 psdir!$psdir$ac_delim
35226 libdir!$libdir$ac_delim
35227 localedir!$localedir$ac_delim
35228 mandir!$mandir$ac_delim
35229 DEFS!$DEFS$ac_delim
35230 ECHO_C!$ECHO_C$ac_delim
35231 ECHO_N!$ECHO_N$ac_delim
35232 ECHO_T!$ECHO_T$ac_delim
35233 LIBS!$LIBS$ac_delim
35234 build_alias!$build_alias$ac_delim
35235 host_alias!$host_alias$ac_delim
35236 target_alias!$target_alias$ac_delim
35237 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35238 subdirs!$subdirs$ac_delim
35239 build!$build$ac_delim
35240 build_cpu!$build_cpu$ac_delim
35241 build_vendor!$build_vendor$ac_delim
35242 build_os!$build_os$ac_delim
35243 host!$host$ac_delim
35244 host_cpu!$host_cpu$ac_delim
35245 host_vendor!$host_vendor$ac_delim
35246 host_os!$host_os$ac_delim
35247 target!$target$ac_delim
35248 target_cpu!$target_cpu$ac_delim
35249 target_vendor!$target_vendor$ac_delim
35250 target_os!$target_os$ac_delim
35251 OS!$OS$ac_delim
35252 LINKALL!$LINKALL$ac_delim
35253 NOLINKALL!$NOLINKALL$ac_delim
35254 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35255 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35256 ARCH!$ARCH$ac_delim
35257 ENDIAN!$ENDIAN$ac_delim
35258 CC!$CC$ac_delim
35259 CFLAGS!$CFLAGS$ac_delim
35260 LDFLAGS!$LDFLAGS$ac_delim
35261 CPPFLAGS!$CPPFLAGS$ac_delim
35262 ac_ct_CC!$ac_ct_CC$ac_delim
35263 EXEEXT!$EXEEXT$ac_delim
35264 OBJEXT!$OBJEXT$ac_delim
35265 CPP!$CPP$ac_delim
35266 GREP!$GREP$ac_delim
35267 EGREP!$EGREP$ac_delim
35268 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35269 BUILD_CC!$BUILD_CC$ac_delim
35270 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35271 BUILD_CXX!$BUILD_CXX$ac_delim
35272 CVSBUILD!$CVSBUILD$ac_delim
35273 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35274 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35275 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35276 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35277 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35278 JIT!$JIT$ac_delim
35279 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35280 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35281 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35282 ENABLE_PIC!$ENABLE_PIC$ac_delim
35283 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35284 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35285 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35286 CXX!$CXX$ac_delim
35287 CXXFLAGS!$CXXFLAGS$ac_delim
35288 ac_ct_CXX!$ac_ct_CXX$ac_delim
35289 LEX!$LEX$ac_delim
35290 LEXLIB!$LEXLIB$ac_delim
35291 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35292 FLEX!$FLEX$ac_delim
35293 YACC!$YACC$ac_delim
35294 YFLAGS!$YFLAGS$ac_delim
35295 BISON!$BISON$ac_delim
35296 NM!$NM$ac_delim
35297 _ACEOF
35298
35299   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35300     break
35301   elif $ac_last_try; then
35302     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35304    { (exit 1); exit 1; }; }
35305   else
35306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35307   fi
35308 done
35309
35310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35311 if test -n "$ac_eof"; then
35312   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35313   ac_eof=`expr $ac_eof + 1`
35314 fi
35315
35316 cat >>$CONFIG_STATUS <<_ACEOF
35317 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35319 _ACEOF
35320 sed '
35321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35322 s/^/s,@/; s/!/@,|#_!!_#|/
35323 :n
35324 t n
35325 s/'"$ac_delim"'$/,g/; t
35326 s/$/\\/; p
35327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35328 ' >>$CONFIG_STATUS <conf$$subs.sed
35329 rm -f conf$$subs.sed
35330 cat >>$CONFIG_STATUS <<_ACEOF
35331 CEOF$ac_eof
35332 _ACEOF
35333
35334
35335 ac_delim='%!_!# '
35336 for ac_last_try in false false false false false :; do
35337   cat >conf$$subs.sed <<_ACEOF
35338 ifGNUmake!$ifGNUmake$ac_delim
35339 LN_S!$LN_S$ac_delim
35340 CMP!$CMP$ac_delim
35341 CP!$CP$ac_delim
35342 DATE!$DATE$ac_delim
35343 FIND!$FIND$ac_delim
35344 MKDIR!$MKDIR$ac_delim
35345 MV!$MV$ac_delim
35346 RANLIB!$RANLIB$ac_delim
35347 RM!$RM$ac_delim
35348 SED!$SED$ac_delim
35349 TAR!$TAR$ac_delim
35350 BINPWD!$BINPWD$ac_delim
35351 GRAPHVIZ!$GRAPHVIZ$ac_delim
35352 DOT!$DOT$ac_delim
35353 GV!$GV$ac_delim
35354 DOTTY!$DOTTY$ac_delim
35355 PERL!$PERL$ac_delim
35356 HAVE_PERL!$HAVE_PERL$ac_delim
35357 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35358 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35359 INSTALL_DATA!$INSTALL_DATA$ac_delim
35360 BZIP2!$BZIP2$ac_delim
35361 DOXYGEN!$DOXYGEN$ac_delim
35362 GROFF!$GROFF$ac_delim
35363 GZIP!$GZIP$ac_delim
35364 POD2HTML!$POD2HTML$ac_delim
35365 POD2MAN!$POD2MAN$ac_delim
35366 RUNTEST!$RUNTEST$ac_delim
35367 TCLSH!$TCLSH$ac_delim
35368 ZIP!$ZIP$ac_delim
35369 OCAMLC!$OCAMLC$ac_delim
35370 OCAMLOPT!$OCAMLOPT$ac_delim
35371 OCAMLDEP!$OCAMLDEP$ac_delim
35372 OCAMLDOC!$OCAMLDOC$ac_delim
35373 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35374 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35375 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35376 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35377 LIBADD_DL!$LIBADD_DL$ac_delim
35378 ECHO!$ECHO$ac_delim
35379 AR!$AR$ac_delim
35380 STRIP!$STRIP$ac_delim
35381 CXXCPP!$CXXCPP$ac_delim
35382 F77!$F77$ac_delim
35383 FFLAGS!$FFLAGS$ac_delim
35384 ac_ct_F77!$ac_ct_F77$ac_delim
35385 LIBTOOL!$LIBTOOL$ac_delim
35386 LLVMGCC!$LLVMGCC$ac_delim
35387 LLVMGXX!$LLVMGXX$ac_delim
35388 USE_UDIS86!$USE_UDIS86$ac_delim
35389 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35390 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35391 ALLOCA!$ALLOCA$ac_delim
35392 MMAP_FILE!$MMAP_FILE$ac_delim
35393 LLVMCC1!$LLVMCC1$ac_delim
35394 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35395 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35396 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35397 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35398 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35399 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35400 SHLIBEXT!$SHLIBEXT$ac_delim
35401 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35402 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35403 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35404 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35405 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35406 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35407 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35408 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35409 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35410 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35411 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35412 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35413 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35414 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35415 LIBOBJS!$LIBOBJS$ac_delim
35416 LTLIBOBJS!$LTLIBOBJS$ac_delim
35417 _ACEOF
35418
35419   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35420     break
35421   elif $ac_last_try; then
35422     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35423 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35424    { (exit 1); exit 1; }; }
35425   else
35426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35427   fi
35428 done
35429
35430 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35431 if test -n "$ac_eof"; then
35432   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35433   ac_eof=`expr $ac_eof + 1`
35434 fi
35435
35436 cat >>$CONFIG_STATUS <<_ACEOF
35437 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35439 _ACEOF
35440 sed '
35441 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35442 s/^/s,@/; s/!/@,|#_!!_#|/
35443 :n
35444 t n
35445 s/'"$ac_delim"'$/,g/; t
35446 s/$/\\/; p
35447 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35448 ' >>$CONFIG_STATUS <conf$$subs.sed
35449 rm -f conf$$subs.sed
35450 cat >>$CONFIG_STATUS <<_ACEOF
35451 :end
35452 s/|#_!!_#|//g
35453 CEOF$ac_eof
35454 _ACEOF
35455
35456
35457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35459 # trailing colons and then remove the whole line if VPATH becomes empty
35460 # (actually we leave an empty line to preserve line numbers).
35461 if test "x$srcdir" = x.; then
35462   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35463 s/:*\$(srcdir):*/:/
35464 s/:*\${srcdir}:*/:/
35465 s/:*@srcdir@:*/:/
35466 s/^\([^=]*=[     ]*\):*/\1/
35467 s/:*$//
35468 s/^[^=]*=[       ]*$//
35469 }'
35470 fi
35471
35472 cat >>$CONFIG_STATUS <<\_ACEOF
35473 fi # test -n "$CONFIG_FILES"
35474
35475
35476 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35477 do
35478   case $ac_tag in
35479   :[FHLC]) ac_mode=$ac_tag; continue;;
35480   esac
35481   case $ac_mode$ac_tag in
35482   :[FHL]*:*);;
35483   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35484 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35485    { (exit 1); exit 1; }; };;
35486   :[FH]-) ac_tag=-:-;;
35487   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35488   esac
35489   ac_save_IFS=$IFS
35490   IFS=:
35491   set x $ac_tag
35492   IFS=$ac_save_IFS
35493   shift
35494   ac_file=$1
35495   shift
35496
35497   case $ac_mode in
35498   :L) ac_source=$1;;
35499   :[FH])
35500     ac_file_inputs=
35501     for ac_f
35502     do
35503       case $ac_f in
35504       -) ac_f="$tmp/stdin";;
35505       *) # Look for the file first in the build tree, then in the source tree
35506          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35507          # because $ac_f cannot contain `:'.
35508          test -f "$ac_f" ||
35509            case $ac_f in
35510            [\\/$]*) false;;
35511            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35512            esac ||
35513            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35514 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35515    { (exit 1); exit 1; }; };;
35516       esac
35517       ac_file_inputs="$ac_file_inputs $ac_f"
35518     done
35519
35520     # Let's still pretend it is `configure' which instantiates (i.e., don't
35521     # use $as_me), people would be surprised to read:
35522     #    /* config.h.  Generated by config.status.  */
35523     configure_input="Generated from "`IFS=:
35524           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35525     if test x"$ac_file" != x-; then
35526       configure_input="$ac_file.  $configure_input"
35527       { echo "$as_me:$LINENO: creating $ac_file" >&5
35528 echo "$as_me: creating $ac_file" >&6;}
35529     fi
35530
35531     case $ac_tag in
35532     *:-:* | *:-) cat >"$tmp/stdin";;
35533     esac
35534     ;;
35535   esac
35536
35537   ac_dir=`$as_dirname -- "$ac_file" ||
35538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35539          X"$ac_file" : 'X\(//\)[^/]' \| \
35540          X"$ac_file" : 'X\(//\)$' \| \
35541          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35542 echo X"$ac_file" |
35543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35544             s//\1/
35545             q
35546           }
35547           /^X\(\/\/\)[^/].*/{
35548             s//\1/
35549             q
35550           }
35551           /^X\(\/\/\)$/{
35552             s//\1/
35553             q
35554           }
35555           /^X\(\/\).*/{
35556             s//\1/
35557             q
35558           }
35559           s/.*/./; q'`
35560   { as_dir="$ac_dir"
35561   case $as_dir in #(
35562   -*) as_dir=./$as_dir;;
35563   esac
35564   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35565     as_dirs=
35566     while :; do
35567       case $as_dir in #(
35568       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35569       *) as_qdir=$as_dir;;
35570       esac
35571       as_dirs="'$as_qdir' $as_dirs"
35572       as_dir=`$as_dirname -- "$as_dir" ||
35573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35574          X"$as_dir" : 'X\(//\)[^/]' \| \
35575          X"$as_dir" : 'X\(//\)$' \| \
35576          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35577 echo X"$as_dir" |
35578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35579             s//\1/
35580             q
35581           }
35582           /^X\(\/\/\)[^/].*/{
35583             s//\1/
35584             q
35585           }
35586           /^X\(\/\/\)$/{
35587             s//\1/
35588             q
35589           }
35590           /^X\(\/\).*/{
35591             s//\1/
35592             q
35593           }
35594           s/.*/./; q'`
35595       test -d "$as_dir" && break
35596     done
35597     test -z "$as_dirs" || eval "mkdir $as_dirs"
35598   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35599 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35600    { (exit 1); exit 1; }; }; }
35601   ac_builddir=.
35602
35603 case "$ac_dir" in
35604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35605 *)
35606   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35607   # A ".." for each directory in $ac_dir_suffix.
35608   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35609   case $ac_top_builddir_sub in
35610   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35611   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35612   esac ;;
35613 esac
35614 ac_abs_top_builddir=$ac_pwd
35615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35616 # for backward compatibility:
35617 ac_top_builddir=$ac_top_build_prefix
35618
35619 case $srcdir in
35620   .)  # We are building in place.
35621     ac_srcdir=.
35622     ac_top_srcdir=$ac_top_builddir_sub
35623     ac_abs_top_srcdir=$ac_pwd ;;
35624   [\\/]* | ?:[\\/]* )  # Absolute name.
35625     ac_srcdir=$srcdir$ac_dir_suffix;
35626     ac_top_srcdir=$srcdir
35627     ac_abs_top_srcdir=$srcdir ;;
35628   *) # Relative name.
35629     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35630     ac_top_srcdir=$ac_top_build_prefix$srcdir
35631     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35632 esac
35633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35634
35635
35636   case $ac_mode in
35637   :F)
35638   #
35639   # CONFIG_FILE
35640   #
35641
35642   case $INSTALL in
35643   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35644   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35645   esac
35646 _ACEOF
35647
35648 cat >>$CONFIG_STATUS <<\_ACEOF
35649 # If the template does not know about datarootdir, expand it.
35650 # FIXME: This hack should be removed a few years after 2.60.
35651 ac_datarootdir_hack=; ac_datarootdir_seen=
35652
35653 case `sed -n '/datarootdir/ {
35654   p
35655   q
35656 }
35657 /@datadir@/p
35658 /@docdir@/p
35659 /@infodir@/p
35660 /@localedir@/p
35661 /@mandir@/p
35662 ' $ac_file_inputs` in
35663 *datarootdir*) ac_datarootdir_seen=yes;;
35664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35665   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35666 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35667 _ACEOF
35668 cat >>$CONFIG_STATUS <<_ACEOF
35669   ac_datarootdir_hack='
35670   s&@datadir@&$datadir&g
35671   s&@docdir@&$docdir&g
35672   s&@infodir@&$infodir&g
35673   s&@localedir@&$localedir&g
35674   s&@mandir@&$mandir&g
35675     s&\\\${datarootdir}&$datarootdir&g' ;;
35676 esac
35677 _ACEOF
35678
35679 # Neutralize VPATH when `$srcdir' = `.'.
35680 # Shell code in configure.ac might set extrasub.
35681 # FIXME: do we really want to maintain this feature?
35682 cat >>$CONFIG_STATUS <<_ACEOF
35683   sed "$ac_vpsub
35684 $extrasub
35685 _ACEOF
35686 cat >>$CONFIG_STATUS <<\_ACEOF
35687 :t
35688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35689 s&@configure_input@&$configure_input&;t t
35690 s&@top_builddir@&$ac_top_builddir_sub&;t t
35691 s&@srcdir@&$ac_srcdir&;t t
35692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35693 s&@top_srcdir@&$ac_top_srcdir&;t t
35694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35695 s&@builddir@&$ac_builddir&;t t
35696 s&@abs_builddir@&$ac_abs_builddir&;t t
35697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35698 s&@INSTALL@&$ac_INSTALL&;t t
35699 $ac_datarootdir_hack
35700 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35701
35702 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35703   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35704   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35705   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35706 which seems to be undefined.  Please make sure it is defined." >&5
35707 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35708 which seems to be undefined.  Please make sure it is defined." >&2;}
35709
35710   rm -f "$tmp/stdin"
35711   case $ac_file in
35712   -) cat "$tmp/out"; rm -f "$tmp/out";;
35713   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35714   esac
35715  ;;
35716   :H)
35717   #
35718   # CONFIG_HEADER
35719   #
35720 _ACEOF
35721
35722 # Transform confdefs.h into a sed script `conftest.defines', that
35723 # substitutes the proper values into config.h.in to produce config.h.
35724 rm -f conftest.defines conftest.tail
35725 # First, append a space to every undef/define line, to ease matching.
35726 echo 's/$/ /' >conftest.defines
35727 # Then, protect against being on the right side of a sed subst, or in
35728 # an unquoted here document, in config.status.  If some macros were
35729 # called several times there might be several #defines for the same
35730 # symbol, which is useless.  But do not sort them, since the last
35731 # AC_DEFINE must be honored.
35732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35733 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35734 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35735 # PARAMS is the parameter list in the macro definition--in most cases, it's
35736 # just an empty string.
35737 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35738 ac_dB='\\)[      (].*,\\1define\\2'
35739 ac_dC=' '
35740 ac_dD=' ,'
35741
35742 uniq confdefs.h |
35743   sed -n '
35744         t rset
35745         :rset
35746         s/^[     ]*#[    ]*define[       ][      ]*//
35747         t ok
35748         d
35749         :ok
35750         s/[\\&,]/\\&/g
35751         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35752         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35753   ' >>conftest.defines
35754
35755 # Remove the space that was appended to ease matching.
35756 # Then replace #undef with comments.  This is necessary, for
35757 # example, in the case of _POSIX_SOURCE, which is predefined and required
35758 # on some systems where configure will not decide to define it.
35759 # (The regexp can be short, since the line contains either #define or #undef.)
35760 echo 's/ $//
35761 s,^[     #]*u.*,/* & */,' >>conftest.defines
35762
35763 # Break up conftest.defines:
35764 ac_max_sed_lines=50
35765
35766 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35767 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35768 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35769 # et cetera.
35770 ac_in='$ac_file_inputs'
35771 ac_out='"$tmp/out1"'
35772 ac_nxt='"$tmp/out2"'
35773
35774 while :
35775 do
35776   # Write a here document:
35777     cat >>$CONFIG_STATUS <<_ACEOF
35778     # First, check the format of the line:
35779     cat >"\$tmp/defines.sed" <<\\CEOF
35780 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35781 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35782 b
35783 :def
35784 _ACEOF
35785   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35786   echo 'CEOF
35787     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35788   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35789   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35790   grep . conftest.tail >/dev/null || break
35791   rm -f conftest.defines
35792   mv conftest.tail conftest.defines
35793 done
35794 rm -f conftest.defines conftest.tail
35795
35796 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35797 cat >>$CONFIG_STATUS <<\_ACEOF
35798   if test x"$ac_file" != x-; then
35799     echo "/* $configure_input  */" >"$tmp/config.h"
35800     cat "$ac_result" >>"$tmp/config.h"
35801     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35802       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35803 echo "$as_me: $ac_file is unchanged" >&6;}
35804     else
35805       rm -f $ac_file
35806       mv "$tmp/config.h" $ac_file
35807     fi
35808   else
35809     echo "/* $configure_input  */"
35810     cat "$ac_result"
35811   fi
35812   rm -f "$tmp/out12"
35813  ;;
35814
35815   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35816 echo "$as_me: executing $ac_file commands" >&6;}
35817  ;;
35818   esac
35819
35820
35821   case $ac_file$ac_mode in
35822     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35823    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35824     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35825    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35826     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35827    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35828     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35829    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35830     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35831    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35832     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35833    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35834     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35835    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35836     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35837    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35838     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35839    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35840     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35841    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35842     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35843    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35844     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35845    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35846
35847   esac
35848 done # for ac_tag
35849
35850
35851 { (exit 0); exit 0; }
35852 _ACEOF
35853 chmod +x $CONFIG_STATUS
35854 ac_clean_files=$ac_clean_files_save
35855
35856
35857 # configure is writing to config.log, and then calls config.status.
35858 # config.status does its own redirection, appending to config.log.
35859 # Unfortunately, on DOS this fails, as config.log is still kept open
35860 # by configure, so config.status won't be able to write to it; its
35861 # output is simply discarded.  So we exec the FD to /dev/null,
35862 # effectively closing config.log, so it can be properly (re)opened and
35863 # appended to by config.status.  When coming back to configure, we
35864 # need to make the FD available again.
35865 if test "$no_create" != yes; then
35866   ac_cs_success=:
35867   ac_config_status_args=
35868   test "$silent" = yes &&
35869     ac_config_status_args="$ac_config_status_args --quiet"
35870   exec 5>/dev/null
35871   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35872   exec 5>>config.log
35873   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35874   # would make configure fail if this is the last instruction.
35875   $ac_cs_success || { (exit 1); exit 1; }
35876 fi
35877
35878 #
35879 # CONFIG_SUBDIRS section.
35880 #
35881 if test "$no_recursion" != yes; then
35882
35883   # Remove --cache-file and --srcdir arguments so they do not pile up.
35884   ac_sub_configure_args=
35885   ac_prev=
35886   eval "set x $ac_configure_args"
35887   shift
35888   for ac_arg
35889   do
35890     if test -n "$ac_prev"; then
35891       ac_prev=
35892       continue
35893     fi
35894     case $ac_arg in
35895     -cache-file | --cache-file | --cache-fil | --cache-fi \
35896     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35897       ac_prev=cache_file ;;
35898     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35899     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35900     | --c=*)
35901       ;;
35902     --config-cache | -C)
35903       ;;
35904     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35905       ac_prev=srcdir ;;
35906     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35907       ;;
35908     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35909       ac_prev=prefix ;;
35910     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35911       ;;
35912     *)
35913       case $ac_arg in
35914       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35915       esac
35916       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35917     esac
35918   done
35919
35920   # Always prepend --prefix to ensure using the same prefix
35921   # in subdir configurations.
35922   ac_arg="--prefix=$prefix"
35923   case $ac_arg in
35924   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35925   esac
35926   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35927
35928   ac_popdir=`pwd`
35929   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35930
35931     # Do not complain, so a configure script can configure whichever
35932     # parts of a large source tree are present.
35933     test -d "$srcdir/$ac_dir" || continue
35934
35935     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35936     echo "$as_me:$LINENO: $ac_msg" >&5
35937     echo "$ac_msg" >&6
35938     { as_dir="$ac_dir"
35939   case $as_dir in #(
35940   -*) as_dir=./$as_dir;;
35941   esac
35942   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35943     as_dirs=
35944     while :; do
35945       case $as_dir in #(
35946       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35947       *) as_qdir=$as_dir;;
35948       esac
35949       as_dirs="'$as_qdir' $as_dirs"
35950       as_dir=`$as_dirname -- "$as_dir" ||
35951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35952          X"$as_dir" : 'X\(//\)[^/]' \| \
35953          X"$as_dir" : 'X\(//\)$' \| \
35954          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35955 echo X"$as_dir" |
35956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35957             s//\1/
35958             q
35959           }
35960           /^X\(\/\/\)[^/].*/{
35961             s//\1/
35962             q
35963           }
35964           /^X\(\/\/\)$/{
35965             s//\1/
35966             q
35967           }
35968           /^X\(\/\).*/{
35969             s//\1/
35970             q
35971           }
35972           s/.*/./; q'`
35973       test -d "$as_dir" && break
35974     done
35975     test -z "$as_dirs" || eval "mkdir $as_dirs"
35976   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35978    { (exit 1); exit 1; }; }; }
35979     ac_builddir=.
35980
35981 case "$ac_dir" in
35982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35983 *)
35984   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35985   # A ".." for each directory in $ac_dir_suffix.
35986   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35987   case $ac_top_builddir_sub in
35988   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35989   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35990   esac ;;
35991 esac
35992 ac_abs_top_builddir=$ac_pwd
35993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35994 # for backward compatibility:
35995 ac_top_builddir=$ac_top_build_prefix
35996
35997 case $srcdir in
35998   .)  # We are building in place.
35999     ac_srcdir=.
36000     ac_top_srcdir=$ac_top_builddir_sub
36001     ac_abs_top_srcdir=$ac_pwd ;;
36002   [\\/]* | ?:[\\/]* )  # Absolute name.
36003     ac_srcdir=$srcdir$ac_dir_suffix;
36004     ac_top_srcdir=$srcdir
36005     ac_abs_top_srcdir=$srcdir ;;
36006   *) # Relative name.
36007     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36008     ac_top_srcdir=$ac_top_build_prefix$srcdir
36009     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36010 esac
36011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36012
36013
36014     cd "$ac_dir"
36015
36016     # Check for guested configure; otherwise get Cygnus style configure.
36017     if test -f "$ac_srcdir/configure.gnu"; then
36018       ac_sub_configure=$ac_srcdir/configure.gnu
36019     elif test -f "$ac_srcdir/configure"; then
36020       ac_sub_configure=$ac_srcdir/configure
36021     elif test -f "$ac_srcdir/configure.in"; then
36022       # This should be Cygnus configure.
36023       ac_sub_configure=$ac_aux_dir/configure
36024     else
36025       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36027       ac_sub_configure=
36028     fi
36029
36030     # The recursion is here.
36031     if test -n "$ac_sub_configure"; then
36032       # Make the cache file name correct relative to the subdirectory.
36033       case $cache_file in
36034       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36035       *) # Relative name.
36036         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36037       esac
36038
36039       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36040 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36041       # The eval makes quoting arguments work.
36042       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36043            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36044         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36045 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36046    { (exit 1); exit 1; }; }
36047     fi
36048
36049     cd "$ac_popdir"
36050   done
36051 fi
36052