Collector is the base class for garbage collection code generators.
[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.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 LIBOBJS
928 LTLIBOBJS'
929 ac_subst_files=''
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 CPPFLAGS
937 CPP
938 CXX
939 CXXFLAGS
940 CCC
941 YACC
942 YFLAGS
943 CXXCPP
944 F77
945 FFLAGS'
946 ac_subdirs_all='projects/sample
947 projects/privbracket
948 projects/llvm-stacker
949 projects/llvm-test
950 projects/llvm-reopt
951 projects/llvm-gcc
952 projects/llvm-java
953 projects/llvm-tv
954 projects/llvm-poolalloc
955 projects/poolalloc
956 projects/llvm-kernel'
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008   # If the previous option needs an argument, assign it.
1009   if test -n "$ac_prev"; then
1010     eval $ac_prev=\$ac_option
1011     ac_prev=
1012     continue
1013   fi
1014
1015   case $ac_option in
1016   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017   *)    ac_optarg=yes ;;
1018   esac
1019
1020   # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022   case $ac_dashdash$ac_option in
1023   --)
1024     ac_dashdash=yes ;;
1025
1026   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027     ac_prev=bindir ;;
1028   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029     bindir=$ac_optarg ;;
1030
1031   -build | --build | --buil | --bui | --bu)
1032     ac_prev=build_alias ;;
1033   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034     build_alias=$ac_optarg ;;
1035
1036   -cache-file | --cache-file | --cache-fil | --cache-fi \
1037   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038     ac_prev=cache_file ;;
1039   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041     cache_file=$ac_optarg ;;
1042
1043   --config-cache | -C)
1044     cache_file=config.cache ;;
1045
1046   -datadir | --datadir | --datadi | --datad)
1047     ac_prev=datadir ;;
1048   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049     datadir=$ac_optarg ;;
1050
1051   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052   | --dataroo | --dataro | --datar)
1053     ac_prev=datarootdir ;;
1054   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056     datarootdir=$ac_optarg ;;
1057
1058   -disable-* | --disable-*)
1059     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065     eval enable_$ac_feature=no ;;
1066
1067   -docdir | --docdir | --docdi | --doc | --do)
1068     ac_prev=docdir ;;
1069   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070     docdir=$ac_optarg ;;
1071
1072   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073     ac_prev=dvidir ;;
1074   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075     dvidir=$ac_optarg ;;
1076
1077   -enable-* | --enable-*)
1078     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084     eval enable_$ac_feature=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid package name: $ac_package" >&2
1279    { (exit 1); exit 1; }; }
1280     ac_package=`echo $ac_package| sed 's/-/_/g'`
1281     eval with_$ac_package=\$ac_optarg ;;
1282
1283   -without-* | --without-*)
1284     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
1288    { (exit 1); exit 1; }; }
1289     ac_package=`echo $ac_package | sed 's/-/_/g'`
1290     eval with_$ac_package=no ;;
1291
1292   --x)
1293     # Obsolete; use --with-x.
1294     with_x=yes ;;
1295
1296   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297   | --x-incl | --x-inc | --x-in | --x-i)
1298     ac_prev=x_includes ;;
1299   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301     x_includes=$ac_optarg ;;
1302
1303   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305     ac_prev=x_libraries ;;
1306   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308     x_libraries=$ac_optarg ;;
1309
1310   -*) { echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312    { (exit 1); exit 1; }; }
1313     ;;
1314
1315   *=*)
1316     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320    { (exit 1); exit 1; }; }
1321     eval $ac_envvar=\$ac_optarg
1322     export $ac_envvar ;;
1323
1324   *)
1325     # FIXME: should be removed in autoconf 3.0.
1326     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330     ;;
1331
1332   esac
1333 done
1334
1335 if test -n "$ac_prev"; then
1336   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337   { echo "$as_me: error: missing argument to $ac_option" >&2
1338    { (exit 1); exit 1; }; }
1339 fi
1340
1341 # Be sure to have absolute directory names.
1342 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343                 datadir sysconfdir sharedstatedir localstatedir includedir \
1344                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345                 libdir localedir mandir
1346 do
1347   eval ac_val=\$$ac_var
1348   case $ac_val in
1349     [\\/$]* | ?:[\\/]* )  continue;;
1350     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351   esac
1352   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353    { (exit 1); exit 1; }; }
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365   if test "x$build_alias" = x; then
1366     cross_compiling=maybe
1367     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368     If a cross compiler is detected then cross compile mode will be used." >&2
1369   elif test "x$build_alias" != "x$host_alias"; then
1370     cross_compiling=yes
1371   fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383   { echo "$as_me: error: Working directory cannot be determined" >&2
1384    { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   { echo "$as_me: error: pwd does not report name of working directory" >&2
1387    { (exit 1); exit 1; }; }
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392   ac_srcdir_defaulted=yes
1393   # Try the directory containing this script, then the parent directory.
1394   ac_confdir=`$as_dirname -- "$0" ||
1395 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396          X"$0" : 'X\(//\)[^/]' \| \
1397          X"$0" : 'X\(//\)$' \| \
1398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1399 echo X"$0" |
1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)[^/].*/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\).*/{
1413             s//\1/
1414             q
1415           }
1416           s/.*/./; q'`
1417   srcdir=$ac_confdir
1418   if test ! -r "$srcdir/$ac_unique_file"; then
1419     srcdir=..
1420   fi
1421 else
1422   ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427    { (exit 1); exit 1; }; }
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432    { (exit 1); exit 1; }; }
1433         pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436   srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_env_${ac_var}_value=\$${ac_var}
1447   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455   # Omit some internal or obsolete options to make the list less imposing.
1456   # This message is too long to be a string in the A/UX 3.1 sh.
1457   cat <<_ACEOF
1458 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468   -h, --help              display this help and exit
1469       --help=short        display options specific to this package
1470       --help=recursive    display the short help of all the included packages
1471   -V, --version           display version information and exit
1472   -q, --quiet, --silent   do not print \`checking...' messages
1473       --cache-file=FILE   cache test results in FILE [disabled]
1474   -C, --config-cache      alias for \`--cache-file=config.cache'
1475   -n, --no-create         do not create output files
1476       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479   --prefix=PREFIX         install architecture-independent files in PREFIX
1480                           [$ac_default_prefix]
1481   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                           [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492   --bindir=DIR           user executables [EPREFIX/bin]
1493   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1494   --libexecdir=DIR       program executables [EPREFIX/libexec]
1495   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1496   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1497   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1498   --libdir=DIR           object code libraries [EPREFIX/lib]
1499   --includedir=DIR       C header files [PREFIX/include]
1500   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1501   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1502   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1503   --infodir=DIR          info documentation [DATAROOTDIR/info]
1504   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1505   --mandir=DIR           man documentation [DATAROOTDIR/man]
1506   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1507   --htmldir=DIR          html documentation [DOCDIR]
1508   --dvidir=DIR           dvi documentation [DOCDIR]
1509   --pdfdir=DIR           pdf documentation [DOCDIR]
1510   --psdir=DIR            ps documentation [DOCDIR]
1511 _ACEOF
1512
1513   cat <<\_ACEOF
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518   --target=TARGET   configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of llvm 2.2svn:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --enable-optimized
1532   --enable-assertions
1533   --enable-expensive-checks
1534
1535   --enable-debug-runtime
1536   --enable-jit            Enable Just In Time Compiling (default is YES)
1537   --enable-doxygen        Build doxygen documentation (default is NO)
1538   --enable-threads        Use threads if available (default is YES)
1539   --enable-pic            Build LLVM with Position Independent Code (default
1540                           is NO)
1541   --enable-targets        Build specific host targets:
1542                           all,host-only,{target-name} (default=all)
1543   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1544                           %a (default is YES)
1545   --enable-ltdl-install   install libltdl
1546   --enable-shared[=PKGS]  build shared libraries
1547                           [default=yes]
1548   --enable-static[=PKGS]  build static libraries
1549                           [default=yes]
1550   --enable-fast-install[=PKGS]
1551                           optimize for fast installation
1552                           [default=yes]
1553   --disable-libtool-lock  avoid locking (might break parallel builds)
1554
1555 Optional Packages:
1556   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1559                           searches PATH)
1560   --with-extra-options    Specify addtional options to compile LLVM with
1561   --with-tclinclude       directory where tcl headers are
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-pic              try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-tags[=TAGS]      include additional configurations [automatic]
1566   --with-udis86=<path>    Use udis86 external x86 disassembler library
1567
1568 Some influential environment variables:
1569   CC          C compiler command
1570   CFLAGS      C compiler flags
1571   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572               nonstandard directory <lib dir>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CPP         C preprocessor
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1579               the first program found out of: `bison -y', `byacc', `yacc'.
1580   YFLAGS      The list of arguments that will be passed by default to $YACC.
1581               This script will default YFLAGS to the empty string to avoid a
1582               default value of `-d' given by some make applications.
1583   CXXCPP      C++ preprocessor
1584   F77         Fortran 77 compiler command
1585   FFLAGS      Fortran 77 compiler flags
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <llvmbugs@cs.uiuc.edu>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596   # If there are subdirs, report their specific --help.
1597   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598     test -d "$ac_dir" || continue
1599     ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605   # A ".." for each directory in $ac_dir_suffix.
1606   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607   case $ac_top_builddir_sub in
1608   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610   esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618   .)  # We are building in place.
1619     ac_srcdir=.
1620     ac_top_srcdir=$ac_top_builddir_sub
1621     ac_abs_top_srcdir=$ac_pwd ;;
1622   [\\/]* | ?:[\\/]* )  # Absolute name.
1623     ac_srcdir=$srcdir$ac_dir_suffix;
1624     ac_top_srcdir=$srcdir
1625     ac_abs_top_srcdir=$srcdir ;;
1626   *) # Relative name.
1627     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628     ac_top_srcdir=$ac_top_build_prefix$srcdir
1629     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633     cd "$ac_dir" || { ac_status=$?; continue; }
1634     # Check for guested configure.
1635     if test -f "$ac_srcdir/configure.gnu"; then
1636       echo &&
1637       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638     elif test -f "$ac_srcdir/configure"; then
1639       echo &&
1640       $SHELL "$ac_srcdir/configure" --help=recursive
1641     else
1642       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643     fi || ac_status=$?
1644     cd "$ac_pwd" || { ac_status=$?; break; }
1645   done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650   cat <<\_ACEOF
1651 llvm configure 2.2svn
1652 generated by GNU Autoconf 2.60
1653
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658
1659 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1660 _ACEOF
1661   exit
1662 fi
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1666
1667 It was created by llvm $as_me 2.2svn, which was
1668 generated by GNU Autoconf 2.60.  Invocation command line was
1669
1670   $ $0 $@
1671
1672 _ACEOF
1673 exec 5>>config.log
1674 {
1675 cat <<_ASUNAME
1676 ## --------- ##
1677 ## Platform. ##
1678 ## --------- ##
1679
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1688
1689 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1690 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1693 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1694 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1695 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1696
1697 _ASUNAME
1698
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   echo "PATH: $as_dir"
1705 done
1706 IFS=$as_save_IFS
1707
1708 } >&5
1709
1710 cat >&5 <<_ACEOF
1711
1712
1713 ## ----------- ##
1714 ## Core tests. ##
1715 ## ----------- ##
1716
1717 _ACEOF
1718
1719
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1725 ac_configure_args=
1726 ac_configure_args0=
1727 ac_configure_args1=
1728 ac_must_keep_next=false
1729 for ac_pass in 1 2
1730 do
1731   for ac_arg
1732   do
1733     case $ac_arg in
1734     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736     | -silent | --silent | --silen | --sile | --sil)
1737       continue ;;
1738     *\'*)
1739       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740     esac
1741     case $ac_pass in
1742     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743     2)
1744       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745       if test $ac_must_keep_next = true; then
1746         ac_must_keep_next=false # Got value, back to normal.
1747       else
1748         case $ac_arg in
1749           *=* | --config-cache | -C | -disable-* | --disable-* \
1750           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752           | -with-* | --with-* | -without-* | --without-* | --x)
1753             case "$ac_configure_args0 " in
1754               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755             esac
1756             ;;
1757           -* ) ac_must_keep_next=true ;;
1758         esac
1759       fi
1760       ac_configure_args="$ac_configure_args '$ac_arg'"
1761       ;;
1762     esac
1763   done
1764 done
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log.  We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774   # Save into config.log some information that might help in debugging.
1775   {
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1782 _ASBOX
1783     echo
1784     # The following way of writing the cache mishandles newlines in values,
1785 (
1786   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787     eval ac_val=\$$ac_var
1788     case $ac_val in #(
1789     *${as_nl}*)
1790       case $ac_var in #(
1791       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793       esac
1794       case $ac_var in #(
1795       _ | IFS | as_nl) ;; #(
1796       *) $as_unset $ac_var ;;
1797       esac ;;
1798     esac
1799   done
1800   (set) 2>&1 |
1801     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802     *${as_nl}ac_space=\ *)
1803       sed -n \
1804         "s/'\''/'\''\\\\'\'''\''/g;
1805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806       ;; #(
1807     *)
1808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809       ;;
1810     esac |
1811     sort
1812 )
1813     echo
1814
1815     cat <<\_ASBOX
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1819 _ASBOX
1820     echo
1821     for ac_var in $ac_subst_vars
1822     do
1823       eval ac_val=\$$ac_var
1824       case $ac_val in
1825       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826       esac
1827       echo "$ac_var='\''$ac_val'\''"
1828     done | sort
1829     echo
1830
1831     if test -n "$ac_subst_files"; then
1832       cat <<\_ASBOX
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1836 _ASBOX
1837       echo
1838       for ac_var in $ac_subst_files
1839       do
1840         eval ac_val=\$$ac_var
1841         case $ac_val in
1842         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843         esac
1844         echo "$ac_var='\''$ac_val'\''"
1845       done | sort
1846       echo
1847     fi
1848
1849     if test -s confdefs.h; then
1850       cat <<\_ASBOX
1851 ## ----------- ##
1852 ## confdefs.h. ##
1853 ## ----------- ##
1854 _ASBOX
1855       echo
1856       cat confdefs.h
1857       echo
1858     fi
1859     test "$ac_signal" != 0 &&
1860       echo "$as_me: caught signal $ac_signal"
1861     echo "$as_me: exit $exit_status"
1862   } >&5
1863   rm -f core *.core core.conftest.* &&
1864     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865     exit $exit_status
1866 ' 0
1867 for ac_signal in 1 2 13 15; do
1868   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869 done
1870 ac_signal=0
1871
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1874
1875 # Predefined preprocessor variables.
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 _ACEOF
1900
1901
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905   set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908 else
1909   set x "$ac_default_prefix/share/config.site" \
1910         "$ac_default_prefix/etc/config.site"
1911 fi
1912 shift
1913 for ac_site_file
1914 do
1915   if test -r "$ac_site_file"; then
1916     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918     sed 's/^/| /' "$ac_site_file" >&5
1919     . "$ac_site_file"
1920   fi
1921 done
1922
1923 if test -r "$cache_file"; then
1924   # Some versions of bash will fail to source /dev/null (special
1925   # files actually), so we avoid doing that.
1926   if test -f "$cache_file"; then
1927     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1929     case $cache_file in
1930       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931       *)                      . "./$cache_file";;
1932     esac
1933   fi
1934 else
1935   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1937   >$cache_file
1938 fi
1939
1940 # Check that the precious variables saved in the cache have kept the same
1941 # value.
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945   eval ac_new_set=\$ac_env_${ac_var}_set
1946   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947   eval ac_new_val=\$ac_env_${ac_var}_value
1948   case $ac_old_set,$ac_new_set in
1949     set,)
1950       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952       ac_cache_corrupted=: ;;
1953     ,set)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,);;
1958     *)
1959       if test "x$ac_old_val" != "x$ac_new_val"; then
1960         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1963 echo "$as_me:   former value:  $ac_old_val" >&2;}
1964         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1965 echo "$as_me:   current value: $ac_new_val" >&2;}
1966         ac_cache_corrupted=:
1967       fi;;
1968   esac
1969   # Pass precious variables to config.status.
1970   if test "$ac_new_set" = set; then
1971     case $ac_new_val in
1972     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973     *) ac_arg=$ac_var=$ac_new_val ;;
1974     esac
1975     case " $ac_configure_args " in
1976       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1977       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978     esac
1979   fi
1980 done
1981 if $ac_cache_corrupted; then
1982   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986    { (exit 1); exit 1; }; }
1987 fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020
2021 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022
2023
2024
2025
2026
2027
2028
2029 ac_aux_dir=
2030 for ac_dir in autoconf "$srcdir"/autoconf; do
2031   if test -f "$ac_dir/install-sh"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/install-sh -c"
2034     break
2035   elif test -f "$ac_dir/install.sh"; then
2036     ac_aux_dir=$ac_dir
2037     ac_install_sh="$ac_aux_dir/install.sh -c"
2038     break
2039   elif test -f "$ac_dir/shtool"; then
2040     ac_aux_dir=$ac_dir
2041     ac_install_sh="$ac_aux_dir/shtool install -c"
2042     break
2043   fi
2044 done
2045 if test -z "$ac_aux_dir"; then
2046   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2058
2059
2060
2061 if test ${srcdir} != "." ; then
2062   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065    { (exit 1); exit 1; }; }
2066   fi
2067 fi
2068
2069 for i in `ls ${srcdir}/projects`
2070 do
2071   if test -d ${srcdir}/projects/${i} ; then
2072     case ${i} in
2073       CVS) ;;
2074       sample)       subdirs="$subdirs projects/sample"
2075     ;;
2076       privbracket)  subdirs="$subdirs projects/privbracket"
2077  ;;
2078       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2079  ;;
2080       llvm-test)    subdirs="$subdirs projects/llvm-test"
2081  ;;
2082       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2083 ;;
2084       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2085   ;;
2086       llvm-java)    subdirs="$subdirs projects/llvm-java"
2087  ;;
2088       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2089    ;;
2090       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2091  ;;
2092       poolalloc)    subdirs="$subdirs projects/poolalloc"
2093  ;;
2094       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2095  ;;
2096       *)
2097         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2099         ;;
2100     esac
2101   fi
2102 done
2103
2104
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122    { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 fi
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2132 *-*-*) ;;
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135    { (exit 1); exit 1; }; };;
2136 esac
2137 build=$ac_cv_build
2138 ac_save_IFS=$IFS; IFS='-'
2139 set x $ac_cv_build
2140 shift
2141 build_cpu=$1
2142 build_vendor=$2
2143 shift; shift
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2146 build_os=$*
2147 IFS=$ac_save_IFS
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
2150
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   if test "x$host_alias" = x; then
2157   ac_cv_host=$ac_cv_build
2158 else
2159   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165 fi
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2168 case $ac_cv_host in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172    { (exit 1); exit 1; }; };;
2173 esac
2174 host=$ac_cv_host
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_host
2177 shift
2178 host_cpu=$1
2179 host_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 host_os=$*
2184 IFS=$ac_save_IFS
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186
2187
2188 { echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_target+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test "x$target_alias" = x; then
2194   ac_cv_target=$ac_cv_host
2195 else
2196   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199    { (exit 1); exit 1; }; }
2200 fi
2201
2202 fi
2203 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6; }
2205 case $ac_cv_target in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208 echo "$as_me: error: invalid value of canonical target" >&2;}
2209    { (exit 1); exit 1; }; };;
2210 esac
2211 target=$ac_cv_target
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_target
2214 shift
2215 target_cpu=$1
2216 target_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 target_os=$*
2221 IFS=$ac_save_IFS
2222 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2223
2224
2225 # The aliases save the names the user supplied, while $host etc.
2226 # will get canonicalized.
2227 test -n "$target_alias" &&
2228   test "$program_prefix$program_suffix$program_transform_name" = \
2229     NONENONEs,x,x, &&
2230   program_prefix=${target_alias}-
2231
2232 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234 if test "${llvm_cv_os_type+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   case $host in
2238   *-*-aix*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="AIX"
2242     llvm_cv_platform_type="Unix" ;;
2243   *-*-irix*)
2244     llvm_cv_link_all_option="-Wl,--whole-archive"
2245     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246     llvm_cv_os_type="IRIX"
2247     llvm_cv_platform_type="Unix" ;;
2248   *-*-cygwin*)
2249     llvm_cv_link_all_option="-Wl,--whole-archive"
2250     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251     llvm_cv_os_type="Cygwin"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-darwin*)
2254     llvm_cv_link_all_option="-Wl,-all_load"
2255     llvm_cv_link_all_option="-Wl,-noall_load"
2256     llvm_cv_os_type="Darwin"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-freebsd*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="FreeBSD"
2262     llvm_cv_platform_type="Unix" ;;
2263   *-*-openbsd*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="OpenBSD"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-*-netbsd*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="NetBSD"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-*-hpux*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="HP-UX"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-*-interix*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="Interix"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-linux*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="Linux"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-solaris*)
2289     llvm_cv_link_all_option="-Wl,-z,allextract"
2290     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291     llvm_cv_os_type="SunOS"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-win32*)
2294     llvm_cv_link_all_option="-Wl,--whole-archive"
2295     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296     llvm_cv_os_type="Win32"
2297     llvm_cv_platform_type="Win32" ;;
2298   *-*-mingw*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="MingW"
2302     llvm_cv_platform_type="Win32" ;;
2303   *)
2304     llvm_cv_link_all_option=""
2305     llvm_cv_no_link_all_option=""
2306     llvm_cv_os_type="Unknown"
2307     llvm_cv_platform_type="Unknown" ;;
2308 esac
2309 fi
2310 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2312
2313 if test "$llvm_cv_os_type" = "Unknown" ; then
2314   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 OS=$llvm_cv_os_type
2320
2321
2322 LINKALL=$llvm_cv_link_all_option
2323
2324 NOLINKALL=$llvm_cv_no_link_all_option
2325
2326
2327 case $llvm_cv_platform_type in
2328   Unix)
2329
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2332 _ACEOF
2333
2334     LLVM_ON_UNIX=1
2335
2336     LLVM_ON_WIN32=0
2337
2338     ;;
2339   Win32)
2340
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2343 _ACEOF
2344
2345     LLVM_ON_UNIX=0
2346
2347     LLVM_ON_WIN32=1
2348
2349     ;;
2350 esac
2351
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   case $target in
2358   i?86-*)                 llvm_cv_target_arch="x86" ;;
2359   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2360   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2361   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2362   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2363   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2364   arm-*)                  llvm_cv_target_arch="ARM" ;;
2365   mips-*)                 llvm_cv_target_arch="Mips" ;;
2366   *)                      llvm_cv_target_arch="Unknown" ;;
2367 esac
2368 fi
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 fi
2376
2377 ARCH=$llvm_cv_target_arch
2378
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$CC"; then
2394   ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 CC=$ac_cv_prog_CC
2414 if test -n "$CC"; then
2415   { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2417 else
2418   { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2420 fi
2421
2422
2423 fi
2424 if test -z "$ac_cv_prog_CC"; then
2425   ac_ct_CC=$CC
2426   # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$ac_ct_CC"; then
2434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_ac_ct_CC="gcc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462   if test "x$ac_ct_CC" = x; then
2463     CC=""
2464   else
2465     case $cross_compiling:$ac_tool_warned in
2466 yes:)
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet.  If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet.  If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475     CC=$ac_ct_CC
2476   fi
2477 else
2478   CC="$ac_cv_prog_CC"
2479 fi
2480
2481 if test -z "$CC"; then
2482           if test -n "$ac_tool_prefix"; then
2483     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$CC"; then
2491   ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_CC="${ac_tool_prefix}cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512   { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519
2520   fi
2521 fi
2522 if test -z "$CC"; then
2523   # Extract the first word of "cc", so it can be a program name with args.
2524 set dummy cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533   ac_prog_rejected=no
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542        ac_prog_rejected=yes
2543        continue
2544      fi
2545     ac_cv_prog_CC="cc"
2546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 if test $ac_prog_rejected = yes; then
2554   # We found a bogon in the path, so make sure we never use it.
2555   set dummy $ac_cv_prog_CC
2556   shift
2557   if test $# != 0; then
2558     # We chose a different compiler from the bogus one.
2559     # However, it has the same basename, so the bogon will be chosen
2560     # first if we set CC to just the basename; use the full file name.
2561     shift
2562     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563   fi
2564 fi
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569   { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2571 else
2572   { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2574 fi
2575
2576
2577 fi
2578 if test -z "$CC"; then
2579   if test -n "$ac_tool_prefix"; then
2580   for ac_prog in cl.exe
2581   do
2582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$CC"; then
2590   ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619     test -n "$CC" && break
2620   done
2621 fi
2622 if test -z "$CC"; then
2623   ac_ct_CC=$CC
2624   for ac_prog in cl.exe
2625 do
2626   # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   if test -n "$ac_ct_CC"; then
2634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641   for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_ac_ct_CC="$ac_prog"
2644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6; }
2657 else
2658   { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2660 fi
2661
2662
2663   test -n "$ac_ct_CC" && break
2664 done
2665
2666   if test "x$ac_ct_CC" = x; then
2667     CC=""
2668   else
2669     case $cross_compiling:$ac_tool_warned in
2670 yes:)
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet.  If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet.  If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679     CC=$ac_ct_CC
2680   fi
2681 fi
2682
2683 fi
2684
2685
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&2;}
2690    { (exit 1); exit 1; }; }
2691
2692 # Provide some information about the compiler.
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5
2694 ac_compiler=`set X $ac_compile; echo $2`
2695 { (ac_try="$ac_compiler --version >&5"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compiler --version >&5") 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705 { (ac_try="$ac_compiler -v >&5"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compiler -v >&5") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }
2715 { (ac_try="$ac_compiler -V >&5"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_compiler -V >&5") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }
2725
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732
2733 int
2734 main ()
2735 {
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 ac_clean_files_save=$ac_clean_files
2742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743 # Try to create an executable without -o first, disregard a.out.
2744 # It will help us diagnose broken compilers, and finding out an intuition
2745 # of exeext.
2746 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749 #
2750 # List of possible output files, starting from the most likely.
2751 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752 # only as a last resort.  b.out is created by i960 compilers.
2753 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754 #
2755 # The IRIX 6 linker writes into existing files which may not be
2756 # executable, retaining their permissions.  Remove them first so a
2757 # subsequent execution test works.
2758 ac_rmfiles=
2759 for ac_file in $ac_files
2760 do
2761   case $ac_file in
2762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764   esac
2765 done
2766 rm -f $ac_rmfiles
2767
2768 if { (ac_try="$ac_link_default"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774   (eval "$ac_link_default") 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; then
2778   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files
2784 do
2785   test -f "$ac_file" || continue
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788         ;;
2789     [ab].out )
2790         # We found the default executable, but exeext='' is most
2791         # certainly right.
2792         break;;
2793     *.* )
2794         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795         then :; else
2796            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797         fi
2798         # We set ac_cv_exeext here because the later test for it is not
2799         # safe: cross compilers may not add the suffix if given an `-o'
2800         # argument, so we may need to know it at that point already.
2801         # Even if this section looks crufty: it has the advantage of
2802         # actually working.
2803         break;;
2804     * )
2805         break;;
2806   esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818    { (exit 77); exit 77; }; }
2819 fi
2820
2821 ac_exeext=$ac_cv_exeext
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2824
2825 # Check that the compiler produces executables we can run.  If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832   if { ac_try='./$ac_file'
2833   { (case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_try") 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842     cross_compiling=no
2843   else
2844     if test "$cross_compiling" = maybe; then
2845         cross_compiling=yes
2846     else
2847         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&2;}
2853    { (exit 1); exit 1; }; }
2854     fi
2855   fi
2856 fi
2857 { echo "$as_me:$LINENO: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6; }
2859
2860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run.  If not, either
2863 # the compiler is broken, or we cross compile.
2864 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867 echo "${ECHO_T}$cross_compiling" >&6; }
2868
2869 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871 if { (ac_try="$ac_link"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_link") 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; then
2881   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 # `rm'.
2885 for ac_file in conftest.exe conftest conftest.*; do
2886   test -f "$ac_file" || continue
2887   case $ac_file in
2888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890           break;;
2891     * ) break;;
2892   esac
2893 done
2894 else
2895   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900 fi
2901
2902 rm -f conftest$ac_cv_exeext
2903 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2908 ac_exeext=$EXEEXT
2909 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911 if test "${ac_cv_objext+set}" = set; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920
2921 int
2922 main ()
2923 {
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.o conftest.obj
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compile") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; then
2940   for ac_file in conftest.o conftest.obj conftest.*; do
2941   test -f "$ac_file" || continue;
2942   case $ac_file in
2943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945        break;;
2946   esac
2947 done
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956    { (exit 1); exit 1; }; }
2957 fi
2958
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 fi
2961 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 echo "${ECHO_T}$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2964 ac_objext=$OBJEXT
2965 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980 #ifndef __GNUC__
2981        choke me
2982 #endif
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_compile") 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003   { (case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_try") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; } &&
3012          { ac_try='test -s conftest.$ac_objext'
3013   { (case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_try") 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   ac_compiler_gnu=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         ac_compiler_gnu=no
3028 fi
3029
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032
3033 fi
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   ac_save_c_werror_flag=$ac_c_werror_flag
3045    ac_c_werror_flag=yes
3046    ac_cv_prog_cc_g=no
3047    CFLAGS="-g"
3048    cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; } &&
3087          { ac_try='test -s conftest.$ac_objext'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; }; then
3097   ac_cv_prog_cc_g=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102         CFLAGS=""
3103       cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109
3110 int
3111 main ()
3112 {
3113
3114   ;
3115   return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compile") 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; } &&
3142          { ac_try='test -s conftest.$ac_objext'
3143   { (case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_try") 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; }; then
3152   :
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         ac_c_werror_flag=$ac_save_c_werror_flag
3158          CFLAGS="-g"
3159          cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_prog_cc_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223    ac_c_werror_flag=$ac_save_c_werror_flag
3224 fi
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227 if test "$ac_test_CFLAGS" = set; then
3228   CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230   if test "$GCC" = yes; then
3231     CFLAGS="-g -O2"
3232   else
3233     CFLAGS="-g"
3234   fi
3235 else
3236   if test "$GCC" = yes; then
3237     CFLAGS="-O2"
3238   else
3239     CFLAGS=
3240   fi
3241 fi
3242 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_c89+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   ac_cv_prog_cc_c89=no
3248 ac_save_CC=$CC
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <stdarg.h>
3256 #include <stdio.h>
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3260 struct buf { int x; };
3261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262 static char *e (p, i)
3263      char **p;
3264      int i;
3265 {
3266   return p[i];
3267 }
3268 static char *f (char * (*g) (char **, int), char **p, ...)
3269 {
3270   char *s;
3271   va_list v;
3272   va_start (v,p);
3273   s = g (p, va_arg (v,int));
3274   va_end (v);
3275   return s;
3276 }
3277
3278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3279    function prototypes and stuff, but not '\xHH' hex character constants.
3280    These don't provoke an error unfortunately, instead are silently treated
3281    as 'x'.  The following induces an error, until -std is added to get
3282    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3283    array size at least.  It's necessary to write '\x00'==0 to get something
3284    that's true only with -std.  */
3285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
3287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288    inside strings and character constants.  */
3289 #define FOO(x) 'x'
3290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
3292 int test (int i, double x);
3293 struct s1 {int (*f) (int a);};
3294 struct s2 {int (*f) (double a);};
3295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296 int argc;
3297 char **argv;
3298 int
3299 main ()
3300 {
3301 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308 do
3309   CC="$ac_save_CC $ac_arg"
3310   rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_compile") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } &&
3324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325   { (case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_try") 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; } &&
3334          { ac_try='test -s conftest.$ac_objext'
3335   { (case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_try") 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; }; then
3344   ac_cv_prog_cc_c89=$ac_arg
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349
3350 fi
3351
3352 rm -f core conftest.err conftest.$ac_objext
3353   test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 done
3355 rm -f conftest.$ac_ext
3356 CC=$ac_save_CC
3357
3358 fi
3359 # AC_CACHE_VAL
3360 case "x$ac_cv_prog_cc_c89" in
3361   x)
3362     { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3364   xno)
3365     { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3367   *)
3368     CC="$CC $ac_cv_prog_cc_c89"
3369     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 esac
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3390   CPP=
3391 fi
3392 if test -z "$CPP"; then
3393   if test "${ac_cv_prog_CPP+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396       # Double quotes because CPP needs to be expanded
3397     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398     do
3399       ac_preproc_ok=false
3400 for ac_c_preproc_warn_flag in '' yes
3401 do
3402   # Use a header file that comes with gcc, so configuring glibc
3403   # with a fresh cross-compiler works.
3404   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405   # <limits.h> exists even on freestanding compilers.
3406   # On the NeXT, cc -E runs the code through the compiler's parser,
3407   # not just through cpp. "Syntax error" is here to catch this case.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419                      Syntax error
3420 _ACEOF
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } >/dev/null; then
3434   if test -s conftest.err; then
3435     ac_cpp_err=$ac_c_preproc_warn_flag
3436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437   else
3438     ac_cpp_err=
3439   fi
3440 else
3441   ac_cpp_err=yes
3442 fi
3443 if test -z "$ac_cpp_err"; then
3444   :
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449   # Broken: fails on valid input.
3450 continue
3451 fi
3452
3453 rm -f conftest.err conftest.$ac_ext
3454
3455   # OK, works on sane cases.  Now check whether nonexistent headers
3456   # can be detected and how.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } >/dev/null; then
3478   if test -s conftest.err; then
3479     ac_cpp_err=$ac_c_preproc_warn_flag
3480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481   else
3482     ac_cpp_err=
3483   fi
3484 else
3485   ac_cpp_err=yes
3486 fi
3487 if test -z "$ac_cpp_err"; then
3488   # Broken: success on invalid input.
3489 continue
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Passes both tests.
3495 ac_preproc_ok=:
3496 break
3497 fi
3498
3499 rm -f conftest.err conftest.$ac_ext
3500
3501 done
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3505   break
3506 fi
3507
3508     done
3509     ac_cv_prog_CPP=$CPP
3510
3511 fi
3512   CPP=$ac_cv_prog_CPP
3513 else
3514   ac_cv_prog_CPP=$CPP
3515 fi
3516 { echo "$as_me:$LINENO: result: $CPP" >&5
3517 echo "${ECHO_T}$CPP" >&6; }
3518 ac_preproc_ok=false
3519 for ac_c_preproc_warn_flag in '' yes
3520 do
3521   # Use a header file that comes with gcc, so configuring glibc
3522   # with a fresh cross-compiler works.
3523   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524   # <limits.h> exists even on freestanding compilers.
3525   # On the NeXT, cc -E runs the code through the compiler's parser,
3526   # not just through cpp. "Syntax error" is here to catch this case.
3527   cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533 #ifdef __STDC__
3534 # include <limits.h>
3535 #else
3536 # include <assert.h>
3537 #endif
3538                      Syntax error
3539 _ACEOF
3540 if { (ac_try="$ac_cpp conftest.$ac_ext"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } >/dev/null; then
3553   if test -s conftest.err; then
3554     ac_cpp_err=$ac_c_preproc_warn_flag
3555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556   else
3557     ac_cpp_err=
3558   fi
3559 else
3560   ac_cpp_err=yes
3561 fi
3562 if test -z "$ac_cpp_err"; then
3563   :
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568   # Broken: fails on valid input.
3569 continue
3570 fi
3571
3572 rm -f conftest.err conftest.$ac_ext
3573
3574   # OK, works on sane cases.  Now check whether nonexistent headers
3575   # can be detected and how.
3576   cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #include <ac_nonexistent.h>
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } >/dev/null; then
3597   if test -s conftest.err; then
3598     ac_cpp_err=$ac_c_preproc_warn_flag
3599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600   else
3601     ac_cpp_err=
3602   fi
3603 else
3604   ac_cpp_err=yes
3605 fi
3606 if test -z "$ac_cpp_err"; then
3607   # Broken: success on invalid input.
3608 continue
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620 done
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3624   :
3625 else
3626   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629 See \`config.log' for more details." >&2;}
3630    { (exit 1); exit 1; }; }
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   # Extract the first word of "grep ggrep" to use in msg output
3646 if test -z "$GREP"; then
3647 set dummy grep ggrep; ac_prog_name=$2
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   ac_path_GREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658   for ac_prog in grep ggrep; do
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662     # Check for GNU ac_path_GREP and select it if it is found.
3663   # Check for GNU $ac_path_GREP
3664 case `"$ac_path_GREP" --version 2>&1` in
3665 *GNU*)
3666   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667 *)
3668   ac_count=0
3669   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3670   while :
3671   do
3672     cat "conftest.in" "conftest.in" >"conftest.tmp"
3673     mv "conftest.tmp" "conftest.in"
3674     cp "conftest.in" "conftest.nl"
3675     echo 'GREP' >> "conftest.nl"
3676     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678     ac_count=`expr $ac_count + 1`
3679     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680       # Best one so far, save it but keep looking for a better one
3681       ac_cv_path_GREP="$ac_path_GREP"
3682       ac_path_GREP_max=$ac_count
3683     fi
3684     # 10*(2^10) chars as input seems more than enough
3685     test $ac_count -gt 10 && break
3686   done
3687   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688 esac
3689
3690
3691     $ac_path_GREP_found && break 3
3692   done
3693 done
3694
3695 done
3696 IFS=$as_save_IFS
3697
3698
3699 fi
3700
3701 GREP="$ac_cv_path_GREP"
3702 if test -z "$GREP"; then
3703   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705    { (exit 1); exit 1; }; }
3706 fi
3707
3708 else
3709   ac_cv_path_GREP=$GREP
3710 fi
3711
3712
3713 fi
3714 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716  GREP="$ac_cv_path_GREP"
3717
3718
3719 { echo "$as_me:$LINENO: checking for egrep" >&5
3720 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721 if test "${ac_cv_path_EGREP+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725    then ac_cv_path_EGREP="$GREP -E"
3726    else
3727      # Extract the first word of "egrep" to use in msg output
3728 if test -z "$EGREP"; then
3729 set dummy egrep; ac_prog_name=$2
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   ac_path_EGREP_found=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_prog in egrep; do
3741   for ac_exec_ext in '' $ac_executable_extensions; do
3742     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744     # Check for GNU ac_path_EGREP and select it if it is found.
3745   # Check for GNU $ac_path_EGREP
3746 case `"$ac_path_EGREP" --version 2>&1` in
3747 *GNU*)
3748   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749 *)
3750   ac_count=0
3751   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752   while :
3753   do
3754     cat "conftest.in" "conftest.in" >"conftest.tmp"
3755     mv "conftest.tmp" "conftest.in"
3756     cp "conftest.in" "conftest.nl"
3757     echo 'EGREP' >> "conftest.nl"
3758     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760     ac_count=`expr $ac_count + 1`
3761     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762       # Best one so far, save it but keep looking for a better one
3763       ac_cv_path_EGREP="$ac_path_EGREP"
3764       ac_path_EGREP_max=$ac_count
3765     fi
3766     # 10*(2^10) chars as input seems more than enough
3767     test $ac_count -gt 10 && break
3768   done
3769   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770 esac
3771
3772
3773     $ac_path_EGREP_found && break 3
3774   done
3775 done
3776
3777 done
3778 IFS=$as_save_IFS
3779
3780
3781 fi
3782
3783 EGREP="$ac_cv_path_EGREP"
3784 if test -z "$EGREP"; then
3785   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787    { (exit 1); exit 1; }; }
3788 fi
3789
3790 else
3791   ac_cv_path_EGREP=$EGREP
3792 fi
3793
3794
3795    fi
3796 fi
3797 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799  EGREP="$ac_cv_path_EGREP"
3800
3801
3802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813 #include <stdlib.h>
3814 #include <stdarg.h>
3815 #include <string.h>
3816 #include <float.h>
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_compile") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841   { (case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_try") 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; } &&
3850          { ac_try='test -s conftest.$ac_objext'
3851   { (case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856   (eval "$ac_try") 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; }; then
3860   ac_cv_header_stdc=yes
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865         ac_cv_header_stdc=no
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870 if test $ac_cv_header_stdc = yes; then
3871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 #include <string.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "memchr" >/dev/null 2>&1; then
3883   :
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893   cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <stdlib.h>
3900
3901 _ACEOF
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903   $EGREP "free" >/dev/null 2>&1; then
3904   :
3905 else
3906   ac_cv_header_stdc=no
3907 fi
3908 rm -f conftest*
3909
3910 fi
3911
3912 if test $ac_cv_header_stdc = yes; then
3913   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914   if test "$cross_compiling" = yes; then
3915   :
3916 else
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include <ctype.h>
3924 #include <stdlib.h>
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 #else
3929 # define ISLOWER(c) \
3930                    (('a' <= (c) && (c) <= 'i') \
3931                      || ('j' <= (c) && (c) <= 'r') \
3932                      || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #endif
3935
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 int
3938 main ()
3939 {
3940   int i;
3941   for (i = 0; i < 256; i++)
3942     if (XOR (islower (i), ISLOWER (i))
3943         || toupper (i) != TOUPPER (i))
3944       return 2;
3945   return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest$ac_exeext
3949 if { (ac_try="$ac_link"
3950 case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955   (eval "$ac_link") 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959   { (case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_try") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; }; then
3968   :
3969 else
3970   echo "$as_me: program exited with status $ac_status" >&5
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 ( exit $ac_status )
3975 ac_cv_header_stdc=no
3976 fi
3977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978 fi
3979
3980
3981 fi
3982 fi
3983 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985 if test $ac_cv_header_stdc = yes; then
3986
3987 cat >>confdefs.h <<\_ACEOF
3988 #define STDC_HEADERS 1
3989 _ACEOF
3990
3991 fi
3992
3993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004                   inttypes.h stdint.h unistd.h
4005 do
4006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018 $ac_includes_default
4019
4020 #include <$ac_header>
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4024 case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037   { (case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042   (eval "$ac_try") 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052   (eval "$ac_try") 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }; }; then
4056   eval "$as_ac_Header=yes"
4057 else
4058   echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061         eval "$as_ac_Header=no"
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 fi
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067                { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070   cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 _ACEOF
4073
4074 fi
4075
4076 done
4077
4078
4079 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081 if test "${ac_cv_c_bigendian+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   # See if sys/param.h defines the BYTE_ORDER macro.
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #include <sys/types.h>
4092 #include <sys/param.h>
4093
4094 int
4095 main ()
4096 {
4097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4098  bogus endian macros
4099 #endif
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112   (eval "$ac_compile") 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120   { (case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125   (eval "$ac_try") 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; } &&
4129          { ac_try='test -s conftest.$ac_objext'
4130   { (case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_try") 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; }; then
4139   # It does; now see whether it defined to BIG_ENDIAN or not.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <sys/types.h>
4147 #include <sys/param.h>
4148
4149 int
4150 main ()
4151 {
4152 #if BYTE_ORDER != BIG_ENDIAN
4153  not big endian
4154 #endif
4155
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167   (eval "$ac_compile") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175   { (case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_try") 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; } &&
4184          { ac_try='test -s conftest.$ac_objext'
4185   { (case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_try") 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; }; then
4194   ac_cv_c_bigendian=yes
4195 else
4196   echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199         ac_cv_c_bigendian=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207         # It does not; compile a test program.
4208 if test "$cross_compiling" = yes; then
4209   # try to guess the endianness by grepping values into an object file
4210   ac_cv_c_bigendian=unknown
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4223 int
4224 main ()
4225 {
4226  _ascii (); _ebcdic ();
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.$ac_objext
4232 if { (ac_try="$ac_compile"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_compile") 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } &&
4245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246   { (case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; } &&
4255          { ac_try='test -s conftest.$ac_objext'
4256   { (case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; }; then
4265   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266   ac_cv_c_bigendian=yes
4267 fi
4268 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269   if test "$ac_cv_c_bigendian" = unknown; then
4270     ac_cv_c_bigendian=no
4271   else
4272     # finding both strings is unlikely to happen, but who knows?
4273     ac_cv_c_bigendian=unknown
4274   fi
4275 fi
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 else
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 $ac_includes_default
4292 int
4293 main ()
4294 {
4295
4296   /* Are we little or big endian?  From Harbison&Steele.  */
4297   union
4298   {
4299     long int l;
4300     char c[sizeof (long int)];
4301   } u;
4302   u.l = 1;
4303   return u.c[sizeof (long int) - 1] == 1;
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4311 case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_link") 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_c_bigendian=no
4330 else
4331   echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335 ( exit $ac_status )
4336 ac_cv_c_bigendian=yes
4337 fi
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 fi
4340
4341
4342 fi
4343
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348 case $ac_cv_c_bigendian in
4349   yes)
4350     ENDIAN=big
4351  ;;
4352   no)
4353     ENDIAN=little
4354  ;;
4355   *)
4356     { { echo "$as_me:$LINENO: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358 echo "$as_me: error: unknown endianness
4359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360    { (exit 1); exit 1; }; } ;;
4361 esac
4362
4363
4364 if test "$cross_compiling" = yes; then
4365   LLVM_CROSS_COMPILING=1
4366
4367
4368 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370 if test "${ac_cv_build_exeext+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374   ac_cv_build_exeext=.exe
4375 else
4376   ac_build_prefix=${build_alias}-
4377
4378   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379 set dummy ${ac_build_prefix}gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test -n "$BUILD_CC"; then
4386   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393   for ac_exec_ext in '' $ac_executable_extensions; do
4394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397     break 2
4398   fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4409 else
4410   { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 fi
4413
4414
4415   if test -z "$BUILD_CC"; then
4416      # Extract the first word of "gcc", so it can be a program name with args.
4417 set dummy gcc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$BUILD_CC"; then
4424   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     ac_cv_prog_BUILD_CC="gcc"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 BUILD_CC=$ac_cv_prog_BUILD_CC
4444 if test -n "$BUILD_CC"; then
4445   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446 echo "${ECHO_T}$BUILD_CC" >&6; }
4447 else
4448   { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450 fi
4451
4452
4453      if test -z "$BUILD_CC"; then
4454        # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$BUILD_CC"; then
4462   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4463 else
4464   ac_prog_rejected=no
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470   for ac_exec_ext in '' $ac_executable_extensions; do
4471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473        ac_prog_rejected=yes
4474        continue
4475      fi
4476     ac_cv_prog_BUILD_CC="cc"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 if test $ac_prog_rejected = yes; then
4485   # We found a bogon in the path, so make sure we never use it.
4486   set dummy $ac_cv_prog_BUILD_CC
4487   shift
4488   if test $# != 0; then
4489     # We chose a different compiler from the bogus one.
4490     # However, it has the same basename, so the bogon will be chosen
4491     # first if we set BUILD_CC to just the basename; use the full file name.
4492     shift
4493     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4494   fi
4495 fi
4496 fi
4497 fi
4498 BUILD_CC=$ac_cv_prog_BUILD_CC
4499 if test -n "$BUILD_CC"; then
4500   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501 echo "${ECHO_T}$BUILD_CC" >&6; }
4502 else
4503   { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4505 fi
4506
4507
4508      fi
4509   fi
4510   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512    { (exit 1); exit 1; }; }
4513   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4514   rm -f conftest*
4515   echo 'int main () { return 0; }' > conftest.$ac_ext
4516   ac_cv_build_exeext=
4517   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518   (eval $ac_build_link) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; then
4522     for file in conftest.*; do
4523       case $file in
4524       *.c | *.o | *.obj) ;;
4525       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4526       esac
4527     done
4528   else
4529     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531    { (exit 1); exit 1; }; }
4532   fi
4533   rm -f conftest*
4534   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4535 fi
4536 fi
4537
4538 BUILD_EXEEXT=""
4539 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542 ac_build_exeext=$BUILD_EXEEXT
4543
4544 else
4545   LLVM_CROSS_COMPILING=0
4546
4547 fi
4548
4549 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4550   cvsbuild="yes"
4551   optimize="no"
4552   CVSBUILD=CVSBUILD=1
4553
4554 else
4555   cvsbuild="no"
4556   optimize="yes"
4557 fi
4558
4559
4560 # Check whether --enable-optimized was given.
4561 if test "${enable_optimized+set}" = set; then
4562   enableval=$enable_optimized;
4563 else
4564   enableval=$optimize
4565 fi
4566
4567 if test ${enableval} = "no" ; then
4568   ENABLE_OPTIMIZED=
4569
4570 else
4571   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4572
4573 fi
4574
4575 # Check whether --enable-assertions was given.
4576 if test "${enable_assertions+set}" = set; then
4577   enableval=$enable_assertions;
4578 else
4579   enableval="yes"
4580 fi
4581
4582 if test ${enableval} = "yes" ; then
4583   DISABLE_ASSERTIONS=
4584
4585 else
4586   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4587
4588 fi
4589
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592   enableval=$enable_expensive_checks;
4593 else
4594   enableval="no"
4595 fi
4596
4597 if test ${enableval} = "yes" ; then
4598   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4599
4600   EXPENSIVE_CHECKS=yes
4601
4602 else
4603   ENABLE_EXPENSIVE_CHECKS=
4604
4605   EXPENSIVE_CHECKS=no
4606
4607 fi
4608
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611   enableval=$enable_debug_runtime;
4612 else
4613   enableval=no
4614 fi
4615
4616 if test ${enableval} = "no" ; then
4617   DEBUG_RUNTIME=
4618
4619 else
4620   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4621
4622 fi
4623
4624 # Check whether --enable-jit was given.
4625 if test "${enable_jit+set}" = set; then
4626   enableval=$enable_jit;
4627 else
4628   enableval=default
4629 fi
4630
4631 if test ${enableval} = "no"
4632 then
4633   JIT=
4634
4635 else
4636   case "$llvm_cv_target_arch" in
4637     x86)     TARGET_HAS_JIT=1
4638  ;;
4639     Sparc)   TARGET_HAS_JIT=0
4640  ;;
4641     PowerPC) TARGET_HAS_JIT=1
4642  ;;
4643     x86_64)  TARGET_HAS_JIT=1
4644  ;;
4645     Alpha)   TARGET_HAS_JIT=1
4646  ;;
4647     IA64)    TARGET_HAS_JIT=0
4648  ;;
4649     ARM)     TARGET_HAS_JIT=0
4650  ;;
4651     Mips)    TARGET_HAS_JIT=0
4652  ;;
4653     *)       TARGET_HAS_JIT=0
4654  ;;
4655   esac
4656 fi
4657
4658 # Check whether --enable-doxygen was given.
4659 if test "${enable_doxygen+set}" = set; then
4660   enableval=$enable_doxygen;
4661 else
4662   enableval=default
4663 fi
4664
4665 case "$enableval" in
4666   yes) ENABLE_DOXYGEN=1
4667  ;;
4668   no)  ENABLE_DOXYGEN=0
4669  ;;
4670   default) ENABLE_DOXYGEN=0
4671  ;;
4672   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675 esac
4676
4677 # Check whether --enable-threads was given.
4678 if test "${enable_threads+set}" = set; then
4679   enableval=$enable_threads;
4680 else
4681   enableval=default
4682 fi
4683
4684 case "$enableval" in
4685   yes) ENABLE_THREADS=1
4686  ;;
4687   no)  ENABLE_THREADS=0
4688  ;;
4689   default) ENABLE_THREADS=1
4690  ;;
4691   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693    { (exit 1); exit 1; }; } ;;
4694 esac
4695
4696 cat >>confdefs.h <<_ACEOF
4697 #define ENABLE_THREADS $ENABLE_THREADS
4698 _ACEOF
4699
4700
4701 # Check whether --enable-pic was given.
4702 if test "${enable_pic+set}" = set; then
4703   enableval=$enable_pic;
4704 else
4705   enableval=default
4706 fi
4707
4708 case "$enableval" in
4709   yes) ENABLE_PIC=1
4710  ;;
4711   no)  ENABLE_PIC=0
4712  ;;
4713   default) ENABLE_PIC=0
4714  ;;
4715   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717    { (exit 1); exit 1; }; } ;;
4718 esac
4719
4720 cat >>confdefs.h <<_ACEOF
4721 #define ENABLE_PIC $ENABLE_PIC
4722 _ACEOF
4723
4724
4725 TARGETS_TO_BUILD=""
4726 # Check whether --enable-targets was given.
4727 if test "${enable_targets+set}" = set; then
4728   enableval=$enable_targets;
4729 else
4730   enableval=all
4731 fi
4732
4733 case "$enableval" in
4734   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4735   host-only)
4736     case "$llvm_cv_target_arch" in
4737       x86)     TARGETS_TO_BUILD="X86" ;;
4738       x86_64)  TARGETS_TO_BUILD="X86" ;;
4739       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4740       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4742       IA64)    TARGETS_TO_BUILD="IA64" ;;
4743       ARM)     TARGETS_TO_BUILD="ARM" ;;
4744       Mips)    TARGETS_TO_BUILD="Mips" ;;
4745       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746 echo "$as_me: error: Can not set target to build" >&2;}
4747    { (exit 1); exit 1; }; } ;;
4748     esac
4749     ;;
4750   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4751       case "$a_target" in
4752         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4759         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4760         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762    { (exit 1); exit 1; }; } ;;
4763       esac
4764   done
4765   ;;
4766 esac
4767 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4769
4770
4771 # Check whether --enable-cbe-printf-a was given.
4772 if test "${enable_cbe_printf_a+set}" = set; then
4773   enableval=$enable_cbe_printf_a;
4774 else
4775   enableval=default
4776 fi
4777
4778 case "$enableval" in
4779   yes) ENABLE_CBE_PRINTF_A=1
4780  ;;
4781   no)  ENABLE_CBE_PRINTF_A=0
4782  ;;
4783   default)  ENABLE_CBE_PRINTF_A=1
4784  ;;
4785   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787    { (exit 1); exit 1; }; } ;;
4788 esac
4789
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4792 _ACEOF
4793
4794
4795
4796 # Check whether --with-llvmgccdir was given.
4797 if test "${with_llvmgccdir+set}" = set; then
4798   withval=$with_llvmgccdir;
4799 else
4800   withval=default
4801 fi
4802
4803 case "$withval" in
4804   default) WITH_LLVMGCCDIR=default ;;
4805   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4806   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808    { (exit 1); exit 1; }; } ;;
4809 esac
4810
4811
4812 # Check whether --with-extra-options was given.
4813 if test "${with_extra_options+set}" = set; then
4814   withval=$with_extra_options;
4815 else
4816   withval=default
4817 fi
4818
4819 case "$withval" in
4820   default) EXTRA_OPTIONS= ;;
4821   *) EXTRA_OPTIONS=$withval ;;
4822 esac
4823 EXTRA_OPTIONS=$EXTRA_OPTIONS
4824
4825
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4836   CPP=
4837 fi
4838 if test -z "$CPP"; then
4839   if test "${ac_cv_prog_CPP+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842       # Double quotes because CPP needs to be expanded
4843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844     do
4845       ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4847 do
4848   # Use a header file that comes with gcc, so configuring glibc
4849   # with a fresh cross-compiler works.
4850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851   # <limits.h> exists even on freestanding compilers.
4852   # On the NeXT, cc -E runs the code through the compiler's parser,
4853   # not just through cpp. "Syntax error" is here to catch this case.
4854   cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #ifdef __STDC__
4861 # include <limits.h>
4862 #else
4863 # include <assert.h>
4864 #endif
4865                      Syntax error
4866 _ACEOF
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } >/dev/null; then
4880   if test -s conftest.err; then
4881     ac_cpp_err=$ac_c_preproc_warn_flag
4882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4883   else
4884     ac_cpp_err=
4885   fi
4886 else
4887   ac_cpp_err=yes
4888 fi
4889 if test -z "$ac_cpp_err"; then
4890   :
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895   # Broken: fails on valid input.
4896 continue
4897 fi
4898
4899 rm -f conftest.err conftest.$ac_ext
4900
4901   # OK, works on sane cases.  Now check whether nonexistent headers
4902   # can be detected and how.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <ac_nonexistent.h>
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_c_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 done
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4951   break
4952 fi
4953
4954     done
4955     ac_cv_prog_CPP=$CPP
4956
4957 fi
4958   CPP=$ac_cv_prog_CPP
4959 else
4960   ac_cv_prog_CPP=$CPP
4961 fi
4962 { echo "$as_me:$LINENO: result: $CPP" >&5
4963 echo "${ECHO_T}$CPP" >&6; }
4964 ac_preproc_ok=false
4965 for ac_c_preproc_warn_flag in '' yes
4966 do
4967   # Use a header file that comes with gcc, so configuring glibc
4968   # with a fresh cross-compiler works.
4969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970   # <limits.h> exists even on freestanding compilers.
4971   # On the NeXT, cc -E runs the code through the compiler's parser,
4972   # not just through cpp. "Syntax error" is here to catch this case.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #ifdef __STDC__
4980 # include <limits.h>
4981 #else
4982 # include <assert.h>
4983 #endif
4984                      Syntax error
4985 _ACEOF
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4987 case "(($ac_try" in
4988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989   *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } >/dev/null; then
4999   if test -s conftest.err; then
5000     ac_cpp_err=$ac_c_preproc_warn_flag
5001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002   else
5003     ac_cpp_err=
5004   fi
5005 else
5006   ac_cpp_err=yes
5007 fi
5008 if test -z "$ac_cpp_err"; then
5009   :
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014   # Broken: fails on valid input.
5015 continue
5016 fi
5017
5018 rm -f conftest.err conftest.$ac_ext
5019
5020   # OK, works on sane cases.  Now check whether nonexistent headers
5021   # can be detected and how.
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028 #include <ac_nonexistent.h>
5029 _ACEOF
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5031 case "(($ac_try" in
5032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033   *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } >/dev/null; then
5043   if test -s conftest.err; then
5044     ac_cpp_err=$ac_c_preproc_warn_flag
5045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5046   else
5047     ac_cpp_err=
5048   fi
5049 else
5050   ac_cpp_err=yes
5051 fi
5052 if test -z "$ac_cpp_err"; then
5053   # Broken: success on invalid input.
5054 continue
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059   # Passes both tests.
5060 ac_preproc_ok=:
5061 break
5062 fi
5063
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 done
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5070   :
5071 else
5072   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&2;}
5076    { (exit 1); exit 1; }; }
5077 fi
5078
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 if test -n "$ac_tool_prefix"; then
5091   for ac_prog in gcc
5092   do
5093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   if test -n "$CC"; then
5101   ac_cv_prog_CC="$CC" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 CC=$ac_cv_prog_CC
5121 if test -n "$CC"; then
5122   { echo "$as_me:$LINENO: result: $CC" >&5
5123 echo "${ECHO_T}$CC" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130     test -n "$CC" && break
5131   done
5132 fi
5133 if test -z "$CC"; then
5134   ac_ct_CC=$CC
5135   for ac_prog in gcc
5136 do
5137   # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy $ac_prog; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   if test -n "$ac_ct_CC"; then
5145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154     ac_cv_prog_ac_ct_CC="$ac_prog"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167 echo "${ECHO_T}$ac_ct_CC" >&6; }
5168 else
5169   { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5171 fi
5172
5173
5174   test -n "$ac_ct_CC" && break
5175 done
5176
5177   if test "x$ac_ct_CC" = x; then
5178     CC=""
5179   else
5180     case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet.  If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet.  If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190     CC=$ac_ct_CC
5191   fi
5192 fi
5193
5194
5195 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: no acceptable C compiler found in \$PATH
5198 See \`config.log' for more details." >&2;}
5199    { (exit 1); exit 1; }; }
5200
5201 # Provide some information about the compiler.
5202 echo "$as_me:$LINENO: checking for C compiler version" >&5
5203 ac_compiler=`set X $ac_compile; echo $2`
5204 { (ac_try="$ac_compiler --version >&5"
5205 case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210   (eval "$ac_compiler --version >&5") 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }
5214 { (ac_try="$ac_compiler -v >&5"
5215 case "(($ac_try" in
5216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217   *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220   (eval "$ac_compiler -v >&5") 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); }
5224 { (ac_try="$ac_compiler -V >&5"
5225 case "(($ac_try" in
5226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227   *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230   (eval "$ac_compiler -V >&5") 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }
5234
5235 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246
5247 int
5248 main ()
5249 {
5250 #ifndef __GNUC__
5251        choke me
5252 #endif
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_compile") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } &&
5272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273   { (case "(($ac_try" in
5274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275   *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278   (eval "$ac_try") 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_try") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; }; then
5292   ac_compiler_gnu=yes
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297         ac_compiler_gnu=no
5298 fi
5299
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306 GCC=`test $ac_compiler_gnu = yes && echo yes`
5307 ac_test_CFLAGS=${CFLAGS+set}
5308 ac_save_CFLAGS=$CFLAGS
5309 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_cc_g+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   ac_save_c_werror_flag=$ac_c_werror_flag
5315    ac_c_werror_flag=yes
5316    ac_cv_prog_cc_g=no
5317    CFLAGS="-g"
5318    cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 int
5326 main ()
5327 {
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340   (eval "$ac_compile") 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348   { (case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_try") 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; } &&
5357          { ac_try='test -s conftest.$ac_objext'
5358   { (case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_try") 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; }; then
5367   ac_cv_prog_cc_g=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372         CFLAGS=""
5373       cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compile") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403   { (case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_try") 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_try") 2>&5
5419   ac_status=$?
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); }; }; then
5422   :
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427         ac_c_werror_flag=$ac_save_c_werror_flag
5428          CFLAGS="-g"
5429          cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435
5436 int
5437 main ()
5438 {
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } &&
5458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459   { (case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_try") 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; } &&
5468          { ac_try='test -s conftest.$ac_objext'
5469   { (case "(($ac_try" in
5470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471   *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474   (eval "$ac_try") 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; }; then
5478   ac_cv_prog_cc_g=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493    ac_c_werror_flag=$ac_save_c_werror_flag
5494 fi
5495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497 if test "$ac_test_CFLAGS" = set; then
5498   CFLAGS=$ac_save_CFLAGS
5499 elif test $ac_cv_prog_cc_g = yes; then
5500   if test "$GCC" = yes; then
5501     CFLAGS="-g -O2"
5502   else
5503     CFLAGS="-g"
5504   fi
5505 else
5506   if test "$GCC" = yes; then
5507     CFLAGS="-O2"
5508   else
5509     CFLAGS=
5510   fi
5511 fi
5512 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cc_c89+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_cv_prog_cc_c89=no
5518 ac_save_CC=$CC
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <stdarg.h>
5526 #include <stdio.h>
5527 #include <sys/types.h>
5528 #include <sys/stat.h>
5529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5530 struct buf { int x; };
5531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532 static char *e (p, i)
5533      char **p;
5534      int i;
5535 {
5536   return p[i];
5537 }
5538 static char *f (char * (*g) (char **, int), char **p, ...)
5539 {
5540   char *s;
5541   va_list v;
5542   va_start (v,p);
5543   s = g (p, va_arg (v,int));
5544   va_end (v);
5545   return s;
5546 }
5547
5548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5549    function prototypes and stuff, but not '\xHH' hex character constants.
5550    These don't provoke an error unfortunately, instead are silently treated
5551    as 'x'.  The following induces an error, until -std is added to get
5552    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5553    array size at least.  It's necessary to write '\x00'==0 to get something
5554    that's true only with -std.  */
5555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5556
5557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558    inside strings and character constants.  */
5559 #define FOO(x) 'x'
5560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5561
5562 int test (int i, double x);
5563 struct s1 {int (*f) (int a);};
5564 struct s2 {int (*f) (double a);};
5565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5566 int argc;
5567 char **argv;
5568 int
5569 main ()
5570 {
5571 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5578 do
5579   CC="$ac_save_CC $ac_arg"
5580   rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595   { (case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_try") 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; } &&
5604          { ac_try='test -s conftest.$ac_objext'
5605   { (case "(($ac_try" in
5606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607   *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610   (eval "$ac_try") 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_cv_prog_cc_c89=$ac_arg
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext
5623   test "x$ac_cv_prog_cc_c89" != "xno" && break
5624 done
5625 rm -f conftest.$ac_ext
5626 CC=$ac_save_CC
5627
5628 fi
5629 # AC_CACHE_VAL
5630 case "x$ac_cv_prog_cc_c89" in
5631   x)
5632     { echo "$as_me:$LINENO: result: none needed" >&5
5633 echo "${ECHO_T}none needed" >&6; } ;;
5634   xno)
5635     { echo "$as_me:$LINENO: result: unsupported" >&5
5636 echo "${ECHO_T}unsupported" >&6; } ;;
5637   *)
5638     CC="$CC $ac_cv_prog_cc_c89"
5639     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5641 esac
5642
5643
5644 ac_ext=c
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650 ac_ext=cpp
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 if test -z "$CXX"; then
5656   if test -n "$CCC"; then
5657     CXX=$CCC
5658   else
5659     if test -n "$ac_tool_prefix"; then
5660   for ac_prog in g++
5661   do
5662     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_CXX+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   if test -n "$CXX"; then
5670   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 CXX=$ac_cv_prog_CXX
5690 if test -n "$CXX"; then
5691   { echo "$as_me:$LINENO: result: $CXX" >&5
5692 echo "${ECHO_T}$CXX" >&6; }
5693 else
5694   { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5696 fi
5697
5698
5699     test -n "$CXX" && break
5700   done
5701 fi
5702 if test -z "$CXX"; then
5703   ac_ct_CXX=$CXX
5704   for ac_prog in g++
5705 do
5706   # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$ac_ct_CXX"; then
5714   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_ac_ct_CXX="$ac_prog"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734 if test -n "$ac_ct_CXX"; then
5735   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741
5742
5743   test -n "$ac_ct_CXX" && break
5744 done
5745
5746   if test "x$ac_ct_CXX" = x; then
5747     CXX="g++"
5748   else
5749     case $cross_compiling:$ac_tool_warned in
5750 yes:)
5751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet.  If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&5
5754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet.  If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759     CXX=$ac_ct_CXX
5760   fi
5761 fi
5762
5763   fi
5764 fi
5765 # Provide some information about the compiler.
5766 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767 ac_compiler=`set X $ac_compile; echo $2`
5768 { (ac_try="$ac_compiler --version >&5"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_compiler --version >&5") 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }
5778 { (ac_try="$ac_compiler -v >&5"
5779 case "(($ac_try" in
5780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781   *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784   (eval "$ac_compiler -v >&5") 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }
5788 { (ac_try="$ac_compiler -V >&5"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compiler -V >&5") 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }
5798
5799 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814 #ifndef __GNUC__
5815        choke me
5816 #endif
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_compile") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837   { (case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_try") 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; } &&
5846          { ac_try='test -s conftest.$ac_objext'
5847   { (case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_try") 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_compiler_gnu=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861         ac_compiler_gnu=no
5862 fi
5863
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5866
5867 fi
5868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870 GXX=`test $ac_compiler_gnu = yes && echo yes`
5871 ac_test_CXXFLAGS=${CXXFLAGS+set}
5872 ac_save_CXXFLAGS=$CXXFLAGS
5873 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_cxx_g+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879    ac_cxx_werror_flag=yes
5880    ac_cv_prog_cxx_g=no
5881    CXXFLAGS="-g"
5882    cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888
5889 int
5890 main ()
5891 {
5892
5893   ;
5894   return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5899 case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904   (eval "$ac_compile") 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912   { (case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_try") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_try") 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   ac_cv_prog_cxx_g=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         CXXFLAGS=""
5937       cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943
5944 int
5945 main ()
5946 {
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } &&
5966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967   { (case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972   (eval "$ac_try") 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; } &&
5976          { ac_try='test -s conftest.$ac_objext'
5977   { (case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_try") 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   :
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5992          CXXFLAGS="-g"
5993          cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999
6000 int
6001 main ()
6002 {
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compile") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023   { (case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_try") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest.$ac_objext'
6033   { (case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_try") 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   ac_cv_prog_cxx_g=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 fi
6052
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6055
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6058 fi
6059 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061 if test "$ac_test_CXXFLAGS" = set; then
6062   CXXFLAGS=$ac_save_CXXFLAGS
6063 elif test $ac_cv_prog_cxx_g = yes; then
6064   if test "$GXX" = yes; then
6065     CXXFLAGS="-g -O2"
6066   else
6067     CXXFLAGS="-g"
6068   fi
6069 else
6070   if test "$GXX" = yes; then
6071     CXXFLAGS="-O2"
6072   else
6073     CXXFLAGS=
6074   fi
6075 fi
6076 ac_ext=c
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082 { echo "$as_me:$LINENO: checking " >&5
6083 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084 if test "${ac_cv_has_flex+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   for ac_prog in flex lex
6088 do
6089   # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_LEX+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$LEX"; then
6097   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_LEX="$ac_prog"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 LEX=$ac_cv_prog_LEX
6117 if test -n "$LEX"; then
6118   { echo "$as_me:$LINENO: result: $LEX" >&5
6119 echo "${ECHO_T}$LEX" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126   test -n "$LEX" && break
6127 done
6128 test -n "$LEX" || LEX=":"
6129
6130 if test -z "$LEXLIB"
6131 then
6132   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   ac_check_lib_save_LIBS=$LIBS
6138 LIBS="-lfl  $LIBS"
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145
6146 /* Override any GCC internal prototype to avoid an error.
6147    Use char because int might match the return type of a GCC
6148    builtin and then its argument prototype would still apply.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 char yywrap ();
6153 int
6154 main ()
6155 {
6156 return yywrap ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (ac_try="$ac_link"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_link") 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176   { (case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_try") 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; } &&
6185          { ac_try='test -s conftest$ac_exeext'
6186   { (case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_try") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; }; then
6195   ac_cv_lib_fl_yywrap=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200         ac_cv_lib_fl_yywrap=no
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext \
6204       conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6206 fi
6207 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209 if test $ac_cv_lib_fl_yywrap = yes; then
6210   LEXLIB="-lfl"
6211 else
6212   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   ac_check_lib_save_LIBS=$LIBS
6218 LIBS="-ll  $LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225
6226 /* Override any GCC internal prototype to avoid an error.
6227    Use char because int might match the return type of a GCC
6228    builtin and then its argument prototype would still apply.  */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 char yywrap ();
6233 int
6234 main ()
6235 {
6236 return yywrap ();
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_l_yywrap=yes
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         ac_cv_lib_l_yywrap=no
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext \
6284       conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289 if test $ac_cv_lib_l_yywrap = yes; then
6290   LEXLIB="-ll"
6291 fi
6292
6293 fi
6294
6295 fi
6296
6297 if test "x$LEX" != "x:"; then
6298   { echo "$as_me:$LINENO: checking lex output file root" >&5
6299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_lex_root+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   # The minimal lex program is just a single line: %%.  But some broken lexes
6304 # (Solaris, I think it was) want two %% lines, so accommodate them.
6305 cat >conftest.l <<_ACEOF
6306 %%
6307 %%
6308 _ACEOF
6309 { (ac_try="$LEX conftest.l"
6310 case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$LEX conftest.l") 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }
6319 if test -f lex.yy.c; then
6320   ac_cv_prog_lex_root=lex.yy
6321 elif test -f lexyy.c; then
6322   ac_cv_prog_lex_root=lexyy
6323 else
6324   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326    { (exit 1); exit 1; }; }
6327 fi
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6331 rm -f conftest.l
6332 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6333
6334 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   # POSIX says lex can declare yytext either as a pointer or an array; the
6340 # default is implementation-dependent. Figure out which it is, since
6341 # not all implementations provide the %pointer and %array declarations.
6342 ac_cv_prog_lex_yytext_pointer=no
6343 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6344 ac_save_LIBS=$LIBS
6345 LIBS="$LIBS $LEXLIB"
6346 cat >conftest.$ac_ext <<_ACEOF
6347 `cat $LEX_OUTPUT_ROOT.c`
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_link") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364   { (case "(($ac_try" in
6365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366   *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369   (eval "$ac_try") 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; } &&
6373          { ac_try='test -s conftest$ac_exeext'
6374   { (case "(($ac_try" in
6375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376   *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379   (eval "$ac_try") 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   ac_cv_prog_lex_yytext_pointer=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext \
6392       conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_save_LIBS
6394 rm -f "${LEX_OUTPUT_ROOT}.c"
6395
6396 fi
6397 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6400
6401 cat >>confdefs.h <<\_ACEOF
6402 #define YYTEXT_POINTER 1
6403 _ACEOF
6404
6405 fi
6406
6407 fi
6408
6409 fi
6410 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412 if test "$LEX" != "flex"; then
6413   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414 echo "$as_me: error: flex not found but required" >&2;}
6415    { (exit 1); exit 1; }; }
6416 else
6417   FLEX=flex
6418
6419 fi
6420
6421 { echo "$as_me:$LINENO: checking " >&5
6422 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423 if test "${llvm_cv_has_bison+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   for ac_prog in 'bison -y' byacc
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_YACC+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   if test -n "$YACC"; then
6436   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443   for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_prog_YACC="$ac_prog"
6446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457   { echo "$as_me:$LINENO: result: $YACC" >&5
6458 echo "${ECHO_T}$YACC" >&6; }
6459 else
6460   { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6462 fi
6463
6464
6465   test -n "$YACC" && break
6466 done
6467 test -n "$YACC" || YACC="yacc"
6468
6469 fi
6470 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472 if test "$YACC" != "bison -y"; then
6473
6474   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6476 else
6477   BISON=bison
6478
6479 fi
6480
6481 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483 if test "${lt_cv_path_NM+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   if test -n "$NM"; then
6487   # Let the user override the test.
6488   lt_cv_path_NM="$NM"
6489 else
6490   lt_nm_to_check="${ac_tool_prefix}nm"
6491   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492     lt_nm_to_check="$lt_nm_to_check nm"
6493   fi
6494   for lt_tmp_nm in $lt_nm_to_check; do
6495     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497       IFS="$lt_save_ifs"
6498       test -z "$ac_dir" && ac_dir=.
6499       tmp_nm="$ac_dir/$lt_tmp_nm"
6500       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501         # Check to see if the nm accepts a BSD-compat flag.
6502         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503         #   nm: unknown option "B" ignored
6504         # Tru64's nm complains that /dev/null is an invalid object file
6505         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506         */dev/null* | *'Invalid file or object type'*)
6507           lt_cv_path_NM="$tmp_nm -B"
6508           break
6509           ;;
6510         *)
6511           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512           */dev/null*)
6513             lt_cv_path_NM="$tmp_nm -p"
6514             break
6515             ;;
6516           *)
6517             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518             continue # so that we can try to find one that supports BSD flags
6519             ;;
6520           esac
6521           ;;
6522         esac
6523       fi
6524     done
6525     IFS="$lt_save_ifs"
6526   done
6527   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6528 fi
6529 fi
6530 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6532 NM="$lt_cv_path_NM"
6533
6534
6535
6536 { echo "$as_me:$LINENO: checking for GNU make" >&5
6537 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538 if test "${llvm_cv_gnu_make_command+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   llvm_cv_gnu_make_command=''
6542  for a in "$MAKE" make gmake gnumake ; do
6543   if test -z "$a" ; then continue ; fi ;
6544   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6545   then
6546    llvm_cv_gnu_make_command=$a ;
6547    break;
6548   fi
6549  done
6550 fi
6551 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6554    ifGNUmake='' ;
6555  else
6556    ifGNUmake='#' ;
6557    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558 echo "${ECHO_T}\"Not found\"" >&6; };
6559  fi
6560
6561
6562 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6564 LN_S=$as_ln_s
6565 if test "$LN_S" = "ln -s"; then
6566   { echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6; }
6568 else
6569   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570 echo "${ECHO_T}no, using $LN_S" >&6; }
6571 fi
6572
6573 # Extract the first word of "cmp", so it can be a program name with args.
6574 set dummy cmp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_CMP+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $CMP in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6601   ;;
6602 esac
6603 fi
6604 CMP=$ac_cv_path_CMP
6605 if test -n "$CMP"; then
6606   { echo "$as_me:$LINENO: result: $CMP" >&5
6607 echo "${ECHO_T}$CMP" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 # Extract the first word of "cp", so it can be a program name with args.
6615 set dummy cp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_CP+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   case $CP in
6622   [\\/]* | ?:[\\/]*)
6623   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6624   ;;
6625   *)
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6642   ;;
6643 esac
6644 fi
6645 CP=$ac_cv_path_CP
6646 if test -n "$CP"; then
6647   { echo "$as_me:$LINENO: result: $CP" >&5
6648 echo "${ECHO_T}$CP" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6653
6654
6655 # Extract the first word of "date", so it can be a program name with args.
6656 set dummy date; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_DATE+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   case $DATE in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6683   ;;
6684 esac
6685 fi
6686 DATE=$ac_cv_path_DATE
6687 if test -n "$DATE"; then
6688   { echo "$as_me:$LINENO: result: $DATE" >&5
6689 echo "${ECHO_T}$DATE" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6693 fi
6694
6695
6696 # Extract the first word of "find", so it can be a program name with args.
6697 set dummy find; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_FIND+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $FIND in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6724   ;;
6725 esac
6726 fi
6727 FIND=$ac_cv_path_FIND
6728 if test -n "$FIND"; then
6729   { echo "$as_me:$LINENO: result: $FIND" >&5
6730 echo "${ECHO_T}$FIND" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 # Extract the first word of "grep", so it can be a program name with args.
6738 set dummy grep; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GREP+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $GREP in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6765   ;;
6766 esac
6767 fi
6768 GREP=$ac_cv_path_GREP
6769 if test -n "$GREP"; then
6770   { echo "$as_me:$LINENO: result: $GREP" >&5
6771 echo "${ECHO_T}$GREP" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 # Extract the first word of "mkdir", so it can be a program name with args.
6779 set dummy mkdir; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_MKDIR+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785   case $MKDIR in
6786   [\\/]* | ?:[\\/]*)
6787   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6788   ;;
6789   *)
6790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6806   ;;
6807 esac
6808 fi
6809 MKDIR=$ac_cv_path_MKDIR
6810 if test -n "$MKDIR"; then
6811   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812 echo "${ECHO_T}$MKDIR" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 # Extract the first word of "mv", so it can be a program name with args.
6820 set dummy mv; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_MV+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   case $MV in
6827   [\\/]* | ?:[\\/]*)
6828   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6829   ;;
6830   *)
6831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6847   ;;
6848 esac
6849 fi
6850 MV=$ac_cv_path_MV
6851 if test -n "$MV"; then
6852   { echo "$as_me:$LINENO: result: $MV" >&5
6853 echo "${ECHO_T}$MV" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 if test -n "$ac_tool_prefix"; then
6861   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_prog_RANLIB+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   if test -n "$RANLIB"; then
6869   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 RANLIB=$ac_cv_prog_RANLIB
6889 if test -n "$RANLIB"; then
6890   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891 echo "${ECHO_T}$RANLIB" >&6; }
6892 else
6893   { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_RANLIB"; then
6900   ac_ct_RANLIB=$RANLIB
6901   # Extract the first word of "ranlib", so it can be a program name with args.
6902 set dummy ranlib; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   if test -n "$ac_ct_RANLIB"; then
6909   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_prog_ac_ct_RANLIB="ranlib"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929 if test -n "$ac_ct_RANLIB"; then
6930   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937   if test "x$ac_ct_RANLIB" = x; then
6938     RANLIB=":"
6939   else
6940     case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943 whose name does not start with the host triplet.  If you think this
6944 configuration is useful to you, please write to autoconf@gnu.org." >&5
6945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946 whose name does not start with the host triplet.  If you think this
6947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     RANLIB=$ac_ct_RANLIB
6951   fi
6952 else
6953   RANLIB="$ac_cv_prog_RANLIB"
6954 fi
6955
6956 # Extract the first word of "rm", so it can be a program name with args.
6957 set dummy rm; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_RM+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $RM in
6964   [\\/]* | ?:[\\/]*)
6965   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6966   ;;
6967   *)
6968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973   for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6984   ;;
6985 esac
6986 fi
6987 RM=$ac_cv_path_RM
6988 if test -n "$RM"; then
6989   { echo "$as_me:$LINENO: result: $RM" >&5
6990 echo "${ECHO_T}$RM" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6995
6996
6997 # Extract the first word of "sed", so it can be a program name with args.
6998 set dummy sed; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_SED+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   case $SED in
7005   [\\/]* | ?:[\\/]*)
7006   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7007   ;;
7008   *)
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014   for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7025   ;;
7026 esac
7027 fi
7028 SED=$ac_cv_path_SED
7029 if test -n "$SED"; then
7030   { echo "$as_me:$LINENO: result: $SED" >&5
7031 echo "${ECHO_T}$SED" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 # Extract the first word of "tar", so it can be a program name with args.
7039 set dummy tar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_TAR+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $TAR in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7066   ;;
7067 esac
7068 fi
7069 TAR=$ac_cv_path_TAR
7070 if test -n "$TAR"; then
7071   { echo "$as_me:$LINENO: result: $TAR" >&5
7072 echo "${ECHO_T}$TAR" >&6; }
7073 else
7074   { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7076 fi
7077
7078
7079 # Extract the first word of "pwd", so it can be a program name with args.
7080 set dummy pwd; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_BINPWD+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   case $BINPWD in
7087   [\\/]* | ?:[\\/]*)
7088   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7089   ;;
7090   *)
7091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7107   ;;
7108 esac
7109 fi
7110 BINPWD=$ac_cv_path_BINPWD
7111 if test -n "$BINPWD"; then
7112   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113 echo "${ECHO_T}$BINPWD" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120
7121 # Extract the first word of "Graphviz", so it can be a program name with args.
7122 set dummy Graphviz; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $GRAPHVIZ in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7149   ;;
7150 esac
7151 fi
7152 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153 if test -n "$GRAPHVIZ"; then
7154   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_GRAPHVIZ 1
7166 _ACEOF
7167
7168     if test "$llvm_cv_os_type" = "MingW" ; then
7169     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170   fi
7171
7172 cat >>confdefs.h <<_ACEOF
7173 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7174 _ACEOF
7175
7176 fi
7177 # Extract the first word of "dot", so it can be a program name with args.
7178 set dummy dot; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_DOT+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $DOT in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7187   ;;
7188   *)
7189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7205   ;;
7206 esac
7207 fi
7208 DOT=$ac_cv_path_DOT
7209 if test -n "$DOT"; then
7210   { echo "$as_me:$LINENO: result: $DOT" >&5
7211 echo "${ECHO_T}$DOT" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 if test "$DOT" != "echo dot" ; then
7219
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_DOT 1
7222 _ACEOF
7223
7224     if test "$llvm_cv_os_type" = "MingW" ; then
7225     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226   fi
7227
7228 cat >>confdefs.h <<_ACEOF
7229 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7230 _ACEOF
7231
7232 fi
7233 for ac_prog in gv gsview32
7234 do
7235   # Extract the first word of "$ac_prog", so it can be a program name with args.
7236 set dummy $ac_prog; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_path_GV+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   case $GV in
7243   [\\/]* | ?:[\\/]*)
7244   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7245   ;;
7246   *)
7247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262   ;;
7263 esac
7264 fi
7265 GV=$ac_cv_path_GV
7266 if test -n "$GV"; then
7267   { echo "$as_me:$LINENO: result: $GV" >&5
7268 echo "${ECHO_T}$GV" >&6; }
7269 else
7270   { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7272 fi
7273
7274
7275   test -n "$GV" && break
7276 done
7277 test -n "$GV" || GV="echo gv"
7278
7279 if test "$GV" != "echo gv" ; then
7280
7281 cat >>confdefs.h <<\_ACEOF
7282 #define HAVE_GV 1
7283 _ACEOF
7284
7285     if test "$llvm_cv_os_type" = "MingW" ; then
7286     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287   fi
7288
7289 cat >>confdefs.h <<_ACEOF
7290 #define LLVM_PATH_GV "$GV${EXEEXT}"
7291 _ACEOF
7292
7293 fi
7294 # Extract the first word of "dotty", so it can be a program name with args.
7295 set dummy dotty; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_DOTTY+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   case $DOTTY in
7302   [\\/]* | ?:[\\/]*)
7303   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7304   ;;
7305   *)
7306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7322   ;;
7323 esac
7324 fi
7325 DOTTY=$ac_cv_path_DOTTY
7326 if test -n "$DOTTY"; then
7327   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328 echo "${ECHO_T}$DOTTY" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334
7335 if test "$DOTTY" != "echo dotty" ; then
7336
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_DOTTY 1
7339 _ACEOF
7340
7341     if test "$llvm_cv_os_type" = "MingW" ; then
7342     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7343   fi
7344
7345 cat >>confdefs.h <<_ACEOF
7346 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7347 _ACEOF
7348
7349 fi
7350
7351
7352 # Extract the first word of "perl", so it can be a program name with args.
7353 set dummy perl; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PERL+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   case $PERL in
7360   [\\/]* | ?:[\\/]*)
7361   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7362   ;;
7363   *)
7364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7380   ;;
7381 esac
7382 fi
7383 PERL=$ac_cv_path_PERL
7384 if test -n "$PERL"; then
7385   { echo "$as_me:$LINENO: result: $PERL" >&5
7386 echo "${ECHO_T}$PERL" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 if test "$PERL" != "none"; then
7394   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397     { echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6; }
7399   else
7400     PERL=none
7401     { echo "$as_me:$LINENO: result: not found" >&5
7402 echo "${ECHO_T}not found" >&6; }
7403   fi
7404 fi
7405
7406
7407 if test x"$PERL" = xnone; then
7408    HAVE_PERL=0
7409
7410    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412    { (exit 1); exit 1; }; }
7413 else
7414    HAVE_PERL=1
7415
7416 fi
7417
7418 # Find a good install program.  We prefer a C program (faster),
7419 # so one script is as good as another.  But avoid the broken or
7420 # incompatible versions:
7421 # SysV /etc/install, /usr/sbin/install
7422 # SunOS /usr/etc/install
7423 # IRIX /sbin/install
7424 # AIX /bin/install
7425 # AmigaOS /C/install, which installs bootblocks on floppy discs
7426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # OS/2's system install, which has a completely different semantic
7430 # ./install, which can be erroneously created by make from ./install.sh.
7431 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433 if test -z "$INSTALL"; then
7434 if test "${ac_cv_path_install+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   # Account for people who put trailing slashes in PATH elements.
7443 case $as_dir/ in
7444   ./ | .// | /cC/* | \
7445   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7447   /usr/ucb/* ) ;;
7448   *)
7449     # OSF1 and SCO ODT 3.0 have their own names for install.
7450     # Don't use installbsd from OSF since it installs stuff as root
7451     # by default.
7452     for ac_prog in ginstall scoinst install; do
7453       for ac_exec_ext in '' $ac_executable_extensions; do
7454         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455           if test $ac_prog = install &&
7456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457             # AIX install.  It has an incompatible calling convention.
7458             :
7459           elif test $ac_prog = install &&
7460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461             # program-specific install script used by HP pwplus--don't use.
7462             :
7463           else
7464             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7465             break 3
7466           fi
7467         fi
7468       done
7469     done
7470     ;;
7471 esac
7472 done
7473 IFS=$as_save_IFS
7474
7475
7476 fi
7477   if test "${ac_cv_path_install+set}" = set; then
7478     INSTALL=$ac_cv_path_install
7479   else
7480     # As a last resort, use the slow shell script.  Don't cache a
7481     # value for INSTALL within a source directory, because that will
7482     # break other packages using the cache if that directory is
7483     # removed, or if the value is a relative name.
7484     INSTALL=$ac_install_sh
7485   fi
7486 fi
7487 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7488 echo "${ECHO_T}$INSTALL" >&6; }
7489
7490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491 # It thinks the first close brace ends the variable substitution.
7492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7493
7494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7495
7496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7497
7498
7499 # Extract the first word of "bzip2", so it can be a program name with args.
7500 set dummy bzip2; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_BZIP2+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $BZIP2 in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7527   ;;
7528 esac
7529 fi
7530 BZIP2=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533 echo "${ECHO_T}$BZIP2" >&6; }
7534 else
7535   { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7537 fi
7538
7539
7540 # Extract the first word of "doxygen", so it can be a program name with args.
7541 set dummy doxygen; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $DOXYGEN in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7568   ;;
7569 esac
7570 fi
7571 DOXYGEN=$ac_cv_path_DOXYGEN
7572 if test -n "$DOXYGEN"; then
7573   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574 echo "${ECHO_T}$DOXYGEN" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 # Extract the first word of "groff", so it can be a program name with args.
7582 set dummy groff; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GROFF+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $GROFF in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7609   ;;
7610 esac
7611 fi
7612 GROFF=$ac_cv_path_GROFF
7613 if test -n "$GROFF"; then
7614   { echo "$as_me:$LINENO: result: $GROFF" >&5
7615 echo "${ECHO_T}$GROFF" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622 # Extract the first word of "gzip", so it can be a program name with args.
7623 set dummy gzip; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_GZIP+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   case $GZIP in
7630   [\\/]* | ?:[\\/]*)
7631   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7632   ;;
7633   *)
7634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7650   ;;
7651 esac
7652 fi
7653 GZIP=$ac_cv_path_GZIP
7654 if test -n "$GZIP"; then
7655   { echo "$as_me:$LINENO: result: $GZIP" >&5
7656 echo "${ECHO_T}$GZIP" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662
7663 # Extract the first word of "pod2html", so it can be a program name with args.
7664 set dummy pod2html; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_POD2HTML+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   case $POD2HTML in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680   for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7691   ;;
7692 esac
7693 fi
7694 POD2HTML=$ac_cv_path_POD2HTML
7695 if test -n "$POD2HTML"; then
7696   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697 echo "${ECHO_T}$POD2HTML" >&6; }
7698 else
7699   { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7701 fi
7702
7703
7704 # Extract the first word of "pod2man", so it can be a program name with args.
7705 set dummy pod2man; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_POD2MAN+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $POD2MAN in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7732   ;;
7733 esac
7734 fi
7735 POD2MAN=$ac_cv_path_POD2MAN
7736 if test -n "$POD2MAN"; then
7737   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738 echo "${ECHO_T}$POD2MAN" >&6; }
7739 else
7740   { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7742 fi
7743
7744
7745 # Extract the first word of "runtest", so it can be a program name with args.
7746 set dummy runtest; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_RUNTEST+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   case $RUNTEST in
7753   [\\/]* | ?:[\\/]*)
7754   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7755   ;;
7756   *)
7757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7773   ;;
7774 esac
7775 fi
7776 RUNTEST=$ac_cv_path_RUNTEST
7777 if test -n "$RUNTEST"; then
7778   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779 echo "${ECHO_T}$RUNTEST" >&6; }
7780 else
7781   { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7783 fi
7784
7785
7786
7787 no_itcl=true
7788 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7790
7791 # Check whether --with-tclinclude was given.
7792 if test "${with_tclinclude+set}" = set; then
7793   withval=$with_tclinclude; with_tclinclude=${withval}
7794 else
7795   with_tclinclude=''
7796 fi
7797
7798 if test "${ac_cv_path_tclsh+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801
7802 if test x"${with_tclinclude}" != x ; then
7803   if test -f ${with_tclinclude}/tclsh ; then
7804     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805   elif test -f ${with_tclinclude}/src/tclsh ; then
7806     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7807   else
7808     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810    { (exit 1); exit 1; }; }
7811   fi
7812 fi
7813
7814 if test x"${ac_cv_path_tclsh}" = x ; then
7815   { echo "$as_me:$LINENO: result: none" >&5
7816 echo "${ECHO_T}none" >&6; }
7817   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
7818 do
7819   # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_TCLSH+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   case $TCLSH in
7827   [\\/]* | ?:[\\/]*)
7828   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7829   ;;
7830   *)
7831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   test -z "$as_dir" && as_dir=.
7836   for ac_exec_ext in '' $ac_executable_extensions; do
7837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846   ;;
7847 esac
7848 fi
7849 TCLSH=$ac_cv_path_TCLSH
7850 if test -n "$TCLSH"; then
7851   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852 echo "${ECHO_T}$TCLSH" >&6; }
7853 else
7854   { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7856 fi
7857
7858
7859   test -n "$TCLSH" && break
7860 done
7861
7862   if test x"${TCLSH}" = x ; then
7863     ac_cv_path_tclsh='';
7864   else
7865     ac_cv_path_tclsh="${TCLSH}";
7866   fi
7867 else
7868   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870   TCLSH="${ac_cv_path_tclsh}"
7871
7872 fi
7873
7874 fi
7875
7876 # Extract the first word of "zip", so it can be a program name with args.
7877 set dummy zip; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_ZIP+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   case $ZIP in
7884   [\\/]* | ?:[\\/]*)
7885   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7886   ;;
7887   *)
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7904   ;;
7905 esac
7906 fi
7907 ZIP=$ac_cv_path_ZIP
7908 if test -n "$ZIP"; then
7909   { echo "$as_me:$LINENO: result: $ZIP" >&5
7910 echo "${ECHO_T}$ZIP" >&6; }
7911 else
7912   { echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6; }
7914 fi
7915
7916
7917 # Extract the first word of "ocamlc", so it can be a program name with args.
7918 set dummy ocamlc; ac_word=$2
7919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921 if test "${ac_cv_path_OCAMLC+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   case $OCAMLC in
7925   [\\/]* | ?:[\\/]*)
7926   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7927   ;;
7928   *)
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934   for ac_exec_ext in '' $ac_executable_extensions; do
7935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7945   ;;
7946 esac
7947 fi
7948 OCAMLC=$ac_cv_path_OCAMLC
7949 if test -n "$OCAMLC"; then
7950   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951 echo "${ECHO_T}$OCAMLC" >&6; }
7952 else
7953   { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7955 fi
7956
7957
7958 # Extract the first word of "ocamlopt", so it can be a program name with args.
7959 set dummy ocamlopt; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   case $OCAMLOPT in
7966   [\\/]* | ?:[\\/]*)
7967   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7968   ;;
7969   *)
7970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975   for ac_exec_ext in '' $ac_executable_extensions; do
7976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7986   ;;
7987 esac
7988 fi
7989 OCAMLOPT=$ac_cv_path_OCAMLOPT
7990 if test -n "$OCAMLOPT"; then
7991   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992 echo "${ECHO_T}$OCAMLOPT" >&6; }
7993 else
7994   { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7996 fi
7997
7998
7999 # Extract the first word of "ocamldep", so it can be a program name with args.
8000 set dummy ocamldep; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   case $OCAMLDEP in
8007   [\\/]* | ?:[\\/]*)
8008   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8009   ;;
8010   *)
8011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_exec_ext in '' $ac_executable_extensions; do
8017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8027   ;;
8028 esac
8029 fi
8030 OCAMLDEP=$ac_cv_path_OCAMLDEP
8031 if test -n "$OCAMLDEP"; then
8032   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8033 echo "${ECHO_T}$OCAMLDEP" >&6; }
8034 else
8035   { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8037 fi
8038
8039
8040
8041 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8042 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8043 if test "${llvm_cv_link_use_r+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046    ac_ext=c
8047 ac_cpp='$CPP $CPPFLAGS'
8048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051
8052   oldcflags="$CFLAGS"
8053   CFLAGS="$CFLAGS -Wl,-R."
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064 int main() { return 0; }
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084   { (case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_try") 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest$ac_exeext'
8094   { (case "(($ac_try" in
8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096   *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099   (eval "$ac_try") 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; }; then
8103   llvm_cv_link_use_r=yes
8104 else
8105   echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108         llvm_cv_link_use_r=no
8109 fi
8110
8111 rm -f core conftest.err conftest.$ac_objext \
8112       conftest$ac_exeext conftest.$ac_ext
8113   CFLAGS="$oldcflags"
8114   ac_ext=c
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119
8120
8121 fi
8122 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8123 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8124 if test "$llvm_cv_link_use_r" = yes ; then
8125
8126 cat >>confdefs.h <<\_ACEOF
8127 #define HAVE_LINK_R 1
8128 _ACEOF
8129
8130   fi
8131
8132
8133
8134
8135 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8136 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8137 if test "${ac_cv_c_const+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146
8147 int
8148 main ()
8149 {
8150 /* FIXME: Include the comments suggested by Paul. */
8151 #ifndef __cplusplus
8152   /* Ultrix mips cc rejects this.  */
8153   typedef int charset[2];
8154   const charset x;
8155   /* SunOS 4.1.1 cc rejects this.  */
8156   char const *const *ccp;
8157   char **p;
8158   /* NEC SVR4.0.2 mips cc rejects this.  */
8159   struct point {int x, y;};
8160   static struct point const zero = {0,0};
8161   /* AIX XL C 1.02.0.0 rejects this.
8162      It does not let you subtract one const X* pointer from another in
8163      an arm of an if-expression whose if-part is not a constant
8164      expression */
8165   const char *g = "string";
8166   ccp = &g + (g ? g-g : 0);
8167   /* HPUX 7.0 cc rejects these. */
8168   ++ccp;
8169   p = (char**) ccp;
8170   ccp = (char const *const *) p;
8171   { /* SCO 3.2v4 cc rejects this.  */
8172     char *t;
8173     char const *s = 0 ? (char *) 0 : (char const *) 0;
8174
8175     *t++ = 0;
8176     if (s) return 0;
8177   }
8178   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8179     int x[] = {25, 17};
8180     const int *foo = &x[0];
8181     ++foo;
8182   }
8183   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8184     typedef const int *iptr;
8185     iptr p = 0;
8186     ++p;
8187   }
8188   { /* AIX XL C 1.02.0.0 rejects this saying
8189        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8190     struct s { int j; const int *ap[3]; };
8191     struct s *b; b->j = 5;
8192   }
8193   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8194     const int foo = 10;
8195     if (!foo) return 0;
8196   }
8197   return !x[0] && !zero.x;
8198 #endif
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_compile") 2>conftest.er1
8212   ac_status=$?
8213   grep -v '^ *+' conftest.er1 >conftest.err
8214   rm -f conftest.er1
8215   cat conftest.err >&5
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; } &&
8228          { ac_try='test -s conftest.$ac_objext'
8229   { (case "(($ac_try" in
8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231   *) ac_try_echo=$ac_try;;
8232 esac
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234   (eval "$ac_try") 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_cv_c_const=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243         ac_cv_c_const=no
8244 fi
8245
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 fi
8248 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8249 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8250 if test $ac_cv_c_const = no; then
8251
8252 cat >>confdefs.h <<\_ACEOF
8253 #define const
8254 _ACEOF
8255
8256 fi
8257
8258
8259
8260
8261
8262
8263 ac_header_dirent=no
8264 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8265   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8266 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8267 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 #include <sys/types.h>
8278 #include <$ac_hdr>
8279
8280 int
8281 main ()
8282 {
8283 if ((DIR *) 0)
8284 return 0;
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest.$ac_objext'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   eval "$as_ac_Header=yes"
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328         eval "$as_ac_Header=no"
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 ac_res=`eval echo '${'$as_ac_Header'}'`
8334                { echo "$as_me:$LINENO: result: $ac_res" >&5
8335 echo "${ECHO_T}$ac_res" >&6; }
8336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8337   cat >>confdefs.h <<_ACEOF
8338 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8339 _ACEOF
8340
8341 ac_header_dirent=$ac_hdr; break
8342 fi
8343
8344 done
8345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8346 if test $ac_header_dirent = dirent.h; then
8347   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8349 if test "${ac_cv_search_opendir+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   ac_func_search_save_LIBS=$LIBS
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360 /* Override any GCC internal prototype to avoid an error.
8361    Use char because int might match the return type of a GCC
8362    builtin and then its argument prototype would still apply.  */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 char opendir ();
8367 int
8368 main ()
8369 {
8370 return opendir ();
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 for ac_lib in '' dir; do
8376   if test -z "$ac_lib"; then
8377     ac_res="none required"
8378   else
8379     ac_res=-l$ac_lib
8380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8381   fi
8382   rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8384 case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_link") 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397   { (case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_try") 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; } &&
8406          { ac_try='test -s conftest$ac_exeext'
8407   { (case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_try") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; }; then
8416   ac_cv_search_opendir=$ac_res
8417 else
8418   echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421
8422 fi
8423
8424 rm -f core conftest.err conftest.$ac_objext \
8425       conftest$ac_exeext
8426   if test "${ac_cv_search_opendir+set}" = set; then
8427   break
8428 fi
8429 done
8430 if test "${ac_cv_search_opendir+set}" = set; then
8431   :
8432 else
8433   ac_cv_search_opendir=no
8434 fi
8435 rm conftest.$ac_ext
8436 LIBS=$ac_func_search_save_LIBS
8437 fi
8438 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8439 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8440 ac_res=$ac_cv_search_opendir
8441 if test "$ac_res" != no; then
8442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8443
8444 fi
8445
8446 else
8447   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8449 if test "${ac_cv_search_opendir+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   ac_func_search_save_LIBS=$LIBS
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h.  */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h.  */
8459
8460 /* Override any GCC internal prototype to avoid an error.
8461    Use char because int might match the return type of a GCC
8462    builtin and then its argument prototype would still apply.  */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 char opendir ();
8467 int
8468 main ()
8469 {
8470 return opendir ();
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 for ac_lib in '' x; do
8476   if test -z "$ac_lib"; then
8477     ac_res="none required"
8478   else
8479     ac_res=-l$ac_lib
8480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8481   fi
8482   rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8484 case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_link") 2>conftest.er1
8490   ac_status=$?
8491   grep -v '^ *+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497   { (case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_try") 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; } &&
8506          { ac_try='test -s conftest$ac_exeext'
8507   { (case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_try") 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_search_opendir=$ac_res
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521
8522 fi
8523
8524 rm -f core conftest.err conftest.$ac_objext \
8525       conftest$ac_exeext
8526   if test "${ac_cv_search_opendir+set}" = set; then
8527   break
8528 fi
8529 done
8530 if test "${ac_cv_search_opendir+set}" = set; then
8531   :
8532 else
8533   ac_cv_search_opendir=no
8534 fi
8535 rm conftest.$ac_ext
8536 LIBS=$ac_func_search_save_LIBS
8537 fi
8538 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8540 ac_res=$ac_cv_search_opendir
8541 if test "$ac_res" != no; then
8542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8543
8544 fi
8545
8546 fi
8547
8548
8549 for ac_header in dlfcn.h
8550 do
8551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 fi
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559                { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8561 else
8562   # Is the header compilable?
8563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571 $ac_includes_default
8572 #include <$ac_header>
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_compile") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } &&
8588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589   { (case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_try") 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; } &&
8598          { ac_try='test -s conftest.$ac_objext'
8599   { (case "(($ac_try" in
8600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601   *) ac_try_echo=$ac_try;;
8602 esac
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604   (eval "$ac_try") 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; }; then
8608   ac_header_compiler=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         ac_header_compiler=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6; }
8619
8620 # Is the header present?
8621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 #include <$ac_header>
8630 _ACEOF
8631 if { (ac_try="$ac_cpp conftest.$ac_ext"
8632 case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8638   ac_status=$?
8639   grep -v '^ *+' conftest.er1 >conftest.err
8640   rm -f conftest.er1
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } >/dev/null; then
8644   if test -s conftest.err; then
8645     ac_cpp_err=$ac_c_preproc_warn_flag
8646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8647   else
8648     ac_cpp_err=
8649   fi
8650 else
8651   ac_cpp_err=yes
8652 fi
8653 if test -z "$ac_cpp_err"; then
8654   ac_header_preproc=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659   ac_header_preproc=no
8660 fi
8661
8662 rm -f conftest.err conftest.$ac_ext
8663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664 echo "${ECHO_T}$ac_header_preproc" >&6; }
8665
8666 # So?  What about this header?
8667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668   yes:no: )
8669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673     ac_header_preproc=yes
8674     ;;
8675   no:yes:* )
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8688     ( cat <<\_ASBOX
8689 ## ----------------------------------- ##
8690 ## Report this to llvmbugs@cs.uiuc.edu ##
8691 ## ----------------------------------- ##
8692 _ASBOX
8693      ) | sed "s/^/$as_me: WARNING:     /" >&2
8694     ;;
8695 esac
8696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   eval "$as_ac_Header=\$ac_header_preproc"
8702 fi
8703 ac_res=`eval echo '${'$as_ac_Header'}'`
8704                { echo "$as_me:$LINENO: result: $ac_res" >&5
8705 echo "${ECHO_T}$ac_res" >&6; }
8706
8707 fi
8708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8709   cat >>confdefs.h <<_ACEOF
8710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8711 _ACEOF
8712
8713 fi
8714
8715 done
8716
8717 # Check whether --enable-ltdl-install was given.
8718 if test "${enable_ltdl_install+set}" = set; then
8719   enableval=$enable_ltdl_install;
8720 fi
8721
8722
8723
8724
8725 if test x"${enable_ltdl_install-no}" != xno; then
8726   INSTALL_LTDL_TRUE=
8727   INSTALL_LTDL_FALSE='#'
8728 else
8729   INSTALL_LTDL_TRUE='#'
8730   INSTALL_LTDL_FALSE=
8731 fi
8732
8733
8734
8735 if test x"${enable_ltdl_convenience-no}" != xno; then
8736   CONVENIENCE_LTDL_TRUE=
8737   CONVENIENCE_LTDL_FALSE='#'
8738 else
8739   CONVENIENCE_LTDL_TRUE='#'
8740   CONVENIENCE_LTDL_FALSE=
8741 fi
8742
8743
8744 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8745 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8746 library_names_spec=
8747 libname_spec='lib$name'
8748 soname_spec=
8749 shrext_cmds=".so"
8750 postinstall_cmds=
8751 postuninstall_cmds=
8752 finish_cmds=
8753 finish_eval=
8754 shlibpath_var=
8755 shlibpath_overrides_runpath=unknown
8756 version_type=none
8757 dynamic_linker="$host_os ld.so"
8758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8759 if test "$GCC" = yes; then
8760   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8762     # if the path contains ";" then we assume it to be the separator
8763     # otherwise default to the standard path separator (i.e. ":") - it is
8764     # assumed that no part of a normal pathname contains ";" but that should
8765     # okay in the real world where ";" in dirpaths is itself problematic.
8766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767   else
8768     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8769   fi
8770 else
8771   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8772 fi
8773 need_lib_prefix=unknown
8774 hardcode_into_libs=no
8775
8776 # when you set need_version to no, make sure it does not cause -set_version
8777 # flags to be left without arguments
8778 need_version=unknown
8779
8780 case $host_os in
8781 aix3*)
8782   version_type=linux
8783   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8784   shlibpath_var=LIBPATH
8785
8786   # AIX 3 has no versioning support, so we append a major version to the name.
8787   soname_spec='${libname}${release}${shared_ext}$major'
8788   ;;
8789
8790 aix4* | aix5*)
8791   version_type=linux
8792   need_lib_prefix=no
8793   need_version=no
8794   hardcode_into_libs=yes
8795   if test "$host_cpu" = ia64; then
8796     # AIX 5 supports IA64
8797     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8798     shlibpath_var=LD_LIBRARY_PATH
8799   else
8800     # With GCC up to 2.95.x, collect2 would create an import file
8801     # for dependence libraries.  The import file would start with
8802     # the line `#! .'.  This would cause the generated library to
8803     # depend on `.', always an invalid library.  This was fixed in
8804     # development snapshots of GCC prior to 3.0.
8805     case $host_os in
8806       aix4 | aix4.[01] | aix4.[01].*)
8807       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8808            echo ' yes '
8809            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8810         :
8811       else
8812         can_build_shared=no
8813       fi
8814       ;;
8815     esac
8816     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8817     # soname into executable. Probably we can add versioning support to
8818     # collect2, so additional links can be useful in future.
8819     if test "$aix_use_runtimelinking" = yes; then
8820       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8821       # instead of lib<name>.a to let people know that these are not
8822       # typical AIX shared libraries.
8823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824     else
8825       # We preserve .a as extension for shared libraries through AIX4.2
8826       # and later when we are not doing run time linking.
8827       library_names_spec='${libname}${release}.a $libname.a'
8828       soname_spec='${libname}${release}${shared_ext}$major'
8829     fi
8830     shlibpath_var=LIBPATH
8831   fi
8832   ;;
8833
8834 amigaos*)
8835   library_names_spec='$libname.ixlibrary $libname.a'
8836   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8837   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'
8838   ;;
8839
8840 beos*)
8841   library_names_spec='${libname}${shared_ext}'
8842   dynamic_linker="$host_os ld.so"
8843   shlibpath_var=LIBRARY_PATH
8844   ;;
8845
8846 bsdi[45]*)
8847   version_type=linux
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8852   shlibpath_var=LD_LIBRARY_PATH
8853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8855   # the default ld.so.conf also contains /usr/contrib/lib and
8856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8857   # libtool to hard-code these into programs
8858   ;;
8859
8860 cygwin* | mingw* | pw32*)
8861   version_type=windows
8862   shrext_cmds=".dll"
8863   need_version=no
8864   need_lib_prefix=no
8865
8866   case $GCC,$host_os in
8867   yes,cygwin* | yes,mingw* | yes,pw32*)
8868     library_names_spec='$libname.dll.a'
8869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8870     postinstall_cmds='base_file=`basename \${file}`~
8871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8872       dldir=$destdir/`dirname \$dlpath`~
8873       test -d \$dldir || mkdir -p \$dldir~
8874       $install_prog $dir/$dlname \$dldir/$dlname~
8875       chmod a+x \$dldir/$dlname'
8876     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8877       dlpath=$dir/\$dldll~
8878        $rm \$dlpath'
8879     shlibpath_overrides_runpath=yes
8880
8881     case $host_os in
8882     cygwin*)
8883       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8884       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8885       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8886       ;;
8887     mingw*)
8888       # MinGW DLLs use traditional 'lib' prefix
8889       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8890       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8892         # It is most probably a Windows format PATH printed by
8893         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8894         # path with ; separators, and with drive letters. We can handle the
8895         # drive letters (cygwin fileutils understands them), so leave them,
8896         # especially as we might pass files found there to a mingw objdump,
8897         # which wouldn't understand a cygwinified path. Ahh.
8898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899       else
8900         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8901       fi
8902       ;;
8903     pw32*)
8904       # pw32 DLLs use 'pw' prefix rather than 'lib'
8905       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8906       ;;
8907     esac
8908     ;;
8909
8910   *)
8911     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8912     ;;
8913   esac
8914   dynamic_linker='Win32 ld.exe'
8915   # FIXME: first we should search . and the directory the executable is in
8916   shlibpath_var=PATH
8917   ;;
8918
8919 darwin* | rhapsody*)
8920   dynamic_linker="$host_os dyld"
8921   version_type=darwin
8922   need_lib_prefix=no
8923   need_version=no
8924   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8925   soname_spec='${libname}${release}${major}$shared_ext'
8926   shlibpath_overrides_runpath=yes
8927   shlibpath_var=DYLD_LIBRARY_PATH
8928   shrext_cmds='.dylib'
8929   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8930   if test "$GCC" = yes; then
8931     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"`
8932   else
8933     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8934   fi
8935   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8936   ;;
8937
8938 dgux*)
8939   version_type=linux
8940   need_lib_prefix=no
8941   need_version=no
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8943   soname_spec='${libname}${release}${shared_ext}$major'
8944   shlibpath_var=LD_LIBRARY_PATH
8945   ;;
8946
8947 freebsd1*)
8948   dynamic_linker=no
8949   ;;
8950
8951 kfreebsd*-gnu)
8952   version_type=linux
8953   need_lib_prefix=no
8954   need_version=no
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956   soname_spec='${libname}${release}${shared_ext}$major'
8957   shlibpath_var=LD_LIBRARY_PATH
8958   shlibpath_overrides_runpath=no
8959   hardcode_into_libs=yes
8960   dynamic_linker='GNU ld.so'
8961   ;;
8962
8963 freebsd* | dragonfly*)
8964   # DragonFly does not have aout.  When/if they implement a new
8965   # versioning mechanism, adjust this.
8966   if test -x /usr/bin/objformat; then
8967     objformat=`/usr/bin/objformat`
8968   else
8969     case $host_os in
8970     freebsd[123]*) objformat=aout ;;
8971     *) objformat=elf ;;
8972     esac
8973   fi
8974   version_type=freebsd-$objformat
8975   case $version_type in
8976     freebsd-elf*)
8977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8978       need_version=no
8979       need_lib_prefix=no
8980       ;;
8981     freebsd-*)
8982       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8983       need_version=yes
8984       ;;
8985   esac
8986   shlibpath_var=LD_LIBRARY_PATH
8987   case $host_os in
8988   freebsd2*)
8989     shlibpath_overrides_runpath=yes
8990     ;;
8991   freebsd3.[01]* | freebsdelf3.[01]*)
8992     shlibpath_overrides_runpath=yes
8993     hardcode_into_libs=yes
8994     ;;
8995   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8996   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8997     shlibpath_overrides_runpath=no
8998     hardcode_into_libs=yes
8999     ;;
9000   freebsd*) # from 4.6 on
9001     shlibpath_overrides_runpath=yes
9002     hardcode_into_libs=yes
9003     ;;
9004   esac
9005   ;;
9006
9007 gnu*)
9008   version_type=linux
9009   need_lib_prefix=no
9010   need_version=no
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9012   soname_spec='${libname}${release}${shared_ext}$major'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   hardcode_into_libs=yes
9015   ;;
9016
9017 hpux9* | hpux10* | hpux11*)
9018   # Give a soname corresponding to the major version so that dld.sl refuses to
9019   # link against other versions.
9020   version_type=sunos
9021   need_lib_prefix=no
9022   need_version=no
9023   case $host_cpu in
9024   ia64*)
9025     shrext_cmds='.so'
9026     hardcode_into_libs=yes
9027     dynamic_linker="$host_os dld.so"
9028     shlibpath_var=LD_LIBRARY_PATH
9029     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031     soname_spec='${libname}${release}${shared_ext}$major'
9032     if test "X$HPUX_IA64_MODE" = X32; then
9033       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9034     else
9035       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9036     fi
9037     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9038     ;;
9039    hppa*64*)
9040      shrext_cmds='.sl'
9041      hardcode_into_libs=yes
9042      dynamic_linker="$host_os dld.sl"
9043      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9044      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046      soname_spec='${libname}${release}${shared_ext}$major'
9047      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9048      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9049      ;;
9050    *)
9051     shrext_cmds='.sl'
9052     dynamic_linker="$host_os dld.sl"
9053     shlibpath_var=SHLIB_PATH
9054     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056     soname_spec='${libname}${release}${shared_ext}$major'
9057     ;;
9058   esac
9059   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9060   postinstall_cmds='chmod 555 $lib'
9061   ;;
9062
9063 interix3*)
9064   version_type=linux
9065   need_lib_prefix=no
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   shlibpath_overrides_runpath=no
9072   hardcode_into_libs=yes
9073   ;;
9074
9075 irix5* | irix6* | nonstopux*)
9076   case $host_os in
9077     nonstopux*) version_type=nonstopux ;;
9078     *)
9079         if test "$lt_cv_prog_gnu_ld" = yes; then
9080                 version_type=linux
9081         else
9082                 version_type=irix
9083         fi ;;
9084   esac
9085   need_lib_prefix=no
9086   need_version=no
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9089   case $host_os in
9090   irix5* | nonstopux*)
9091     libsuff= shlibsuff=
9092     ;;
9093   *)
9094     case $LD in # libtool.m4 will add one of these switches to LD
9095     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9096       libsuff= shlibsuff= libmagic=32-bit;;
9097     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9098       libsuff=32 shlibsuff=N32 libmagic=N32;;
9099     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9100       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9101     *) libsuff= shlibsuff= libmagic=never-match;;
9102     esac
9103     ;;
9104   esac
9105   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9106   shlibpath_overrides_runpath=no
9107   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9108   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9109   hardcode_into_libs=yes
9110   ;;
9111
9112 # No shared lib support for Linux oldld, aout, or coff.
9113 linux*oldld* | linux*aout* | linux*coff*)
9114   dynamic_linker=no
9115   ;;
9116
9117 # This must be Linux ELF.
9118 linux*)
9119   version_type=linux
9120   need_lib_prefix=no
9121   need_version=no
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9125   shlibpath_var=LD_LIBRARY_PATH
9126   shlibpath_overrides_runpath=no
9127   # This implies no fast_install, which is unacceptable.
9128   # Some rework will be needed to allow for fast_install
9129   # before this can be enabled.
9130   hardcode_into_libs=yes
9131
9132   # Append ld.so.conf contents to the search path
9133   if test -f /etc/ld.so.conf; then
9134     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' ' '`
9135     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136   fi
9137
9138   # We used to test for /lib/ld.so.1 and disable shared libraries on
9139   # powerpc, because MkLinux only supported shared libraries with the
9140   # GNU dynamic linker.  Since this was broken with cross compilers,
9141   # most powerpc-linux boxes support dynamic linking these days and
9142   # people can always --disable-shared, the test was removed, and we
9143   # assume the GNU/Linux dynamic linker is in use.
9144   dynamic_linker='GNU/Linux ld.so'
9145   ;;
9146
9147 knetbsd*-gnu)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=no
9155   hardcode_into_libs=yes
9156   dynamic_linker='GNU ld.so'
9157   ;;
9158
9159 netbsd*)
9160   version_type=sunos
9161   need_lib_prefix=no
9162   need_version=no
9163   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166     dynamic_linker='NetBSD (a.out) ld.so'
9167   else
9168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9169     soname_spec='${libname}${release}${shared_ext}$major'
9170     dynamic_linker='NetBSD ld.elf_so'
9171   fi
9172   shlibpath_var=LD_LIBRARY_PATH
9173   shlibpath_overrides_runpath=yes
9174   hardcode_into_libs=yes
9175   ;;
9176
9177 newsos6)
9178   version_type=linux
9179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=yes
9182   ;;
9183
9184 nto-qnx*)
9185   version_type=linux
9186   need_lib_prefix=no
9187   need_version=no
9188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   shlibpath_overrides_runpath=yes
9192   ;;
9193
9194 openbsd*)
9195   version_type=sunos
9196   sys_lib_dlsearch_path_spec="/usr/lib"
9197   need_lib_prefix=no
9198   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9199   case $host_os in
9200     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9201     *)                         need_version=no  ;;
9202   esac
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9207     case $host_os in
9208       openbsd2.[89] | openbsd2.[89].*)
9209         shlibpath_overrides_runpath=no
9210         ;;
9211       *)
9212         shlibpath_overrides_runpath=yes
9213         ;;
9214       esac
9215   else
9216     shlibpath_overrides_runpath=yes
9217   fi
9218   ;;
9219
9220 os2*)
9221   libname_spec='$name'
9222   shrext_cmds=".dll"
9223   need_lib_prefix=no
9224   library_names_spec='$libname${shared_ext} $libname.a'
9225   dynamic_linker='OS/2 ld.exe'
9226   shlibpath_var=LIBPATH
9227   ;;
9228
9229 osf3* | osf4* | osf5*)
9230   version_type=osf
9231   need_lib_prefix=no
9232   need_version=no
9233   soname_spec='${libname}${release}${shared_ext}$major'
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9237   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9238   ;;
9239
9240 solaris*)
9241   version_type=linux
9242   need_lib_prefix=no
9243   need_version=no
9244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245   soname_spec='${libname}${release}${shared_ext}$major'
9246   shlibpath_var=LD_LIBRARY_PATH
9247   shlibpath_overrides_runpath=yes
9248   hardcode_into_libs=yes
9249   # ldd complains unless libraries are executable
9250   postinstall_cmds='chmod +x $lib'
9251   ;;
9252
9253 sunos4*)
9254   version_type=sunos
9255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=yes
9259   if test "$with_gnu_ld" = yes; then
9260     need_lib_prefix=no
9261   fi
9262   need_version=yes
9263   ;;
9264
9265 sysv4 | sysv4.3*)
9266   version_type=linux
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268   soname_spec='${libname}${release}${shared_ext}$major'
9269   shlibpath_var=LD_LIBRARY_PATH
9270   case $host_vendor in
9271     sni)
9272       shlibpath_overrides_runpath=no
9273       need_lib_prefix=no
9274       export_dynamic_flag_spec='${wl}-Blargedynsym'
9275       runpath_var=LD_RUN_PATH
9276       ;;
9277     siemens)
9278       need_lib_prefix=no
9279       ;;
9280     motorola)
9281       need_lib_prefix=no
9282       need_version=no
9283       shlibpath_overrides_runpath=no
9284       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9285       ;;
9286   esac
9287   ;;
9288
9289 sysv4*MP*)
9290   if test -d /usr/nec ;then
9291     version_type=linux
9292     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9293     soname_spec='$libname${shared_ext}.$major'
9294     shlibpath_var=LD_LIBRARY_PATH
9295   fi
9296   ;;
9297
9298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9299   version_type=freebsd-elf
9300   need_lib_prefix=no
9301   need_version=no
9302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303   soname_spec='${libname}${release}${shared_ext}$major'
9304   shlibpath_var=LD_LIBRARY_PATH
9305   hardcode_into_libs=yes
9306   if test "$with_gnu_ld" = yes; then
9307     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9308     shlibpath_overrides_runpath=no
9309   else
9310     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9311     shlibpath_overrides_runpath=yes
9312     case $host_os in
9313       sco3.2v5*)
9314         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9315         ;;
9316     esac
9317   fi
9318   sys_lib_dlsearch_path_spec='/usr/lib'
9319   ;;
9320
9321 uts4*)
9322   version_type=linux
9323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   shlibpath_var=LD_LIBRARY_PATH
9326   ;;
9327
9328 *)
9329   dynamic_linker=no
9330   ;;
9331 esac
9332 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9333 echo "${ECHO_T}$dynamic_linker" >&6; }
9334 test "$dynamic_linker" = no && can_build_shared=no
9335
9336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9337 if test "$GCC" = yes; then
9338   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9339 fi
9340
9341
9342 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9343 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9344 if test "${libltdl_cv_shlibext+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347
9348 module=yes
9349 eval libltdl_cv_shlibext=$shrext_cmds
9350
9351 fi
9352 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9353 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9354 if test -n "$libltdl_cv_shlibext"; then
9355
9356 cat >>confdefs.h <<_ACEOF
9357 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9358 _ACEOF
9359
9360 fi
9361
9362
9363 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9364 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9365 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   libltdl_cv_shlibpath_var="$shlibpath_var"
9369 fi
9370 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9371 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9372 if test -n "$libltdl_cv_shlibpath_var"; then
9373
9374 cat >>confdefs.h <<_ACEOF
9375 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9376 _ACEOF
9377
9378 fi
9379
9380
9381 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9382 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9383 if test "${libltdl_cv_sys_search_path+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9387 fi
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9389 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9390 if test -n "$libltdl_cv_sys_search_path"; then
9391   sys_search_path=
9392   for dir in $libltdl_cv_sys_search_path; do
9393     if test -z "$sys_search_path"; then
9394       sys_search_path="$dir"
9395     else
9396       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9397     fi
9398   done
9399
9400 cat >>confdefs.h <<_ACEOF
9401 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9402 _ACEOF
9403
9404 fi
9405
9406 { echo "$as_me:$LINENO: checking for objdir" >&5
9407 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_objdir+set}" = set; then
9409   echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411   libltdl_cv_objdir="$objdir"
9412   if test -n "$objdir"; then
9413     :
9414   else
9415     rm -f .libs 2>/dev/null
9416     mkdir .libs 2>/dev/null
9417     if test -d .libs; then
9418       libltdl_cv_objdir=.libs
9419     else
9420       # MS-DOS does not allow filenames that begin with a dot.
9421       libltdl_cv_objdir=_libs
9422     fi
9423   rmdir .libs 2>/dev/null
9424   fi
9425
9426 fi
9427 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9428 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9429
9430 cat >>confdefs.h <<_ACEOF
9431 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9432 _ACEOF
9433
9434
9435
9436
9437
9438
9439 # Check for command to grab the raw symbol name followed by C symbol from nm.
9440 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9441 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9442 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445
9446 # These are sane defaults that work on at least a few old systems.
9447 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9448
9449 # Character class describing NM global symbol codes.
9450 symcode='[BCDEGRST]'
9451
9452 # Regexp to match symbols that can be accessed directly from C.
9453 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9454
9455 # Transform an extracted symbol line into a proper C declaration
9456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9457
9458 # Transform an extracted symbol line into symbol name and symbol address
9459 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'"
9460
9461 # Define system-specific variables.
9462 case $host_os in
9463 aix*)
9464   symcode='[BCDT]'
9465   ;;
9466 cygwin* | mingw* | pw32*)
9467   symcode='[ABCDGISTW]'
9468   ;;
9469 hpux*) # Its linker distinguishes data from code symbols
9470   if test "$host_cpu" = ia64; then
9471     symcode='[ABCDEGRST]'
9472   fi
9473   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9474   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'"
9475   ;;
9476 linux*)
9477   if test "$host_cpu" = ia64; then
9478     symcode='[ABCDGIRSTW]'
9479     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9480     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'"
9481   fi
9482   ;;
9483 irix* | nonstopux*)
9484   symcode='[BCDEGRST]'
9485   ;;
9486 osf*)
9487   symcode='[BCDEGQRST]'
9488   ;;
9489 solaris*)
9490   symcode='[BDRT]'
9491   ;;
9492 sco3.2v5*)
9493   symcode='[DT]'
9494   ;;
9495 sysv4.2uw2*)
9496   symcode='[DT]'
9497   ;;
9498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9499   symcode='[ABDT]'
9500   ;;
9501 sysv4)
9502   symcode='[DFNSTU]'
9503   ;;
9504 esac
9505
9506 # Handle CRLF in mingw tool chain
9507 opt_cr=
9508 case $build_os in
9509 mingw*)
9510   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9511   ;;
9512 esac
9513
9514 # If we're using GNU nm, then use its standard symbol codes.
9515 case `$NM -V 2>&1` in
9516 *GNU* | *'with BFD'*)
9517   symcode='[ABCDGIRSTW]' ;;
9518 esac
9519
9520 # Try without a prefix undercore, then with it.
9521 for ac_symprfx in "" "_"; do
9522
9523   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9524   symxfrm="\\1 $ac_symprfx\\2 \\2"
9525
9526   # Write the raw and C identifiers.
9527   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9528
9529   # Check to see that the pipe works correctly.
9530   pipe_works=no
9531
9532   rm -f conftest*
9533   cat > conftest.$ac_ext <<EOF
9534 #ifdef __cplusplus
9535 extern "C" {
9536 #endif
9537 char nm_test_var;
9538 void nm_test_func(){}
9539 #ifdef __cplusplus
9540 }
9541 #endif
9542 int main(){nm_test_var='a';nm_test_func();return(0);}
9543 EOF
9544
9545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546   (eval $ac_compile) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; then
9550     # Now try to grab the symbols.
9551     nlist=conftest.nm
9552     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9553   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } && test -s "$nlist"; then
9557       # Try sorting and uniquifying the output.
9558       if sort "$nlist" | uniq > "$nlist"T; then
9559         mv -f "$nlist"T "$nlist"
9560       else
9561         rm -f "$nlist"T
9562       fi
9563
9564       # Make sure that we snagged all the symbols we need.
9565       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9566         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9567           cat <<EOF > conftest.$ac_ext
9568 #ifdef __cplusplus
9569 extern "C" {
9570 #endif
9571
9572 EOF
9573           # Now generate the symbol file.
9574           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9575
9576           cat <<EOF >> conftest.$ac_ext
9577 #if defined (__STDC__) && __STDC__
9578 # define lt_ptr_t void *
9579 #else
9580 # define lt_ptr_t char *
9581 # define const
9582 #endif
9583
9584 /* The mapping between symbol names and symbols. */
9585 const struct {
9586   const char *name;
9587   lt_ptr_t address;
9588 }
9589 lt_preloaded_symbols[] =
9590 {
9591 EOF
9592           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9593           cat <<\EOF >> conftest.$ac_ext
9594   {0, (lt_ptr_t) 0}
9595 };
9596
9597 #ifdef __cplusplus
9598 }
9599 #endif
9600 EOF
9601           # Now try linking the two files.
9602           mv conftest.$ac_objext conftstm.$ac_objext
9603           lt_save_LIBS="$LIBS"
9604           lt_save_CFLAGS="$CFLAGS"
9605           LIBS="conftstm.$ac_objext"
9606           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9607           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9612             pipe_works=yes
9613           fi
9614           LIBS="$lt_save_LIBS"
9615           CFLAGS="$lt_save_CFLAGS"
9616         else
9617           echo "cannot find nm_test_func in $nlist" >&5
9618         fi
9619       else
9620         echo "cannot find nm_test_var in $nlist" >&5
9621       fi
9622     else
9623       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9624     fi
9625   else
9626     echo "$progname: failed program was:" >&5
9627     cat conftest.$ac_ext >&5
9628   fi
9629   rm -f conftest* conftst*
9630
9631   # Do not use the global_symbol_pipe unless it works.
9632   if test "$pipe_works" = yes; then
9633     break
9634   else
9635     lt_cv_sys_global_symbol_pipe=
9636   fi
9637 done
9638
9639 fi
9640
9641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9642   lt_cv_sys_global_symbol_to_cdecl=
9643 fi
9644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9645   { echo "$as_me:$LINENO: result: failed" >&5
9646 echo "${ECHO_T}failed" >&6; }
9647 else
9648   { echo "$as_me:$LINENO: result: ok" >&5
9649 echo "${ECHO_T}ok" >&6; }
9650 fi
9651
9652
9653 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9654 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9655 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9659     libltdl_cv_preloaded_symbols=yes
9660   else
9661     libltdl_cv_preloaded_symbols=no
9662   fi
9663
9664 fi
9665 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9666 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9667 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9668
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_PRELOADED_SYMBOLS 1
9671 _ACEOF
9672
9673 fi
9674
9675 LIBADD_DL=
9676
9677 ac_ext=c
9678 ac_cpp='$CPP $CPPFLAGS'
9679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682
9683
9684 { echo "$as_me:$LINENO: checking for shl_load" >&5
9685 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_shl_load+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9697 #define shl_load innocuous_shl_load
9698
9699 /* System header to define __stub macros and hopefully few prototypes,
9700     which can conflict with char shl_load (); below.
9701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702     <limits.h> exists even on freestanding compilers.  */
9703
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9709
9710 #undef shl_load
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713    Use char because int might match the return type of a GCC
9714    builtin and then its argument prototype would still apply.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char shl_load ();
9719 /* The GNU C library defines this for functions which it implements
9720     to always fail with ENOSYS.  Some functions are actually named
9721     something starting with __ and the normal name is an alias.  */
9722 #if defined __stub_shl_load || defined __stub___shl_load
9723 choke me
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return shl_load ();
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_link") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9749   { (case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_try") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; } &&
9758          { ac_try='test -s conftest$ac_exeext'
9759   { (case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_try") 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_func_shl_load=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773         ac_cv_func_shl_load=no
9774 fi
9775
9776 rm -f core conftest.err conftest.$ac_objext \
9777       conftest$ac_exeext conftest.$ac_ext
9778 fi
9779 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9780 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9781 if test $ac_cv_func_shl_load = yes; then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_SHL_LOAD 1
9785 _ACEOF
9786
9787 else
9788   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-ldld  $LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 /* Override any GCC internal prototype to avoid an error.
9803    Use char because int might match the return type of a GCC
9804    builtin and then its argument prototype would still apply.  */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char shl_load ();
9809 int
9810 main ()
9811 {
9812 return shl_load ();
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; } &&
9841          { ac_try='test -s conftest$ac_exeext'
9842   { (case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_try") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_lib_dld_shl_load=yes
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856         ac_cv_lib_dld_shl_load=no
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9865 if test $ac_cv_lib_dld_shl_load = yes; then
9866
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_SHL_LOAD 1
9869 _ACEOF
9870
9871         LIBADD_DL="$LIBADD_DL -ldld"
9872 else
9873   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-ldl  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888    Use char because int might match the return type of a GCC
9889    builtin and then its argument prototype would still apply.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char dlopen ();
9894 int
9895 main ()
9896 {
9897 return dlopen ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9904 case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_link") 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest$ac_exeext'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_cv_lib_dl_dlopen=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941         ac_cv_lib_dl_dlopen=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9950 if test $ac_cv_lib_dl_dlopen = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_LIBDL 1
9954 _ACEOF
9955
9956                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 #if HAVE_DLFCN_H
9965 #  include <dlfcn.h>
9966 #endif
9967
9968 int
9969 main ()
9970 {
9971 dlopen(0, 0);
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9978 case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_link") 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991   { (case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_try") 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; } &&
10000          { ac_try='test -s conftest$ac_exeext'
10001   { (case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_try") 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010
10011 cat >>confdefs.h <<\_ACEOF
10012 #define HAVE_LIBDL 1
10013 _ACEOF
10014  libltdl_cv_func_dlopen="yes"
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10020 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-lsvld  $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032
10033 /* Override any GCC internal prototype to avoid an error.
10034    Use char because int might match the return type of a GCC
10035    builtin and then its argument prototype would still apply.  */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char dlopen ();
10040 int
10041 main ()
10042 {
10043 return dlopen ();
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_link") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; } &&
10072          { ac_try='test -s conftest$ac_exeext'
10073   { (case "(($ac_try" in
10074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075   *) ac_try_echo=$ac_try;;
10076 esac
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078   (eval "$ac_try") 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   ac_cv_lib_svld_dlopen=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087         ac_cv_lib_svld_dlopen=no
10088 fi
10089
10090 rm -f core conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10096 if test $ac_cv_lib_svld_dlopen = yes; then
10097
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_LIBDL 1
10100 _ACEOF
10101
10102                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10103 else
10104   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-ldld  $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117
10118 /* Override any GCC internal prototype to avoid an error.
10119    Use char because int might match the return type of a GCC
10120    builtin and then its argument prototype would still apply.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dld_link ();
10125 int
10126 main ()
10127 {
10128 return dld_link ();
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_link") 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_try") 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_lib_dld_dld_link=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172         ac_cv_lib_dld_dld_link=no
10173 fi
10174
10175 rm -f core conftest.err conftest.$ac_objext \
10176       conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10181 if test $ac_cv_lib_dld_dld_link = yes; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_DLD 1
10185 _ACEOF
10186
10187                 LIBADD_DL="$LIBADD_DL -ldld"
10188 else
10189   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10190 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10191 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194   cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10202 #define _dyld_func_lookup innocuous__dyld_func_lookup
10203
10204 /* System header to define __stub macros and hopefully few prototypes,
10205     which can conflict with char _dyld_func_lookup (); below.
10206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207     <limits.h> exists even on freestanding compilers.  */
10208
10209 #ifdef __STDC__
10210 # include <limits.h>
10211 #else
10212 # include <assert.h>
10213 #endif
10214
10215 #undef _dyld_func_lookup
10216
10217 /* Override any GCC internal prototype to avoid an error.
10218    Use char because int might match the return type of a GCC
10219    builtin and then its argument prototype would still apply.  */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char _dyld_func_lookup ();
10224 /* The GNU C library defines this for functions which it implements
10225     to always fail with ENOSYS.  Some functions are actually named
10226     something starting with __ and the normal name is an alias.  */
10227 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10228 choke me
10229 #endif
10230
10231 int
10232 main ()
10233 {
10234 return _dyld_func_lookup ();
10235   ;
10236   return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_link") 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } &&
10253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_try") 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   ac_cv_func__dyld_func_lookup=yes
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278         ac_cv_func__dyld_func_lookup=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext \
10282       conftest$ac_exeext conftest.$ac_ext
10283 fi
10284 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10285 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10286 if test $ac_cv_func__dyld_func_lookup = yes; then
10287
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_DYLD 1
10290 _ACEOF
10291
10292 fi
10293
10294
10295 fi
10296
10297
10298 fi
10299
10300
10301 fi
10302
10303 rm -f core conftest.err conftest.$ac_objext \
10304       conftest$ac_exeext conftest.$ac_ext
10305
10306 fi
10307
10308
10309 fi
10310
10311
10312 fi
10313
10314
10315 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10316 then
10317   lt_save_LIBS="$LIBS"
10318   LIBS="$LIBS $LIBADD_DL"
10319
10320 for ac_func in dlerror
10321 do
10322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10336 #define $ac_func innocuous_$ac_func
10337
10338 /* System header to define __stub macros and hopefully few prototypes,
10339     which can conflict with char $ac_func (); below.
10340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341     <limits.h> exists even on freestanding compilers.  */
10342
10343 #ifdef __STDC__
10344 # include <limits.h>
10345 #else
10346 # include <assert.h>
10347 #endif
10348
10349 #undef $ac_func
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char $ac_func ();
10358 /* The GNU C library defines this for functions which it implements
10359     to always fail with ENOSYS.  Some functions are actually named
10360     something starting with __ and the normal name is an alias.  */
10361 #if defined __stub_$ac_func || defined __stub___$ac_func
10362 choke me
10363 #endif
10364
10365 int
10366 main ()
10367 {
10368 return $ac_func ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_link") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388   { (case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_try") 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; } &&
10397          { ac_try='test -s conftest$ac_exeext'
10398   { (case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_try") 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   eval "$as_ac_var=yes"
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412         eval "$as_ac_var=no"
10413 fi
10414
10415 rm -f core conftest.err conftest.$ac_objext \
10416       conftest$ac_exeext conftest.$ac_ext
10417 fi
10418 ac_res=`eval echo '${'$as_ac_var'}'`
10419                { echo "$as_me:$LINENO: result: $ac_res" >&5
10420 echo "${ECHO_T}$ac_res" >&6; }
10421 if test `eval echo '${'$as_ac_var'}'` = yes; then
10422   cat >>confdefs.h <<_ACEOF
10423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10424 _ACEOF
10425
10426 fi
10427 done
10428
10429   LIBS="$lt_save_LIBS"
10430 fi
10431 ac_ext=c
10432 ac_cpp='$CPP $CPPFLAGS'
10433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10436
10437
10438
10439 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10440 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10441 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   ac_cv_sys_symbol_underscore=no
10445   cat > conftest.$ac_ext <<EOF
10446 void nm_test_func(){}
10447 int main(){nm_test_func;return 0;}
10448 EOF
10449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450   (eval $ac_compile) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; then
10454     # Now try to grab the symbols.
10455     ac_nlist=conftest.nm
10456     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10457   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10458   ac_status=$?
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && test -s "$ac_nlist"; then
10461       # See whether the symbols have a leading underscore.
10462       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10463         ac_cv_sys_symbol_underscore=yes
10464       else
10465         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10466           :
10467         else
10468           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10469         fi
10470       fi
10471     else
10472       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10473     fi
10474   else
10475     echo "configure: failed program was:" >&5
10476     cat conftest.c >&5
10477   fi
10478   rm -rf conftest*
10479
10480 fi
10481 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10482 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10483
10484
10485 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10486   if test x"$libltdl_cv_func_dlopen" = xyes ||
10487      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10488         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10489 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10490 if test "${libltdl_cv_need_uscore+set}" = set; then
10491   echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493   libltdl_cv_need_uscore=unknown
10494           save_LIBS="$LIBS"
10495           LIBS="$LIBS $LIBADD_DL"
10496           if test "$cross_compiling" = yes; then :
10497   libltdl_cv_need_uscore=cross
10498 else
10499   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10500   lt_status=$lt_dlunknown
10501   cat > conftest.$ac_ext <<EOF
10502 #line 10502 "configure"
10503 #include "confdefs.h"
10504
10505 #if HAVE_DLFCN_H
10506 #include <dlfcn.h>
10507 #endif
10508
10509 #include <stdio.h>
10510
10511 #ifdef RTLD_GLOBAL
10512 #  define LT_DLGLOBAL           RTLD_GLOBAL
10513 #else
10514 #  ifdef DL_GLOBAL
10515 #    define LT_DLGLOBAL         DL_GLOBAL
10516 #  else
10517 #    define LT_DLGLOBAL         0
10518 #  endif
10519 #endif
10520
10521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10522    find out it does not work in some platform. */
10523 #ifndef LT_DLLAZY_OR_NOW
10524 #  ifdef RTLD_LAZY
10525 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10526 #  else
10527 #    ifdef DL_LAZY
10528 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10529 #    else
10530 #      ifdef RTLD_NOW
10531 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10532 #      else
10533 #        ifdef DL_NOW
10534 #          define LT_DLLAZY_OR_NOW      DL_NOW
10535 #        else
10536 #          define LT_DLLAZY_OR_NOW      0
10537 #        endif
10538 #      endif
10539 #    endif
10540 #  endif
10541 #endif
10542
10543 #ifdef __cplusplus
10544 extern "C" void exit (int);
10545 #endif
10546
10547 void fnord() { int i=42;}
10548 int main ()
10549 {
10550   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10551   int status = $lt_dlunknown;
10552
10553   if (self)
10554     {
10555       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10556       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10557       /* dlclose (self); */
10558     }
10559   else
10560     puts (dlerror ());
10561
10562     exit (status);
10563 }
10564 EOF
10565   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566   (eval $ac_link) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10570     (./conftest; exit; ) >&5 2>/dev/null
10571     lt_status=$?
10572     case x$lt_status in
10573       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10574       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10575       x$lt_dlunknown|x*)  ;;
10576     esac
10577   else :
10578     # compilation failed
10579
10580   fi
10581 fi
10582 rm -fr conftest*
10583
10584           LIBS="$save_LIBS"
10585
10586 fi
10587 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10588 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10589   fi
10590 fi
10591
10592 if test x"$libltdl_cv_need_uscore" = xyes; then
10593
10594 cat >>confdefs.h <<\_ACEOF
10595 #define NEED_USCORE 1
10596 _ACEOF
10597
10598 fi
10599
10600
10601 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10602 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10603 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   # PORTME does your system automatically load deplibs for dlopen?
10607   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10608   # For now, we just catch OSes we know something about -- in the
10609   # future, we'll try test this programmatically.
10610   libltdl_cv_sys_dlopen_deplibs=unknown
10611   case "$host_os" in
10612   aix3*|aix4.1.*|aix4.2.*)
10613     # Unknown whether this is true for these versions of AIX, but
10614     # we want this `case' here to explicitly catch those versions.
10615     libltdl_cv_sys_dlopen_deplibs=unknown
10616     ;;
10617   aix[45]*)
10618     libltdl_cv_sys_dlopen_deplibs=yes
10619     ;;
10620   darwin*)
10621     # Assuming the user has installed a libdl from somewhere, this is true
10622     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10626     # GNU and its variants, using gnu ld.so (Glibc)
10627     libltdl_cv_sys_dlopen_deplibs=yes
10628     ;;
10629   hpux10*|hpux11*)
10630     libltdl_cv_sys_dlopen_deplibs=yes
10631     ;;
10632   interix*)
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   irix[12345]*|irix6.[01]*)
10636     # Catch all versions of IRIX before 6.2, and indicate that we don't
10637     # know how it worked for any of those versions.
10638     libltdl_cv_sys_dlopen_deplibs=unknown
10639     ;;
10640   irix*)
10641     # The case above catches anything before 6.2, and it's known that
10642     # at 6.2 and later dlopen does load deplibs.
10643     libltdl_cv_sys_dlopen_deplibs=yes
10644     ;;
10645   netbsd*)
10646     libltdl_cv_sys_dlopen_deplibs=yes
10647     ;;
10648   openbsd*)
10649     libltdl_cv_sys_dlopen_deplibs=yes
10650     ;;
10651   osf[1234]*)
10652     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10653     # it did *not* use an RPATH in a shared library to find objects the
10654     # library depends on, so we explictly say `no'.
10655     libltdl_cv_sys_dlopen_deplibs=no
10656     ;;
10657   osf5.0|osf5.0a|osf5.1)
10658     # dlopen *does* load deplibs and with the right loader patch applied
10659     # it even uses RPATH in a shared library to search for shared objects
10660     # that the library depends on, but there's no easy way to know if that
10661     # patch is installed.  Since this is the case, all we can really
10662     # say is unknown -- it depends on the patch being installed.  If
10663     # it is, this changes to `yes'.  Without it, it would be `no'.
10664     libltdl_cv_sys_dlopen_deplibs=unknown
10665     ;;
10666   osf*)
10667     # the two cases above should catch all versions of osf <= 5.1.  Read
10668     # the comments above for what we know about them.
10669     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10670     # is used to find them so we can finally say `yes'.
10671     libltdl_cv_sys_dlopen_deplibs=yes
10672     ;;
10673   solaris*)
10674     libltdl_cv_sys_dlopen_deplibs=yes
10675     ;;
10676   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10677     libltdl_cv_sys_dlopen_deplibs=yes
10678     ;;
10679   esac
10680
10681 fi
10682 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10683 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10684 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10685
10686 cat >>confdefs.h <<\_ACEOF
10687 #define LTDL_DLOPEN_DEPLIBS 1
10688 _ACEOF
10689
10690 fi
10691
10692
10693 for ac_header in argz.h
10694 do
10695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 fi
10702 ac_res=`eval echo '${'$as_ac_Header'}'`
10703                { echo "$as_me:$LINENO: result: $ac_res" >&5
10704 echo "${ECHO_T}$ac_res" >&6; }
10705 else
10706   # Is the header compilable?
10707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 $ac_includes_default
10716 #include <$ac_header>
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_compile") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } &&
10732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10733   { (case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738   (eval "$ac_try") 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; } &&
10742          { ac_try='test -s conftest.$ac_objext'
10743   { (case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_try") 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; }; then
10752   ac_header_compiler=yes
10753 else
10754   echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757         ac_header_compiler=no
10758 fi
10759
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10762 echo "${ECHO_T}$ac_header_compiler" >&6; }
10763
10764 # Is the header present?
10765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h.  */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h.  */
10773 #include <$ac_header>
10774 _ACEOF
10775 if { (ac_try="$ac_cpp conftest.$ac_ext"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } >/dev/null; then
10788   if test -s conftest.err; then
10789     ac_cpp_err=$ac_c_preproc_warn_flag
10790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10791   else
10792     ac_cpp_err=
10793   fi
10794 else
10795   ac_cpp_err=yes
10796 fi
10797 if test -z "$ac_cpp_err"; then
10798   ac_header_preproc=yes
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803   ac_header_preproc=no
10804 fi
10805
10806 rm -f conftest.err conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6; }
10809
10810 # So?  What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812   yes:no: )
10813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817     ac_header_preproc=yes
10818     ;;
10819   no:yes:* )
10820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832     ( cat <<\_ASBOX
10833 ## ----------------------------------- ##
10834 ## Report this to llvmbugs@cs.uiuc.edu ##
10835 ## ----------------------------------- ##
10836 _ASBOX
10837      ) | sed "s/^/$as_me: WARNING:     /" >&2
10838     ;;
10839 esac
10840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   eval "$as_ac_Header=\$ac_header_preproc"
10846 fi
10847 ac_res=`eval echo '${'$as_ac_Header'}'`
10848                { echo "$as_me:$LINENO: result: $ac_res" >&5
10849 echo "${ECHO_T}$ac_res" >&6; }
10850
10851 fi
10852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10853   cat >>confdefs.h <<_ACEOF
10854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10855 _ACEOF
10856
10857 fi
10858
10859 done
10860
10861
10862 { echo "$as_me:$LINENO: checking for error_t" >&5
10863 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10864 if test "${ac_cv_type_error_t+set}" = set; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h.  */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h.  */
10873 #if HAVE_ARGZ_H
10874 #  include <argz.h>
10875 #endif
10876
10877 typedef error_t ac__type_new_;
10878 int
10879 main ()
10880 {
10881 if ((ac__type_new_ *) 0)
10882   return 0;
10883 if (sizeof (ac__type_new_))
10884   return 0;
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_compile") 2>conftest.er1
10897   ac_status=$?
10898   grep -v '^ *+' conftest.er1 >conftest.err
10899   rm -f conftest.er1
10900   cat conftest.err >&5
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } &&
10903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest.$ac_objext'
10914   { (case "(($ac_try" in
10915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916   *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919   (eval "$ac_try") 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_type_error_t=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928         ac_cv_type_error_t=no
10929 fi
10930
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 fi
10933 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10934 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10935 if test $ac_cv_type_error_t = yes; then
10936
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_ERROR_T 1
10939 _ACEOF
10940
10941
10942 else
10943
10944 cat >>confdefs.h <<\_ACEOF
10945 #define error_t int
10946 _ACEOF
10947
10948 fi
10949
10950
10951
10952
10953
10954
10955
10956 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10957 do
10958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10972 #define $ac_func innocuous_$ac_func
10973
10974 /* System header to define __stub macros and hopefully few prototypes,
10975     which can conflict with char $ac_func (); below.
10976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977     <limits.h> exists even on freestanding compilers.  */
10978
10979 #ifdef __STDC__
10980 # include <limits.h>
10981 #else
10982 # include <assert.h>
10983 #endif
10984
10985 #undef $ac_func
10986
10987 /* Override any GCC internal prototype to avoid an error.
10988    Use char because int might match the return type of a GCC
10989    builtin and then its argument prototype would still apply.  */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char $ac_func ();
10994 /* The GNU C library defines this for functions which it implements
10995     to always fail with ENOSYS.  Some functions are actually named
10996     something starting with __ and the normal name is an alias.  */
10997 #if defined __stub_$ac_func || defined __stub___$ac_func
10998 choke me
10999 #endif
11000
11001 int
11002 main ()
11003 {
11004 return $ac_func ();
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
11020   cat conftest.err >&5
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; } &&
11033          { ac_try='test -s conftest$ac_exeext'
11034   { (case "(($ac_try" in
11035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036   *) ac_try_echo=$ac_try;;
11037 esac
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039   (eval "$ac_try") 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   eval "$as_ac_var=yes"
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048         eval "$as_ac_var=no"
11049 fi
11050
11051 rm -f core conftest.err conftest.$ac_objext \
11052       conftest$ac_exeext conftest.$ac_ext
11053 fi
11054 ac_res=`eval echo '${'$as_ac_var'}'`
11055                { echo "$as_me:$LINENO: result: $ac_res" >&5
11056 echo "${ECHO_T}$ac_res" >&6; }
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058   cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 _ACEOF
11061
11062 fi
11063 done
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11093                   stdio.h unistd.h
11094 do
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 fi
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103                { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105 else
11106   # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 $ac_includes_default
11116 #include <$ac_header>
11117 _ACEOF
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_compile") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest.$ac_objext'
11143   { (case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_try") 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_header_compiler=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_header_compiler=no
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11163
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #include <$ac_header>
11174 _ACEOF
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182   ac_status=$?
11183   grep -v '^ *+' conftest.er1 >conftest.err
11184   rm -f conftest.er1
11185   cat conftest.err >&5
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } >/dev/null; then
11188   if test -s conftest.err; then
11189     ac_cpp_err=$ac_c_preproc_warn_flag
11190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191   else
11192     ac_cpp_err=
11193   fi
11194 else
11195   ac_cpp_err=yes
11196 fi
11197 if test -z "$ac_cpp_err"; then
11198   ac_header_preproc=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203   ac_header_preproc=no
11204 fi
11205
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11209
11210 # So?  What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212   yes:no: )
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217     ac_header_preproc=yes
11218     ;;
11219   no:yes:* )
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232     ( cat <<\_ASBOX
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11236 _ASBOX
11237      ) | sed "s/^/$as_me: WARNING:     /" >&2
11238     ;;
11239 esac
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   eval "$as_ac_Header=\$ac_header_preproc"
11246 fi
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248                { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11250
11251 fi
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253   cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 _ACEOF
11256
11257 fi
11258
11259 done
11260
11261
11262
11263
11264
11265 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11266 do
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277 else
11278   # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 $ac_includes_default
11288 #include <$ac_header>
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_compile") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; } &&
11314          { ac_try='test -s conftest.$ac_objext'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_header_compiler=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329         ac_header_compiler=no
11330 fi
11331
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6; }
11335
11336 # Is the header present?
11337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 #include <$ac_header>
11346 _ACEOF
11347 if { (ac_try="$ac_cpp conftest.$ac_ext"
11348 case "(($ac_try" in
11349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350   *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11354   ac_status=$?
11355   grep -v '^ *+' conftest.er1 >conftest.err
11356   rm -f conftest.er1
11357   cat conftest.err >&5
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } >/dev/null; then
11360   if test -s conftest.err; then
11361     ac_cpp_err=$ac_c_preproc_warn_flag
11362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363   else
11364     ac_cpp_err=
11365   fi
11366 else
11367   ac_cpp_err=yes
11368 fi
11369 if test -z "$ac_cpp_err"; then
11370   ac_header_preproc=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375   ac_header_preproc=no
11376 fi
11377
11378 rm -f conftest.err conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380 echo "${ECHO_T}$ac_header_preproc" >&6; }
11381
11382 # So?  What about this header?
11383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384   yes:no: )
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389     ac_header_preproc=yes
11390     ;;
11391   no:yes:* )
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11404     ( cat <<\_ASBOX
11405 ## ----------------------------------- ##
11406 ## Report this to llvmbugs@cs.uiuc.edu ##
11407 ## ----------------------------------- ##
11408 _ASBOX
11409      ) | sed "s/^/$as_me: WARNING:     /" >&2
11410     ;;
11411 esac
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   eval "$as_ac_Header=\$ac_header_preproc"
11418 fi
11419 ac_res=`eval echo '${'$as_ac_Header'}'`
11420                { echo "$as_me:$LINENO: result: $ac_res" >&5
11421 echo "${ECHO_T}$ac_res" >&6; }
11422
11423 fi
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425   cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 _ACEOF
11428
11429 fi
11430
11431 done
11432
11433
11434
11435 for ac_header in string.h strings.h
11436 do
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 fi
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445                { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11447 else
11448   # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457 $ac_includes_default
11458 #include <$ac_header>
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464   *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467   (eval "$ac_compile") 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475   { (case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_try") 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; } &&
11484          { ac_try='test -s conftest.$ac_objext'
11485   { (case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_try") 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   ac_header_compiler=yes
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499         ac_header_compiler=no
11500 fi
11501
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 #include <$ac_header>
11516 _ACEOF
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } >/dev/null; then
11530   if test -s conftest.err; then
11531     ac_cpp_err=$ac_c_preproc_warn_flag
11532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533   else
11534     ac_cpp_err=
11535   fi
11536 else
11537   ac_cpp_err=yes
11538 fi
11539 if test -z "$ac_cpp_err"; then
11540   ac_header_preproc=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545   ac_header_preproc=no
11546 fi
11547
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552 # So?  What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554   yes:no: )
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559     ac_header_preproc=yes
11560     ;;
11561   no:yes:* )
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574     ( cat <<\_ASBOX
11575 ## ----------------------------------- ##
11576 ## Report this to llvmbugs@cs.uiuc.edu ##
11577 ## ----------------------------------- ##
11578 _ASBOX
11579      ) | sed "s/^/$as_me: WARNING:     /" >&2
11580     ;;
11581 esac
11582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   eval "$as_ac_Header=\$ac_header_preproc"
11588 fi
11589 ac_res=`eval echo '${'$as_ac_Header'}'`
11590                { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11592
11593 fi
11594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595   cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597 _ACEOF
11598  break
11599 fi
11600
11601 done
11602
11603
11604
11605
11606 for ac_func in strchr index
11607 do
11608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11622 #define $ac_func innocuous_$ac_func
11623
11624 /* System header to define __stub macros and hopefully few prototypes,
11625     which can conflict with char $ac_func (); below.
11626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11627     <limits.h> exists even on freestanding compilers.  */
11628
11629 #ifdef __STDC__
11630 # include <limits.h>
11631 #else
11632 # include <assert.h>
11633 #endif
11634
11635 #undef $ac_func
11636
11637 /* Override any GCC internal prototype to avoid an error.
11638    Use char because int might match the return type of a GCC
11639    builtin and then its argument prototype would still apply.  */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char $ac_func ();
11644 /* The GNU C library defines this for functions which it implements
11645     to always fail with ENOSYS.  Some functions are actually named
11646     something starting with __ and the normal name is an alias.  */
11647 #if defined __stub_$ac_func || defined __stub___$ac_func
11648 choke me
11649 #endif
11650
11651 int
11652 main ()
11653 {
11654 return $ac_func ();
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (ac_try="$ac_link"
11661 case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_link") 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674   { (case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_try") 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest$ac_exeext'
11684   { (case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689   (eval "$ac_try") 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; }; then
11693   eval "$as_ac_var=yes"
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698         eval "$as_ac_var=no"
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext \
11702       conftest$ac_exeext conftest.$ac_ext
11703 fi
11704 ac_res=`eval echo '${'$as_ac_var'}'`
11705                { echo "$as_me:$LINENO: result: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11707 if test `eval echo '${'$as_ac_var'}'` = yes; then
11708   cat >>confdefs.h <<_ACEOF
11709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710 _ACEOF
11711  break
11712 fi
11713 done
11714
11715
11716
11717 for ac_func in strrchr rindex
11718 do
11719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11733 #define $ac_func innocuous_$ac_func
11734
11735 /* System header to define __stub macros and hopefully few prototypes,
11736     which can conflict with char $ac_func (); below.
11737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738     <limits.h> exists even on freestanding compilers.  */
11739
11740 #ifdef __STDC__
11741 # include <limits.h>
11742 #else
11743 # include <assert.h>
11744 #endif
11745
11746 #undef $ac_func
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749    Use char because int might match the return type of a GCC
11750    builtin and then its argument prototype would still apply.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char $ac_func ();
11755 /* The GNU C library defines this for functions which it implements
11756     to always fail with ENOSYS.  Some functions are actually named
11757     something starting with __ and the normal name is an alias.  */
11758 #if defined __stub_$ac_func || defined __stub___$ac_func
11759 choke me
11760 #endif
11761
11762 int
11763 main ()
11764 {
11765 return $ac_func ();
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_link") 2>conftest.er1
11778   ac_status=$?
11779   grep -v '^ *+' conftest.er1 >conftest.err
11780   rm -f conftest.er1
11781   cat conftest.err >&5
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785   { (case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_try") 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest$ac_exeext'
11795   { (case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_try") 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   eval "$as_ac_var=yes"
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809         eval "$as_ac_var=no"
11810 fi
11811
11812 rm -f core conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814 fi
11815 ac_res=`eval echo '${'$as_ac_var'}'`
11816                { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11818 if test `eval echo '${'$as_ac_var'}'` = yes; then
11819   cat >>confdefs.h <<_ACEOF
11820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 _ACEOF
11822  break
11823 fi
11824 done
11825
11826
11827
11828 for ac_func in memcpy bcopy
11829 do
11830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836   cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11844 #define $ac_func innocuous_$ac_func
11845
11846 /* System header to define __stub macros and hopefully few prototypes,
11847     which can conflict with char $ac_func (); below.
11848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849     <limits.h> exists even on freestanding compilers.  */
11850
11851 #ifdef __STDC__
11852 # include <limits.h>
11853 #else
11854 # include <assert.h>
11855 #endif
11856
11857 #undef $ac_func
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860    Use char because int might match the return type of a GCC
11861    builtin and then its argument prototype would still apply.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char $ac_func ();
11866 /* The GNU C library defines this for functions which it implements
11867     to always fail with ENOSYS.  Some functions are actually named
11868     something starting with __ and the normal name is an alias.  */
11869 #if defined __stub_$ac_func || defined __stub___$ac_func
11870 choke me
11871 #endif
11872
11873 int
11874 main ()
11875 {
11876 return $ac_func ();
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_link") 2>conftest.er1
11889   ac_status=$?
11890   grep -v '^ *+' conftest.er1 >conftest.err
11891   rm -f conftest.er1
11892   cat conftest.err >&5
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); } &&
11895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11896   { (case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901   (eval "$ac_try") 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; } &&
11905          { ac_try='test -s conftest$ac_exeext'
11906   { (case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_try") 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   eval "$as_ac_var=yes"
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920         eval "$as_ac_var=no"
11921 fi
11922
11923 rm -f core conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925 fi
11926 ac_res=`eval echo '${'$as_ac_var'}'`
11927                { echo "$as_me:$LINENO: result: $ac_res" >&5
11928 echo "${ECHO_T}$ac_res" >&6; }
11929 if test `eval echo '${'$as_ac_var'}'` = yes; then
11930   cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932 _ACEOF
11933  break
11934 fi
11935 done
11936
11937
11938
11939 for ac_func in memmove strcmp
11940 do
11941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11955 #define $ac_func innocuous_$ac_func
11956
11957 /* System header to define __stub macros and hopefully few prototypes,
11958     which can conflict with char $ac_func (); below.
11959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960     <limits.h> exists even on freestanding compilers.  */
11961
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967
11968 #undef $ac_func
11969
11970 /* Override any GCC internal prototype to avoid an error.
11971    Use char because int might match the return type of a GCC
11972    builtin and then its argument prototype would still apply.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char $ac_func ();
11977 /* The GNU C library defines this for functions which it implements
11978     to always fail with ENOSYS.  Some functions are actually named
11979     something starting with __ and the normal name is an alias.  */
11980 #if defined __stub_$ac_func || defined __stub___$ac_func
11981 choke me
11982 #endif
11983
11984 int
11985 main ()
11986 {
11987 return $ac_func ();
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996   *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999   (eval "$ac_link") 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007   { (case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_try") 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; } &&
12016          { ac_try='test -s conftest$ac_exeext'
12017   { (case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_try") 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   eval "$as_ac_var=yes"
12027 else
12028   echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031         eval "$as_ac_var=no"
12032 fi
12033
12034 rm -f core conftest.err conftest.$ac_objext \
12035       conftest$ac_exeext conftest.$ac_ext
12036 fi
12037 ac_res=`eval echo '${'$as_ac_var'}'`
12038                { echo "$as_me:$LINENO: result: $ac_res" >&5
12039 echo "${ECHO_T}$ac_res" >&6; }
12040 if test `eval echo '${'$as_ac_var'}'` = yes; then
12041   cat >>confdefs.h <<_ACEOF
12042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043 _ACEOF
12044
12045 fi
12046 done
12047
12048
12049
12050
12051 for ac_func in closedir opendir readdir
12052 do
12053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12057   echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059   cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h.  */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h.  */
12065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12067 #define $ac_func innocuous_$ac_func
12068
12069 /* System header to define __stub macros and hopefully few prototypes,
12070     which can conflict with char $ac_func (); below.
12071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072     <limits.h> exists even on freestanding compilers.  */
12073
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12079
12080 #undef $ac_func
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083    Use char because int might match the return type of a GCC
12084    builtin and then its argument prototype would still apply.  */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char $ac_func ();
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined __stub_$ac_func || defined __stub___$ac_func
12093 choke me
12094 #endif
12095
12096 int
12097 main ()
12098 {
12099 return $ac_func ();
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_link") 2>conftest.er1
12112   ac_status=$?
12113   grep -v '^ *+' conftest.er1 >conftest.err
12114   rm -f conftest.er1
12115   cat conftest.err >&5
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119   { (case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_try") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest$ac_exeext'
12129   { (case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_try") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; }; then
12138   eval "$as_ac_var=yes"
12139 else
12140   echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143         eval "$as_ac_var=no"
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext \
12147       conftest$ac_exeext conftest.$ac_ext
12148 fi
12149 ac_res=`eval echo '${'$as_ac_var'}'`
12150                { echo "$as_me:$LINENO: result: $ac_res" >&5
12151 echo "${ECHO_T}$ac_res" >&6; }
12152 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153   cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155 _ACEOF
12156
12157 fi
12158 done
12159
12160
12161 # Check whether --enable-shared was given.
12162 if test "${enable_shared+set}" = set; then
12163   enableval=$enable_shared; p=${PACKAGE-default}
12164     case $enableval in
12165     yes) enable_shared=yes ;;
12166     no) enable_shared=no ;;
12167     *)
12168       enable_shared=no
12169       # Look at the argument we got.  We use all the common list separators.
12170       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171       for pkg in $enableval; do
12172         IFS="$lt_save_ifs"
12173         if test "X$pkg" = "X$p"; then
12174           enable_shared=yes
12175         fi
12176       done
12177       IFS="$lt_save_ifs"
12178       ;;
12179     esac
12180 else
12181   enable_shared=yes
12182 fi
12183
12184
12185 # Check whether --enable-static was given.
12186 if test "${enable_static+set}" = set; then
12187   enableval=$enable_static; p=${PACKAGE-default}
12188     case $enableval in
12189     yes) enable_static=yes ;;
12190     no) enable_static=no ;;
12191     *)
12192      enable_static=no
12193       # Look at the argument we got.  We use all the common list separators.
12194       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12195       for pkg in $enableval; do
12196         IFS="$lt_save_ifs"
12197         if test "X$pkg" = "X$p"; then
12198           enable_static=yes
12199         fi
12200       done
12201       IFS="$lt_save_ifs"
12202       ;;
12203     esac
12204 else
12205   enable_static=yes
12206 fi
12207
12208
12209 # Check whether --enable-fast-install was given.
12210 if test "${enable_fast_install+set}" = set; then
12211   enableval=$enable_fast_install; p=${PACKAGE-default}
12212     case $enableval in
12213     yes) enable_fast_install=yes ;;
12214     no) enable_fast_install=no ;;
12215     *)
12216       enable_fast_install=no
12217       # Look at the argument we got.  We use all the common list separators.
12218       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12219       for pkg in $enableval; do
12220         IFS="$lt_save_ifs"
12221         if test "X$pkg" = "X$p"; then
12222           enable_fast_install=yes
12223         fi
12224       done
12225       IFS="$lt_save_ifs"
12226       ;;
12227     esac
12228 else
12229   enable_fast_install=yes
12230 fi
12231
12232
12233 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12234 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12235 if test "${lt_cv_path_SED+set}" = set; then
12236   echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238   # Loop through the user's path and test for sed and gsed.
12239 # Then use that list of sed's as ones to test for truncation.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243   IFS=$as_save_IFS
12244   test -z "$as_dir" && as_dir=.
12245   for lt_ac_prog in sed gsed; do
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12248         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12249       fi
12250     done
12251   done
12252 done
12253 lt_ac_max=0
12254 lt_ac_count=0
12255 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12256 # along with /bin/sed that truncates output.
12257 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12258   test ! -f $lt_ac_sed && continue
12259   cat /dev/null > conftest.in
12260   lt_ac_count=0
12261   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12262   # Check for GNU sed and select it if it is found.
12263   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12264     lt_cv_path_SED=$lt_ac_sed
12265     break
12266   fi
12267   while true; do
12268     cat conftest.in conftest.in >conftest.tmp
12269     mv conftest.tmp conftest.in
12270     cp conftest.in conftest.nl
12271     echo >>conftest.nl
12272     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12273     cmp -s conftest.out conftest.nl || break
12274     # 10000 chars as input seems more than enough
12275     test $lt_ac_count -gt 10 && break
12276     lt_ac_count=`expr $lt_ac_count + 1`
12277     if test $lt_ac_count -gt $lt_ac_max; then
12278       lt_ac_max=$lt_ac_count
12279       lt_cv_path_SED=$lt_ac_sed
12280     fi
12281   done
12282 done
12283
12284 fi
12285
12286 SED=$lt_cv_path_SED
12287 { echo "$as_me:$LINENO: result: $SED" >&5
12288 echo "${ECHO_T}$SED" >&6; }
12289
12290
12291 # Check whether --with-gnu-ld was given.
12292 if test "${with_gnu_ld+set}" = set; then
12293   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12294 else
12295   with_gnu_ld=no
12296 fi
12297
12298 ac_prog=ld
12299 if test "$GCC" = yes; then
12300   # Check if gcc -print-prog-name=ld gives a path.
12301   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12302 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12303   case $host in
12304   *-*-mingw*)
12305     # gcc leaves a trailing carriage return which upsets mingw
12306     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12307   *)
12308     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12309   esac
12310   case $ac_prog in
12311     # Accept absolute paths.
12312     [\\/]* | ?:[\\/]*)
12313       re_direlt='/[^/][^/]*/\.\./'
12314       # Canonicalize the pathname of ld
12315       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12316       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12317         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12318       done
12319       test -z "$LD" && LD="$ac_prog"
12320       ;;
12321   "")
12322     # If it fails, then pretend we aren't using GCC.
12323     ac_prog=ld
12324     ;;
12325   *)
12326     # If it is relative, then search for the first ld in PATH.
12327     with_gnu_ld=unknown
12328     ;;
12329   esac
12330 elif test "$with_gnu_ld" = yes; then
12331   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12332 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12333 else
12334   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12335 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12336 fi
12337 if test "${lt_cv_path_LD+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   if test -z "$LD"; then
12341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12342   for ac_dir in $PATH; do
12343     IFS="$lt_save_ifs"
12344     test -z "$ac_dir" && ac_dir=.
12345     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12346       lt_cv_path_LD="$ac_dir/$ac_prog"
12347       # Check to see if the program is GNU ld.  I'd rather use --version,
12348       # but apparently some variants of GNU ld only accept -v.
12349       # Break only if it was the GNU/non-GNU ld that we prefer.
12350       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12351       *GNU* | *'with BFD'*)
12352         test "$with_gnu_ld" != no && break
12353         ;;
12354       *)
12355         test "$with_gnu_ld" != yes && break
12356         ;;
12357       esac
12358     fi
12359   done
12360   IFS="$lt_save_ifs"
12361 else
12362   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12363 fi
12364 fi
12365
12366 LD="$lt_cv_path_LD"
12367 if test -n "$LD"; then
12368   { echo "$as_me:$LINENO: result: $LD" >&5
12369 echo "${ECHO_T}$LD" >&6; }
12370 else
12371   { echo "$as_me:$LINENO: result: no" >&5
12372 echo "${ECHO_T}no" >&6; }
12373 fi
12374 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12375 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12376    { (exit 1); exit 1; }; }
12377 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12378 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12379 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12380   echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385   lt_cv_prog_gnu_ld=yes
12386   ;;
12387 *)
12388   lt_cv_prog_gnu_ld=no
12389   ;;
12390 esac
12391 fi
12392 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12393 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12395
12396
12397 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12398 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12399 if test "${lt_cv_ld_reload_flag+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   lt_cv_ld_reload_flag='-r'
12403 fi
12404 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12405 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12406 reload_flag=$lt_cv_ld_reload_flag
12407 case $reload_flag in
12408 "" | " "*) ;;
12409 *) reload_flag=" $reload_flag" ;;
12410 esac
12411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12412 case $host_os in
12413   darwin*)
12414     if test "$GCC" = yes; then
12415       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12416     else
12417       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12418     fi
12419     ;;
12420 esac
12421
12422 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12423 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12424 if test "${lt_cv_deplibs_check_method+set}" = set; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427   lt_cv_file_magic_cmd='$MAGIC_CMD'
12428 lt_cv_file_magic_test_file=
12429 lt_cv_deplibs_check_method='unknown'
12430 # Need to set the preceding variable on all platforms that support
12431 # interlibrary dependencies.
12432 # 'none' -- dependencies not supported.
12433 # `unknown' -- same as none, but documents that we really don't know.
12434 # 'pass_all' -- all dependencies passed with no checks.
12435 # 'test_compile' -- check by making test program.
12436 # 'file_magic [[regex]]' -- check by looking for files in library path
12437 # which responds to the $file_magic_cmd with a given extended regex.
12438 # If you have `file' or equivalent on your system and you're not sure
12439 # whether `pass_all' will *always* work, you probably want this one.
12440
12441 case $host_os in
12442 aix4* | aix5*)
12443   lt_cv_deplibs_check_method=pass_all
12444   ;;
12445
12446 beos*)
12447   lt_cv_deplibs_check_method=pass_all
12448   ;;
12449
12450 bsdi[45]*)
12451   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12452   lt_cv_file_magic_cmd='/usr/bin/file -L'
12453   lt_cv_file_magic_test_file=/shlib/libc.so
12454   ;;
12455
12456 cygwin*)
12457   # func_win32_libid is a shell function defined in ltmain.sh
12458   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12459   lt_cv_file_magic_cmd='func_win32_libid'
12460   ;;
12461
12462 mingw* | pw32*)
12463   # Base MSYS/MinGW do not provide the 'file' command needed by
12464   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12465   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12466   lt_cv_file_magic_cmd='$OBJDUMP -f'
12467   ;;
12468
12469 darwin* | rhapsody*)
12470   lt_cv_deplibs_check_method=pass_all
12471   ;;
12472
12473 freebsd* | kfreebsd*-gnu | dragonfly*)
12474   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12475     case $host_cpu in
12476     i*86 )
12477       # Not sure whether the presence of OpenBSD here was a mistake.
12478       # Let's accept both of them until this is cleared up.
12479       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12480       lt_cv_file_magic_cmd=/usr/bin/file
12481       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12482       ;;
12483     esac
12484   else
12485     lt_cv_deplibs_check_method=pass_all
12486   fi
12487   ;;
12488
12489 gnu*)
12490   lt_cv_deplibs_check_method=pass_all
12491   ;;
12492
12493 hpux10.20* | hpux11*)
12494   lt_cv_file_magic_cmd=/usr/bin/file
12495   case $host_cpu in
12496   ia64*)
12497     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12498     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12499     ;;
12500   hppa*64*)
12501     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]'
12502     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12503     ;;
12504   *)
12505     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12506     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12507     ;;
12508   esac
12509   ;;
12510
12511 interix3*)
12512   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12513   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12514   ;;
12515
12516 irix5* | irix6* | nonstopux*)
12517   case $LD in
12518   *-32|*"-32 ") libmagic=32-bit;;
12519   *-n32|*"-n32 ") libmagic=N32;;
12520   *-64|*"-64 ") libmagic=64-bit;;
12521   *) libmagic=never-match;;
12522   esac
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 # This must be Linux ELF.
12527 linux*)
12528   lt_cv_deplibs_check_method=pass_all
12529   ;;
12530
12531 netbsd*)
12532   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12534   else
12535     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12536   fi
12537   ;;
12538
12539 newos6*)
12540   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12541   lt_cv_file_magic_cmd=/usr/bin/file
12542   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12543   ;;
12544
12545 nto-qnx*)
12546   lt_cv_deplibs_check_method=unknown
12547   ;;
12548
12549 openbsd*)
12550   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12552   else
12553     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12554   fi
12555   ;;
12556
12557 osf3* | osf4* | osf5*)
12558   lt_cv_deplibs_check_method=pass_all
12559   ;;
12560
12561 solaris*)
12562   lt_cv_deplibs_check_method=pass_all
12563   ;;
12564
12565 sysv4 | sysv4.3*)
12566   case $host_vendor in
12567   motorola)
12568     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]'
12569     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12570     ;;
12571   ncr)
12572     lt_cv_deplibs_check_method=pass_all
12573     ;;
12574   sequent)
12575     lt_cv_file_magic_cmd='/bin/file'
12576     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12577     ;;
12578   sni)
12579     lt_cv_file_magic_cmd='/bin/file'
12580     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12581     lt_cv_file_magic_test_file=/lib/libc.so
12582     ;;
12583   siemens)
12584     lt_cv_deplibs_check_method=pass_all
12585     ;;
12586   pc)
12587     lt_cv_deplibs_check_method=pass_all
12588     ;;
12589   esac
12590   ;;
12591
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593   lt_cv_deplibs_check_method=pass_all
12594   ;;
12595 esac
12596
12597 fi
12598 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12599 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12600 file_magic_cmd=$lt_cv_file_magic_cmd
12601 deplibs_check_method=$lt_cv_deplibs_check_method
12602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12603
12604
12605
12606 # If no C compiler was specified, use CC.
12607 LTCC=${LTCC-"$CC"}
12608
12609 # If no C compiler flags were specified, use CFLAGS.
12610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12611
12612 # Allow CC to be a program name with arguments.
12613 compiler=$CC
12614
12615 # Check whether --enable-libtool-lock was given.
12616 if test "${enable_libtool_lock+set}" = set; then
12617   enableval=$enable_libtool_lock;
12618 fi
12619
12620 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12621
12622 # Some flags need to be propagated to the compiler or linker for good
12623 # libtool support.
12624 case $host in
12625 ia64-*-hpux*)
12626   # Find out which ABI we are using.
12627   echo 'int i;' > conftest.$ac_ext
12628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629   (eval $ac_compile) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; then
12633     case `/usr/bin/file conftest.$ac_objext` in
12634     *ELF-32*)
12635       HPUX_IA64_MODE="32"
12636       ;;
12637     *ELF-64*)
12638       HPUX_IA64_MODE="64"
12639       ;;
12640     esac
12641   fi
12642   rm -rf conftest*
12643   ;;
12644 *-*-irix6*)
12645   # Find out which ABI we are using.
12646   echo '#line 12646 "configure"' > conftest.$ac_ext
12647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648   (eval $ac_compile) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; then
12652    if test "$lt_cv_prog_gnu_ld" = yes; then
12653     case `/usr/bin/file conftest.$ac_objext` in
12654     *32-bit*)
12655       LD="${LD-ld} -melf32bsmip"
12656       ;;
12657     *N32*)
12658       LD="${LD-ld} -melf32bmipn32"
12659       ;;
12660     *64-bit*)
12661       LD="${LD-ld} -melf64bmip"
12662       ;;
12663     esac
12664    else
12665     case `/usr/bin/file conftest.$ac_objext` in
12666     *32-bit*)
12667       LD="${LD-ld} -32"
12668       ;;
12669     *N32*)
12670       LD="${LD-ld} -n32"
12671       ;;
12672     *64-bit*)
12673       LD="${LD-ld} -64"
12674       ;;
12675     esac
12676    fi
12677   fi
12678   rm -rf conftest*
12679   ;;
12680
12681 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12682   # Find out which ABI we are using.
12683   echo 'int i;' > conftest.$ac_ext
12684   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; then
12689     case `/usr/bin/file conftest.o` in
12690     *32-bit*)
12691       case $host in
12692         x86_64-*linux*)
12693           LD="${LD-ld} -m elf_i386"
12694           ;;
12695         ppc64-*linux*|powerpc64-*linux*)
12696           LD="${LD-ld} -m elf32ppclinux"
12697           ;;
12698         s390x-*linux*)
12699           LD="${LD-ld} -m elf_s390"
12700           ;;
12701         sparc64-*linux*)
12702           LD="${LD-ld} -m elf32_sparc"
12703           ;;
12704       esac
12705       ;;
12706     *64-bit*)
12707       case $host in
12708         x86_64-*linux*)
12709           LD="${LD-ld} -m elf_x86_64"
12710           ;;
12711         ppc*-*linux*|powerpc*-*linux*)
12712           LD="${LD-ld} -m elf64ppc"
12713           ;;
12714         s390*-*linux*)
12715           LD="${LD-ld} -m elf64_s390"
12716           ;;
12717         sparc*-*linux*)
12718           LD="${LD-ld} -m elf64_sparc"
12719           ;;
12720       esac
12721       ;;
12722     esac
12723   fi
12724   rm -rf conftest*
12725   ;;
12726
12727 *-*-sco3.2v5*)
12728   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12729   SAVE_CFLAGS="$CFLAGS"
12730   CFLAGS="$CFLAGS -belf"
12731   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12732 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12733 if test "${lt_cv_cc_needs_belf+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   ac_ext=c
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
12742      cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748
12749 int
12750 main ()
12751 {
12752
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (ac_try="$ac_link"
12759 case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764   (eval "$ac_link") 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772   { (case "(($ac_try" in
12773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774   *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777   (eval "$ac_try") 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; } &&
12781          { ac_try='test -s conftest$ac_exeext'
12782   { (case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_try") 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; }; then
12791   lt_cv_cc_needs_belf=yes
12792 else
12793   echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796         lt_cv_cc_needs_belf=no
12797 fi
12798
12799 rm -f core conftest.err conftest.$ac_objext \
12800       conftest$ac_exeext conftest.$ac_ext
12801      ac_ext=c
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807 fi
12808 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12809 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12810   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12811     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12812     CFLAGS="$SAVE_CFLAGS"
12813   fi
12814   ;;
12815 sparc*-*solaris*)
12816   # Find out which ABI we are using.
12817   echo 'int i;' > conftest.$ac_ext
12818   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819   (eval $ac_compile) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; then
12823     case `/usr/bin/file conftest.o` in
12824     *64-bit*)
12825       case $lt_cv_prog_gnu_ld in
12826       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12827       *)    LD="${LD-ld} -64" ;;
12828       esac
12829       ;;
12830     esac
12831   fi
12832   rm -rf conftest*
12833   ;;
12834
12835
12836 esac
12837
12838 need_locks="$enable_libtool_lock"
12839
12840
12841
12842
12843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12844     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12845     (test "X$CXX" != "Xg++"))) ; then
12846   ac_ext=cpp
12847 ac_cpp='$CXXCPP $CPPFLAGS'
12848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12851 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12852 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12853 if test -z "$CXXCPP"; then
12854   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857       # Double quotes because CXXCPP needs to be expanded
12858     for CXXCPP in "$CXX -E" "/lib/cpp"
12859     do
12860       ac_preproc_ok=false
12861 for ac_cxx_preproc_warn_flag in '' yes
12862 do
12863   # Use a header file that comes with gcc, so configuring glibc
12864   # with a fresh cross-compiler works.
12865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866   # <limits.h> exists even on freestanding compilers.
12867   # On the NeXT, cc -E runs the code through the compiler's parser,
12868   # not just through cpp. "Syntax error" is here to catch this case.
12869   cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875 #ifdef __STDC__
12876 # include <limits.h>
12877 #else
12878 # include <assert.h>
12879 #endif
12880                      Syntax error
12881 _ACEOF
12882 if { (ac_try="$ac_cpp conftest.$ac_ext"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } >/dev/null; then
12895   if test -s conftest.err; then
12896     ac_cpp_err=$ac_cxx_preproc_warn_flag
12897     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12898   else
12899     ac_cpp_err=
12900   fi
12901 else
12902   ac_cpp_err=yes
12903 fi
12904 if test -z "$ac_cpp_err"; then
12905   :
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910   # Broken: fails on valid input.
12911 continue
12912 fi
12913
12914 rm -f conftest.err conftest.$ac_ext
12915
12916   # OK, works on sane cases.  Now check whether nonexistent headers
12917   # can be detected and how.
12918   cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 #include <ac_nonexistent.h>
12925 _ACEOF
12926 if { (ac_try="$ac_cpp conftest.$ac_ext"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } >/dev/null; then
12939   if test -s conftest.err; then
12940     ac_cpp_err=$ac_cxx_preproc_warn_flag
12941     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942   else
12943     ac_cpp_err=
12944   fi
12945 else
12946   ac_cpp_err=yes
12947 fi
12948 if test -z "$ac_cpp_err"; then
12949   # Broken: success on invalid input.
12950 continue
12951 else
12952   echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955   # Passes both tests.
12956 ac_preproc_ok=:
12957 break
12958 fi
12959
12960 rm -f conftest.err conftest.$ac_ext
12961
12962 done
12963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12964 rm -f conftest.err conftest.$ac_ext
12965 if $ac_preproc_ok; then
12966   break
12967 fi
12968
12969     done
12970     ac_cv_prog_CXXCPP=$CXXCPP
12971
12972 fi
12973   CXXCPP=$ac_cv_prog_CXXCPP
12974 else
12975   ac_cv_prog_CXXCPP=$CXXCPP
12976 fi
12977 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12978 echo "${ECHO_T}$CXXCPP" >&6; }
12979 ac_preproc_ok=false
12980 for ac_cxx_preproc_warn_flag in '' yes
12981 do
12982   # Use a header file that comes with gcc, so configuring glibc
12983   # with a fresh cross-compiler works.
12984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985   # <limits.h> exists even on freestanding compilers.
12986   # On the NeXT, cc -E runs the code through the compiler's parser,
12987   # not just through cpp. "Syntax error" is here to catch this case.
12988   cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 #ifdef __STDC__
12995 # include <limits.h>
12996 #else
12997 # include <assert.h>
12998 #endif
12999                      Syntax error
13000 _ACEOF
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004   *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13008   ac_status=$?
13009   grep -v '^ *+' conftest.er1 >conftest.err
13010   rm -f conftest.er1
13011   cat conftest.err >&5
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } >/dev/null; then
13014   if test -s conftest.err; then
13015     ac_cpp_err=$ac_cxx_preproc_warn_flag
13016     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13017   else
13018     ac_cpp_err=
13019   fi
13020 else
13021   ac_cpp_err=yes
13022 fi
13023 if test -z "$ac_cpp_err"; then
13024   :
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029   # Broken: fails on valid input.
13030 continue
13031 fi
13032
13033 rm -f conftest.err conftest.$ac_ext
13034
13035   # OK, works on sane cases.  Now check whether nonexistent headers
13036   # can be detected and how.
13037   cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 #include <ac_nonexistent.h>
13044 _ACEOF
13045 if { (ac_try="$ac_cpp conftest.$ac_ext"
13046 case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } >/dev/null; then
13058   if test -s conftest.err; then
13059     ac_cpp_err=$ac_cxx_preproc_warn_flag
13060     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13061   else
13062     ac_cpp_err=
13063   fi
13064 else
13065   ac_cpp_err=yes
13066 fi
13067 if test -z "$ac_cpp_err"; then
13068   # Broken: success on invalid input.
13069 continue
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074   # Passes both tests.
13075 ac_preproc_ok=:
13076 break
13077 fi
13078
13079 rm -f conftest.err conftest.$ac_ext
13080
13081 done
13082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083 rm -f conftest.err conftest.$ac_ext
13084 if $ac_preproc_ok; then
13085   :
13086 else
13087   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13088 See \`config.log' for more details." >&5
13089 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13090 See \`config.log' for more details." >&2;}
13091    { (exit 1); exit 1; }; }
13092 fi
13093
13094 ac_ext=cpp
13095 ac_cpp='$CXXCPP $CPPFLAGS'
13096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13099
13100 fi
13101
13102
13103 ac_ext=f
13104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13107 if test -n "$ac_tool_prefix"; then
13108   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
13109   do
13110     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13114 if test "${ac_cv_prog_F77+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   if test -n "$F77"; then
13118   ac_cv_prog_F77="$F77" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123   IFS=$as_save_IFS
13124   test -z "$as_dir" && as_dir=.
13125   for ac_exec_ext in '' $ac_executable_extensions; do
13126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13127     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129     break 2
13130   fi
13131 done
13132 done
13133 IFS=$as_save_IFS
13134
13135 fi
13136 fi
13137 F77=$ac_cv_prog_F77
13138 if test -n "$F77"; then
13139   { echo "$as_me:$LINENO: result: $F77" >&5
13140 echo "${ECHO_T}$F77" >&6; }
13141 else
13142   { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 fi
13145
13146
13147     test -n "$F77" && break
13148   done
13149 fi
13150 if test -z "$F77"; then
13151   ac_ct_F77=$F77
13152   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
13153 do
13154   # Extract the first word of "$ac_prog", so it can be a program name with args.
13155 set dummy $ac_prog; ac_word=$2
13156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   if test -n "$ac_ct_F77"; then
13162   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167   IFS=$as_save_IFS
13168   test -z "$as_dir" && as_dir=.
13169   for ac_exec_ext in '' $ac_executable_extensions; do
13170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13171     ac_cv_prog_ac_ct_F77="$ac_prog"
13172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173     break 2
13174   fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13182 if test -n "$ac_ct_F77"; then
13183   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13184 echo "${ECHO_T}$ac_ct_F77" >&6; }
13185 else
13186   { echo "$as_me:$LINENO: result: no" >&5
13187 echo "${ECHO_T}no" >&6; }
13188 fi
13189
13190
13191   test -n "$ac_ct_F77" && break
13192 done
13193
13194   if test "x$ac_ct_F77" = x; then
13195     F77=""
13196   else
13197     case $cross_compiling:$ac_tool_warned in
13198 yes:)
13199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13200 whose name does not start with the host triplet.  If you think this
13201 configuration is useful to you, please write to autoconf@gnu.org." >&5
13202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13203 whose name does not start with the host triplet.  If you think this
13204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13205 ac_tool_warned=yes ;;
13206 esac
13207     F77=$ac_ct_F77
13208   fi
13209 fi
13210
13211
13212 # Provide some information about the compiler.
13213 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13214 ac_compiler=`set X $ac_compile; echo $2`
13215 { (ac_try="$ac_compiler --version >&5"
13216 case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221   (eval "$ac_compiler --version >&5") 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); }
13225 { (ac_try="$ac_compiler -v >&5"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_compiler -v >&5") 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }
13235 { (ac_try="$ac_compiler -V >&5"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_compiler -V >&5") 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }
13245 rm -f a.out
13246
13247 # If we don't use `.F' as extension, the preprocessor is not run on the
13248 # input file.  (Note that this only needs to work for GNU compilers.)
13249 ac_save_ext=$ac_ext
13250 ac_ext=F
13251 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13252 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13253 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   cat >conftest.$ac_ext <<_ACEOF
13257       program main
13258 #ifndef __GNUC__
13259        choke me
13260 #endif
13261
13262       end
13263 _ACEOF
13264 rm -f conftest.$ac_objext
13265 if { (ac_try="$ac_compile"
13266 case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_compile") 2>conftest.er1
13272   ac_status=$?
13273   grep -v '^ *+' conftest.er1 >conftest.err
13274   rm -f conftest.er1
13275   cat conftest.err >&5
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } &&
13278          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13279   { (case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284   (eval "$ac_try") 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; } &&
13288          { ac_try='test -s conftest.$ac_objext'
13289   { (case "(($ac_try" in
13290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291   *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294   (eval "$ac_try") 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_compiler_gnu=yes
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303         ac_compiler_gnu=no
13304 fi
13305
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13308
13309 fi
13310 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13311 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13312 ac_ext=$ac_save_ext
13313 ac_test_FFLAGS=${FFLAGS+set}
13314 ac_save_FFLAGS=$FFLAGS
13315 FFLAGS=
13316 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13317 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13318 if test "${ac_cv_prog_f77_g+set}" = set; then
13319   echo $ECHO_N "(cached) $ECHO_C" >&6
13320 else
13321   FFLAGS=-g
13322 cat >conftest.$ac_ext <<_ACEOF
13323       program main
13324
13325       end
13326 _ACEOF
13327 rm -f conftest.$ac_objext
13328 if { (ac_try="$ac_compile"
13329 case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_compile") 2>conftest.er1
13335   ac_status=$?
13336   grep -v '^ *+' conftest.er1 >conftest.err
13337   rm -f conftest.er1
13338   cat conftest.err >&5
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); } &&
13341          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13342   { (case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_try") 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; } &&
13351          { ac_try='test -s conftest.$ac_objext'
13352   { (case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_try") 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; }; then
13361   ac_cv_prog_f77_g=yes
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366         ac_cv_prog_f77_g=no
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370
13371 fi
13372 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13373 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13374 if test "$ac_test_FFLAGS" = set; then
13375   FFLAGS=$ac_save_FFLAGS
13376 elif test $ac_cv_prog_f77_g = yes; then
13377   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13378     FFLAGS="-g -O2"
13379   else
13380     FFLAGS="-g"
13381   fi
13382 else
13383   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13384     FFLAGS="-O2"
13385   else
13386     FFLAGS=
13387   fi
13388 fi
13389
13390 G77=`test $ac_compiler_gnu = yes && echo yes`
13391 ac_ext=c
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396
13397
13398
13399 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13400
13401 # find the maximum length of command line arguments
13402 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13403 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13404 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407     i=0
13408   teststring="ABCD"
13409
13410   case $build_os in
13411   msdosdjgpp*)
13412     # On DJGPP, this test can blow up pretty badly due to problems in libc
13413     # (any single argument exceeding 2000 bytes causes a buffer overrun
13414     # during glob expansion).  Even if it were fixed, the result of this
13415     # check would be larger than it should be.
13416     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13417     ;;
13418
13419   gnu*)
13420     # Under GNU Hurd, this test is not required because there is
13421     # no limit to the length of command line arguments.
13422     # Libtool will interpret -1 as no limit whatsoever
13423     lt_cv_sys_max_cmd_len=-1;
13424     ;;
13425
13426   cygwin* | mingw*)
13427     # On Win9x/ME, this test blows up -- it succeeds, but takes
13428     # about 5 minutes as the teststring grows exponentially.
13429     # Worse, since 9x/ME are not pre-emptively multitasking,
13430     # you end up with a "frozen" computer, even though with patience
13431     # the test eventually succeeds (with a max line length of 256k).
13432     # Instead, let's just punt: use the minimum linelength reported by
13433     # all of the supported platforms: 8192 (on NT/2K/XP).
13434     lt_cv_sys_max_cmd_len=8192;
13435     ;;
13436
13437   amigaos*)
13438     # On AmigaOS with pdksh, this test takes hours, literally.
13439     # So we just punt and use a minimum line length of 8192.
13440     lt_cv_sys_max_cmd_len=8192;
13441     ;;
13442
13443   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13444     # This has been around since 386BSD, at least.  Likely further.
13445     if test -x /sbin/sysctl; then
13446       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13447     elif test -x /usr/sbin/sysctl; then
13448       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13449     else
13450       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13451     fi
13452     # And add a safety zone
13453     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13454     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13455     ;;
13456
13457   interix*)
13458     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13459     lt_cv_sys_max_cmd_len=196608
13460     ;;
13461
13462   osf*)
13463     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13464     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13465     # nice to cause kernel panics so lets avoid the loop below.
13466     # First set a reasonable default.
13467     lt_cv_sys_max_cmd_len=16384
13468     #
13469     if test -x /sbin/sysconfig; then
13470       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13471         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13472       esac
13473     fi
13474     ;;
13475   sco3.2v5*)
13476     lt_cv_sys_max_cmd_len=102400
13477     ;;
13478   sysv5* | sco5v6* | sysv4.2uw2*)
13479     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13480     if test -n "$kargmax"; then
13481       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13482     else
13483       lt_cv_sys_max_cmd_len=32768
13484     fi
13485     ;;
13486   *)
13487     # If test is not a shell built-in, we'll probably end up computing a
13488     # maximum length that is only half of the actual maximum length, but
13489     # we can't tell.
13490     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13491     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13492                = "XX$teststring") >/dev/null 2>&1 &&
13493             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13494             lt_cv_sys_max_cmd_len=$new_result &&
13495             test $i != 17 # 1/2 MB should be enough
13496     do
13497       i=`expr $i + 1`
13498       teststring=$teststring$teststring
13499     done
13500     teststring=
13501     # Add a significant safety factor because C++ compilers can tack on massive
13502     # amounts of additional arguments before passing them to the linker.
13503     # It appears as though 1/2 is a usable value.
13504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13505     ;;
13506   esac
13507
13508 fi
13509
13510 if test -n $lt_cv_sys_max_cmd_len ; then
13511   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13513 else
13514   { echo "$as_me:$LINENO: result: none" >&5
13515 echo "${ECHO_T}none" >&6; }
13516 fi
13517
13518
13519
13520
13521 # Check for command to grab the raw symbol name followed by C symbol from nm.
13522 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527
13528 # These are sane defaults that work on at least a few old systems.
13529 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13530
13531 # Character class describing NM global symbol codes.
13532 symcode='[BCDEGRST]'
13533
13534 # Regexp to match symbols that can be accessed directly from C.
13535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13536
13537 # Transform an extracted symbol line into a proper C declaration
13538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13539
13540 # Transform an extracted symbol line into symbol name and symbol address
13541 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'"
13542
13543 # Define system-specific variables.
13544 case $host_os in
13545 aix*)
13546   symcode='[BCDT]'
13547   ;;
13548 cygwin* | mingw* | pw32*)
13549   symcode='[ABCDGISTW]'
13550   ;;
13551 hpux*) # Its linker distinguishes data from code symbols
13552   if test "$host_cpu" = ia64; then
13553     symcode='[ABCDEGRST]'
13554   fi
13555   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13556   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'"
13557   ;;
13558 linux*)
13559   if test "$host_cpu" = ia64; then
13560     symcode='[ABCDGIRSTW]'
13561     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13562     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'"
13563   fi
13564   ;;
13565 irix* | nonstopux*)
13566   symcode='[BCDEGRST]'
13567   ;;
13568 osf*)
13569   symcode='[BCDEGQRST]'
13570   ;;
13571 solaris*)
13572   symcode='[BDRT]'
13573   ;;
13574 sco3.2v5*)
13575   symcode='[DT]'
13576   ;;
13577 sysv4.2uw2*)
13578   symcode='[DT]'
13579   ;;
13580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13581   symcode='[ABDT]'
13582   ;;
13583 sysv4)
13584   symcode='[DFNSTU]'
13585   ;;
13586 esac
13587
13588 # Handle CRLF in mingw tool chain
13589 opt_cr=
13590 case $build_os in
13591 mingw*)
13592   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13593   ;;
13594 esac
13595
13596 # If we're using GNU nm, then use its standard symbol codes.
13597 case `$NM -V 2>&1` in
13598 *GNU* | *'with BFD'*)
13599   symcode='[ABCDGIRSTW]' ;;
13600 esac
13601
13602 # Try without a prefix undercore, then with it.
13603 for ac_symprfx in "" "_"; do
13604
13605   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13606   symxfrm="\\1 $ac_symprfx\\2 \\2"
13607
13608   # Write the raw and C identifiers.
13609   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13610
13611   # Check to see that the pipe works correctly.
13612   pipe_works=no
13613
13614   rm -f conftest*
13615   cat > conftest.$ac_ext <<EOF
13616 #ifdef __cplusplus
13617 extern "C" {
13618 #endif
13619 char nm_test_var;
13620 void nm_test_func(){}
13621 #ifdef __cplusplus
13622 }
13623 #endif
13624 int main(){nm_test_var='a';nm_test_func();return(0);}
13625 EOF
13626
13627   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628   (eval $ac_compile) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; then
13632     # Now try to grab the symbols.
13633     nlist=conftest.nm
13634     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13635   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } && test -s "$nlist"; then
13639       # Try sorting and uniquifying the output.
13640       if sort "$nlist" | uniq > "$nlist"T; then
13641         mv -f "$nlist"T "$nlist"
13642       else
13643         rm -f "$nlist"T
13644       fi
13645
13646       # Make sure that we snagged all the symbols we need.
13647       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13648         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13649           cat <<EOF > conftest.$ac_ext
13650 #ifdef __cplusplus
13651 extern "C" {
13652 #endif
13653
13654 EOF
13655           # Now generate the symbol file.
13656           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13657
13658           cat <<EOF >> conftest.$ac_ext
13659 #if defined (__STDC__) && __STDC__
13660 # define lt_ptr_t void *
13661 #else
13662 # define lt_ptr_t char *
13663 # define const
13664 #endif
13665
13666 /* The mapping between symbol names and symbols. */
13667 const struct {
13668   const char *name;
13669   lt_ptr_t address;
13670 }
13671 lt_preloaded_symbols[] =
13672 {
13673 EOF
13674           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13675           cat <<\EOF >> conftest.$ac_ext
13676   {0, (lt_ptr_t) 0}
13677 };
13678
13679 #ifdef __cplusplus
13680 }
13681 #endif
13682 EOF
13683           # Now try linking the two files.
13684           mv conftest.$ac_objext conftstm.$ac_objext
13685           lt_save_LIBS="$LIBS"
13686           lt_save_CFLAGS="$CFLAGS"
13687           LIBS="conftstm.$ac_objext"
13688           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13689           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690   (eval $ac_link) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13694             pipe_works=yes
13695           fi
13696           LIBS="$lt_save_LIBS"
13697           CFLAGS="$lt_save_CFLAGS"
13698         else
13699           echo "cannot find nm_test_func in $nlist" >&5
13700         fi
13701       else
13702         echo "cannot find nm_test_var in $nlist" >&5
13703       fi
13704     else
13705       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13706     fi
13707   else
13708     echo "$progname: failed program was:" >&5
13709     cat conftest.$ac_ext >&5
13710   fi
13711   rm -f conftest* conftst*
13712
13713   # Do not use the global_symbol_pipe unless it works.
13714   if test "$pipe_works" = yes; then
13715     break
13716   else
13717     lt_cv_sys_global_symbol_pipe=
13718   fi
13719 done
13720
13721 fi
13722
13723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13724   lt_cv_sys_global_symbol_to_cdecl=
13725 fi
13726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13727   { echo "$as_me:$LINENO: result: failed" >&5
13728 echo "${ECHO_T}failed" >&6; }
13729 else
13730   { echo "$as_me:$LINENO: result: ok" >&5
13731 echo "${ECHO_T}ok" >&6; }
13732 fi
13733
13734 { echo "$as_me:$LINENO: checking for objdir" >&5
13735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13736 if test "${lt_cv_objdir+set}" = set; then
13737   echo $ECHO_N "(cached) $ECHO_C" >&6
13738 else
13739   rm -f .libs 2>/dev/null
13740 mkdir .libs 2>/dev/null
13741 if test -d .libs; then
13742   lt_cv_objdir=.libs
13743 else
13744   # MS-DOS does not allow filenames that begin with a dot.
13745   lt_cv_objdir=_libs
13746 fi
13747 rmdir .libs 2>/dev/null
13748 fi
13749 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13750 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13751 objdir=$lt_cv_objdir
13752
13753
13754
13755
13756
13757 case $host_os in
13758 aix3*)
13759   # AIX sometimes has problems with the GCC collect2 program.  For some
13760   # reason, if we set the COLLECT_NAMES environment variable, the problems
13761   # vanish in a puff of smoke.
13762   if test "X${COLLECT_NAMES+set}" != Xset; then
13763     COLLECT_NAMES=
13764     export COLLECT_NAMES
13765   fi
13766   ;;
13767 esac
13768
13769 # Sed substitution that helps us do robust quoting.  It backslashifies
13770 # metacharacters that are still active within double-quoted strings.
13771 Xsed='sed -e 1s/^X//'
13772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13773
13774 # Same as above, but do not quote variable references.
13775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13776
13777 # Sed substitution to delay expansion of an escaped shell variable in a
13778 # double_quote_subst'ed string.
13779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13780
13781 # Sed substitution to avoid accidental globbing in evaled expressions
13782 no_glob_subst='s/\*/\\\*/g'
13783
13784 # Constants:
13785 rm="rm -f"
13786
13787 # Global variables:
13788 default_ofile=mklib
13789 can_build_shared=yes
13790
13791 # All known linkers require a `.a' archive for static linking (except MSVC,
13792 # which needs '.lib').
13793 libext=a
13794 ltmain="$ac_aux_dir/ltmain.sh"
13795 ofile="$default_ofile"
13796 with_gnu_ld="$lt_cv_prog_gnu_ld"
13797
13798 if test -n "$ac_tool_prefix"; then
13799   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13800 set dummy ${ac_tool_prefix}ar; ac_word=$2
13801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13803 if test "${ac_cv_prog_AR+set}" = set; then
13804   echo $ECHO_N "(cached) $ECHO_C" >&6
13805 else
13806   if test -n "$AR"; then
13807   ac_cv_prog_AR="$AR" # Let the user override the test.
13808 else
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13811 do
13812   IFS=$as_save_IFS
13813   test -z "$as_dir" && as_dir=.
13814   for ac_exec_ext in '' $ac_executable_extensions; do
13815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13816     ac_cv_prog_AR="${ac_tool_prefix}ar"
13817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818     break 2
13819   fi
13820 done
13821 done
13822 IFS=$as_save_IFS
13823
13824 fi
13825 fi
13826 AR=$ac_cv_prog_AR
13827 if test -n "$AR"; then
13828   { echo "$as_me:$LINENO: result: $AR" >&5
13829 echo "${ECHO_T}$AR" >&6; }
13830 else
13831   { echo "$as_me:$LINENO: result: no" >&5
13832 echo "${ECHO_T}no" >&6; }
13833 fi
13834
13835
13836 fi
13837 if test -z "$ac_cv_prog_AR"; then
13838   ac_ct_AR=$AR
13839   # Extract the first word of "ar", so it can be a program name with args.
13840 set dummy ar; ac_word=$2
13841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846   if test -n "$ac_ct_AR"; then
13847   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13848 else
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852   IFS=$as_save_IFS
13853   test -z "$as_dir" && as_dir=.
13854   for ac_exec_ext in '' $ac_executable_extensions; do
13855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13856     ac_cv_prog_ac_ct_AR="ar"
13857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858     break 2
13859   fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864 fi
13865 fi
13866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13867 if test -n "$ac_ct_AR"; then
13868   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13869 echo "${ECHO_T}$ac_ct_AR" >&6; }
13870 else
13871   { echo "$as_me:$LINENO: result: no" >&5
13872 echo "${ECHO_T}no" >&6; }
13873 fi
13874
13875   if test "x$ac_ct_AR" = x; then
13876     AR="false"
13877   else
13878     case $cross_compiling:$ac_tool_warned in
13879 yes:)
13880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13881 whose name does not start with the host triplet.  If you think this
13882 configuration is useful to you, please write to autoconf@gnu.org." >&5
13883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13884 whose name does not start with the host triplet.  If you think this
13885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13886 ac_tool_warned=yes ;;
13887 esac
13888     AR=$ac_ct_AR
13889   fi
13890 else
13891   AR="$ac_cv_prog_AR"
13892 fi
13893
13894 if test -n "$ac_tool_prefix"; then
13895   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13899 if test "${ac_cv_prog_RANLIB+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   if test -n "$RANLIB"; then
13903   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13904 else
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13907 do
13908   IFS=$as_save_IFS
13909   test -z "$as_dir" && as_dir=.
13910   for ac_exec_ext in '' $ac_executable_extensions; do
13911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13912     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13914     break 2
13915   fi
13916 done
13917 done
13918 IFS=$as_save_IFS
13919
13920 fi
13921 fi
13922 RANLIB=$ac_cv_prog_RANLIB
13923 if test -n "$RANLIB"; then
13924   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13925 echo "${ECHO_T}$RANLIB" >&6; }
13926 else
13927   { echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6; }
13929 fi
13930
13931
13932 fi
13933 if test -z "$ac_cv_prog_RANLIB"; then
13934   ac_ct_RANLIB=$RANLIB
13935   # Extract the first word of "ranlib", so it can be a program name with args.
13936 set dummy ranlib; ac_word=$2
13937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   if test -n "$ac_ct_RANLIB"; then
13943   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13944 else
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13947 do
13948   IFS=$as_save_IFS
13949   test -z "$as_dir" && as_dir=.
13950   for ac_exec_ext in '' $ac_executable_extensions; do
13951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13952     ac_cv_prog_ac_ct_RANLIB="ranlib"
13953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13954     break 2
13955   fi
13956 done
13957 done
13958 IFS=$as_save_IFS
13959
13960 fi
13961 fi
13962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13963 if test -n "$ac_ct_RANLIB"; then
13964   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13965 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13966 else
13967   { echo "$as_me:$LINENO: result: no" >&5
13968 echo "${ECHO_T}no" >&6; }
13969 fi
13970
13971   if test "x$ac_ct_RANLIB" = x; then
13972     RANLIB=":"
13973   else
13974     case $cross_compiling:$ac_tool_warned in
13975 yes:)
13976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13977 whose name does not start with the host triplet.  If you think this
13978 configuration is useful to you, please write to autoconf@gnu.org." >&5
13979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13980 whose name does not start with the host triplet.  If you think this
13981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13982 ac_tool_warned=yes ;;
13983 esac
13984     RANLIB=$ac_ct_RANLIB
13985   fi
13986 else
13987   RANLIB="$ac_cv_prog_RANLIB"
13988 fi
13989
13990 if test -n "$ac_tool_prefix"; then
13991   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13992 set dummy ${ac_tool_prefix}strip; ac_word=$2
13993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13995 if test "${ac_cv_prog_STRIP+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   if test -n "$STRIP"; then
13999   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14000 else
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14003 do
14004   IFS=$as_save_IFS
14005   test -z "$as_dir" && as_dir=.
14006   for ac_exec_ext in '' $ac_executable_extensions; do
14007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14008     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14010     break 2
14011   fi
14012 done
14013 done
14014 IFS=$as_save_IFS
14015
14016 fi
14017 fi
14018 STRIP=$ac_cv_prog_STRIP
14019 if test -n "$STRIP"; then
14020   { echo "$as_me:$LINENO: result: $STRIP" >&5
14021 echo "${ECHO_T}$STRIP" >&6; }
14022 else
14023   { echo "$as_me:$LINENO: result: no" >&5
14024 echo "${ECHO_T}no" >&6; }
14025 fi
14026
14027
14028 fi
14029 if test -z "$ac_cv_prog_STRIP"; then
14030   ac_ct_STRIP=$STRIP
14031   # Extract the first word of "strip", so it can be a program name with args.
14032 set dummy strip; ac_word=$2
14033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14036   echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038   if test -n "$ac_ct_STRIP"; then
14039   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14040 else
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14043 do
14044   IFS=$as_save_IFS
14045   test -z "$as_dir" && as_dir=.
14046   for ac_exec_ext in '' $ac_executable_extensions; do
14047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14048     ac_cv_prog_ac_ct_STRIP="strip"
14049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14050     break 2
14051   fi
14052 done
14053 done
14054 IFS=$as_save_IFS
14055
14056 fi
14057 fi
14058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14059 if test -n "$ac_ct_STRIP"; then
14060   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14061 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14062 else
14063   { echo "$as_me:$LINENO: result: no" >&5
14064 echo "${ECHO_T}no" >&6; }
14065 fi
14066
14067   if test "x$ac_ct_STRIP" = x; then
14068     STRIP=":"
14069   else
14070     case $cross_compiling:$ac_tool_warned in
14071 yes:)
14072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14073 whose name does not start with the host triplet.  If you think this
14074 configuration is useful to you, please write to autoconf@gnu.org." >&5
14075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14076 whose name does not start with the host triplet.  If you think this
14077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14078 ac_tool_warned=yes ;;
14079 esac
14080     STRIP=$ac_ct_STRIP
14081   fi
14082 else
14083   STRIP="$ac_cv_prog_STRIP"
14084 fi
14085
14086
14087 old_CC="$CC"
14088 old_CFLAGS="$CFLAGS"
14089
14090 # Set sane defaults for various variables
14091 test -z "$AR" && AR=ar
14092 test -z "$AR_FLAGS" && AR_FLAGS=cru
14093 test -z "$AS" && AS=as
14094 test -z "$CC" && CC=cc
14095 test -z "$LTCC" && LTCC=$CC
14096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14097 test -z "$DLLTOOL" && DLLTOOL=dlltool
14098 test -z "$LD" && LD=ld
14099 test -z "$LN_S" && LN_S="ln -s"
14100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14101 test -z "$NM" && NM=nm
14102 test -z "$SED" && SED=sed
14103 test -z "$OBJDUMP" && OBJDUMP=objdump
14104 test -z "$RANLIB" && RANLIB=:
14105 test -z "$STRIP" && STRIP=:
14106 test -z "$ac_objext" && ac_objext=o
14107
14108 # Determine commands to create old-style static archives.
14109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14110 old_postinstall_cmds='chmod 644 $oldlib'
14111 old_postuninstall_cmds=
14112
14113 if test -n "$RANLIB"; then
14114   case $host_os in
14115   openbsd*)
14116     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14117     ;;
14118   *)
14119     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14120     ;;
14121   esac
14122   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14123 fi
14124
14125 for cc_temp in $compiler""; do
14126   case $cc_temp in
14127     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14129     \-*) ;;
14130     *) break;;
14131   esac
14132 done
14133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14134
14135
14136 # Only perform the check for file, if the check method requires it
14137 case $deplibs_check_method in
14138 file_magic*)
14139   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14140     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14141 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   case $MAGIC_CMD in
14146 [\\/*] |  ?:[\\/]*)
14147   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14148   ;;
14149 *)
14150   lt_save_MAGIC_CMD="$MAGIC_CMD"
14151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14152   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14153   for ac_dir in $ac_dummy; do
14154     IFS="$lt_save_ifs"
14155     test -z "$ac_dir" && ac_dir=.
14156     if test -f $ac_dir/${ac_tool_prefix}file; then
14157       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14158       if test -n "$file_magic_test_file"; then
14159         case $deplibs_check_method in
14160         "file_magic "*)
14161           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14162           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14163           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14164             $EGREP "$file_magic_regex" > /dev/null; then
14165             :
14166           else
14167             cat <<EOF 1>&2
14168
14169 *** Warning: the command libtool uses to detect shared libraries,
14170 *** $file_magic_cmd, produces output that libtool cannot recognize.
14171 *** The result is that libtool may fail to recognize shared libraries
14172 *** as such.  This will affect the creation of libtool libraries that
14173 *** depend on shared libraries, but programs linked with such libtool
14174 *** libraries will work regardless of this problem.  Nevertheless, you
14175 *** may want to report the problem to your system manager and/or to
14176 *** bug-libtool@gnu.org
14177
14178 EOF
14179           fi ;;
14180         esac
14181       fi
14182       break
14183     fi
14184   done
14185   IFS="$lt_save_ifs"
14186   MAGIC_CMD="$lt_save_MAGIC_CMD"
14187   ;;
14188 esac
14189 fi
14190
14191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14192 if test -n "$MAGIC_CMD"; then
14193   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14194 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14195 else
14196   { echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6; }
14198 fi
14199
14200 if test -z "$lt_cv_path_MAGIC_CMD"; then
14201   if test -n "$ac_tool_prefix"; then
14202     { echo "$as_me:$LINENO: checking for file" >&5
14203 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14204 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14205   echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207   case $MAGIC_CMD in
14208 [\\/*] |  ?:[\\/]*)
14209   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14210   ;;
14211 *)
14212   lt_save_MAGIC_CMD="$MAGIC_CMD"
14213   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14214   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14215   for ac_dir in $ac_dummy; do
14216     IFS="$lt_save_ifs"
14217     test -z "$ac_dir" && ac_dir=.
14218     if test -f $ac_dir/file; then
14219       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14220       if test -n "$file_magic_test_file"; then
14221         case $deplibs_check_method in
14222         "file_magic "*)
14223           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14224           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14226             $EGREP "$file_magic_regex" > /dev/null; then
14227             :
14228           else
14229             cat <<EOF 1>&2
14230
14231 *** Warning: the command libtool uses to detect shared libraries,
14232 *** $file_magic_cmd, produces output that libtool cannot recognize.
14233 *** The result is that libtool may fail to recognize shared libraries
14234 *** as such.  This will affect the creation of libtool libraries that
14235 *** depend on shared libraries, but programs linked with such libtool
14236 *** libraries will work regardless of this problem.  Nevertheless, you
14237 *** may want to report the problem to your system manager and/or to
14238 *** bug-libtool@gnu.org
14239
14240 EOF
14241           fi ;;
14242         esac
14243       fi
14244       break
14245     fi
14246   done
14247   IFS="$lt_save_ifs"
14248   MAGIC_CMD="$lt_save_MAGIC_CMD"
14249   ;;
14250 esac
14251 fi
14252
14253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14254 if test -n "$MAGIC_CMD"; then
14255   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14256 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14257 else
14258   { echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6; }
14260 fi
14261
14262   else
14263     MAGIC_CMD=:
14264   fi
14265 fi
14266
14267   fi
14268   ;;
14269 esac
14270
14271 enable_dlopen=yes
14272 enable_win32_dll=no
14273
14274 # Check whether --enable-libtool-lock was given.
14275 if test "${enable_libtool_lock+set}" = set; then
14276   enableval=$enable_libtool_lock;
14277 fi
14278
14279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14280
14281
14282 # Check whether --with-pic was given.
14283 if test "${with_pic+set}" = set; then
14284   withval=$with_pic; pic_mode="$withval"
14285 else
14286   pic_mode=default
14287 fi
14288
14289 test -z "$pic_mode" && pic_mode=default
14290
14291 # Use C for the default configuration in the libtool script
14292 tagname=
14293 lt_save_CC="$CC"
14294 ac_ext=c
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299
14300
14301 # Source file extension for C test sources.
14302 ac_ext=c
14303
14304 # Object file extension for compiled C test sources.
14305 objext=o
14306 objext=$objext
14307
14308 # Code to be used in simple compile tests
14309 lt_simple_compile_test_code="int some_variable = 0;\n"
14310
14311 # Code to be used in simple link tests
14312 lt_simple_link_test_code='int main(){return(0);}\n'
14313
14314
14315 # If no C compiler was specified, use CC.
14316 LTCC=${LTCC-"$CC"}
14317
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14320
14321 # Allow CC to be a program name with arguments.
14322 compiler=$CC
14323
14324
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14330 $rm conftest*
14331
14332 ac_outfile=conftest.$ac_objext
14333 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14336 $rm conftest*
14337
14338
14339
14340 lt_prog_compiler_no_builtin_flag=
14341
14342 if test "$GCC" = yes; then
14343   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14344
14345
14346 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14347 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14348 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   lt_cv_prog_compiler_rtti_exceptions=no
14352   ac_outfile=conftest.$ac_objext
14353    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14354    lt_compiler_flag="-fno-rtti -fno-exceptions"
14355    # Insert the option either (1) after the last *FLAGS variable, or
14356    # (2) before a word containing "conftest.", or (3) at the end.
14357    # Note that $ac_compile itself does not contain backslashes and begins
14358    # with a dollar sign (not a hyphen), so the echo should work correctly.
14359    # The option is referenced via a variable to avoid confusing sed.
14360    lt_compile=`echo "$ac_compile" | $SED \
14361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14363    -e 's:$: $lt_compiler_flag:'`
14364    (eval echo "\"\$as_me:14364: $lt_compile\"" >&5)
14365    (eval "$lt_compile" 2>conftest.err)
14366    ac_status=$?
14367    cat conftest.err >&5
14368    echo "$as_me:14368: \$? = $ac_status" >&5
14369    if (exit $ac_status) && test -s "$ac_outfile"; then
14370      # The compiler can only warn and ignore the option if not recognized
14371      # So say no if there are warnings other than the usual output.
14372      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14373      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14374      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14375        lt_cv_prog_compiler_rtti_exceptions=yes
14376      fi
14377    fi
14378    $rm conftest*
14379
14380 fi
14381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14382 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14383
14384 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14385     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14386 else
14387     :
14388 fi
14389
14390 fi
14391
14392 lt_prog_compiler_wl=
14393 lt_prog_compiler_pic=
14394 lt_prog_compiler_static=
14395
14396 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14398
14399   if test "$GCC" = yes; then
14400     lt_prog_compiler_wl='-Wl,'
14401     lt_prog_compiler_static='-static'
14402
14403     case $host_os in
14404       aix*)
14405       # All AIX code is PIC.
14406       if test "$host_cpu" = ia64; then
14407         # AIX 5 now supports IA64 processor
14408         lt_prog_compiler_static='-Bstatic'
14409       fi
14410       ;;
14411
14412     amigaos*)
14413       # FIXME: we need at least 68020 code to build shared libraries, but
14414       # adding the `-m68020' flag to GCC prevents building anything better,
14415       # like `-m68040'.
14416       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14417       ;;
14418
14419     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14420       # PIC is the default for these OSes.
14421       ;;
14422
14423     mingw* | pw32* | os2*)
14424       # This hack is so that the source file can tell whether it is being
14425       # built for inclusion in a dll (and should export symbols for example).
14426       lt_prog_compiler_pic='-DDLL_EXPORT'
14427       ;;
14428
14429     darwin* | rhapsody*)
14430       # PIC is the default on this platform
14431       # Common symbols not allowed in MH_DYLIB files
14432       lt_prog_compiler_pic='-fno-common'
14433       ;;
14434
14435     interix3*)
14436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437       # Instead, we relocate shared libraries at runtime.
14438       ;;
14439
14440     msdosdjgpp*)
14441       # Just because we use GCC doesn't mean we suddenly get shared libraries
14442       # on systems that don't support them.
14443       lt_prog_compiler_can_build_shared=no
14444       enable_shared=no
14445       ;;
14446
14447     sysv4*MP*)
14448       if test -d /usr/nec; then
14449         lt_prog_compiler_pic=-Kconform_pic
14450       fi
14451       ;;
14452
14453     hpux*)
14454       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14455       # not for PA HP-UX.
14456       case $host_cpu in
14457       hppa*64*|ia64*)
14458         # +Z the default
14459         ;;
14460       *)
14461         lt_prog_compiler_pic='-fPIC'
14462         ;;
14463       esac
14464       ;;
14465
14466     *)
14467       lt_prog_compiler_pic='-fPIC'
14468       ;;
14469     esac
14470   else
14471     # PORTME Check for flag to pass linker flags through the system compiler.
14472     case $host_os in
14473     aix*)
14474       lt_prog_compiler_wl='-Wl,'
14475       if test "$host_cpu" = ia64; then
14476         # AIX 5 now supports IA64 processor
14477         lt_prog_compiler_static='-Bstatic'
14478       else
14479         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14480       fi
14481       ;;
14482       darwin*)
14483         # PIC is the default on this platform
14484         # Common symbols not allowed in MH_DYLIB files
14485        case $cc_basename in
14486          xlc*)
14487          lt_prog_compiler_pic='-qnocommon'
14488          lt_prog_compiler_wl='-Wl,'
14489          ;;
14490        esac
14491        ;;
14492
14493     mingw* | pw32* | os2*)
14494       # This hack is so that the source file can tell whether it is being
14495       # built for inclusion in a dll (and should export symbols for example).
14496       lt_prog_compiler_pic='-DDLL_EXPORT'
14497       ;;
14498
14499     hpux9* | hpux10* | hpux11*)
14500       lt_prog_compiler_wl='-Wl,'
14501       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14502       # not for PA HP-UX.
14503       case $host_cpu in
14504       hppa*64*|ia64*)
14505         # +Z the default
14506         ;;
14507       *)
14508         lt_prog_compiler_pic='+Z'
14509         ;;
14510       esac
14511       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14512       lt_prog_compiler_static='${wl}-a ${wl}archive'
14513       ;;
14514
14515     irix5* | irix6* | nonstopux*)
14516       lt_prog_compiler_wl='-Wl,'
14517       # PIC (with -KPIC) is the default.
14518       lt_prog_compiler_static='-non_shared'
14519       ;;
14520
14521     newsos6)
14522       lt_prog_compiler_pic='-KPIC'
14523       lt_prog_compiler_static='-Bstatic'
14524       ;;
14525
14526     linux*)
14527       case $cc_basename in
14528       icc* | ecc*)
14529         lt_prog_compiler_wl='-Wl,'
14530         lt_prog_compiler_pic='-KPIC'
14531         lt_prog_compiler_static='-static'
14532         ;;
14533       pgcc* | pgf77* | pgf90* | pgf95*)
14534         # Portland Group compilers (*not* the Pentium gcc compiler,
14535         # which looks to be a dead project)
14536         lt_prog_compiler_wl='-Wl,'
14537         lt_prog_compiler_pic='-fpic'
14538         lt_prog_compiler_static='-Bstatic'
14539         ;;
14540       ccc*)
14541         lt_prog_compiler_wl='-Wl,'
14542         # All Alpha code is PIC.
14543         lt_prog_compiler_static='-non_shared'
14544         ;;
14545       esac
14546       ;;
14547
14548     osf3* | osf4* | osf5*)
14549       lt_prog_compiler_wl='-Wl,'
14550       # All OSF/1 code is PIC.
14551       lt_prog_compiler_static='-non_shared'
14552       ;;
14553
14554     solaris*)
14555       lt_prog_compiler_pic='-KPIC'
14556       lt_prog_compiler_static='-Bstatic'
14557       case $cc_basename in
14558       f77* | f90* | f95*)
14559         lt_prog_compiler_wl='-Qoption ld ';;
14560       *)
14561         lt_prog_compiler_wl='-Wl,';;
14562       esac
14563       ;;
14564
14565     sunos4*)
14566       lt_prog_compiler_wl='-Qoption ld '
14567       lt_prog_compiler_pic='-PIC'
14568       lt_prog_compiler_static='-Bstatic'
14569       ;;
14570
14571     sysv4 | sysv4.2uw2* | sysv4.3*)
14572       lt_prog_compiler_wl='-Wl,'
14573       lt_prog_compiler_pic='-KPIC'
14574       lt_prog_compiler_static='-Bstatic'
14575       ;;
14576
14577     sysv4*MP*)
14578       if test -d /usr/nec ;then
14579         lt_prog_compiler_pic='-Kconform_pic'
14580         lt_prog_compiler_static='-Bstatic'
14581       fi
14582       ;;
14583
14584     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14585       lt_prog_compiler_wl='-Wl,'
14586       lt_prog_compiler_pic='-KPIC'
14587       lt_prog_compiler_static='-Bstatic'
14588       ;;
14589
14590     unicos*)
14591       lt_prog_compiler_wl='-Wl,'
14592       lt_prog_compiler_can_build_shared=no
14593       ;;
14594
14595     uts4*)
14596       lt_prog_compiler_pic='-pic'
14597       lt_prog_compiler_static='-Bstatic'
14598       ;;
14599
14600     *)
14601       lt_prog_compiler_can_build_shared=no
14602       ;;
14603     esac
14604   fi
14605
14606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14607 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14608
14609 #
14610 # Check to make sure the PIC flag actually works.
14611 #
14612 if test -n "$lt_prog_compiler_pic"; then
14613
14614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14616 if test "${lt_prog_compiler_pic_works+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   lt_prog_compiler_pic_works=no
14620   ac_outfile=conftest.$ac_objext
14621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14623    # Insert the option either (1) after the last *FLAGS variable, or
14624    # (2) before a word containing "conftest.", or (3) at the end.
14625    # Note that $ac_compile itself does not contain backslashes and begins
14626    # with a dollar sign (not a hyphen), so the echo should work correctly.
14627    # The option is referenced via a variable to avoid confusing sed.
14628    lt_compile=`echo "$ac_compile" | $SED \
14629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631    -e 's:$: $lt_compiler_flag:'`
14632    (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633    (eval "$lt_compile" 2>conftest.err)
14634    ac_status=$?
14635    cat conftest.err >&5
14636    echo "$as_me:14636: \$? = $ac_status" >&5
14637    if (exit $ac_status) && test -s "$ac_outfile"; then
14638      # The compiler can only warn and ignore the option if not recognized
14639      # So say no if there are warnings other than the usual output.
14640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14643        lt_prog_compiler_pic_works=yes
14644      fi
14645    fi
14646    $rm conftest*
14647
14648 fi
14649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14650 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14651
14652 if test x"$lt_prog_compiler_pic_works" = xyes; then
14653     case $lt_prog_compiler_pic in
14654      "" | " "*) ;;
14655      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14656      esac
14657 else
14658     lt_prog_compiler_pic=
14659      lt_prog_compiler_can_build_shared=no
14660 fi
14661
14662 fi
14663 case $host_os in
14664   # For platforms which do not support PIC, -DPIC is meaningless:
14665   *djgpp*)
14666     lt_prog_compiler_pic=
14667     ;;
14668   *)
14669     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14670     ;;
14671 esac
14672
14673 #
14674 # Check to make sure the static flag actually works.
14675 #
14676 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14679 if test "${lt_prog_compiler_static_works+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   lt_prog_compiler_static_works=no
14683    save_LDFLAGS="$LDFLAGS"
14684    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14686    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687      # The linker can only warn and ignore the option if not recognized
14688      # So say no if there are warnings
14689      if test -s conftest.err; then
14690        # Append any errors to the config.log.
14691        cat conftest.err 1>&5
14692        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14693        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694        if diff conftest.exp conftest.er2 >/dev/null; then
14695          lt_prog_compiler_static_works=yes
14696        fi
14697      else
14698        lt_prog_compiler_static_works=yes
14699      fi
14700    fi
14701    $rm conftest*
14702    LDFLAGS="$save_LDFLAGS"
14703
14704 fi
14705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14706 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14707
14708 if test x"$lt_prog_compiler_static_works" = xyes; then
14709     :
14710 else
14711     lt_prog_compiler_static=
14712 fi
14713
14714
14715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14717 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   lt_cv_prog_compiler_c_o=no
14721    $rm -r conftest 2>/dev/null
14722    mkdir conftest
14723    cd conftest
14724    mkdir out
14725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14726
14727    lt_compiler_flag="-o out/conftest2.$ac_objext"
14728    # Insert the option either (1) after the last *FLAGS variable, or
14729    # (2) before a word containing "conftest.", or (3) at the end.
14730    # Note that $ac_compile itself does not contain backslashes and begins
14731    # with a dollar sign (not a hyphen), so the echo should work correctly.
14732    lt_compile=`echo "$ac_compile" | $SED \
14733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735    -e 's:$: $lt_compiler_flag:'`
14736    (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737    (eval "$lt_compile" 2>out/conftest.err)
14738    ac_status=$?
14739    cat out/conftest.err >&5
14740    echo "$as_me:14740: \$? = $ac_status" >&5
14741    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14742    then
14743      # The compiler can only warn and ignore the option if not recognized
14744      # So say no if there are warnings
14745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14746      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14747      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14748        lt_cv_prog_compiler_c_o=yes
14749      fi
14750    fi
14751    chmod u+w . 2>&5
14752    $rm conftest*
14753    # SGI C++ compiler will create directory out/ii_files/ for
14754    # template instantiation
14755    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14756    $rm out/* && rmdir out
14757    cd ..
14758    rmdir conftest
14759    $rm conftest*
14760
14761 fi
14762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14764
14765
14766 hard_links="nottested"
14767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14768   # do not overwrite the value of need_locks provided by the user
14769   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14771   hard_links=yes
14772   $rm conftest*
14773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774   touch conftest.a
14775   ln conftest.a conftest.b 2>&5 || hard_links=no
14776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777   { echo "$as_me:$LINENO: result: $hard_links" >&5
14778 echo "${ECHO_T}$hard_links" >&6; }
14779   if test "$hard_links" = no; then
14780     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14782     need_locks=warn
14783   fi
14784 else
14785   need_locks=no
14786 fi
14787
14788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14790
14791   runpath_var=
14792   allow_undefined_flag=
14793   enable_shared_with_static_runtimes=no
14794   archive_cmds=
14795   archive_expsym_cmds=
14796   old_archive_From_new_cmds=
14797   old_archive_from_expsyms_cmds=
14798   export_dynamic_flag_spec=
14799   whole_archive_flag_spec=
14800   thread_safe_flag_spec=
14801   hardcode_libdir_flag_spec=
14802   hardcode_libdir_flag_spec_ld=
14803   hardcode_libdir_separator=
14804   hardcode_direct=no
14805   hardcode_minus_L=no
14806   hardcode_shlibpath_var=unsupported
14807   link_all_deplibs=unknown
14808   hardcode_automatic=no
14809   module_cmds=
14810   module_expsym_cmds=
14811   always_export_symbols=no
14812   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813   # include_expsyms should be a list of space-separated symbols to be *always*
14814   # included in the symbol list
14815   include_expsyms=
14816   # exclude_expsyms can be an extended regexp of symbols to exclude
14817   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14818   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14819   # as well as any symbol that contains `d'.
14820   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14821   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14822   # platforms (ab)use it in PIC code, but their linkers get confused if
14823   # the symbol is explicitly referenced.  Since portable code cannot
14824   # rely on this symbol name, it's probably fine to never include it in
14825   # preloaded symbol tables.
14826   extract_expsyms_cmds=
14827   # Just being paranoid about ensuring that cc_basename is set.
14828   for cc_temp in $compiler""; do
14829   case $cc_temp in
14830     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14831     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14832     \-*) ;;
14833     *) break;;
14834   esac
14835 done
14836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14837
14838   case $host_os in
14839   cygwin* | mingw* | pw32*)
14840     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14841     # When not using gcc, we currently assume that we are using
14842     # Microsoft Visual C++.
14843     if test "$GCC" != yes; then
14844       with_gnu_ld=no
14845     fi
14846     ;;
14847   interix*)
14848     # we just hope/assume this is gcc and not c89 (= MSVC++)
14849     with_gnu_ld=yes
14850     ;;
14851   openbsd*)
14852     with_gnu_ld=no
14853     ;;
14854   esac
14855
14856   ld_shlibs=yes
14857   if test "$with_gnu_ld" = yes; then
14858     # If archive_cmds runs LD, not CC, wlarc should be empty
14859     wlarc='${wl}'
14860
14861     # Set some defaults for GNU ld with shared library support. These
14862     # are reset later if shared libraries are not supported. Putting them
14863     # here allows them to be overridden if necessary.
14864     runpath_var=LD_RUN_PATH
14865     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14866     export_dynamic_flag_spec='${wl}--export-dynamic'
14867     # ancient GNU ld didn't support --whole-archive et. al.
14868     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14869         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14870       else
14871         whole_archive_flag_spec=
14872     fi
14873     supports_anon_versioning=no
14874     case `$LD -v 2>/dev/null` in
14875       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14876       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14877       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14878       *\ 2.11.*) ;; # other 2.11 versions
14879       *) supports_anon_versioning=yes ;;
14880     esac
14881
14882     # See if GNU ld supports shared libraries.
14883     case $host_os in
14884     aix3* | aix4* | aix5*)
14885       # On AIX/PPC, the GNU linker is very broken
14886       if test "$host_cpu" != ia64; then
14887         ld_shlibs=no
14888         cat <<EOF 1>&2
14889
14890 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14891 *** to be unable to reliably create shared libraries on AIX.
14892 *** Therefore, libtool is disabling shared libraries support.  If you
14893 *** really care for shared libraries, you may want to modify your PATH
14894 *** so that a non-GNU linker is found, and then restart.
14895
14896 EOF
14897       fi
14898       ;;
14899
14900     amigaos*)
14901       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)'
14902       hardcode_libdir_flag_spec='-L$libdir'
14903       hardcode_minus_L=yes
14904
14905       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14906       # that the semantics of dynamic libraries on AmigaOS, at least up
14907       # to version 4, is to share data among multiple programs linked
14908       # with the same dynamic library.  Since this doesn't match the
14909       # behavior of shared libraries on other platforms, we can't use
14910       # them.
14911       ld_shlibs=no
14912       ;;
14913
14914     beos*)
14915       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916         allow_undefined_flag=unsupported
14917         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14918         # support --undefined.  This deserves some investigation.  FIXME
14919         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14920       else
14921         ld_shlibs=no
14922       fi
14923       ;;
14924
14925     cygwin* | mingw* | pw32*)
14926       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14927       # as there is no search path for DLLs.
14928       hardcode_libdir_flag_spec='-L$libdir'
14929       allow_undefined_flag=unsupported
14930       always_export_symbols=no
14931       enable_shared_with_static_runtimes=yes
14932       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14933
14934       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14935         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14936         # If the export-symbols file already is a .def file (1st line
14937         # is EXPORTS), use it as is; otherwise, prepend...
14938         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14939           cp $export_symbols $output_objdir/$soname.def;
14940         else
14941           echo EXPORTS > $output_objdir/$soname.def;
14942           cat $export_symbols >> $output_objdir/$soname.def;
14943         fi~
14944         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14945       else
14946         ld_shlibs=no
14947       fi
14948       ;;
14949
14950     interix3*)
14951       hardcode_direct=no
14952       hardcode_shlibpath_var=no
14953       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14954       export_dynamic_flag_spec='${wl}-E'
14955       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14956       # Instead, shared libraries are loaded at an image base (0x10000000 by
14957       # default) and relocated if they conflict, which is a slow very memory
14958       # consuming and fragmenting process.  To avoid this, we pick a random,
14959       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14960       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14961       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14962       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'
14963       ;;
14964
14965     linux*)
14966       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14967         tmp_addflag=
14968         case $cc_basename,$host_cpu in
14969         pgcc*)                          # Portland Group C compiler
14970           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'
14971           tmp_addflag=' $pic_flag'
14972           ;;
14973         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14974           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'
14975           tmp_addflag=' $pic_flag -Mnomain' ;;
14976         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14977           tmp_addflag=' -i_dynamic' ;;
14978         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14979           tmp_addflag=' -i_dynamic -nofor_main' ;;
14980         ifc* | ifort*)                  # Intel Fortran compiler
14981           tmp_addflag=' -nofor_main' ;;
14982         esac
14983         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984
14985         if test $supports_anon_versioning = yes; then
14986           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14987   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14988   $echo "local: *; };" >> $output_objdir/$libname.ver~
14989           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14990         fi
14991       else
14992         ld_shlibs=no
14993       fi
14994       ;;
14995
14996     netbsd*)
14997       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14999         wlarc=
15000       else
15001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003       fi
15004       ;;
15005
15006     solaris*)
15007       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15008         ld_shlibs=no
15009         cat <<EOF 1>&2
15010
15011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15012 *** create shared libraries on Solaris systems.  Therefore, libtool
15013 *** is disabling shared libraries support.  We urge you to upgrade GNU
15014 *** binutils to release 2.9.1 or newer.  Another option is to modify
15015 *** your PATH or compiler configuration so that the native linker is
15016 *** used, and then restart.
15017
15018 EOF
15019       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15020         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022       else
15023         ld_shlibs=no
15024       fi
15025       ;;
15026
15027     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15028       case `$LD -v 2>&1` in
15029         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15030         ld_shlibs=no
15031         cat <<_LT_EOF 1>&2
15032
15033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15034 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15035 *** is disabling shared libraries support.  We urge you to upgrade GNU
15036 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15037 *** your PATH or compiler configuration so that the native linker is
15038 *** used, and then restart.
15039
15040 _LT_EOF
15041         ;;
15042         *)
15043           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15044             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15045             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15046             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15047           else
15048             ld_shlibs=no
15049           fi
15050         ;;
15051       esac
15052       ;;
15053
15054     sunos4*)
15055       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15056       wlarc=
15057       hardcode_direct=yes
15058       hardcode_shlibpath_var=no
15059       ;;
15060
15061     *)
15062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15065       else
15066         ld_shlibs=no
15067       fi
15068       ;;
15069     esac
15070
15071     if test "$ld_shlibs" = no; then
15072       runpath_var=
15073       hardcode_libdir_flag_spec=
15074       export_dynamic_flag_spec=
15075       whole_archive_flag_spec=
15076     fi
15077   else
15078     # PORTME fill in a description of your system's linker (not GNU ld)
15079     case $host_os in
15080     aix3*)
15081       allow_undefined_flag=unsupported
15082       always_export_symbols=yes
15083       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'
15084       # Note: this linker hardcodes the directories in LIBPATH if there
15085       # are no directories specified by -L.
15086       hardcode_minus_L=yes
15087       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15088         # Neither direct hardcoding nor static linking is supported with a
15089         # broken collect2.
15090         hardcode_direct=unsupported
15091       fi
15092       ;;
15093
15094     aix4* | aix5*)
15095       if test "$host_cpu" = ia64; then
15096         # On IA64, the linker does run time linking by default, so we don't
15097         # have to do anything special.
15098         aix_use_runtimelinking=no
15099         exp_sym_flag='-Bexport'
15100         no_entry_flag=""
15101       else
15102         # If we're using GNU nm, then we don't want the "-C" option.
15103         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15104         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15105           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'
15106         else
15107           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'
15108         fi
15109         aix_use_runtimelinking=no
15110
15111         # Test if we are trying to use run time linking or normal
15112         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15113         # need to do runtime linking.
15114         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15115           for ld_flag in $LDFLAGS; do
15116           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15117             aix_use_runtimelinking=yes
15118             break
15119           fi
15120           done
15121           ;;
15122         esac
15123
15124         exp_sym_flag='-bexport'
15125         no_entry_flag='-bnoentry'
15126       fi
15127
15128       # When large executables or shared objects are built, AIX ld can
15129       # have problems creating the table of contents.  If linking a library
15130       # or program results in "error TOC overflow" add -mminimal-toc to
15131       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15132       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15133
15134       archive_cmds=''
15135       hardcode_direct=yes
15136       hardcode_libdir_separator=':'
15137       link_all_deplibs=yes
15138
15139       if test "$GCC" = yes; then
15140         case $host_os in aix4.[012]|aix4.[012].*)
15141         # We only want to do this on AIX 4.2 and lower, the check
15142         # below for broken collect2 doesn't work under 4.3+
15143           collect2name=`${CC} -print-prog-name=collect2`
15144           if test -f "$collect2name" && \
15145            strings "$collect2name" | grep resolve_lib_name >/dev/null
15146           then
15147           # We have reworked collect2
15148           hardcode_direct=yes
15149           else
15150           # We have old collect2
15151           hardcode_direct=unsupported
15152           # It fails to find uninstalled libraries when the uninstalled
15153           # path is not listed in the libpath.  Setting hardcode_minus_L
15154           # to unsupported forces relinking
15155           hardcode_minus_L=yes
15156           hardcode_libdir_flag_spec='-L$libdir'
15157           hardcode_libdir_separator=
15158           fi
15159           ;;
15160         esac
15161         shared_flag='-shared'
15162         if test "$aix_use_runtimelinking" = yes; then
15163           shared_flag="$shared_flag "'${wl}-G'
15164         fi
15165       else
15166         # not using gcc
15167         if test "$host_cpu" = ia64; then
15168         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15169         # chokes on -Wl,-G. The following line is correct:
15170           shared_flag='-G'
15171         else
15172           if test "$aix_use_runtimelinking" = yes; then
15173             shared_flag='${wl}-G'
15174           else
15175             shared_flag='${wl}-bM:SRE'
15176           fi
15177         fi
15178       fi
15179
15180       # It seems that -bexpall does not export symbols beginning with
15181       # underscore (_), so it is better to generate a list of symbols to export.
15182       always_export_symbols=yes
15183       if test "$aix_use_runtimelinking" = yes; then
15184         # Warning - without using the other runtime loading flags (-brtl),
15185         # -berok will link without error, but may produce a broken library.
15186         allow_undefined_flag='-berok'
15187        # Determine the default libpath from the value encoded in an empty executable.
15188        cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194
15195 int
15196 main ()
15197 {
15198
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207   *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210   (eval "$ac_link") 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } &&
15217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218   { (case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_try") 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; } &&
15227          { ac_try='test -s conftest$ac_exeext'
15228   { (case "(($ac_try" in
15229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230   *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233   (eval "$ac_try") 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; }; then
15237
15238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15239 }'`
15240 # Check for a 64-bit object if we didn't find anything.
15241 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; }
15242 }'`; fi
15243 else
15244   echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247
15248 fi
15249
15250 rm -f core conftest.err conftest.$ac_objext \
15251       conftest$ac_exeext conftest.$ac_ext
15252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15253
15254        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15255         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"
15256        else
15257         if test "$host_cpu" = ia64; then
15258           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15259           allow_undefined_flag="-z nodefs"
15260           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"
15261         else
15262          # Determine the default libpath from the value encoded in an empty executable.
15263          cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h.  */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h.  */
15269
15270 int
15271 main ()
15272 {
15273
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282   *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285   (eval "$ac_link") 2>conftest.er1
15286   ac_status=$?
15287   grep -v '^ *+' conftest.er1 >conftest.err
15288   rm -f conftest.er1
15289   cat conftest.err >&5
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); } &&
15292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293   { (case "(($ac_try" in
15294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295   *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298   (eval "$ac_try") 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest$ac_exeext'
15303   { (case "(($ac_try" in
15304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305   *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308   (eval "$ac_try") 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312
15313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15314 }'`
15315 # Check for a 64-bit object if we didn't find anything.
15316 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; }
15317 }'`; fi
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322
15323 fi
15324
15325 rm -f core conftest.err conftest.$ac_objext \
15326       conftest$ac_exeext conftest.$ac_ext
15327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15328
15329          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15330           # Warning - without using the other run time loading flags,
15331           # -berok will link without error, but may produce a broken library.
15332           no_undefined_flag=' ${wl}-bernotok'
15333           allow_undefined_flag=' ${wl}-berok'
15334           # Exported symbols can be pulled into shared objects from archives
15335           whole_archive_flag_spec='$convenience'
15336           archive_cmds_need_lc=yes
15337           # This is similar to how AIX traditionally builds its shared libraries.
15338           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'
15339         fi
15340       fi
15341       ;;
15342
15343     amigaos*)
15344       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)'
15345       hardcode_libdir_flag_spec='-L$libdir'
15346       hardcode_minus_L=yes
15347       # see comment about different semantics on the GNU ld section
15348       ld_shlibs=no
15349       ;;
15350
15351     bsdi[45]*)
15352       export_dynamic_flag_spec=-rdynamic
15353       ;;
15354
15355     cygwin* | mingw* | pw32*)
15356       # When not using gcc, we currently assume that we are using
15357       # Microsoft Visual C++.
15358       # hardcode_libdir_flag_spec is actually meaningless, as there is
15359       # no search path for DLLs.
15360       hardcode_libdir_flag_spec=' '
15361       allow_undefined_flag=unsupported
15362       # Tell ltmain to make .lib files, not .a files.
15363       libext=lib
15364       # Tell ltmain to make .dll files, not .so files.
15365       shrext_cmds=".dll"
15366       # FIXME: Setting linknames here is a bad hack.
15367       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15368       # The linker will automatically build a .lib file if we build a DLL.
15369       old_archive_From_new_cmds='true'
15370       # FIXME: Should let the user specify the lib program.
15371       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15372       fix_srcfile_path='`cygpath -w "$srcfile"`'
15373       enable_shared_with_static_runtimes=yes
15374       ;;
15375
15376     darwin* | rhapsody*)
15377       case $host_os in
15378         rhapsody* | darwin1.[012])
15379          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15380          ;;
15381        *) # Darwin 1.3 on
15382          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15383            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15384          else
15385            case ${MACOSX_DEPLOYMENT_TARGET} in
15386              10.[012])
15387                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15388                ;;
15389              10.*)
15390                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15391                ;;
15392            esac
15393          fi
15394          ;;
15395       esac
15396       archive_cmds_need_lc=no
15397       hardcode_direct=no
15398       hardcode_automatic=yes
15399       hardcode_shlibpath_var=unsupported
15400       whole_archive_flag_spec=''
15401       link_all_deplibs=yes
15402     if test "$GCC" = yes ; then
15403         output_verbose_link_cmd='echo'
15404         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15405       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407       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}'
15408       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}'
15409     else
15410       case $cc_basename in
15411         xlc*)
15412          output_verbose_link_cmd='echo'
15413          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15414          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15415           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15416          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}'
15417           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}'
15418           ;;
15419        *)
15420          ld_shlibs=no
15421           ;;
15422       esac
15423     fi
15424       ;;
15425
15426     dgux*)
15427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428       hardcode_libdir_flag_spec='-L$libdir'
15429       hardcode_shlibpath_var=no
15430       ;;
15431
15432     freebsd1*)
15433       ld_shlibs=no
15434       ;;
15435
15436     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15437     # support.  Future versions do this automatically, but an explicit c++rt0.o
15438     # does not break anything, and helps significantly (at the cost of a little
15439     # extra space).
15440     freebsd2.2*)
15441       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15442       hardcode_libdir_flag_spec='-R$libdir'
15443       hardcode_direct=yes
15444       hardcode_shlibpath_var=no
15445       ;;
15446
15447     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15448     freebsd2*)
15449       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15450       hardcode_direct=yes
15451       hardcode_minus_L=yes
15452       hardcode_shlibpath_var=no
15453       ;;
15454
15455     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15456     freebsd* | kfreebsd*-gnu | dragonfly*)
15457       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15458       hardcode_libdir_flag_spec='-R$libdir'
15459       hardcode_direct=yes
15460       hardcode_shlibpath_var=no
15461       ;;
15462
15463     hpux9*)
15464       if test "$GCC" = yes; then
15465         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'
15466       else
15467         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'
15468       fi
15469       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15470       hardcode_libdir_separator=:
15471       hardcode_direct=yes
15472
15473       # hardcode_minus_L: Not really in the search PATH,
15474       # but as the default location of the library.
15475       hardcode_minus_L=yes
15476       export_dynamic_flag_spec='${wl}-E'
15477       ;;
15478
15479     hpux10*)
15480       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15482       else
15483         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15484       fi
15485       if test "$with_gnu_ld" = no; then
15486         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15487         hardcode_libdir_separator=:
15488
15489         hardcode_direct=yes
15490         export_dynamic_flag_spec='${wl}-E'
15491
15492         # hardcode_minus_L: Not really in the search PATH,
15493         # but as the default location of the library.
15494         hardcode_minus_L=yes
15495       fi
15496       ;;
15497
15498     hpux11*)
15499       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15500         case $host_cpu in
15501         hppa*64*)
15502           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503           ;;
15504         ia64*)
15505           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15506           ;;
15507         *)
15508           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509           ;;
15510         esac
15511       else
15512         case $host_cpu in
15513         hppa*64*)
15514           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515           ;;
15516         ia64*)
15517           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15518           ;;
15519         *)
15520           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15521           ;;
15522         esac
15523       fi
15524       if test "$with_gnu_ld" = no; then
15525         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15526         hardcode_libdir_separator=:
15527
15528         case $host_cpu in
15529         hppa*64*|ia64*)
15530           hardcode_libdir_flag_spec_ld='+b $libdir'
15531           hardcode_direct=no
15532           hardcode_shlibpath_var=no
15533           ;;
15534         *)
15535           hardcode_direct=yes
15536           export_dynamic_flag_spec='${wl}-E'
15537
15538           # hardcode_minus_L: Not really in the search PATH,
15539           # but as the default location of the library.
15540           hardcode_minus_L=yes
15541           ;;
15542         esac
15543       fi
15544       ;;
15545
15546     irix5* | irix6* | nonstopux*)
15547       if test "$GCC" = yes; then
15548         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'
15549       else
15550         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'
15551         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15552       fi
15553       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15554       hardcode_libdir_separator=:
15555       link_all_deplibs=yes
15556       ;;
15557
15558     netbsd*)
15559       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15560         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15561       else
15562         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15563       fi
15564       hardcode_libdir_flag_spec='-R$libdir'
15565       hardcode_direct=yes
15566       hardcode_shlibpath_var=no
15567       ;;
15568
15569     newsos6)
15570       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15571       hardcode_direct=yes
15572       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15573       hardcode_libdir_separator=:
15574       hardcode_shlibpath_var=no
15575       ;;
15576
15577     openbsd*)
15578       hardcode_direct=yes
15579       hardcode_shlibpath_var=no
15580       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15581         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15582         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15583         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15584         export_dynamic_flag_spec='${wl}-E'
15585       else
15586        case $host_os in
15587          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15588            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589            hardcode_libdir_flag_spec='-R$libdir'
15590            ;;
15591          *)
15592            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15593            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15594            ;;
15595        esac
15596       fi
15597       ;;
15598
15599     os2*)
15600       hardcode_libdir_flag_spec='-L$libdir'
15601       hardcode_minus_L=yes
15602       allow_undefined_flag=unsupported
15603       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'
15604       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15605       ;;
15606
15607     osf3*)
15608       if test "$GCC" = yes; then
15609         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15610         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'
15611       else
15612         allow_undefined_flag=' -expect_unresolved \*'
15613         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'
15614       fi
15615       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15616       hardcode_libdir_separator=:
15617       ;;
15618
15619     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15620       if test "$GCC" = yes; then
15621         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15622         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'
15623         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15624       else
15625         allow_undefined_flag=' -expect_unresolved \*'
15626         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'
15627         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15628         $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'
15629
15630         # Both c and cxx compiler support -rpath directly
15631         hardcode_libdir_flag_spec='-rpath $libdir'
15632       fi
15633       hardcode_libdir_separator=:
15634       ;;
15635
15636     solaris*)
15637       no_undefined_flag=' -z text'
15638       if test "$GCC" = yes; then
15639         wlarc='${wl}'
15640         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15641         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15643       else
15644         wlarc=''
15645         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15647         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15648       fi
15649       hardcode_libdir_flag_spec='-R$libdir'
15650       hardcode_shlibpath_var=no
15651       case $host_os in
15652       solaris2.[0-5] | solaris2.[0-5].*) ;;
15653       *)
15654         # The compiler driver will combine linker options so we
15655         # cannot just pass the convience library names through
15656         # without $wl, iff we do not link with $LD.
15657         # Luckily, gcc supports the same syntax we need for Sun Studio.
15658         # Supported since Solaris 2.6 (maybe 2.5.1?)
15659         case $wlarc in
15660         '')
15661           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15662         *)
15663           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' ;;
15664         esac ;;
15665       esac
15666       link_all_deplibs=yes
15667       ;;
15668
15669     sunos4*)
15670       if test "x$host_vendor" = xsequent; then
15671         # Use $CC to link under sequent, because it throws in some extra .o
15672         # files that make .init and .fini sections work.
15673         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15674       else
15675         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15676       fi
15677       hardcode_libdir_flag_spec='-L$libdir'
15678       hardcode_direct=yes
15679       hardcode_minus_L=yes
15680       hardcode_shlibpath_var=no
15681       ;;
15682
15683     sysv4)
15684       case $host_vendor in
15685         sni)
15686           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687           hardcode_direct=yes # is this really true???
15688         ;;
15689         siemens)
15690           ## LD is ld it makes a PLAMLIB
15691           ## CC just makes a GrossModule.
15692           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693           reload_cmds='$CC -r -o $output$reload_objs'
15694           hardcode_direct=no
15695         ;;
15696         motorola)
15697           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15699         ;;
15700       esac
15701       runpath_var='LD_RUN_PATH'
15702       hardcode_shlibpath_var=no
15703       ;;
15704
15705     sysv4.3*)
15706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707       hardcode_shlibpath_var=no
15708       export_dynamic_flag_spec='-Bexport'
15709       ;;
15710
15711     sysv4*MP*)
15712       if test -d /usr/nec; then
15713         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714         hardcode_shlibpath_var=no
15715         runpath_var=LD_RUN_PATH
15716         hardcode_runpath_var=yes
15717         ld_shlibs=yes
15718       fi
15719       ;;
15720
15721     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15722       no_undefined_flag='${wl}-z,text'
15723       archive_cmds_need_lc=no
15724       hardcode_shlibpath_var=no
15725       runpath_var='LD_RUN_PATH'
15726
15727       if test "$GCC" = yes; then
15728         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730       else
15731         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733       fi
15734       ;;
15735
15736     sysv5* | sco3.2v5* | sco5v6*)
15737       # Note: We can NOT use -z defs as we might desire, because we do not
15738       # link with -lc, and that would cause any symbols used from libc to
15739       # always be unresolved, which means just about no library would
15740       # ever link correctly.  If we're not using GNU ld we use -z text
15741       # though, which does catch some bad symbols but isn't as heavy-handed
15742       # as -z defs.
15743       no_undefined_flag='${wl}-z,text'
15744       allow_undefined_flag='${wl}-z,nodefs'
15745       archive_cmds_need_lc=no
15746       hardcode_shlibpath_var=no
15747       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748       hardcode_libdir_separator=':'
15749       link_all_deplibs=yes
15750       export_dynamic_flag_spec='${wl}-Bexport'
15751       runpath_var='LD_RUN_PATH'
15752
15753       if test "$GCC" = yes; then
15754         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756       else
15757         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759       fi
15760       ;;
15761
15762     uts4*)
15763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764       hardcode_libdir_flag_spec='-L$libdir'
15765       hardcode_shlibpath_var=no
15766       ;;
15767
15768     *)
15769       ld_shlibs=no
15770       ;;
15771     esac
15772   fi
15773
15774 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15775 echo "${ECHO_T}$ld_shlibs" >&6; }
15776 test "$ld_shlibs" = no && can_build_shared=no
15777
15778 #
15779 # Do we need to explicitly link libc?
15780 #
15781 case "x$archive_cmds_need_lc" in
15782 x|xyes)
15783   # Assume -lc should be added
15784   archive_cmds_need_lc=yes
15785
15786   if test "$enable_shared" = yes && test "$GCC" = yes; then
15787     case $archive_cmds in
15788     *'~'*)
15789       # FIXME: we may have to deal with multi-command sequences.
15790       ;;
15791     '$CC '*)
15792       # Test whether the compiler implicitly links with -lc since on some
15793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794       # to ld, don't add -lc before -lgcc.
15795       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15797       $rm conftest*
15798       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
15800       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801   (eval $ac_compile) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } 2>conftest.err; then
15805         soname=conftest
15806         lib=conftest
15807         libobjs=conftest.$ac_objext
15808         deplibs=
15809         wl=$lt_prog_compiler_wl
15810         pic_flag=$lt_prog_compiler_pic
15811         compiler_flags=-v
15812         linker_flags=-v
15813         verstring=
15814         output_objdir=.
15815         libname=conftest
15816         lt_save_allow_undefined_flag=$allow_undefined_flag
15817         allow_undefined_flag=
15818         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }
15823         then
15824           archive_cmds_need_lc=no
15825         else
15826           archive_cmds_need_lc=yes
15827         fi
15828         allow_undefined_flag=$lt_save_allow_undefined_flag
15829       else
15830         cat conftest.err 1>&5
15831       fi
15832       $rm conftest*
15833       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15834 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15835       ;;
15836     esac
15837   fi
15838   ;;
15839 esac
15840
15841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15843 library_names_spec=
15844 libname_spec='lib$name'
15845 soname_spec=
15846 shrext_cmds=".so"
15847 postinstall_cmds=
15848 postuninstall_cmds=
15849 finish_cmds=
15850 finish_eval=
15851 shlibpath_var=
15852 shlibpath_overrides_runpath=unknown
15853 version_type=none
15854 dynamic_linker="$host_os ld.so"
15855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856 if test "$GCC" = yes; then
15857   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15859     # if the path contains ";" then we assume it to be the separator
15860     # otherwise default to the standard path separator (i.e. ":") - it is
15861     # assumed that no part of a normal pathname contains ";" but that should
15862     # okay in the real world where ";" in dirpaths is itself problematic.
15863     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15864   else
15865     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15866   fi
15867 else
15868   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15869 fi
15870 need_lib_prefix=unknown
15871 hardcode_into_libs=no
15872
15873 # when you set need_version to no, make sure it does not cause -set_version
15874 # flags to be left without arguments
15875 need_version=unknown
15876
15877 case $host_os in
15878 aix3*)
15879   version_type=linux
15880   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15881   shlibpath_var=LIBPATH
15882
15883   # AIX 3 has no versioning support, so we append a major version to the name.
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   ;;
15886
15887 aix4* | aix5*)
15888   version_type=linux
15889   need_lib_prefix=no
15890   need_version=no
15891   hardcode_into_libs=yes
15892   if test "$host_cpu" = ia64; then
15893     # AIX 5 supports IA64
15894     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15895     shlibpath_var=LD_LIBRARY_PATH
15896   else
15897     # With GCC up to 2.95.x, collect2 would create an import file
15898     # for dependence libraries.  The import file would start with
15899     # the line `#! .'.  This would cause the generated library to
15900     # depend on `.', always an invalid library.  This was fixed in
15901     # development snapshots of GCC prior to 3.0.
15902     case $host_os in
15903       aix4 | aix4.[01] | aix4.[01].*)
15904       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15905            echo ' yes '
15906            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15907         :
15908       else
15909         can_build_shared=no
15910       fi
15911       ;;
15912     esac
15913     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15914     # soname into executable. Probably we can add versioning support to
15915     # collect2, so additional links can be useful in future.
15916     if test "$aix_use_runtimelinking" = yes; then
15917       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15918       # instead of lib<name>.a to let people know that these are not
15919       # typical AIX shared libraries.
15920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921     else
15922       # We preserve .a as extension for shared libraries through AIX4.2
15923       # and later when we are not doing run time linking.
15924       library_names_spec='${libname}${release}.a $libname.a'
15925       soname_spec='${libname}${release}${shared_ext}$major'
15926     fi
15927     shlibpath_var=LIBPATH
15928   fi
15929   ;;
15930
15931 amigaos*)
15932   library_names_spec='$libname.ixlibrary $libname.a'
15933   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15934   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'
15935   ;;
15936
15937 beos*)
15938   library_names_spec='${libname}${shared_ext}'
15939   dynamic_linker="$host_os ld.so"
15940   shlibpath_var=LIBRARY_PATH
15941   ;;
15942
15943 bsdi[45]*)
15944   version_type=linux
15945   need_version=no
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952   # the default ld.so.conf also contains /usr/contrib/lib and
15953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954   # libtool to hard-code these into programs
15955   ;;
15956
15957 cygwin* | mingw* | pw32*)
15958   version_type=windows
15959   shrext_cmds=".dll"
15960   need_version=no
15961   need_lib_prefix=no
15962
15963   case $GCC,$host_os in
15964   yes,cygwin* | yes,mingw* | yes,pw32*)
15965     library_names_spec='$libname.dll.a'
15966     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15967     postinstall_cmds='base_file=`basename \${file}`~
15968       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15969       dldir=$destdir/`dirname \$dlpath`~
15970       test -d \$dldir || mkdir -p \$dldir~
15971       $install_prog $dir/$dlname \$dldir/$dlname~
15972       chmod a+x \$dldir/$dlname'
15973     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15974       dlpath=$dir/\$dldll~
15975        $rm \$dlpath'
15976     shlibpath_overrides_runpath=yes
15977
15978     case $host_os in
15979     cygwin*)
15980       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15981       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15983       ;;
15984     mingw*)
15985       # MinGW DLLs use traditional 'lib' prefix
15986       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15989         # It is most probably a Windows format PATH printed by
15990         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15991         # path with ; separators, and with drive letters. We can handle the
15992         # drive letters (cygwin fileutils understands them), so leave them,
15993         # especially as we might pass files found there to a mingw objdump,
15994         # which wouldn't understand a cygwinified path. Ahh.
15995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15996       else
15997         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15998       fi
15999       ;;
16000     pw32*)
16001       # pw32 DLLs use 'pw' prefix rather than 'lib'
16002       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003       ;;
16004     esac
16005     ;;
16006
16007   *)
16008     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16009     ;;
16010   esac
16011   dynamic_linker='Win32 ld.exe'
16012   # FIXME: first we should search . and the directory the executable is in
16013   shlibpath_var=PATH
16014   ;;
16015
16016 darwin* | rhapsody*)
16017   dynamic_linker="$host_os dyld"
16018   version_type=darwin
16019   need_lib_prefix=no
16020   need_version=no
16021   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16022   soname_spec='${libname}${release}${major}$shared_ext'
16023   shlibpath_overrides_runpath=yes
16024   shlibpath_var=DYLD_LIBRARY_PATH
16025   shrext_cmds='.dylib'
16026   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16027   if test "$GCC" = yes; then
16028     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"`
16029   else
16030     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16031   fi
16032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16033   ;;
16034
16035 dgux*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   ;;
16043
16044 freebsd1*)
16045   dynamic_linker=no
16046   ;;
16047
16048 kfreebsd*-gnu)
16049   version_type=linux
16050   need_lib_prefix=no
16051   need_version=no
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053   soname_spec='${libname}${release}${shared_ext}$major'
16054   shlibpath_var=LD_LIBRARY_PATH
16055   shlibpath_overrides_runpath=no
16056   hardcode_into_libs=yes
16057   dynamic_linker='GNU ld.so'
16058   ;;
16059
16060 freebsd* | dragonfly*)
16061   # DragonFly does not have aout.  When/if they implement a new
16062   # versioning mechanism, adjust this.
16063   if test -x /usr/bin/objformat; then
16064     objformat=`/usr/bin/objformat`
16065   else
16066     case $host_os in
16067     freebsd[123]*) objformat=aout ;;
16068     *) objformat=elf ;;
16069     esac
16070   fi
16071   version_type=freebsd-$objformat
16072   case $version_type in
16073     freebsd-elf*)
16074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16075       need_version=no
16076       need_lib_prefix=no
16077       ;;
16078     freebsd-*)
16079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16080       need_version=yes
16081       ;;
16082   esac
16083   shlibpath_var=LD_LIBRARY_PATH
16084   case $host_os in
16085   freebsd2*)
16086     shlibpath_overrides_runpath=yes
16087     ;;
16088   freebsd3.[01]* | freebsdelf3.[01]*)
16089     shlibpath_overrides_runpath=yes
16090     hardcode_into_libs=yes
16091     ;;
16092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16094     shlibpath_overrides_runpath=no
16095     hardcode_into_libs=yes
16096     ;;
16097   freebsd*) # from 4.6 on
16098     shlibpath_overrides_runpath=yes
16099     hardcode_into_libs=yes
16100     ;;
16101   esac
16102   ;;
16103
16104 gnu*)
16105   version_type=linux
16106   need_lib_prefix=no
16107   need_version=no
16108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16109   soname_spec='${libname}${release}${shared_ext}$major'
16110   shlibpath_var=LD_LIBRARY_PATH
16111   hardcode_into_libs=yes
16112   ;;
16113
16114 hpux9* | hpux10* | hpux11*)
16115   # Give a soname corresponding to the major version so that dld.sl refuses to
16116   # link against other versions.
16117   version_type=sunos
16118   need_lib_prefix=no
16119   need_version=no
16120   case $host_cpu in
16121   ia64*)
16122     shrext_cmds='.so'
16123     hardcode_into_libs=yes
16124     dynamic_linker="$host_os dld.so"
16125     shlibpath_var=LD_LIBRARY_PATH
16126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128     soname_spec='${libname}${release}${shared_ext}$major'
16129     if test "X$HPUX_IA64_MODE" = X32; then
16130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16131     else
16132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16133     fi
16134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16135     ;;
16136    hppa*64*)
16137      shrext_cmds='.sl'
16138      hardcode_into_libs=yes
16139      dynamic_linker="$host_os dld.sl"
16140      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16141      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143      soname_spec='${libname}${release}${shared_ext}$major'
16144      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16145      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16146      ;;
16147    *)
16148     shrext_cmds='.sl'
16149     dynamic_linker="$host_os dld.sl"
16150     shlibpath_var=SHLIB_PATH
16151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153     soname_spec='${libname}${release}${shared_ext}$major'
16154     ;;
16155   esac
16156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16157   postinstall_cmds='chmod 555 $lib'
16158   ;;
16159
16160 interix3*)
16161   version_type=linux
16162   need_lib_prefix=no
16163   need_version=no
16164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16165   soname_spec='${libname}${release}${shared_ext}$major'
16166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=no
16169   hardcode_into_libs=yes
16170   ;;
16171
16172 irix5* | irix6* | nonstopux*)
16173   case $host_os in
16174     nonstopux*) version_type=nonstopux ;;
16175     *)
16176         if test "$lt_cv_prog_gnu_ld" = yes; then
16177                 version_type=linux
16178         else
16179                 version_type=irix
16180         fi ;;
16181   esac
16182   need_lib_prefix=no
16183   need_version=no
16184   soname_spec='${libname}${release}${shared_ext}$major'
16185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16186   case $host_os in
16187   irix5* | nonstopux*)
16188     libsuff= shlibsuff=
16189     ;;
16190   *)
16191     case $LD in # libtool.m4 will add one of these switches to LD
16192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16193       libsuff= shlibsuff= libmagic=32-bit;;
16194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16195       libsuff=32 shlibsuff=N32 libmagic=N32;;
16196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16198     *) libsuff= shlibsuff= libmagic=never-match;;
16199     esac
16200     ;;
16201   esac
16202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16203   shlibpath_overrides_runpath=no
16204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16206   hardcode_into_libs=yes
16207   ;;
16208
16209 # No shared lib support for Linux oldld, aout, or coff.
16210 linux*oldld* | linux*aout* | linux*coff*)
16211   dynamic_linker=no
16212   ;;
16213
16214 # This must be Linux ELF.
16215 linux*)
16216   version_type=linux
16217   need_lib_prefix=no
16218   need_version=no
16219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220   soname_spec='${libname}${release}${shared_ext}$major'
16221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16222   shlibpath_var=LD_LIBRARY_PATH
16223   shlibpath_overrides_runpath=no
16224   # This implies no fast_install, which is unacceptable.
16225   # Some rework will be needed to allow for fast_install
16226   # before this can be enabled.
16227   hardcode_into_libs=yes
16228
16229   # Append ld.so.conf contents to the search path
16230   if test -f /etc/ld.so.conf; then
16231     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' ' '`
16232     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16233   fi
16234
16235   # We used to test for /lib/ld.so.1 and disable shared libraries on
16236   # powerpc, because MkLinux only supported shared libraries with the
16237   # GNU dynamic linker.  Since this was broken with cross compilers,
16238   # most powerpc-linux boxes support dynamic linking these days and
16239   # people can always --disable-shared, the test was removed, and we
16240   # assume the GNU/Linux dynamic linker is in use.
16241   dynamic_linker='GNU/Linux ld.so'
16242   ;;
16243
16244 knetbsd*-gnu)
16245   version_type=linux
16246   need_lib_prefix=no
16247   need_version=no
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   shlibpath_overrides_runpath=no
16252   hardcode_into_libs=yes
16253   dynamic_linker='GNU ld.so'
16254   ;;
16255
16256 netbsd*)
16257   version_type=sunos
16258   need_lib_prefix=no
16259   need_version=no
16260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16263     dynamic_linker='NetBSD (a.out) ld.so'
16264   else
16265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16266     soname_spec='${libname}${release}${shared_ext}$major'
16267     dynamic_linker='NetBSD ld.elf_so'
16268   fi
16269   shlibpath_var=LD_LIBRARY_PATH
16270   shlibpath_overrides_runpath=yes
16271   hardcode_into_libs=yes
16272   ;;
16273
16274 newsos6)
16275   version_type=linux
16276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277   shlibpath_var=LD_LIBRARY_PATH
16278   shlibpath_overrides_runpath=yes
16279   ;;
16280
16281 nto-qnx*)
16282   version_type=linux
16283   need_lib_prefix=no
16284   need_version=no
16285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286   soname_spec='${libname}${release}${shared_ext}$major'
16287   shlibpath_var=LD_LIBRARY_PATH
16288   shlibpath_overrides_runpath=yes
16289   ;;
16290
16291 openbsd*)
16292   version_type=sunos
16293   sys_lib_dlsearch_path_spec="/usr/lib"
16294   need_lib_prefix=no
16295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16296   case $host_os in
16297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16298     *)                         need_version=no  ;;
16299   esac
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16304     case $host_os in
16305       openbsd2.[89] | openbsd2.[89].*)
16306         shlibpath_overrides_runpath=no
16307         ;;
16308       *)
16309         shlibpath_overrides_runpath=yes
16310         ;;
16311       esac
16312   else
16313     shlibpath_overrides_runpath=yes
16314   fi
16315   ;;
16316
16317 os2*)
16318   libname_spec='$name'
16319   shrext_cmds=".dll"
16320   need_lib_prefix=no
16321   library_names_spec='$libname${shared_ext} $libname.a'
16322   dynamic_linker='OS/2 ld.exe'
16323   shlibpath_var=LIBPATH
16324   ;;
16325
16326 osf3* | osf4* | osf5*)
16327   version_type=osf
16328   need_lib_prefix=no
16329   need_version=no
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16335   ;;
16336
16337 solaris*)
16338   version_type=linux
16339   need_lib_prefix=no
16340   need_version=no
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342   soname_spec='${libname}${release}${shared_ext}$major'
16343   shlibpath_var=LD_LIBRARY_PATH
16344   shlibpath_overrides_runpath=yes
16345   hardcode_into_libs=yes
16346   # ldd complains unless libraries are executable
16347   postinstall_cmds='chmod +x $lib'
16348   ;;
16349
16350 sunos4*)
16351   version_type=sunos
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   shlibpath_overrides_runpath=yes
16356   if test "$with_gnu_ld" = yes; then
16357     need_lib_prefix=no
16358   fi
16359   need_version=yes
16360   ;;
16361
16362 sysv4 | sysv4.3*)
16363   version_type=linux
16364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365   soname_spec='${libname}${release}${shared_ext}$major'
16366   shlibpath_var=LD_LIBRARY_PATH
16367   case $host_vendor in
16368     sni)
16369       shlibpath_overrides_runpath=no
16370       need_lib_prefix=no
16371       export_dynamic_flag_spec='${wl}-Blargedynsym'
16372       runpath_var=LD_RUN_PATH
16373       ;;
16374     siemens)
16375       need_lib_prefix=no
16376       ;;
16377     motorola)
16378       need_lib_prefix=no
16379       need_version=no
16380       shlibpath_overrides_runpath=no
16381       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16382       ;;
16383   esac
16384   ;;
16385
16386 sysv4*MP*)
16387   if test -d /usr/nec ;then
16388     version_type=linux
16389     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16390     soname_spec='$libname${shared_ext}.$major'
16391     shlibpath_var=LD_LIBRARY_PATH
16392   fi
16393   ;;
16394
16395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16396   version_type=freebsd-elf
16397   need_lib_prefix=no
16398   need_version=no
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16400   soname_spec='${libname}${release}${shared_ext}$major'
16401   shlibpath_var=LD_LIBRARY_PATH
16402   hardcode_into_libs=yes
16403   if test "$with_gnu_ld" = yes; then
16404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16405     shlibpath_overrides_runpath=no
16406   else
16407     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16408     shlibpath_overrides_runpath=yes
16409     case $host_os in
16410       sco3.2v5*)
16411         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16412         ;;
16413     esac
16414   fi
16415   sys_lib_dlsearch_path_spec='/usr/lib'
16416   ;;
16417
16418 uts4*)
16419   version_type=linux
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421   soname_spec='${libname}${release}${shared_ext}$major'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   ;;
16424
16425 *)
16426   dynamic_linker=no
16427   ;;
16428 esac
16429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16430 echo "${ECHO_T}$dynamic_linker" >&6; }
16431 test "$dynamic_linker" = no && can_build_shared=no
16432
16433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16434 if test "$GCC" = yes; then
16435   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16436 fi
16437
16438 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16439 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16440 hardcode_action=
16441 if test -n "$hardcode_libdir_flag_spec" || \
16442    test -n "$runpath_var" || \
16443    test "X$hardcode_automatic" = "Xyes" ; then
16444
16445   # We can hardcode non-existant directories.
16446   if test "$hardcode_direct" != no &&
16447      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16448      # have to relink, otherwise we might link with an installed library
16449      # when we should be linking with a yet-to-be-installed one
16450      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16451      test "$hardcode_minus_L" != no; then
16452     # Linking always hardcodes the temporary library directory.
16453     hardcode_action=relink
16454   else
16455     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16456     hardcode_action=immediate
16457   fi
16458 else
16459   # We cannot hardcode anything, or else we can only hardcode existing
16460   # directories.
16461   hardcode_action=unsupported
16462 fi
16463 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16464 echo "${ECHO_T}$hardcode_action" >&6; }
16465
16466 if test "$hardcode_action" = relink; then
16467   # Fast installation is not supported
16468   enable_fast_install=no
16469 elif test "$shlibpath_overrides_runpath" = yes ||
16470      test "$enable_shared" = no; then
16471   # Fast installation is not necessary
16472   enable_fast_install=needless
16473 fi
16474
16475 striplib=
16476 old_striplib=
16477 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16478 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16479 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16480   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16481   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16482   { echo "$as_me:$LINENO: result: yes" >&5
16483 echo "${ECHO_T}yes" >&6; }
16484 else
16485 # FIXME - insert some real tests, host_os isn't really good enough
16486   case $host_os in
16487    darwin*)
16488        if test -n "$STRIP" ; then
16489          striplib="$STRIP -x"
16490          { echo "$as_me:$LINENO: result: yes" >&5
16491 echo "${ECHO_T}yes" >&6; }
16492        else
16493   { echo "$as_me:$LINENO: result: no" >&5
16494 echo "${ECHO_T}no" >&6; }
16495 fi
16496        ;;
16497    *)
16498   { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16500     ;;
16501   esac
16502 fi
16503
16504 if test "x$enable_dlopen" != xyes; then
16505   enable_dlopen=unknown
16506   enable_dlopen_self=unknown
16507   enable_dlopen_self_static=unknown
16508 else
16509   lt_cv_dlopen=no
16510   lt_cv_dlopen_libs=
16511
16512   case $host_os in
16513   beos*)
16514     lt_cv_dlopen="load_add_on"
16515     lt_cv_dlopen_libs=
16516     lt_cv_dlopen_self=yes
16517     ;;
16518
16519   mingw* | pw32*)
16520     lt_cv_dlopen="LoadLibrary"
16521     lt_cv_dlopen_libs=
16522    ;;
16523
16524   cygwin*)
16525     lt_cv_dlopen="dlopen"
16526     lt_cv_dlopen_libs=
16527    ;;
16528
16529   darwin*)
16530   # if libdl is installed we need to link against it
16531     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536   ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-ldl  $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544
16545 /* Override any GCC internal prototype to avoid an error.
16546    Use char because int might match the return type of a GCC
16547    builtin and then its argument prototype would still apply.  */
16548 #ifdef __cplusplus
16549 extern "C"
16550 #endif
16551 char dlopen ();
16552 int
16553 main ()
16554 {
16555 return dlopen ();
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_link") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575   { (case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_try") 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; } &&
16584          { ac_try='test -s conftest$ac_exeext'
16585   { (case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_try") 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; }; then
16594   ac_cv_lib_dl_dlopen=yes
16595 else
16596   echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599         ac_cv_lib_dl_dlopen=no
16600 fi
16601
16602 rm -f core conftest.err conftest.$ac_objext \
16603       conftest$ac_exeext conftest.$ac_ext
16604 LIBS=$ac_check_lib_save_LIBS
16605 fi
16606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16607 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16608 if test $ac_cv_lib_dl_dlopen = yes; then
16609   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16610 else
16611
16612     lt_cv_dlopen="dyld"
16613     lt_cv_dlopen_libs=
16614     lt_cv_dlopen_self=yes
16615
16616 fi
16617
16618    ;;
16619
16620   *)
16621     { echo "$as_me:$LINENO: checking for shl_load" >&5
16622 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16623 if test "${ac_cv_func_shl_load+set}" = set; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16634 #define shl_load innocuous_shl_load
16635
16636 /* System header to define __stub macros and hopefully few prototypes,
16637     which can conflict with char shl_load (); below.
16638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639     <limits.h> exists even on freestanding compilers.  */
16640
16641 #ifdef __STDC__
16642 # include <limits.h>
16643 #else
16644 # include <assert.h>
16645 #endif
16646
16647 #undef shl_load
16648
16649 /* Override any GCC internal prototype to avoid an error.
16650    Use char because int might match the return type of a GCC
16651    builtin and then its argument prototype would still apply.  */
16652 #ifdef __cplusplus
16653 extern "C"
16654 #endif
16655 char shl_load ();
16656 /* The GNU C library defines this for functions which it implements
16657     to always fail with ENOSYS.  Some functions are actually named
16658     something starting with __ and the normal name is an alias.  */
16659 #if defined __stub_shl_load || defined __stub___shl_load
16660 choke me
16661 #endif
16662
16663 int
16664 main ()
16665 {
16666 return shl_load ();
16667   ;
16668   return 0;
16669 }
16670 _ACEOF
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675   *) ac_try_echo=$ac_try;;
16676 esac
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678   (eval "$ac_link") 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; } &&
16695          { ac_try='test -s conftest$ac_exeext'
16696   { (case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_try") 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_func_shl_load=yes
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710         ac_cv_func_shl_load=no
16711 fi
16712
16713 rm -f core conftest.err conftest.$ac_objext \
16714       conftest$ac_exeext conftest.$ac_ext
16715 fi
16716 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16717 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16718 if test $ac_cv_func_shl_load = yes; then
16719   lt_cv_dlopen="shl_load"
16720 else
16721   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16722 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16723 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16724   echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726   ac_check_lib_save_LIBS=$LIBS
16727 LIBS="-ldld  $LIBS"
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734
16735 /* Override any GCC internal prototype to avoid an error.
16736    Use char because int might match the return type of a GCC
16737    builtin and then its argument prototype would still apply.  */
16738 #ifdef __cplusplus
16739 extern "C"
16740 #endif
16741 char shl_load ();
16742 int
16743 main ()
16744 {
16745 return shl_load ();
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_link") 2>conftest.er1
16758   ac_status=$?
16759   grep -v '^ *+' conftest.er1 >conftest.err
16760   rm -f conftest.er1
16761   cat conftest.err >&5
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); } &&
16764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; } &&
16774          { ac_try='test -s conftest$ac_exeext'
16775   { (case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_try") 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; }; then
16784   ac_cv_lib_dld_shl_load=yes
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789         ac_cv_lib_dld_shl_load=no
16790 fi
16791
16792 rm -f core conftest.err conftest.$ac_objext \
16793       conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16795 fi
16796 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16797 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16798 if test $ac_cv_lib_dld_shl_load = yes; then
16799   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16800 else
16801   { echo "$as_me:$LINENO: checking for dlopen" >&5
16802 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16803 if test "${ac_cv_func_dlopen+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16814 #define dlopen innocuous_dlopen
16815
16816 /* System header to define __stub macros and hopefully few prototypes,
16817     which can conflict with char dlopen (); below.
16818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819     <limits.h> exists even on freestanding compilers.  */
16820
16821 #ifdef __STDC__
16822 # include <limits.h>
16823 #else
16824 # include <assert.h>
16825 #endif
16826
16827 #undef dlopen
16828
16829 /* Override any GCC internal prototype to avoid an error.
16830    Use char because int might match the return type of a GCC
16831    builtin and then its argument prototype would still apply.  */
16832 #ifdef __cplusplus
16833 extern "C"
16834 #endif
16835 char dlopen ();
16836 /* The GNU C library defines this for functions which it implements
16837     to always fail with ENOSYS.  Some functions are actually named
16838     something starting with __ and the normal name is an alias.  */
16839 #if defined __stub_dlopen || defined __stub___dlopen
16840 choke me
16841 #endif
16842
16843 int
16844 main ()
16845 {
16846 return dlopen ();
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest$ac_exeext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   ac_cv_func_dlopen=yes
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         ac_cv_func_dlopen=no
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext \
16894       conftest$ac_exeext conftest.$ac_ext
16895 fi
16896 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16897 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16898 if test $ac_cv_func_dlopen = yes; then
16899   lt_cv_dlopen="dlopen"
16900 else
16901   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   ac_check_lib_save_LIBS=$LIBS
16907 LIBS="-ldl  $LIBS"
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 /* Override any GCC internal prototype to avoid an error.
16916    Use char because int might match the return type of a GCC
16917    builtin and then its argument prototype would still apply.  */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 char dlopen ();
16922 int
16923 main ()
16924 {
16925 return dlopen ();
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (ac_try="$ac_link"
16932 case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_link") 2>conftest.er1
16938   ac_status=$?
16939   grep -v '^ *+' conftest.er1 >conftest.err
16940   rm -f conftest.er1
16941   cat conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945   { (case "(($ac_try" in
16946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947   *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950   (eval "$ac_try") 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); }; } &&
16954          { ac_try='test -s conftest$ac_exeext'
16955   { (case "(($ac_try" in
16956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957   *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960   (eval "$ac_try") 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_cv_lib_dl_dlopen=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969         ac_cv_lib_dl_dlopen=no
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext \
16973       conftest$ac_exeext conftest.$ac_ext
16974 LIBS=$ac_check_lib_save_LIBS
16975 fi
16976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16978 if test $ac_cv_lib_dl_dlopen = yes; then
16979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16980 else
16981   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   ac_check_lib_save_LIBS=$LIBS
16987 LIBS="-lsvld  $LIBS"
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994
16995 /* Override any GCC internal prototype to avoid an error.
16996    Use char because int might match the return type of a GCC
16997    builtin and then its argument prototype would still apply.  */
16998 #ifdef __cplusplus
16999 extern "C"
17000 #endif
17001 char dlopen ();
17002 int
17003 main ()
17004 {
17005 return dlopen ();
17006   ;
17007   return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_link") 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025   { (case "(($ac_try" in
17026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027   *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030   (eval "$ac_try") 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_try") 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; }; then
17044   ac_cv_lib_svld_dlopen=yes
17045 else
17046   echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049         ac_cv_lib_svld_dlopen=no
17050 fi
17051
17052 rm -f core conftest.err conftest.$ac_objext \
17053       conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17055 fi
17056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17058 if test $ac_cv_lib_svld_dlopen = yes; then
17059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17060 else
17061   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   ac_check_lib_save_LIBS=$LIBS
17067 LIBS="-ldld  $LIBS"
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074
17075 /* Override any GCC internal prototype to avoid an error.
17076    Use char because int might match the return type of a GCC
17077    builtin and then its argument prototype would still apply.  */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char dld_link ();
17082 int
17083 main ()
17084 {
17085 return dld_link ();
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_link") 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105   { (case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_try") 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; } &&
17114          { ac_try='test -s conftest$ac_exeext'
17115   { (case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_try") 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124   ac_cv_lib_dld_dld_link=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129         ac_cv_lib_dld_dld_link=no
17130 fi
17131
17132 rm -f core conftest.err conftest.$ac_objext \
17133       conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17135 fi
17136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17138 if test $ac_cv_lib_dld_dld_link = yes; then
17139   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17140 fi
17141
17142
17143 fi
17144
17145
17146 fi
17147
17148
17149 fi
17150
17151
17152 fi
17153
17154
17155 fi
17156
17157     ;;
17158   esac
17159
17160   if test "x$lt_cv_dlopen" != xno; then
17161     enable_dlopen=yes
17162   else
17163     enable_dlopen=no
17164   fi
17165
17166   case $lt_cv_dlopen in
17167   dlopen)
17168     save_CPPFLAGS="$CPPFLAGS"
17169     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17170
17171     save_LDFLAGS="$LDFLAGS"
17172     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17173
17174     save_LIBS="$LIBS"
17175     LIBS="$lt_cv_dlopen_libs $LIBS"
17176
17177     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17178 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17179 if test "${lt_cv_dlopen_self+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182           if test "$cross_compiling" = yes; then :
17183   lt_cv_dlopen_self=cross
17184 else
17185   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17186   lt_status=$lt_dlunknown
17187   cat > conftest.$ac_ext <<EOF
17188 #line 17188 "configure"
17189 #include "confdefs.h"
17190
17191 #if HAVE_DLFCN_H
17192 #include <dlfcn.h>
17193 #endif
17194
17195 #include <stdio.h>
17196
17197 #ifdef RTLD_GLOBAL
17198 #  define LT_DLGLOBAL           RTLD_GLOBAL
17199 #else
17200 #  ifdef DL_GLOBAL
17201 #    define LT_DLGLOBAL         DL_GLOBAL
17202 #  else
17203 #    define LT_DLGLOBAL         0
17204 #  endif
17205 #endif
17206
17207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17208    find out it does not work in some platform. */
17209 #ifndef LT_DLLAZY_OR_NOW
17210 #  ifdef RTLD_LAZY
17211 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17212 #  else
17213 #    ifdef DL_LAZY
17214 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17215 #    else
17216 #      ifdef RTLD_NOW
17217 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17218 #      else
17219 #        ifdef DL_NOW
17220 #          define LT_DLLAZY_OR_NOW      DL_NOW
17221 #        else
17222 #          define LT_DLLAZY_OR_NOW      0
17223 #        endif
17224 #      endif
17225 #    endif
17226 #  endif
17227 #endif
17228
17229 #ifdef __cplusplus
17230 extern "C" void exit (int);
17231 #endif
17232
17233 void fnord() { int i=42;}
17234 int main ()
17235 {
17236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17237   int status = $lt_dlunknown;
17238
17239   if (self)
17240     {
17241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17242       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17243       /* dlclose (self); */
17244     }
17245   else
17246     puts (dlerror ());
17247
17248     exit (status);
17249 }
17250 EOF
17251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252   (eval $ac_link) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17256     (./conftest; exit; ) >&5 2>/dev/null
17257     lt_status=$?
17258     case x$lt_status in
17259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17261       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17262     esac
17263   else :
17264     # compilation failed
17265     lt_cv_dlopen_self=no
17266   fi
17267 fi
17268 rm -fr conftest*
17269
17270
17271 fi
17272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17274
17275     if test "x$lt_cv_dlopen_self" = xyes; then
17276       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17277       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17279 if test "${lt_cv_dlopen_self_static+set}" = set; then
17280   echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282           if test "$cross_compiling" = yes; then :
17283   lt_cv_dlopen_self_static=cross
17284 else
17285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17286   lt_status=$lt_dlunknown
17287   cat > conftest.$ac_ext <<EOF
17288 #line 17288 "configure"
17289 #include "confdefs.h"
17290
17291 #if HAVE_DLFCN_H
17292 #include <dlfcn.h>
17293 #endif
17294
17295 #include <stdio.h>
17296
17297 #ifdef RTLD_GLOBAL
17298 #  define LT_DLGLOBAL           RTLD_GLOBAL
17299 #else
17300 #  ifdef DL_GLOBAL
17301 #    define LT_DLGLOBAL         DL_GLOBAL
17302 #  else
17303 #    define LT_DLGLOBAL         0
17304 #  endif
17305 #endif
17306
17307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17308    find out it does not work in some platform. */
17309 #ifndef LT_DLLAZY_OR_NOW
17310 #  ifdef RTLD_LAZY
17311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17312 #  else
17313 #    ifdef DL_LAZY
17314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17315 #    else
17316 #      ifdef RTLD_NOW
17317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17318 #      else
17319 #        ifdef DL_NOW
17320 #          define LT_DLLAZY_OR_NOW      DL_NOW
17321 #        else
17322 #          define LT_DLLAZY_OR_NOW      0
17323 #        endif
17324 #      endif
17325 #    endif
17326 #  endif
17327 #endif
17328
17329 #ifdef __cplusplus
17330 extern "C" void exit (int);
17331 #endif
17332
17333 void fnord() { int i=42;}
17334 int main ()
17335 {
17336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337   int status = $lt_dlunknown;
17338
17339   if (self)
17340     {
17341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17343       /* dlclose (self); */
17344     }
17345   else
17346     puts (dlerror ());
17347
17348     exit (status);
17349 }
17350 EOF
17351   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352   (eval $ac_link) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17356     (./conftest; exit; ) >&5 2>/dev/null
17357     lt_status=$?
17358     case x$lt_status in
17359       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17360       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17361       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17362     esac
17363   else :
17364     # compilation failed
17365     lt_cv_dlopen_self_static=no
17366   fi
17367 fi
17368 rm -fr conftest*
17369
17370
17371 fi
17372 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17373 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17374     fi
17375
17376     CPPFLAGS="$save_CPPFLAGS"
17377     LDFLAGS="$save_LDFLAGS"
17378     LIBS="$save_LIBS"
17379     ;;
17380   esac
17381
17382   case $lt_cv_dlopen_self in
17383   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17384   *) enable_dlopen_self=unknown ;;
17385   esac
17386
17387   case $lt_cv_dlopen_self_static in
17388   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17389   *) enable_dlopen_self_static=unknown ;;
17390   esac
17391 fi
17392
17393
17394 # Report which library types will actually be built
17395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17398 echo "${ECHO_T}$can_build_shared" >&6; }
17399
17400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17402 test "$can_build_shared" = "no" && enable_shared=no
17403
17404 # On AIX, shared libraries and static libraries use the same namespace, and
17405 # are all built from PIC.
17406 case $host_os in
17407 aix3*)
17408   test "$enable_shared" = yes && enable_static=no
17409   if test -n "$RANLIB"; then
17410     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17411     postinstall_cmds='$RANLIB $lib'
17412   fi
17413   ;;
17414
17415 aix4* | aix5*)
17416   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17417     test "$enable_shared" = yes && enable_static=no
17418   fi
17419     ;;
17420 esac
17421 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17422 echo "${ECHO_T}$enable_shared" >&6; }
17423
17424 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17425 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17426 # Make sure either enable_shared or enable_static is yes.
17427 test "$enable_shared" = yes || enable_static=yes
17428 { echo "$as_me:$LINENO: result: $enable_static" >&5
17429 echo "${ECHO_T}$enable_static" >&6; }
17430
17431 # The else clause should only fire when bootstrapping the
17432 # libtool distribution, otherwise you forgot to ship ltmain.sh
17433 # with your package, and you will get complaints that there are
17434 # no rules to generate ltmain.sh.
17435 if test -f "$ltmain"; then
17436   # See if we are running on zsh, and set the options which allow our commands through
17437   # without removal of \ escapes.
17438   if test -n "${ZSH_VERSION+set}" ; then
17439     setopt NO_GLOB_SUBST
17440   fi
17441   # Now quote all the things that may contain metacharacters while being
17442   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17443   # variables and quote the copies for generation of the libtool script.
17444   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17445     SED SHELL STRIP \
17446     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17447     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17448     deplibs_check_method reload_flag reload_cmds need_locks \
17449     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17450     lt_cv_sys_global_symbol_to_c_name_address \
17451     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17452     old_postinstall_cmds old_postuninstall_cmds \
17453     compiler \
17454     CC \
17455     LD \
17456     lt_prog_compiler_wl \
17457     lt_prog_compiler_pic \
17458     lt_prog_compiler_static \
17459     lt_prog_compiler_no_builtin_flag \
17460     export_dynamic_flag_spec \
17461     thread_safe_flag_spec \
17462     whole_archive_flag_spec \
17463     enable_shared_with_static_runtimes \
17464     old_archive_cmds \
17465     old_archive_from_new_cmds \
17466     predep_objects \
17467     postdep_objects \
17468     predeps \
17469     postdeps \
17470     compiler_lib_search_path \
17471     archive_cmds \
17472     archive_expsym_cmds \
17473     postinstall_cmds \
17474     postuninstall_cmds \
17475     old_archive_from_expsyms_cmds \
17476     allow_undefined_flag \
17477     no_undefined_flag \
17478     export_symbols_cmds \
17479     hardcode_libdir_flag_spec \
17480     hardcode_libdir_flag_spec_ld \
17481     hardcode_libdir_separator \
17482     hardcode_automatic \
17483     module_cmds \
17484     module_expsym_cmds \
17485     lt_cv_prog_compiler_c_o \
17486     exclude_expsyms \
17487     include_expsyms; do
17488
17489     case $var in
17490     old_archive_cmds | \
17491     old_archive_from_new_cmds | \
17492     archive_cmds | \
17493     archive_expsym_cmds | \
17494     module_cmds | \
17495     module_expsym_cmds | \
17496     old_archive_from_expsyms_cmds | \
17497     export_symbols_cmds | \
17498     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17499     postinstall_cmds | postuninstall_cmds | \
17500     old_postinstall_cmds | old_postuninstall_cmds | \
17501     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17502       # Double-quote double-evaled strings.
17503       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17504       ;;
17505     *)
17506       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17507       ;;
17508     esac
17509   done
17510
17511   case $lt_echo in
17512   *'\$0 --fallback-echo"')
17513     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17514     ;;
17515   esac
17516
17517 cfgfile="${ofile}T"
17518   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17519   $rm -f "$cfgfile"
17520   { echo "$as_me:$LINENO: creating $ofile" >&5
17521 echo "$as_me: creating $ofile" >&6;}
17522
17523   cat <<__EOF__ >> "$cfgfile"
17524 #! $SHELL
17525
17526 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17527 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17528 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17529 #
17530 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17531 # Free Software Foundation, Inc.
17532 #
17533 # This file is part of GNU Libtool:
17534 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17535 #
17536 # This program is free software; you can redistribute it and/or modify
17537 # it under the terms of the GNU General Public License as published by
17538 # the Free Software Foundation; either version 2 of the License, or
17539 # (at your option) any later version.
17540 #
17541 # This program is distributed in the hope that it will be useful, but
17542 # WITHOUT ANY WARRANTY; without even the implied warranty of
17543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17544 # General Public License for more details.
17545 #
17546 # You should have received a copy of the GNU General Public License
17547 # along with this program; if not, write to the Free Software
17548 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17549 #
17550 # As a special exception to the GNU General Public License, if you
17551 # distribute this file as part of a program that contains a
17552 # configuration script generated by Autoconf, you may include it under
17553 # the same distribution terms that you use for the rest of that program.
17554
17555 # A sed program that does not truncate output.
17556 SED=$lt_SED
17557
17558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17559 Xsed="$SED -e 1s/^X//"
17560
17561 # The HP-UX ksh and POSIX shell print the target directory to stdout
17562 # if CDPATH is set.
17563 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17564
17565 # The names of the tagged configurations supported by this script.
17566 available_tags=
17567
17568 # ### BEGIN LIBTOOL CONFIG
17569
17570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17571
17572 # Shell to use when invoking shell scripts.
17573 SHELL=$lt_SHELL
17574
17575 # Whether or not to build shared libraries.
17576 build_libtool_libs=$enable_shared
17577
17578 # Whether or not to build static libraries.
17579 build_old_libs=$enable_static
17580
17581 # Whether or not to add -lc for building shared libraries.
17582 build_libtool_need_lc=$archive_cmds_need_lc
17583
17584 # Whether or not to disallow shared libs when runtime libs are static
17585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17586
17587 # Whether or not to optimize for fast installation.
17588 fast_install=$enable_fast_install
17589
17590 # The host system.
17591 host_alias=$host_alias
17592 host=$host
17593 host_os=$host_os
17594
17595 # The build system.
17596 build_alias=$build_alias
17597 build=$build
17598 build_os=$build_os
17599
17600 # An echo program that does not interpret backslashes.
17601 echo=$lt_echo
17602
17603 # The archiver.
17604 AR=$lt_AR
17605 AR_FLAGS=$lt_AR_FLAGS
17606
17607 # A C compiler.
17608 LTCC=$lt_LTCC
17609
17610 # LTCC compiler flags.
17611 LTCFLAGS=$lt_LTCFLAGS
17612
17613 # A language-specific compiler.
17614 CC=$lt_compiler
17615
17616 # Is the compiler the GNU C compiler?
17617 with_gcc=$GCC
17618
17619 # An ERE matcher.
17620 EGREP=$lt_EGREP
17621
17622 # The linker used to build libraries.
17623 LD=$lt_LD
17624
17625 # Whether we need hard or soft links.
17626 LN_S=$lt_LN_S
17627
17628 # A BSD-compatible nm program.
17629 NM=$lt_NM
17630
17631 # A symbol stripping program
17632 STRIP=$lt_STRIP
17633
17634 # Used to examine libraries when file_magic_cmd begins "file"
17635 MAGIC_CMD=$MAGIC_CMD
17636
17637 # Used on cygwin: DLL creation program.
17638 DLLTOOL="$DLLTOOL"
17639
17640 # Used on cygwin: object dumper.
17641 OBJDUMP="$OBJDUMP"
17642
17643 # Used on cygwin: assembler.
17644 AS="$AS"
17645
17646 # The name of the directory that contains temporary libtool files.
17647 objdir=$objdir
17648
17649 # How to create reloadable object files.
17650 reload_flag=$lt_reload_flag
17651 reload_cmds=$lt_reload_cmds
17652
17653 # How to pass a linker flag through the compiler.
17654 wl=$lt_lt_prog_compiler_wl
17655
17656 # Object file suffix (normally "o").
17657 objext="$ac_objext"
17658
17659 # Old archive suffix (normally "a").
17660 libext="$libext"
17661
17662 # Shared library suffix (normally ".so").
17663 shrext_cmds='$shrext_cmds'
17664
17665 # Executable file suffix (normally "").
17666 exeext="$exeext"
17667
17668 # Additional compiler flags for building library objects.
17669 pic_flag=$lt_lt_prog_compiler_pic
17670 pic_mode=$pic_mode
17671
17672 # What is the maximum length of a command?
17673 max_cmd_len=$lt_cv_sys_max_cmd_len
17674
17675 # Does compiler simultaneously support -c and -o options?
17676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17677
17678 # Must we lock files when doing compilation?
17679 need_locks=$lt_need_locks
17680
17681 # Do we need the lib prefix for modules?
17682 need_lib_prefix=$need_lib_prefix
17683
17684 # Do we need a version for libraries?
17685 need_version=$need_version
17686
17687 # Whether dlopen is supported.
17688 dlopen_support=$enable_dlopen
17689
17690 # Whether dlopen of programs is supported.
17691 dlopen_self=$enable_dlopen_self
17692
17693 # Whether dlopen of statically linked programs is supported.
17694 dlopen_self_static=$enable_dlopen_self_static
17695
17696 # Compiler flag to prevent dynamic linking.
17697 link_static_flag=$lt_lt_prog_compiler_static
17698
17699 # Compiler flag to turn off builtin functions.
17700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17701
17702 # Compiler flag to allow reflexive dlopens.
17703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17704
17705 # Compiler flag to generate shared objects directly from archives.
17706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17707
17708 # Compiler flag to generate thread-safe objects.
17709 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17710
17711 # Library versioning type.
17712 version_type=$version_type
17713
17714 # Format of library name prefix.
17715 libname_spec=$lt_libname_spec
17716
17717 # List of archive names.  First name is the real one, the rest are links.
17718 # The last name is the one that the linker finds with -lNAME.
17719 library_names_spec=$lt_library_names_spec
17720
17721 # The coded name of the library, if different from the real name.
17722 soname_spec=$lt_soname_spec
17723
17724 # Commands used to build and install an old-style archive.
17725 RANLIB=$lt_RANLIB
17726 old_archive_cmds=$lt_old_archive_cmds
17727 old_postinstall_cmds=$lt_old_postinstall_cmds
17728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17729
17730 # Create an old-style archive from a shared archive.
17731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17732
17733 # Create a temporary old-style archive to link instead of a shared archive.
17734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17735
17736 # Commands used to build and install a shared archive.
17737 archive_cmds=$lt_archive_cmds
17738 archive_expsym_cmds=$lt_archive_expsym_cmds
17739 postinstall_cmds=$lt_postinstall_cmds
17740 postuninstall_cmds=$lt_postuninstall_cmds
17741
17742 # Commands used to build a loadable module (assumed same as above if empty)
17743 module_cmds=$lt_module_cmds
17744 module_expsym_cmds=$lt_module_expsym_cmds
17745
17746 # Commands to strip libraries.
17747 old_striplib=$lt_old_striplib
17748 striplib=$lt_striplib
17749
17750 # Dependencies to place before the objects being linked to create a
17751 # shared library.
17752 predep_objects=$lt_predep_objects
17753
17754 # Dependencies to place after the objects being linked to create a
17755 # shared library.
17756 postdep_objects=$lt_postdep_objects
17757
17758 # Dependencies to place before the objects being linked to create a
17759 # shared library.
17760 predeps=$lt_predeps
17761
17762 # Dependencies to place after the objects being linked to create a
17763 # shared library.
17764 postdeps=$lt_postdeps
17765
17766 # The library search path used internally by the compiler when linking
17767 # a shared library.
17768 compiler_lib_search_path=$lt_compiler_lib_search_path
17769
17770 # Method to check whether dependent libraries are shared objects.
17771 deplibs_check_method=$lt_deplibs_check_method
17772
17773 # Command to use when deplibs_check_method == file_magic.
17774 file_magic_cmd=$lt_file_magic_cmd
17775
17776 # Flag that allows shared libraries with undefined symbols to be built.
17777 allow_undefined_flag=$lt_allow_undefined_flag
17778
17779 # Flag that forces no undefined symbols.
17780 no_undefined_flag=$lt_no_undefined_flag
17781
17782 # Commands used to finish a libtool library installation in a directory.
17783 finish_cmds=$lt_finish_cmds
17784
17785 # Same as above, but a single script fragment to be evaled but not shown.
17786 finish_eval=$lt_finish_eval
17787
17788 # Take the output of nm and produce a listing of raw symbols and C names.
17789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17790
17791 # Transform the output of nm in a proper C declaration
17792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17793
17794 # Transform the output of nm in a C name address pair
17795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17796
17797 # This is the shared library runtime path variable.
17798 runpath_var=$runpath_var
17799
17800 # This is the shared library path variable.
17801 shlibpath_var=$shlibpath_var
17802
17803 # Is shlibpath searched before the hard-coded library search path?
17804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17805
17806 # How to hardcode a shared library path into an executable.
17807 hardcode_action=$hardcode_action
17808
17809 # Whether we should hardcode library paths into libraries.
17810 hardcode_into_libs=$hardcode_into_libs
17811
17812 # Flag to hardcode \$libdir into a binary during linking.
17813 # This must work even if \$libdir does not exist.
17814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17815
17816 # If ld is used when linking, flag to hardcode \$libdir into
17817 # a binary during linking. This must work even if \$libdir does
17818 # not exist.
17819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17820
17821 # Whether we need a single -rpath flag with a separated argument.
17822 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17823
17824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_direct=$hardcode_direct
17827
17828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17829 # resulting binary.
17830 hardcode_minus_L=$hardcode_minus_L
17831
17832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17833 # the resulting binary.
17834 hardcode_shlibpath_var=$hardcode_shlibpath_var
17835
17836 # Set to yes if building a shared library automatically hardcodes DIR into the library
17837 # and all subsequent libraries and executables linked against it.
17838 hardcode_automatic=$hardcode_automatic
17839
17840 # Variables whose values should be saved in libtool wrapper scripts and
17841 # restored at relink time.
17842 variables_saved_for_relink="$variables_saved_for_relink"
17843
17844 # Whether libtool must link a program against all its dependency libraries.
17845 link_all_deplibs=$link_all_deplibs
17846
17847 # Compile-time system search path for libraries
17848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17849
17850 # Run-time system search path for libraries
17851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17852
17853 # Fix the shell variable \$srcfile for the compiler.
17854 fix_srcfile_path="$fix_srcfile_path"
17855
17856 # Set to yes if exported symbols are required.
17857 always_export_symbols=$always_export_symbols
17858
17859 # The commands to list exported symbols.
17860 export_symbols_cmds=$lt_export_symbols_cmds
17861
17862 # The commands to extract the exported symbol list from a shared archive.
17863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17864
17865 # Symbols that should not be listed in the preloaded symbols.
17866 exclude_expsyms=$lt_exclude_expsyms
17867
17868 # Symbols that must always be exported.
17869 include_expsyms=$lt_include_expsyms
17870
17871 # ### END LIBTOOL CONFIG
17872
17873 __EOF__
17874
17875
17876   case $host_os in
17877   aix3*)
17878     cat <<\EOF >> "$cfgfile"
17879
17880 # AIX sometimes has problems with the GCC collect2 program.  For some
17881 # reason, if we set the COLLECT_NAMES environment variable, the problems
17882 # vanish in a puff of smoke.
17883 if test "X${COLLECT_NAMES+set}" != Xset; then
17884   COLLECT_NAMES=
17885   export COLLECT_NAMES
17886 fi
17887 EOF
17888     ;;
17889   esac
17890
17891   # We use sed instead of cat because bash on DJGPP gets confused if
17892   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17893   # text mode, it properly converts lines to CR/LF.  This bash problem
17894   # is reportedly fixed, but why not run on old versions too?
17895   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17896
17897   mv -f "$cfgfile" "$ofile" || \
17898     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17899   chmod +x "$ofile"
17900
17901 else
17902   # If there is no Makefile yet, we rely on a make rule to execute
17903   # `config.status --recheck' to rerun these tests and create the
17904   # libtool script then.
17905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906   if test -f "$ltmain_in"; then
17907     test -f Makefile && make "$ltmain"
17908   fi
17909 fi
17910
17911
17912 ac_ext=c
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917
17918 CC="$lt_save_CC"
17919
17920
17921 # Check whether --with-tags was given.
17922 if test "${with_tags+set}" = set; then
17923   withval=$with_tags; tagnames="$withval"
17924 fi
17925
17926
17927 if test -f "$ltmain" && test -n "$tagnames"; then
17928   if test ! -f "${ofile}"; then
17929     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17930 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17931   fi
17932
17933   if test -z "$LTCC"; then
17934     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17935     if test -z "$LTCC"; then
17936       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17937 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17938     else
17939       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17940 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17941     fi
17942   fi
17943   if test -z "$LTCFLAGS"; then
17944     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17945   fi
17946
17947   # Extract list of available tagged configurations in $ofile.
17948   # Note that this assumes the entire list is on one line.
17949   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17950
17951   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17952   for tagname in $tagnames; do
17953     IFS="$lt_save_ifs"
17954     # Check whether tagname contains only valid characters
17955     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17956     "") ;;
17957     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17958 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17959    { (exit 1); exit 1; }; }
17960         ;;
17961     esac
17962
17963     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17964     then
17965       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17966 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17967    { (exit 1); exit 1; }; }
17968     fi
17969
17970     # Update the list of available tags.
17971     if test -n "$tagname"; then
17972       echo appending configuration tag \"$tagname\" to $ofile
17973
17974       case $tagname in
17975       CXX)
17976         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17977             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17978             (test "X$CXX" != "Xg++"))) ; then
17979           ac_ext=cpp
17980 ac_cpp='$CXXCPP $CPPFLAGS'
17981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17984
17985
17986
17987
17988 archive_cmds_need_lc_CXX=no
17989 allow_undefined_flag_CXX=
17990 always_export_symbols_CXX=no
17991 archive_expsym_cmds_CXX=
17992 export_dynamic_flag_spec_CXX=
17993 hardcode_direct_CXX=no
17994 hardcode_libdir_flag_spec_CXX=
17995 hardcode_libdir_flag_spec_ld_CXX=
17996 hardcode_libdir_separator_CXX=
17997 hardcode_minus_L_CXX=no
17998 hardcode_shlibpath_var_CXX=unsupported
17999 hardcode_automatic_CXX=no
18000 module_cmds_CXX=
18001 module_expsym_cmds_CXX=
18002 link_all_deplibs_CXX=unknown
18003 old_archive_cmds_CXX=$old_archive_cmds
18004 no_undefined_flag_CXX=
18005 whole_archive_flag_spec_CXX=
18006 enable_shared_with_static_runtimes_CXX=no
18007
18008 # Dependencies to place before and after the object being linked:
18009 predep_objects_CXX=
18010 postdep_objects_CXX=
18011 predeps_CXX=
18012 postdeps_CXX=
18013 compiler_lib_search_path_CXX=
18014
18015 # Source file extension for C++ test sources.
18016 ac_ext=cpp
18017
18018 # Object file extension for compiled C++ test sources.
18019 objext=o
18020 objext_CXX=$objext
18021
18022 # Code to be used in simple compile tests
18023 lt_simple_compile_test_code="int some_variable = 0;\n"
18024
18025 # Code to be used in simple link tests
18026 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18027
18028 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18029
18030 # If no C compiler was specified, use CC.
18031 LTCC=${LTCC-"$CC"}
18032
18033 # If no C compiler flags were specified, use CFLAGS.
18034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18035
18036 # Allow CC to be a program name with arguments.
18037 compiler=$CC
18038
18039
18040 # save warnings/boilerplate of simple test code
18041 ac_outfile=conftest.$ac_objext
18042 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18044 _lt_compiler_boilerplate=`cat conftest.err`
18045 $rm conftest*
18046
18047 ac_outfile=conftest.$ac_objext
18048 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050 _lt_linker_boilerplate=`cat conftest.err`
18051 $rm conftest*
18052
18053
18054 # Allow CC to be a program name with arguments.
18055 lt_save_CC=$CC
18056 lt_save_LD=$LD
18057 lt_save_GCC=$GCC
18058 GCC=$GXX
18059 lt_save_with_gnu_ld=$with_gnu_ld
18060 lt_save_path_LD=$lt_cv_path_LD
18061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18062   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18063 else
18064   $as_unset lt_cv_prog_gnu_ld
18065 fi
18066 if test -n "${lt_cv_path_LDCXX+set}"; then
18067   lt_cv_path_LD=$lt_cv_path_LDCXX
18068 else
18069   $as_unset lt_cv_path_LD
18070 fi
18071 test -z "${LDCXX+set}" || LD=$LDCXX
18072 CC=${CXX-"c++"}
18073 compiler=$CC
18074 compiler_CXX=$CC
18075 for cc_temp in $compiler""; do
18076   case $cc_temp in
18077     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18078     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18079     \-*) ;;
18080     *) break;;
18081   esac
18082 done
18083 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18084
18085
18086 # We don't want -fno-exception wen compiling C++ code, so set the
18087 # no_builtin_flag separately
18088 if test "$GXX" = yes; then
18089   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18090 else
18091   lt_prog_compiler_no_builtin_flag_CXX=
18092 fi
18093
18094 if test "$GXX" = yes; then
18095   # Set up default GNU C++ configuration
18096
18097
18098 # Check whether --with-gnu-ld was given.
18099 if test "${with_gnu_ld+set}" = set; then
18100   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18101 else
18102   with_gnu_ld=no
18103 fi
18104
18105 ac_prog=ld
18106 if test "$GCC" = yes; then
18107   # Check if gcc -print-prog-name=ld gives a path.
18108   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18109 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18110   case $host in
18111   *-*-mingw*)
18112     # gcc leaves a trailing carriage return which upsets mingw
18113     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18114   *)
18115     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18116   esac
18117   case $ac_prog in
18118     # Accept absolute paths.
18119     [\\/]* | ?:[\\/]*)
18120       re_direlt='/[^/][^/]*/\.\./'
18121       # Canonicalize the pathname of ld
18122       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18123       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18124         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18125       done
18126       test -z "$LD" && LD="$ac_prog"
18127       ;;
18128   "")
18129     # If it fails, then pretend we aren't using GCC.
18130     ac_prog=ld
18131     ;;
18132   *)
18133     # If it is relative, then search for the first ld in PATH.
18134     with_gnu_ld=unknown
18135     ;;
18136   esac
18137 elif test "$with_gnu_ld" = yes; then
18138   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18140 else
18141   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18143 fi
18144 if test "${lt_cv_path_LD+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   if test -z "$LD"; then
18148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18149   for ac_dir in $PATH; do
18150     IFS="$lt_save_ifs"
18151     test -z "$ac_dir" && ac_dir=.
18152     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18153       lt_cv_path_LD="$ac_dir/$ac_prog"
18154       # Check to see if the program is GNU ld.  I'd rather use --version,
18155       # but apparently some variants of GNU ld only accept -v.
18156       # Break only if it was the GNU/non-GNU ld that we prefer.
18157       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18158       *GNU* | *'with BFD'*)
18159         test "$with_gnu_ld" != no && break
18160         ;;
18161       *)
18162         test "$with_gnu_ld" != yes && break
18163         ;;
18164       esac
18165     fi
18166   done
18167   IFS="$lt_save_ifs"
18168 else
18169   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18170 fi
18171 fi
18172
18173 LD="$lt_cv_path_LD"
18174 if test -n "$LD"; then
18175   { echo "$as_me:$LINENO: result: $LD" >&5
18176 echo "${ECHO_T}$LD" >&6; }
18177 else
18178   { echo "$as_me:$LINENO: result: no" >&5
18179 echo "${ECHO_T}no" >&6; }
18180 fi
18181 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18182 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18183    { (exit 1); exit 1; }; }
18184 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18185 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18186 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18190 case `$LD -v 2>&1 </dev/null` in
18191 *GNU* | *'with BFD'*)
18192   lt_cv_prog_gnu_ld=yes
18193   ;;
18194 *)
18195   lt_cv_prog_gnu_ld=no
18196   ;;
18197 esac
18198 fi
18199 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18201 with_gnu_ld=$lt_cv_prog_gnu_ld
18202
18203
18204
18205   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18206   # archiving commands below assume that GNU ld is being used.
18207   if test "$with_gnu_ld" = yes; then
18208     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18209     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'
18210
18211     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18212     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18213
18214     # If archive_cmds runs LD, not CC, wlarc should be empty
18215     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18216     #     investigate it a little bit more. (MM)
18217     wlarc='${wl}'
18218
18219     # ancient GNU ld didn't support --whole-archive et. al.
18220     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18221         grep 'no-whole-archive' > /dev/null; then
18222       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18223     else
18224       whole_archive_flag_spec_CXX=
18225     fi
18226   else
18227     with_gnu_ld=no
18228     wlarc=
18229
18230     # A generic and very simple default shared library creation
18231     # command for GNU C++ for the case where it uses the native
18232     # linker, instead of GNU ld.  If possible, this setting should
18233     # overridden to take advantage of the native linker features on
18234     # the platform it is being used on.
18235     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18236   fi
18237
18238   # Commands to make compiler produce verbose output that lists
18239   # what "hidden" libraries, object files and flags are used when
18240   # linking a shared library.
18241   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18242
18243 else
18244   GXX=no
18245   with_gnu_ld=no
18246   wlarc=
18247 fi
18248
18249 # PORTME: fill in a description of your system's C++ link characteristics
18250 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18252 ld_shlibs_CXX=yes
18253 case $host_os in
18254   aix3*)
18255     # FIXME: insert proper C++ library support
18256     ld_shlibs_CXX=no
18257     ;;
18258   aix4* | aix5*)
18259     if test "$host_cpu" = ia64; then
18260       # On IA64, the linker does run time linking by default, so we don't
18261       # have to do anything special.
18262       aix_use_runtimelinking=no
18263       exp_sym_flag='-Bexport'
18264       no_entry_flag=""
18265     else
18266       aix_use_runtimelinking=no
18267
18268       # Test if we are trying to use run time linking or normal
18269       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18270       # need to do runtime linking.
18271       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18272         for ld_flag in $LDFLAGS; do
18273           case $ld_flag in
18274           *-brtl*)
18275             aix_use_runtimelinking=yes
18276             break
18277             ;;
18278           esac
18279         done
18280         ;;
18281       esac
18282
18283       exp_sym_flag='-bexport'
18284       no_entry_flag='-bnoentry'
18285     fi
18286
18287     # When large executables or shared objects are built, AIX ld can
18288     # have problems creating the table of contents.  If linking a library
18289     # or program results in "error TOC overflow" add -mminimal-toc to
18290     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18291     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18292
18293     archive_cmds_CXX=''
18294     hardcode_direct_CXX=yes
18295     hardcode_libdir_separator_CXX=':'
18296     link_all_deplibs_CXX=yes
18297
18298     if test "$GXX" = yes; then
18299       case $host_os in aix4.[012]|aix4.[012].*)
18300       # We only want to do this on AIX 4.2 and lower, the check
18301       # below for broken collect2 doesn't work under 4.3+
18302         collect2name=`${CC} -print-prog-name=collect2`
18303         if test -f "$collect2name" && \
18304            strings "$collect2name" | grep resolve_lib_name >/dev/null
18305         then
18306           # We have reworked collect2
18307           hardcode_direct_CXX=yes
18308         else
18309           # We have old collect2
18310           hardcode_direct_CXX=unsupported
18311           # It fails to find uninstalled libraries when the uninstalled
18312           # path is not listed in the libpath.  Setting hardcode_minus_L
18313           # to unsupported forces relinking
18314           hardcode_minus_L_CXX=yes
18315           hardcode_libdir_flag_spec_CXX='-L$libdir'
18316           hardcode_libdir_separator_CXX=
18317         fi
18318         ;;
18319       esac
18320       shared_flag='-shared'
18321       if test "$aix_use_runtimelinking" = yes; then
18322         shared_flag="$shared_flag "'${wl}-G'
18323       fi
18324     else
18325       # not using gcc
18326       if test "$host_cpu" = ia64; then
18327         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18328         # chokes on -Wl,-G. The following line is correct:
18329         shared_flag='-G'
18330       else
18331         if test "$aix_use_runtimelinking" = yes; then
18332           shared_flag='${wl}-G'
18333         else
18334           shared_flag='${wl}-bM:SRE'
18335         fi
18336       fi
18337     fi
18338
18339     # It seems that -bexpall does not export symbols beginning with
18340     # underscore (_), so it is better to generate a list of symbols to export.
18341     always_export_symbols_CXX=yes
18342     if test "$aix_use_runtimelinking" = yes; then
18343       # Warning - without using the other runtime loading flags (-brtl),
18344       # -berok will link without error, but may produce a broken library.
18345       allow_undefined_flag_CXX='-berok'
18346       # Determine the default libpath from the value encoded in an empty executable.
18347       cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h.  */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h.  */
18353
18354 int
18355 main ()
18356 {
18357
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_link") 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } &&
18376          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18377   { (case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_try") 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; } &&
18386          { ac_try='test -s conftest$ac_exeext'
18387   { (case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_try") 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; }; then
18396
18397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18398 }'`
18399 # Check for a 64-bit object if we didn't find anything.
18400 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; }
18401 }'`; fi
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406
18407 fi
18408
18409 rm -f core conftest.err conftest.$ac_objext \
18410       conftest$ac_exeext conftest.$ac_ext
18411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18412
18413       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18414
18415       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"
18416      else
18417       if test "$host_cpu" = ia64; then
18418         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18419         allow_undefined_flag_CXX="-z nodefs"
18420         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"
18421       else
18422         # Determine the default libpath from the value encoded in an empty executable.
18423         cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429
18430 int
18431 main ()
18432 {
18433
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_link") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472
18473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18474 }'`
18475 # Check for a 64-bit object if we didn't find anything.
18476 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; }
18477 }'`; fi
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18488
18489         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490         # Warning - without using the other run time loading flags,
18491         # -berok will link without error, but may produce a broken library.
18492         no_undefined_flag_CXX=' ${wl}-bernotok'
18493         allow_undefined_flag_CXX=' ${wl}-berok'
18494         # Exported symbols can be pulled into shared objects from archives
18495         whole_archive_flag_spec_CXX='$convenience'
18496         archive_cmds_need_lc_CXX=yes
18497         # This is similar to how AIX traditionally builds its shared libraries.
18498         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'
18499       fi
18500     fi
18501     ;;
18502
18503   beos*)
18504     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18505       allow_undefined_flag_CXX=unsupported
18506       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18507       # support --undefined.  This deserves some investigation.  FIXME
18508       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18509     else
18510       ld_shlibs_CXX=no
18511     fi
18512     ;;
18513
18514   chorus*)
18515     case $cc_basename in
18516       *)
18517         # FIXME: insert proper C++ library support
18518         ld_shlibs_CXX=no
18519         ;;
18520     esac
18521     ;;
18522
18523   cygwin* | mingw* | pw32*)
18524     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18525     # as there is no search path for DLLs.
18526     hardcode_libdir_flag_spec_CXX='-L$libdir'
18527     allow_undefined_flag_CXX=unsupported
18528     always_export_symbols_CXX=no
18529     enable_shared_with_static_runtimes_CXX=yes
18530
18531     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18532       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'
18533       # If the export-symbols file already is a .def file (1st line
18534       # is EXPORTS), use it as is; otherwise, prepend...
18535       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18536         cp $export_symbols $output_objdir/$soname.def;
18537       else
18538         echo EXPORTS > $output_objdir/$soname.def;
18539         cat $export_symbols >> $output_objdir/$soname.def;
18540       fi~
18541       $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'
18542     else
18543       ld_shlibs_CXX=no
18544     fi
18545   ;;
18546       darwin* | rhapsody*)
18547         case $host_os in
18548         rhapsody* | darwin1.[012])
18549          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18550          ;;
18551        *) # Darwin 1.3 on
18552          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18553            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18554          else
18555            case ${MACOSX_DEPLOYMENT_TARGET} in
18556              10.[012])
18557                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18558                ;;
18559              10.*)
18560                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18561                ;;
18562            esac
18563          fi
18564          ;;
18565         esac
18566       archive_cmds_need_lc_CXX=no
18567       hardcode_direct_CXX=no
18568       hardcode_automatic_CXX=yes
18569       hardcode_shlibpath_var_CXX=unsupported
18570       whole_archive_flag_spec_CXX=''
18571       link_all_deplibs_CXX=yes
18572
18573     if test "$GXX" = yes ; then
18574       lt_int_apple_cc_single_mod=no
18575       output_verbose_link_cmd='echo'
18576       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18577        lt_int_apple_cc_single_mod=yes
18578       fi
18579       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18580        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18581       else
18582           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'
18583         fi
18584         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18585         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18586           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18587             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}'
18588           else
18589             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}'
18590           fi
18591             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}'
18592       else
18593       case $cc_basename in
18594         xlc*)
18595          output_verbose_link_cmd='echo'
18596           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'
18597           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18599           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}'
18600           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}'
18601           ;;
18602        *)
18603          ld_shlibs_CXX=no
18604           ;;
18605       esac
18606       fi
18607         ;;
18608
18609   dgux*)
18610     case $cc_basename in
18611       ec++*)
18612         # FIXME: insert proper C++ library support
18613         ld_shlibs_CXX=no
18614         ;;
18615       ghcx*)
18616         # Green Hills C++ Compiler
18617         # FIXME: insert proper C++ library support
18618         ld_shlibs_CXX=no
18619         ;;
18620       *)
18621         # FIXME: insert proper C++ library support
18622         ld_shlibs_CXX=no
18623         ;;
18624     esac
18625     ;;
18626   freebsd[12]*)
18627     # C++ shared libraries reported to be fairly broken before switch to ELF
18628     ld_shlibs_CXX=no
18629     ;;
18630   freebsd-elf*)
18631     archive_cmds_need_lc_CXX=no
18632     ;;
18633   freebsd* | kfreebsd*-gnu | dragonfly*)
18634     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18635     # conventions
18636     ld_shlibs_CXX=yes
18637     ;;
18638   gnu*)
18639     ;;
18640   hpux9*)
18641     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18642     hardcode_libdir_separator_CXX=:
18643     export_dynamic_flag_spec_CXX='${wl}-E'
18644     hardcode_direct_CXX=yes
18645     hardcode_minus_L_CXX=yes # Not in the search PATH,
18646                                 # but as the default
18647                                 # location of the library.
18648
18649     case $cc_basename in
18650     CC*)
18651       # FIXME: insert proper C++ library support
18652       ld_shlibs_CXX=no
18653       ;;
18654     aCC*)
18655       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'
18656       # Commands to make compiler produce verbose output that lists
18657       # what "hidden" libraries, object files and flags are used when
18658       # linking a shared library.
18659       #
18660       # There doesn't appear to be a way to prevent this compiler from
18661       # explicitly linking system object files so we need to strip them
18662       # from the output so that they don't get included in the library
18663       # dependencies.
18664       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'
18665       ;;
18666     *)
18667       if test "$GXX" = yes; then
18668         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'
18669       else
18670         # FIXME: insert proper C++ library support
18671         ld_shlibs_CXX=no
18672       fi
18673       ;;
18674     esac
18675     ;;
18676   hpux10*|hpux11*)
18677     if test $with_gnu_ld = no; then
18678       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18679       hardcode_libdir_separator_CXX=:
18680
18681       case $host_cpu in
18682       hppa*64*|ia64*)
18683         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18684         ;;
18685       *)
18686         export_dynamic_flag_spec_CXX='${wl}-E'
18687         ;;
18688       esac
18689     fi
18690     case $host_cpu in
18691     hppa*64*|ia64*)
18692       hardcode_direct_CXX=no
18693       hardcode_shlibpath_var_CXX=no
18694       ;;
18695     *)
18696       hardcode_direct_CXX=yes
18697       hardcode_minus_L_CXX=yes # Not in the search PATH,
18698                                               # but as the default
18699                                               # location of the library.
18700       ;;
18701     esac
18702
18703     case $cc_basename in
18704       CC*)
18705         # FIXME: insert proper C++ library support
18706         ld_shlibs_CXX=no
18707         ;;
18708       aCC*)
18709         case $host_cpu in
18710         hppa*64*)
18711           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18712           ;;
18713         ia64*)
18714           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18715           ;;
18716         *)
18717           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18718           ;;
18719         esac
18720         # Commands to make compiler produce verbose output that lists
18721         # what "hidden" libraries, object files and flags are used when
18722         # linking a shared library.
18723         #
18724         # There doesn't appear to be a way to prevent this compiler from
18725         # explicitly linking system object files so we need to strip them
18726         # from the output so that they don't get included in the library
18727         # dependencies.
18728         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'
18729         ;;
18730       *)
18731         if test "$GXX" = yes; then
18732           if test $with_gnu_ld = no; then
18733             case $host_cpu in
18734             hppa*64*)
18735               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18736               ;;
18737             ia64*)
18738               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739               ;;
18740             *)
18741               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'
18742               ;;
18743             esac
18744           fi
18745         else
18746           # FIXME: insert proper C++ library support
18747           ld_shlibs_CXX=no
18748         fi
18749         ;;
18750     esac
18751     ;;
18752   interix3*)
18753     hardcode_direct_CXX=no
18754     hardcode_shlibpath_var_CXX=no
18755     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18756     export_dynamic_flag_spec_CXX='${wl}-E'
18757     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18758     # Instead, shared libraries are loaded at an image base (0x10000000 by
18759     # default) and relocated if they conflict, which is a slow very memory
18760     # consuming and fragmenting process.  To avoid this, we pick a random,
18761     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18762     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18763     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'
18764     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'
18765     ;;
18766   irix5* | irix6*)
18767     case $cc_basename in
18768       CC*)
18769         # SGI C++
18770         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'
18771
18772         # Archives containing C++ object files must be created using
18773         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18774         # necessary to make sure instantiated templates are included
18775         # in the archive.
18776         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18777         ;;
18778       *)
18779         if test "$GXX" = yes; then
18780           if test "$with_gnu_ld" = no; then
18781             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'
18782           else
18783             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'
18784           fi
18785         fi
18786         link_all_deplibs_CXX=yes
18787         ;;
18788     esac
18789     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790     hardcode_libdir_separator_CXX=:
18791     ;;
18792   linux*)
18793     case $cc_basename in
18794       KCC*)
18795         # Kuck and Associates, Inc. (KAI) C++ Compiler
18796
18797         # KCC will only create a shared library if the output file
18798         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18799         # to its proper name (with version) after linking.
18800         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'
18801         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'
18802         # Commands to make compiler produce verbose output that lists
18803         # what "hidden" libraries, object files and flags are used when
18804         # linking a shared library.
18805         #
18806         # There doesn't appear to be a way to prevent this compiler from
18807         # explicitly linking system object files so we need to strip them
18808         # from the output so that they don't get included in the library
18809         # dependencies.
18810         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'
18811
18812         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18813         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18814
18815         # Archives containing C++ object files must be created using
18816         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18817         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18818         ;;
18819       icpc*)
18820         # Intel C++
18821         with_gnu_ld=yes
18822         # version 8.0 and above of icpc choke on multiply defined symbols
18823         # if we add $predep_objects and $postdep_objects, however 7.1 and
18824         # earlier do not add the objects themselves.
18825         case `$CC -V 2>&1` in
18826         *"Version 7."*)
18827           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18828           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'
18829           ;;
18830         *)  # Version 8.0 or newer
18831           tmp_idyn=
18832           case $host_cpu in
18833             ia64*) tmp_idyn=' -i_dynamic';;
18834           esac
18835           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18836           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'
18837           ;;
18838         esac
18839         archive_cmds_need_lc_CXX=no
18840         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18842         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18843         ;;
18844       pgCC*)
18845         # Portland Group C++ compiler
18846         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18847         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'
18848
18849         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18850         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18851         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'
18852         ;;
18853       cxx*)
18854         # Compaq C++
18855         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856         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'
18857
18858         runpath_var=LD_RUN_PATH
18859         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18860         hardcode_libdir_separator_CXX=:
18861
18862         # Commands to make compiler produce verbose output that lists
18863         # what "hidden" libraries, object files and flags are used when
18864         # linking a shared library.
18865         #
18866         # There doesn't appear to be a way to prevent this compiler from
18867         # explicitly linking system object files so we need to strip them
18868         # from the output so that they don't get included in the library
18869         # dependencies.
18870         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'
18871         ;;
18872     esac
18873     ;;
18874   lynxos*)
18875     # FIXME: insert proper C++ library support
18876     ld_shlibs_CXX=no
18877     ;;
18878   m88k*)
18879     # FIXME: insert proper C++ library support
18880     ld_shlibs_CXX=no
18881     ;;
18882   mvs*)
18883     case $cc_basename in
18884       cxx*)
18885         # FIXME: insert proper C++ library support
18886         ld_shlibs_CXX=no
18887         ;;
18888       *)
18889         # FIXME: insert proper C++ library support
18890         ld_shlibs_CXX=no
18891         ;;
18892     esac
18893     ;;
18894   netbsd*)
18895     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18896       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18897       wlarc=
18898       hardcode_libdir_flag_spec_CXX='-R$libdir'
18899       hardcode_direct_CXX=yes
18900       hardcode_shlibpath_var_CXX=no
18901     fi
18902     # Workaround some broken pre-1.5 toolchains
18903     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18904     ;;
18905   openbsd2*)
18906     # C++ shared libraries are fairly broken
18907     ld_shlibs_CXX=no
18908     ;;
18909   openbsd*)
18910     hardcode_direct_CXX=yes
18911     hardcode_shlibpath_var_CXX=no
18912     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18913     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18914     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18915       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18916       export_dynamic_flag_spec_CXX='${wl}-E'
18917       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18918     fi
18919     output_verbose_link_cmd='echo'
18920     ;;
18921   osf3*)
18922     case $cc_basename in
18923       KCC*)
18924         # Kuck and Associates, Inc. (KAI) C++ Compiler
18925
18926         # KCC will only create a shared library if the output file
18927         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928         # to its proper name (with version) after linking.
18929         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18930
18931         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18932         hardcode_libdir_separator_CXX=:
18933
18934         # Archives containing C++ object files must be created using
18935         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18936         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18937
18938         ;;
18939       RCC*)
18940         # Rational C++ 2.4.1
18941         # FIXME: insert proper C++ library support
18942         ld_shlibs_CXX=no
18943         ;;
18944       cxx*)
18945         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18946         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'
18947
18948         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18949         hardcode_libdir_separator_CXX=:
18950
18951         # Commands to make compiler produce verbose output that lists
18952         # what "hidden" libraries, object files and flags are used when
18953         # linking a shared library.
18954         #
18955         # There doesn't appear to be a way to prevent this compiler from
18956         # explicitly linking system object files so we need to strip them
18957         # from the output so that they don't get included in the library
18958         # dependencies.
18959         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'
18960         ;;
18961       *)
18962         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18963           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18964           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'
18965
18966           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18967           hardcode_libdir_separator_CXX=:
18968
18969           # Commands to make compiler produce verbose output that lists
18970           # what "hidden" libraries, object files and flags are used when
18971           # linking a shared library.
18972           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18973
18974         else
18975           # FIXME: insert proper C++ library support
18976           ld_shlibs_CXX=no
18977         fi
18978         ;;
18979     esac
18980     ;;
18981   osf4* | osf5*)
18982     case $cc_basename in
18983       KCC*)
18984         # Kuck and Associates, Inc. (KAI) C++ Compiler
18985
18986         # KCC will only create a shared library if the output file
18987         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18988         # to its proper name (with version) after linking.
18989         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'
18990
18991         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992         hardcode_libdir_separator_CXX=:
18993
18994         # Archives containing C++ object files must be created using
18995         # the KAI C++ compiler.
18996         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18997         ;;
18998       RCC*)
18999         # Rational C++ 2.4.1
19000         # FIXME: insert proper C++ library support
19001         ld_shlibs_CXX=no
19002         ;;
19003       cxx*)
19004         allow_undefined_flag_CXX=' -expect_unresolved \*'
19005         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'
19006         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19007           echo "-hidden">> $lib.exp~
19008           $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~
19009           $rm $lib.exp'
19010
19011         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19012         hardcode_libdir_separator_CXX=:
19013
19014         # Commands to make compiler produce verbose output that lists
19015         # what "hidden" libraries, object files and flags are used when
19016         # linking a shared library.
19017         #
19018         # There doesn't appear to be a way to prevent this compiler from
19019         # explicitly linking system object files so we need to strip them
19020         # from the output so that they don't get included in the library
19021         # dependencies.
19022         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'
19023         ;;
19024       *)
19025         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19026           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19027          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'
19028
19029           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030           hardcode_libdir_separator_CXX=:
19031
19032           # Commands to make compiler produce verbose output that lists
19033           # what "hidden" libraries, object files and flags are used when
19034           # linking a shared library.
19035           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19036
19037         else
19038           # FIXME: insert proper C++ library support
19039           ld_shlibs_CXX=no
19040         fi
19041         ;;
19042     esac
19043     ;;
19044   psos*)
19045     # FIXME: insert proper C++ library support
19046     ld_shlibs_CXX=no
19047     ;;
19048   sunos4*)
19049     case $cc_basename in
19050       CC*)
19051         # Sun C++ 4.x
19052         # FIXME: insert proper C++ library support
19053         ld_shlibs_CXX=no
19054         ;;
19055       lcc*)
19056         # Lucid
19057         # FIXME: insert proper C++ library support
19058         ld_shlibs_CXX=no
19059         ;;
19060       *)
19061         # FIXME: insert proper C++ library support
19062         ld_shlibs_CXX=no
19063         ;;
19064     esac
19065     ;;
19066   solaris*)
19067     case $cc_basename in
19068       CC*)
19069         # Sun C++ 4.2, 5.x and Centerline C++
19070         archive_cmds_need_lc_CXX=yes
19071         no_undefined_flag_CXX=' -zdefs'
19072         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19073         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19074         $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'
19075
19076         hardcode_libdir_flag_spec_CXX='-R$libdir'
19077         hardcode_shlibpath_var_CXX=no
19078         case $host_os in
19079           solaris2.[0-5] | solaris2.[0-5].*) ;;
19080           *)
19081             # The C++ compiler is used as linker so we must use $wl
19082             # flag to pass the commands to the underlying system
19083             # linker. We must also pass each convience library through
19084             # to the system linker between allextract/defaultextract.
19085             # The C++ compiler will combine linker options so we
19086             # cannot just pass the convience library names through
19087             # without $wl.
19088             # Supported since Solaris 2.6 (maybe 2.5.1?)
19089             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'
19090             ;;
19091         esac
19092         link_all_deplibs_CXX=yes
19093
19094         output_verbose_link_cmd='echo'
19095
19096         # Archives containing C++ object files must be created using
19097         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19098         # necessary to make sure instantiated templates are included
19099         # in the archive.
19100         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19101         ;;
19102       gcx*)
19103         # Green Hills C++ Compiler
19104         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19105
19106         # The C++ compiler must be used to create the archive.
19107         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19108         ;;
19109       *)
19110         # GNU C++ compiler with Solaris linker
19111         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19112           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19113           if $CC --version | grep -v '^2\.7' > /dev/null; then
19114             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19115             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19116                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19117
19118             # Commands to make compiler produce verbose output that lists
19119             # what "hidden" libraries, object files and flags are used when
19120             # linking a shared library.
19121             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19122           else
19123             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19124             # platform.
19125             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19126             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19127                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19128
19129             # Commands to make compiler produce verbose output that lists
19130             # what "hidden" libraries, object files and flags are used when
19131             # linking a shared library.
19132             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19133           fi
19134
19135           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19136         fi
19137         ;;
19138     esac
19139     ;;
19140   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19141     no_undefined_flag_CXX='${wl}-z,text'
19142     archive_cmds_need_lc_CXX=no
19143     hardcode_shlibpath_var_CXX=no
19144     runpath_var='LD_RUN_PATH'
19145
19146     case $cc_basename in
19147       CC*)
19148         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19149         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150         ;;
19151       *)
19152         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154         ;;
19155     esac
19156     ;;
19157   sysv5* | sco3.2v5* | sco5v6*)
19158     # Note: We can NOT use -z defs as we might desire, because we do not
19159     # link with -lc, and that would cause any symbols used from libc to
19160     # always be unresolved, which means just about no library would
19161     # ever link correctly.  If we're not using GNU ld we use -z text
19162     # though, which does catch some bad symbols but isn't as heavy-handed
19163     # as -z defs.
19164     # For security reasons, it is highly recommended that you always
19165     # use absolute paths for naming shared libraries, and exclude the
19166     # DT_RUNPATH tag from executables and libraries.  But doing so
19167     # requires that you compile everything twice, which is a pain.
19168     # So that behaviour is only enabled if SCOABSPATH is set to a
19169     # non-empty value in the environment.  Most likely only useful for
19170     # creating official distributions of packages.
19171     # This is a hack until libtool officially supports absolute path
19172     # names for shared libraries.
19173     no_undefined_flag_CXX='${wl}-z,text'
19174     allow_undefined_flag_CXX='${wl}-z,nodefs'
19175     archive_cmds_need_lc_CXX=no
19176     hardcode_shlibpath_var_CXX=no
19177     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19178     hardcode_libdir_separator_CXX=':'
19179     link_all_deplibs_CXX=yes
19180     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19181     runpath_var='LD_RUN_PATH'
19182
19183     case $cc_basename in
19184       CC*)
19185         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19186         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19187         ;;
19188       *)
19189         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19190         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191         ;;
19192     esac
19193     ;;
19194   tandem*)
19195     case $cc_basename in
19196       NCC*)
19197         # NonStop-UX NCC 3.20
19198         # FIXME: insert proper C++ library support
19199         ld_shlibs_CXX=no
19200         ;;
19201       *)
19202         # FIXME: insert proper C++ library support
19203         ld_shlibs_CXX=no
19204         ;;
19205     esac
19206     ;;
19207   vxworks*)
19208     # FIXME: insert proper C++ library support
19209     ld_shlibs_CXX=no
19210     ;;
19211   *)
19212     # FIXME: insert proper C++ library support
19213     ld_shlibs_CXX=no
19214     ;;
19215 esac
19216 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19217 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19218 test "$ld_shlibs_CXX" = no && can_build_shared=no
19219
19220 GCC_CXX="$GXX"
19221 LD_CXX="$LD"
19222
19223
19224 cat > conftest.$ac_ext <<EOF
19225 class Foo
19226 {
19227 public:
19228   Foo (void) { a = 0; }
19229 private:
19230   int a;
19231 };
19232 EOF
19233
19234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235   (eval $ac_compile) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; then
19239   # Parse the compiler output and extract the necessary
19240   # objects, libraries and library flags.
19241
19242   # Sentinel used to keep track of whether or not we are before
19243   # the conftest object file.
19244   pre_test_object_deps_done=no
19245
19246   # The `*' in the case matches for architectures that use `case' in
19247   # $output_verbose_cmd can trigger glob expansion during the loop
19248   # eval without this substitution.
19249   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19250
19251   for p in `eval $output_verbose_link_cmd`; do
19252     case $p in
19253
19254     -L* | -R* | -l*)
19255        # Some compilers place space between "-{L,R}" and the path.
19256        # Remove the space.
19257        if test $p = "-L" \
19258           || test $p = "-R"; then
19259          prev=$p
19260          continue
19261        else
19262          prev=
19263        fi
19264
19265        if test "$pre_test_object_deps_done" = no; then
19266          case $p in
19267          -L* | -R*)
19268            # Internal compiler library paths should come after those
19269            # provided the user.  The postdeps already come after the
19270            # user supplied libs so there is no need to process them.
19271            if test -z "$compiler_lib_search_path_CXX"; then
19272              compiler_lib_search_path_CXX="${prev}${p}"
19273            else
19274              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19275            fi
19276            ;;
19277          # The "-l" case would never come before the object being
19278          # linked, so don't bother handling this case.
19279          esac
19280        else
19281          if test -z "$postdeps_CXX"; then
19282            postdeps_CXX="${prev}${p}"
19283          else
19284            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19285          fi
19286        fi
19287        ;;
19288
19289     *.$objext)
19290        # This assumes that the test object file only shows up
19291        # once in the compiler output.
19292        if test "$p" = "conftest.$objext"; then
19293          pre_test_object_deps_done=yes
19294          continue
19295        fi
19296
19297        if test "$pre_test_object_deps_done" = no; then
19298          if test -z "$predep_objects_CXX"; then
19299            predep_objects_CXX="$p"
19300          else
19301            predep_objects_CXX="$predep_objects_CXX $p"
19302          fi
19303        else
19304          if test -z "$postdep_objects_CXX"; then
19305            postdep_objects_CXX="$p"
19306          else
19307            postdep_objects_CXX="$postdep_objects_CXX $p"
19308          fi
19309        fi
19310        ;;
19311
19312     *) ;; # Ignore the rest.
19313
19314     esac
19315   done
19316
19317   # Clean up.
19318   rm -f a.out a.exe
19319 else
19320   echo "libtool.m4: error: problem compiling CXX test program"
19321 fi
19322
19323 $rm -f confest.$objext
19324
19325 # PORTME: override above test on systems where it is broken
19326 case $host_os in
19327 interix3*)
19328   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19329   # hack all around it, let's just trust "g++" to DTRT.
19330   predep_objects_CXX=
19331   postdep_objects_CXX=
19332   postdeps_CXX=
19333   ;;
19334
19335 solaris*)
19336   case $cc_basename in
19337   CC*)
19338     # Adding this requires a known-good setup of shared libraries for
19339     # Sun compiler versions before 5.6, else PIC objects from an old
19340     # archive will be linked into the output, leading to subtle bugs.
19341     postdeps_CXX='-lCstd -lCrun'
19342     ;;
19343   esac
19344   ;;
19345 esac
19346
19347
19348 case " $postdeps_CXX " in
19349 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19350 esac
19351
19352 lt_prog_compiler_wl_CXX=
19353 lt_prog_compiler_pic_CXX=
19354 lt_prog_compiler_static_CXX=
19355
19356 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19357 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19358
19359   # C++ specific cases for pic, static, wl, etc.
19360   if test "$GXX" = yes; then
19361     lt_prog_compiler_wl_CXX='-Wl,'
19362     lt_prog_compiler_static_CXX='-static'
19363
19364     case $host_os in
19365     aix*)
19366       # All AIX code is PIC.
19367       if test "$host_cpu" = ia64; then
19368         # AIX 5 now supports IA64 processor
19369         lt_prog_compiler_static_CXX='-Bstatic'
19370       fi
19371       ;;
19372     amigaos*)
19373       # FIXME: we need at least 68020 code to build shared libraries, but
19374       # adding the `-m68020' flag to GCC prevents building anything better,
19375       # like `-m68040'.
19376       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19377       ;;
19378     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19379       # PIC is the default for these OSes.
19380       ;;
19381     mingw* | os2* | pw32*)
19382       # This hack is so that the source file can tell whether it is being
19383       # built for inclusion in a dll (and should export symbols for example).
19384       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19385       ;;
19386     darwin* | rhapsody*)
19387       # PIC is the default on this platform
19388       # Common symbols not allowed in MH_DYLIB files
19389       lt_prog_compiler_pic_CXX='-fno-common'
19390       ;;
19391     *djgpp*)
19392       # DJGPP does not support shared libraries at all
19393       lt_prog_compiler_pic_CXX=
19394       ;;
19395     interix3*)
19396       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19397       # Instead, we relocate shared libraries at runtime.
19398       ;;
19399     sysv4*MP*)
19400       if test -d /usr/nec; then
19401         lt_prog_compiler_pic_CXX=-Kconform_pic
19402       fi
19403       ;;
19404     hpux*)
19405       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19406       # not for PA HP-UX.
19407       case $host_cpu in
19408       hppa*64*|ia64*)
19409         ;;
19410       *)
19411         lt_prog_compiler_pic_CXX='-fPIC'
19412         ;;
19413       esac
19414       ;;
19415     *)
19416       lt_prog_compiler_pic_CXX='-fPIC'
19417       ;;
19418     esac
19419   else
19420     case $host_os in
19421       aix4* | aix5*)
19422         # All AIX code is PIC.
19423         if test "$host_cpu" = ia64; then
19424           # AIX 5 now supports IA64 processor
19425           lt_prog_compiler_static_CXX='-Bstatic'
19426         else
19427           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19428         fi
19429         ;;
19430       chorus*)
19431         case $cc_basename in
19432         cxch68*)
19433           # Green Hills C++ Compiler
19434           # _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"
19435           ;;
19436         esac
19437         ;;
19438        darwin*)
19439          # PIC is the default on this platform
19440          # Common symbols not allowed in MH_DYLIB files
19441          case $cc_basename in
19442            xlc*)
19443            lt_prog_compiler_pic_CXX='-qnocommon'
19444            lt_prog_compiler_wl_CXX='-Wl,'
19445            ;;
19446          esac
19447        ;;
19448       dgux*)
19449         case $cc_basename in
19450           ec++*)
19451             lt_prog_compiler_pic_CXX='-KPIC'
19452             ;;
19453           ghcx*)
19454             # Green Hills C++ Compiler
19455             lt_prog_compiler_pic_CXX='-pic'
19456             ;;
19457           *)
19458             ;;
19459         esac
19460         ;;
19461       freebsd* | kfreebsd*-gnu | dragonfly*)
19462         # FreeBSD uses GNU C++
19463         ;;
19464       hpux9* | hpux10* | hpux11*)
19465         case $cc_basename in
19466           CC*)
19467             lt_prog_compiler_wl_CXX='-Wl,'
19468             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19469             if test "$host_cpu" != ia64; then
19470               lt_prog_compiler_pic_CXX='+Z'
19471             fi
19472             ;;
19473           aCC*)
19474             lt_prog_compiler_wl_CXX='-Wl,'
19475             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19476             case $host_cpu in
19477             hppa*64*|ia64*)
19478               # +Z the default
19479               ;;
19480             *)
19481               lt_prog_compiler_pic_CXX='+Z'
19482               ;;
19483             esac
19484             ;;
19485           *)
19486             ;;
19487         esac
19488         ;;
19489       interix*)
19490         # This is c89, which is MS Visual C++ (no shared libs)
19491         # Anyone wants to do a port?
19492         ;;
19493       irix5* | irix6* | nonstopux*)
19494         case $cc_basename in
19495           CC*)
19496             lt_prog_compiler_wl_CXX='-Wl,'
19497             lt_prog_compiler_static_CXX='-non_shared'
19498             # CC pic flag -KPIC is the default.
19499             ;;
19500           *)
19501             ;;
19502         esac
19503         ;;
19504       linux*)
19505         case $cc_basename in
19506           KCC*)
19507             # KAI C++ Compiler
19508             lt_prog_compiler_wl_CXX='--backend -Wl,'
19509             lt_prog_compiler_pic_CXX='-fPIC'
19510             ;;
19511           icpc* | ecpc*)
19512             # Intel C++
19513             lt_prog_compiler_wl_CXX='-Wl,'
19514             lt_prog_compiler_pic_CXX='-KPIC'
19515             lt_prog_compiler_static_CXX='-static'
19516             ;;
19517           pgCC*)
19518             # Portland Group C++ compiler.
19519             lt_prog_compiler_wl_CXX='-Wl,'
19520             lt_prog_compiler_pic_CXX='-fpic'
19521             lt_prog_compiler_static_CXX='-Bstatic'
19522             ;;
19523           cxx*)
19524             # Compaq C++
19525             # Make sure the PIC flag is empty.  It appears that all Alpha
19526             # Linux and Compaq Tru64 Unix objects are PIC.
19527             lt_prog_compiler_pic_CXX=
19528             lt_prog_compiler_static_CXX='-non_shared'
19529             ;;
19530           *)
19531             ;;
19532         esac
19533         ;;
19534       lynxos*)
19535         ;;
19536       m88k*)
19537         ;;
19538       mvs*)
19539         case $cc_basename in
19540           cxx*)
19541             lt_prog_compiler_pic_CXX='-W c,exportall'
19542             ;;
19543           *)
19544             ;;
19545         esac
19546         ;;
19547       netbsd*)
19548         ;;
19549       osf3* | osf4* | osf5*)
19550         case $cc_basename in
19551           KCC*)
19552             lt_prog_compiler_wl_CXX='--backend -Wl,'
19553             ;;
19554           RCC*)
19555             # Rational C++ 2.4.1
19556             lt_prog_compiler_pic_CXX='-pic'
19557             ;;
19558           cxx*)
19559             # Digital/Compaq C++
19560             lt_prog_compiler_wl_CXX='-Wl,'
19561             # Make sure the PIC flag is empty.  It appears that all Alpha
19562             # Linux and Compaq Tru64 Unix objects are PIC.
19563             lt_prog_compiler_pic_CXX=
19564             lt_prog_compiler_static_CXX='-non_shared'
19565             ;;
19566           *)
19567             ;;
19568         esac
19569         ;;
19570       psos*)
19571         ;;
19572       solaris*)
19573         case $cc_basename in
19574           CC*)
19575             # Sun C++ 4.2, 5.x and Centerline C++
19576             lt_prog_compiler_pic_CXX='-KPIC'
19577             lt_prog_compiler_static_CXX='-Bstatic'
19578             lt_prog_compiler_wl_CXX='-Qoption ld '
19579             ;;
19580           gcx*)
19581             # Green Hills C++ Compiler
19582             lt_prog_compiler_pic_CXX='-PIC'
19583             ;;
19584           *)
19585             ;;
19586         esac
19587         ;;
19588       sunos4*)
19589         case $cc_basename in
19590           CC*)
19591             # Sun C++ 4.x
19592             lt_prog_compiler_pic_CXX='-pic'
19593             lt_prog_compiler_static_CXX='-Bstatic'
19594             ;;
19595           lcc*)
19596             # Lucid
19597             lt_prog_compiler_pic_CXX='-pic'
19598             ;;
19599           *)
19600             ;;
19601         esac
19602         ;;
19603       tandem*)
19604         case $cc_basename in
19605           NCC*)
19606             # NonStop-UX NCC 3.20
19607             lt_prog_compiler_pic_CXX='-KPIC'
19608             ;;
19609           *)
19610             ;;
19611         esac
19612         ;;
19613       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19614         case $cc_basename in
19615           CC*)
19616             lt_prog_compiler_wl_CXX='-Wl,'
19617             lt_prog_compiler_pic_CXX='-KPIC'
19618             lt_prog_compiler_static_CXX='-Bstatic'
19619             ;;
19620         esac
19621         ;;
19622       vxworks*)
19623         ;;
19624       *)
19625         lt_prog_compiler_can_build_shared_CXX=no
19626         ;;
19627     esac
19628   fi
19629
19630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19631 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19632
19633 #
19634 # Check to make sure the PIC flag actually works.
19635 #
19636 if test -n "$lt_prog_compiler_pic_CXX"; then
19637
19638 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19640 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   lt_prog_compiler_pic_works_CXX=no
19644   ac_outfile=conftest.$ac_objext
19645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19646    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19647    # Insert the option either (1) after the last *FLAGS variable, or
19648    # (2) before a word containing "conftest.", or (3) at the end.
19649    # Note that $ac_compile itself does not contain backslashes and begins
19650    # with a dollar sign (not a hyphen), so the echo should work correctly.
19651    # The option is referenced via a variable to avoid confusing sed.
19652    lt_compile=`echo "$ac_compile" | $SED \
19653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19655    -e 's:$: $lt_compiler_flag:'`
19656    (eval echo "\"\$as_me:19656: $lt_compile\"" >&5)
19657    (eval "$lt_compile" 2>conftest.err)
19658    ac_status=$?
19659    cat conftest.err >&5
19660    echo "$as_me:19660: \$? = $ac_status" >&5
19661    if (exit $ac_status) && test -s "$ac_outfile"; then
19662      # The compiler can only warn and ignore the option if not recognized
19663      # So say no if there are warnings other than the usual output.
19664      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19667        lt_prog_compiler_pic_works_CXX=yes
19668      fi
19669    fi
19670    $rm conftest*
19671
19672 fi
19673 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19674 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19675
19676 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19677     case $lt_prog_compiler_pic_CXX in
19678      "" | " "*) ;;
19679      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19680      esac
19681 else
19682     lt_prog_compiler_pic_CXX=
19683      lt_prog_compiler_can_build_shared_CXX=no
19684 fi
19685
19686 fi
19687 case $host_os in
19688   # For platforms which do not support PIC, -DPIC is meaningless:
19689   *djgpp*)
19690     lt_prog_compiler_pic_CXX=
19691     ;;
19692   *)
19693     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19694     ;;
19695 esac
19696
19697 #
19698 # Check to make sure the static flag actually works.
19699 #
19700 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19701 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19703 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   lt_prog_compiler_static_works_CXX=no
19707    save_LDFLAGS="$LDFLAGS"
19708    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19709    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19710    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19711      # The linker can only warn and ignore the option if not recognized
19712      # So say no if there are warnings
19713      if test -s conftest.err; then
19714        # Append any errors to the config.log.
19715        cat conftest.err 1>&5
19716        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19717        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19718        if diff conftest.exp conftest.er2 >/dev/null; then
19719          lt_prog_compiler_static_works_CXX=yes
19720        fi
19721      else
19722        lt_prog_compiler_static_works_CXX=yes
19723      fi
19724    fi
19725    $rm conftest*
19726    LDFLAGS="$save_LDFLAGS"
19727
19728 fi
19729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19730 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19731
19732 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19733     :
19734 else
19735     lt_prog_compiler_static_CXX=
19736 fi
19737
19738
19739 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19741 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   lt_cv_prog_compiler_c_o_CXX=no
19745    $rm -r conftest 2>/dev/null
19746    mkdir conftest
19747    cd conftest
19748    mkdir out
19749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19750
19751    lt_compiler_flag="-o out/conftest2.$ac_objext"
19752    # Insert the option either (1) after the last *FLAGS variable, or
19753    # (2) before a word containing "conftest.", or (3) at the end.
19754    # Note that $ac_compile itself does not contain backslashes and begins
19755    # with a dollar sign (not a hyphen), so the echo should work correctly.
19756    lt_compile=`echo "$ac_compile" | $SED \
19757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19759    -e 's:$: $lt_compiler_flag:'`
19760    (eval echo "\"\$as_me:19760: $lt_compile\"" >&5)
19761    (eval "$lt_compile" 2>out/conftest.err)
19762    ac_status=$?
19763    cat out/conftest.err >&5
19764    echo "$as_me:19764: \$? = $ac_status" >&5
19765    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19766    then
19767      # The compiler can only warn and ignore the option if not recognized
19768      # So say no if there are warnings
19769      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19770      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19771      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19772        lt_cv_prog_compiler_c_o_CXX=yes
19773      fi
19774    fi
19775    chmod u+w . 2>&5
19776    $rm conftest*
19777    # SGI C++ compiler will create directory out/ii_files/ for
19778    # template instantiation
19779    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19780    $rm out/* && rmdir out
19781    cd ..
19782    rmdir conftest
19783    $rm conftest*
19784
19785 fi
19786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19788
19789
19790 hard_links="nottested"
19791 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19792   # do not overwrite the value of need_locks provided by the user
19793   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19795   hard_links=yes
19796   $rm conftest*
19797   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19798   touch conftest.a
19799   ln conftest.a conftest.b 2>&5 || hard_links=no
19800   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19801   { echo "$as_me:$LINENO: result: $hard_links" >&5
19802 echo "${ECHO_T}$hard_links" >&6; }
19803   if test "$hard_links" = no; then
19804     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19806     need_locks=warn
19807   fi
19808 else
19809   need_locks=no
19810 fi
19811
19812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19814
19815   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19816   case $host_os in
19817   aix4* | aix5*)
19818     # If we're using GNU nm, then we don't want the "-C" option.
19819     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19820     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19821       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'
19822     else
19823       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'
19824     fi
19825     ;;
19826   pw32*)
19827     export_symbols_cmds_CXX="$ltdll_cmds"
19828   ;;
19829   cygwin* | mingw*)
19830     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'
19831   ;;
19832   *)
19833     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19834   ;;
19835   esac
19836
19837 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no && can_build_shared=no
19840
19841 #
19842 # Do we need to explicitly link libc?
19843 #
19844 case "x$archive_cmds_need_lc_CXX" in
19845 x|xyes)
19846   # Assume -lc should be added
19847   archive_cmds_need_lc_CXX=yes
19848
19849   if test "$enable_shared" = yes && test "$GCC" = yes; then
19850     case $archive_cmds_CXX in
19851     *'~'*)
19852       # FIXME: we may have to deal with multi-command sequences.
19853       ;;
19854     '$CC '*)
19855       # Test whether the compiler implicitly links with -lc since on some
19856       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19857       # to ld, don't add -lc before -lgcc.
19858       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19859 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19860       $rm conftest*
19861       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19862
19863       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864   (eval $ac_compile) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } 2>conftest.err; then
19868         soname=conftest
19869         lib=conftest
19870         libobjs=conftest.$ac_objext
19871         deplibs=
19872         wl=$lt_prog_compiler_wl_CXX
19873         pic_flag=$lt_prog_compiler_pic_CXX
19874         compiler_flags=-v
19875         linker_flags=-v
19876         verstring=
19877         output_objdir=.
19878         libname=conftest
19879         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19880         allow_undefined_flag_CXX=
19881         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19882   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }
19886         then
19887           archive_cmds_need_lc_CXX=no
19888         else
19889           archive_cmds_need_lc_CXX=yes
19890         fi
19891         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19892       else
19893         cat conftest.err 1>&5
19894       fi
19895       $rm conftest*
19896       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19897 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19898       ;;
19899     esac
19900   fi
19901   ;;
19902 esac
19903
19904 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19906 library_names_spec=
19907 libname_spec='lib$name'
19908 soname_spec=
19909 shrext_cmds=".so"
19910 postinstall_cmds=
19911 postuninstall_cmds=
19912 finish_cmds=
19913 finish_eval=
19914 shlibpath_var=
19915 shlibpath_overrides_runpath=unknown
19916 version_type=none
19917 dynamic_linker="$host_os ld.so"
19918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19919 if test "$GCC" = yes; then
19920   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19921   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19922     # if the path contains ";" then we assume it to be the separator
19923     # otherwise default to the standard path separator (i.e. ":") - it is
19924     # assumed that no part of a normal pathname contains ";" but that should
19925     # okay in the real world where ";" in dirpaths is itself problematic.
19926     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19927   else
19928     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19929   fi
19930 else
19931   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19932 fi
19933 need_lib_prefix=unknown
19934 hardcode_into_libs=no
19935
19936 # when you set need_version to no, make sure it does not cause -set_version
19937 # flags to be left without arguments
19938 need_version=unknown
19939
19940 case $host_os in
19941 aix3*)
19942   version_type=linux
19943   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19944   shlibpath_var=LIBPATH
19945
19946   # AIX 3 has no versioning support, so we append a major version to the name.
19947   soname_spec='${libname}${release}${shared_ext}$major'
19948   ;;
19949
19950 aix4* | aix5*)
19951   version_type=linux
19952   need_lib_prefix=no
19953   need_version=no
19954   hardcode_into_libs=yes
19955   if test "$host_cpu" = ia64; then
19956     # AIX 5 supports IA64
19957     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19958     shlibpath_var=LD_LIBRARY_PATH
19959   else
19960     # With GCC up to 2.95.x, collect2 would create an import file
19961     # for dependence libraries.  The import file would start with
19962     # the line `#! .'.  This would cause the generated library to
19963     # depend on `.', always an invalid library.  This was fixed in
19964     # development snapshots of GCC prior to 3.0.
19965     case $host_os in
19966       aix4 | aix4.[01] | aix4.[01].*)
19967       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19968            echo ' yes '
19969            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19970         :
19971       else
19972         can_build_shared=no
19973       fi
19974       ;;
19975     esac
19976     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19977     # soname into executable. Probably we can add versioning support to
19978     # collect2, so additional links can be useful in future.
19979     if test "$aix_use_runtimelinking" = yes; then
19980       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19981       # instead of lib<name>.a to let people know that these are not
19982       # typical AIX shared libraries.
19983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19984     else
19985       # We preserve .a as extension for shared libraries through AIX4.2
19986       # and later when we are not doing run time linking.
19987       library_names_spec='${libname}${release}.a $libname.a'
19988       soname_spec='${libname}${release}${shared_ext}$major'
19989     fi
19990     shlibpath_var=LIBPATH
19991   fi
19992   ;;
19993
19994 amigaos*)
19995   library_names_spec='$libname.ixlibrary $libname.a'
19996   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19997   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'
19998   ;;
19999
20000 beos*)
20001   library_names_spec='${libname}${shared_ext}'
20002   dynamic_linker="$host_os ld.so"
20003   shlibpath_var=LIBRARY_PATH
20004   ;;
20005
20006 bsdi[45]*)
20007   version_type=linux
20008   need_version=no
20009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010   soname_spec='${libname}${release}${shared_ext}$major'
20011   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20012   shlibpath_var=LD_LIBRARY_PATH
20013   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20014   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20015   # the default ld.so.conf also contains /usr/contrib/lib and
20016   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20017   # libtool to hard-code these into programs
20018   ;;
20019
20020 cygwin* | mingw* | pw32*)
20021   version_type=windows
20022   shrext_cmds=".dll"
20023   need_version=no
20024   need_lib_prefix=no
20025
20026   case $GCC,$host_os in
20027   yes,cygwin* | yes,mingw* | yes,pw32*)
20028     library_names_spec='$libname.dll.a'
20029     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20030     postinstall_cmds='base_file=`basename \${file}`~
20031       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20032       dldir=$destdir/`dirname \$dlpath`~
20033       test -d \$dldir || mkdir -p \$dldir~
20034       $install_prog $dir/$dlname \$dldir/$dlname~
20035       chmod a+x \$dldir/$dlname'
20036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20037       dlpath=$dir/\$dldll~
20038        $rm \$dlpath'
20039     shlibpath_overrides_runpath=yes
20040
20041     case $host_os in
20042     cygwin*)
20043       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20044       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20045       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20046       ;;
20047     mingw*)
20048       # MinGW DLLs use traditional 'lib' prefix
20049       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20051       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20052         # It is most probably a Windows format PATH printed by
20053         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20054         # path with ; separators, and with drive letters. We can handle the
20055         # drive letters (cygwin fileutils understands them), so leave them,
20056         # especially as we might pass files found there to a mingw objdump,
20057         # which wouldn't understand a cygwinified path. Ahh.
20058         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20059       else
20060         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20061       fi
20062       ;;
20063     pw32*)
20064       # pw32 DLLs use 'pw' prefix rather than 'lib'
20065       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20066       ;;
20067     esac
20068     ;;
20069
20070   *)
20071     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20072     ;;
20073   esac
20074   dynamic_linker='Win32 ld.exe'
20075   # FIXME: first we should search . and the directory the executable is in
20076   shlibpath_var=PATH
20077   ;;
20078
20079 darwin* | rhapsody*)
20080   dynamic_linker="$host_os dyld"
20081   version_type=darwin
20082   need_lib_prefix=no
20083   need_version=no
20084   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20085   soname_spec='${libname}${release}${major}$shared_ext'
20086   shlibpath_overrides_runpath=yes
20087   shlibpath_var=DYLD_LIBRARY_PATH
20088   shrext_cmds='.dylib'
20089   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20090   if test "$GCC" = yes; then
20091     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"`
20092   else
20093     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20094   fi
20095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20096   ;;
20097
20098 dgux*)
20099   version_type=linux
20100   need_lib_prefix=no
20101   need_version=no
20102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20103   soname_spec='${libname}${release}${shared_ext}$major'
20104   shlibpath_var=LD_LIBRARY_PATH
20105   ;;
20106
20107 freebsd1*)
20108   dynamic_linker=no
20109   ;;
20110
20111 kfreebsd*-gnu)
20112   version_type=linux
20113   need_lib_prefix=no
20114   need_version=no
20115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20116   soname_spec='${libname}${release}${shared_ext}$major'
20117   shlibpath_var=LD_LIBRARY_PATH
20118   shlibpath_overrides_runpath=no
20119   hardcode_into_libs=yes
20120   dynamic_linker='GNU ld.so'
20121   ;;
20122
20123 freebsd* | dragonfly*)
20124   # DragonFly does not have aout.  When/if they implement a new
20125   # versioning mechanism, adjust this.
20126   if test -x /usr/bin/objformat; then
20127     objformat=`/usr/bin/objformat`
20128   else
20129     case $host_os in
20130     freebsd[123]*) objformat=aout ;;
20131     *) objformat=elf ;;
20132     esac
20133   fi
20134   version_type=freebsd-$objformat
20135   case $version_type in
20136     freebsd-elf*)
20137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20138       need_version=no
20139       need_lib_prefix=no
20140       ;;
20141     freebsd-*)
20142       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20143       need_version=yes
20144       ;;
20145   esac
20146   shlibpath_var=LD_LIBRARY_PATH
20147   case $host_os in
20148   freebsd2*)
20149     shlibpath_overrides_runpath=yes
20150     ;;
20151   freebsd3.[01]* | freebsdelf3.[01]*)
20152     shlibpath_overrides_runpath=yes
20153     hardcode_into_libs=yes
20154     ;;
20155   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20156   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20157     shlibpath_overrides_runpath=no
20158     hardcode_into_libs=yes
20159     ;;
20160   freebsd*) # from 4.6 on
20161     shlibpath_overrides_runpath=yes
20162     hardcode_into_libs=yes
20163     ;;
20164   esac
20165   ;;
20166
20167 gnu*)
20168   version_type=linux
20169   need_lib_prefix=no
20170   need_version=no
20171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20172   soname_spec='${libname}${release}${shared_ext}$major'
20173   shlibpath_var=LD_LIBRARY_PATH
20174   hardcode_into_libs=yes
20175   ;;
20176
20177 hpux9* | hpux10* | hpux11*)
20178   # Give a soname corresponding to the major version so that dld.sl refuses to
20179   # link against other versions.
20180   version_type=sunos
20181   need_lib_prefix=no
20182   need_version=no
20183   case $host_cpu in
20184   ia64*)
20185     shrext_cmds='.so'
20186     hardcode_into_libs=yes
20187     dynamic_linker="$host_os dld.so"
20188     shlibpath_var=LD_LIBRARY_PATH
20189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191     soname_spec='${libname}${release}${shared_ext}$major'
20192     if test "X$HPUX_IA64_MODE" = X32; then
20193       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20194     else
20195       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20196     fi
20197     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20198     ;;
20199    hppa*64*)
20200      shrext_cmds='.sl'
20201      hardcode_into_libs=yes
20202      dynamic_linker="$host_os dld.sl"
20203      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20204      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206      soname_spec='${libname}${release}${shared_ext}$major'
20207      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20208      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20209      ;;
20210    *)
20211     shrext_cmds='.sl'
20212     dynamic_linker="$host_os dld.sl"
20213     shlibpath_var=SHLIB_PATH
20214     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216     soname_spec='${libname}${release}${shared_ext}$major'
20217     ;;
20218   esac
20219   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20220   postinstall_cmds='chmod 555 $lib'
20221   ;;
20222
20223 interix3*)
20224   version_type=linux
20225   need_lib_prefix=no
20226   need_version=no
20227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20228   soname_spec='${libname}${release}${shared_ext}$major'
20229   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20230   shlibpath_var=LD_LIBRARY_PATH
20231   shlibpath_overrides_runpath=no
20232   hardcode_into_libs=yes
20233   ;;
20234
20235 irix5* | irix6* | nonstopux*)
20236   case $host_os in
20237     nonstopux*) version_type=nonstopux ;;
20238     *)
20239         if test "$lt_cv_prog_gnu_ld" = yes; then
20240                 version_type=linux
20241         else
20242                 version_type=irix
20243         fi ;;
20244   esac
20245   need_lib_prefix=no
20246   need_version=no
20247   soname_spec='${libname}${release}${shared_ext}$major'
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20249   case $host_os in
20250   irix5* | nonstopux*)
20251     libsuff= shlibsuff=
20252     ;;
20253   *)
20254     case $LD in # libtool.m4 will add one of these switches to LD
20255     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20256       libsuff= shlibsuff= libmagic=32-bit;;
20257     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20258       libsuff=32 shlibsuff=N32 libmagic=N32;;
20259     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20260       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20261     *) libsuff= shlibsuff= libmagic=never-match;;
20262     esac
20263     ;;
20264   esac
20265   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20266   shlibpath_overrides_runpath=no
20267   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20268   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20269   hardcode_into_libs=yes
20270   ;;
20271
20272 # No shared lib support for Linux oldld, aout, or coff.
20273 linux*oldld* | linux*aout* | linux*coff*)
20274   dynamic_linker=no
20275   ;;
20276
20277 # This must be Linux ELF.
20278 linux*)
20279   version_type=linux
20280   need_lib_prefix=no
20281   need_version=no
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283   soname_spec='${libname}${release}${shared_ext}$major'
20284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20285   shlibpath_var=LD_LIBRARY_PATH
20286   shlibpath_overrides_runpath=no
20287   # This implies no fast_install, which is unacceptable.
20288   # Some rework will be needed to allow for fast_install
20289   # before this can be enabled.
20290   hardcode_into_libs=yes
20291
20292   # Append ld.so.conf contents to the search path
20293   if test -f /etc/ld.so.conf; then
20294     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' ' '`
20295     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20296   fi
20297
20298   # We used to test for /lib/ld.so.1 and disable shared libraries on
20299   # powerpc, because MkLinux only supported shared libraries with the
20300   # GNU dynamic linker.  Since this was broken with cross compilers,
20301   # most powerpc-linux boxes support dynamic linking these days and
20302   # people can always --disable-shared, the test was removed, and we
20303   # assume the GNU/Linux dynamic linker is in use.
20304   dynamic_linker='GNU/Linux ld.so'
20305   ;;
20306
20307 knetbsd*-gnu)
20308   version_type=linux
20309   need_lib_prefix=no
20310   need_version=no
20311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20312   soname_spec='${libname}${release}${shared_ext}$major'
20313   shlibpath_var=LD_LIBRARY_PATH
20314   shlibpath_overrides_runpath=no
20315   hardcode_into_libs=yes
20316   dynamic_linker='GNU ld.so'
20317   ;;
20318
20319 netbsd*)
20320   version_type=sunos
20321   need_lib_prefix=no
20322   need_version=no
20323   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20326     dynamic_linker='NetBSD (a.out) ld.so'
20327   else
20328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20329     soname_spec='${libname}${release}${shared_ext}$major'
20330     dynamic_linker='NetBSD ld.elf_so'
20331   fi
20332   shlibpath_var=LD_LIBRARY_PATH
20333   shlibpath_overrides_runpath=yes
20334   hardcode_into_libs=yes
20335   ;;
20336
20337 newsos6)
20338   version_type=linux
20339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=yes
20342   ;;
20343
20344 nto-qnx*)
20345   version_type=linux
20346   need_lib_prefix=no
20347   need_version=no
20348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20349   soname_spec='${libname}${release}${shared_ext}$major'
20350   shlibpath_var=LD_LIBRARY_PATH
20351   shlibpath_overrides_runpath=yes
20352   ;;
20353
20354 openbsd*)
20355   version_type=sunos
20356   sys_lib_dlsearch_path_spec="/usr/lib"
20357   need_lib_prefix=no
20358   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20359   case $host_os in
20360     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20361     *)                         need_version=no  ;;
20362   esac
20363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20365   shlibpath_var=LD_LIBRARY_PATH
20366   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20367     case $host_os in
20368       openbsd2.[89] | openbsd2.[89].*)
20369         shlibpath_overrides_runpath=no
20370         ;;
20371       *)
20372         shlibpath_overrides_runpath=yes
20373         ;;
20374       esac
20375   else
20376     shlibpath_overrides_runpath=yes
20377   fi
20378   ;;
20379
20380 os2*)
20381   libname_spec='$name'
20382   shrext_cmds=".dll"
20383   need_lib_prefix=no
20384   library_names_spec='$libname${shared_ext} $libname.a'
20385   dynamic_linker='OS/2 ld.exe'
20386   shlibpath_var=LIBPATH
20387   ;;
20388
20389 osf3* | osf4* | osf5*)
20390   version_type=osf
20391   need_lib_prefix=no
20392   need_version=no
20393   soname_spec='${libname}${release}${shared_ext}$major'
20394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395   shlibpath_var=LD_LIBRARY_PATH
20396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20398   ;;
20399
20400 solaris*)
20401   version_type=linux
20402   need_lib_prefix=no
20403   need_version=no
20404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405   soname_spec='${libname}${release}${shared_ext}$major'
20406   shlibpath_var=LD_LIBRARY_PATH
20407   shlibpath_overrides_runpath=yes
20408   hardcode_into_libs=yes
20409   # ldd complains unless libraries are executable
20410   postinstall_cmds='chmod +x $lib'
20411   ;;
20412
20413 sunos4*)
20414   version_type=sunos
20415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20416   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20417   shlibpath_var=LD_LIBRARY_PATH
20418   shlibpath_overrides_runpath=yes
20419   if test "$with_gnu_ld" = yes; then
20420     need_lib_prefix=no
20421   fi
20422   need_version=yes
20423   ;;
20424
20425 sysv4 | sysv4.3*)
20426   version_type=linux
20427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20428   soname_spec='${libname}${release}${shared_ext}$major'
20429   shlibpath_var=LD_LIBRARY_PATH
20430   case $host_vendor in
20431     sni)
20432       shlibpath_overrides_runpath=no
20433       need_lib_prefix=no
20434       export_dynamic_flag_spec='${wl}-Blargedynsym'
20435       runpath_var=LD_RUN_PATH
20436       ;;
20437     siemens)
20438       need_lib_prefix=no
20439       ;;
20440     motorola)
20441       need_lib_prefix=no
20442       need_version=no
20443       shlibpath_overrides_runpath=no
20444       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20445       ;;
20446   esac
20447   ;;
20448
20449 sysv4*MP*)
20450   if test -d /usr/nec ;then
20451     version_type=linux
20452     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20453     soname_spec='$libname${shared_ext}.$major'
20454     shlibpath_var=LD_LIBRARY_PATH
20455   fi
20456   ;;
20457
20458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459   version_type=freebsd-elf
20460   need_lib_prefix=no
20461   need_version=no
20462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20463   soname_spec='${libname}${release}${shared_ext}$major'
20464   shlibpath_var=LD_LIBRARY_PATH
20465   hardcode_into_libs=yes
20466   if test "$with_gnu_ld" = yes; then
20467     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20468     shlibpath_overrides_runpath=no
20469   else
20470     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20471     shlibpath_overrides_runpath=yes
20472     case $host_os in
20473       sco3.2v5*)
20474         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20475         ;;
20476     esac
20477   fi
20478   sys_lib_dlsearch_path_spec='/usr/lib'
20479   ;;
20480
20481 uts4*)
20482   version_type=linux
20483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484   soname_spec='${libname}${release}${shared_ext}$major'
20485   shlibpath_var=LD_LIBRARY_PATH
20486   ;;
20487
20488 *)
20489   dynamic_linker=no
20490   ;;
20491 esac
20492 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20493 echo "${ECHO_T}$dynamic_linker" >&6; }
20494 test "$dynamic_linker" = no && can_build_shared=no
20495
20496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20497 if test "$GCC" = yes; then
20498   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20499 fi
20500
20501 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20503 hardcode_action_CXX=
20504 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20505    test -n "$runpath_var_CXX" || \
20506    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20507
20508   # We can hardcode non-existant directories.
20509   if test "$hardcode_direct_CXX" != no &&
20510      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511      # have to relink, otherwise we might link with an installed library
20512      # when we should be linking with a yet-to-be-installed one
20513      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20514      test "$hardcode_minus_L_CXX" != no; then
20515     # Linking always hardcodes the temporary library directory.
20516     hardcode_action_CXX=relink
20517   else
20518     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519     hardcode_action_CXX=immediate
20520   fi
20521 else
20522   # We cannot hardcode anything, or else we can only hardcode existing
20523   # directories.
20524   hardcode_action_CXX=unsupported
20525 fi
20526 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20527 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20528
20529 if test "$hardcode_action_CXX" = relink; then
20530   # Fast installation is not supported
20531   enable_fast_install=no
20532 elif test "$shlibpath_overrides_runpath" = yes ||
20533      test "$enable_shared" = no; then
20534   # Fast installation is not necessary
20535   enable_fast_install=needless
20536 fi
20537
20538
20539 # The else clause should only fire when bootstrapping the
20540 # libtool distribution, otherwise you forgot to ship ltmain.sh
20541 # with your package, and you will get complaints that there are
20542 # no rules to generate ltmain.sh.
20543 if test -f "$ltmain"; then
20544   # See if we are running on zsh, and set the options which allow our commands through
20545   # without removal of \ escapes.
20546   if test -n "${ZSH_VERSION+set}" ; then
20547     setopt NO_GLOB_SUBST
20548   fi
20549   # Now quote all the things that may contain metacharacters while being
20550   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20551   # variables and quote the copies for generation of the libtool script.
20552   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20553     SED SHELL STRIP \
20554     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20555     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20556     deplibs_check_method reload_flag reload_cmds need_locks \
20557     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20558     lt_cv_sys_global_symbol_to_c_name_address \
20559     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20560     old_postinstall_cmds old_postuninstall_cmds \
20561     compiler_CXX \
20562     CC_CXX \
20563     LD_CXX \
20564     lt_prog_compiler_wl_CXX \
20565     lt_prog_compiler_pic_CXX \
20566     lt_prog_compiler_static_CXX \
20567     lt_prog_compiler_no_builtin_flag_CXX \
20568     export_dynamic_flag_spec_CXX \
20569     thread_safe_flag_spec_CXX \
20570     whole_archive_flag_spec_CXX \
20571     enable_shared_with_static_runtimes_CXX \
20572     old_archive_cmds_CXX \
20573     old_archive_from_new_cmds_CXX \
20574     predep_objects_CXX \
20575     postdep_objects_CXX \
20576     predeps_CXX \
20577     postdeps_CXX \
20578     compiler_lib_search_path_CXX \
20579     archive_cmds_CXX \
20580     archive_expsym_cmds_CXX \
20581     postinstall_cmds_CXX \
20582     postuninstall_cmds_CXX \
20583     old_archive_from_expsyms_cmds_CXX \
20584     allow_undefined_flag_CXX \
20585     no_undefined_flag_CXX \
20586     export_symbols_cmds_CXX \
20587     hardcode_libdir_flag_spec_CXX \
20588     hardcode_libdir_flag_spec_ld_CXX \
20589     hardcode_libdir_separator_CXX \
20590     hardcode_automatic_CXX \
20591     module_cmds_CXX \
20592     module_expsym_cmds_CXX \
20593     lt_cv_prog_compiler_c_o_CXX \
20594     exclude_expsyms_CXX \
20595     include_expsyms_CXX; do
20596
20597     case $var in
20598     old_archive_cmds_CXX | \
20599     old_archive_from_new_cmds_CXX | \
20600     archive_cmds_CXX | \
20601     archive_expsym_cmds_CXX | \
20602     module_cmds_CXX | \
20603     module_expsym_cmds_CXX | \
20604     old_archive_from_expsyms_cmds_CXX | \
20605     export_symbols_cmds_CXX | \
20606     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20607     postinstall_cmds | postuninstall_cmds | \
20608     old_postinstall_cmds | old_postuninstall_cmds | \
20609     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20610       # Double-quote double-evaled strings.
20611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20612       ;;
20613     *)
20614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20615       ;;
20616     esac
20617   done
20618
20619   case $lt_echo in
20620   *'\$0 --fallback-echo"')
20621     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20622     ;;
20623   esac
20624
20625 cfgfile="$ofile"
20626
20627   cat <<__EOF__ >> "$cfgfile"
20628 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20629
20630 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20631
20632 # Shell to use when invoking shell scripts.
20633 SHELL=$lt_SHELL
20634
20635 # Whether or not to build shared libraries.
20636 build_libtool_libs=$enable_shared
20637
20638 # Whether or not to build static libraries.
20639 build_old_libs=$enable_static
20640
20641 # Whether or not to add -lc for building shared libraries.
20642 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20643
20644 # Whether or not to disallow shared libs when runtime libs are static
20645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20646
20647 # Whether or not to optimize for fast installation.
20648 fast_install=$enable_fast_install
20649
20650 # The host system.
20651 host_alias=$host_alias
20652 host=$host
20653 host_os=$host_os
20654
20655 # The build system.
20656 build_alias=$build_alias
20657 build=$build
20658 build_os=$build_os
20659
20660 # An echo program that does not interpret backslashes.
20661 echo=$lt_echo
20662
20663 # The archiver.
20664 AR=$lt_AR
20665 AR_FLAGS=$lt_AR_FLAGS
20666
20667 # A C compiler.
20668 LTCC=$lt_LTCC
20669
20670 # LTCC compiler flags.
20671 LTCFLAGS=$lt_LTCFLAGS
20672
20673 # A language-specific compiler.
20674 CC=$lt_compiler_CXX
20675
20676 # Is the compiler the GNU C compiler?
20677 with_gcc=$GCC_CXX
20678
20679 # An ERE matcher.
20680 EGREP=$lt_EGREP
20681
20682 # The linker used to build libraries.
20683 LD=$lt_LD_CXX
20684
20685 # Whether we need hard or soft links.
20686 LN_S=$lt_LN_S
20687
20688 # A BSD-compatible nm program.
20689 NM=$lt_NM
20690
20691 # A symbol stripping program
20692 STRIP=$lt_STRIP
20693
20694 # Used to examine libraries when file_magic_cmd begins "file"
20695 MAGIC_CMD=$MAGIC_CMD
20696
20697 # Used on cygwin: DLL creation program.
20698 DLLTOOL="$DLLTOOL"
20699
20700 # Used on cygwin: object dumper.
20701 OBJDUMP="$OBJDUMP"
20702
20703 # Used on cygwin: assembler.
20704 AS="$AS"
20705
20706 # The name of the directory that contains temporary libtool files.
20707 objdir=$objdir
20708
20709 # How to create reloadable object files.
20710 reload_flag=$lt_reload_flag
20711 reload_cmds=$lt_reload_cmds
20712
20713 # How to pass a linker flag through the compiler.
20714 wl=$lt_lt_prog_compiler_wl_CXX
20715
20716 # Object file suffix (normally "o").
20717 objext="$ac_objext"
20718
20719 # Old archive suffix (normally "a").
20720 libext="$libext"
20721
20722 # Shared library suffix (normally ".so").
20723 shrext_cmds='$shrext_cmds'
20724
20725 # Executable file suffix (normally "").
20726 exeext="$exeext"
20727
20728 # Additional compiler flags for building library objects.
20729 pic_flag=$lt_lt_prog_compiler_pic_CXX
20730 pic_mode=$pic_mode
20731
20732 # What is the maximum length of a command?
20733 max_cmd_len=$lt_cv_sys_max_cmd_len
20734
20735 # Does compiler simultaneously support -c and -o options?
20736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20737
20738 # Must we lock files when doing compilation?
20739 need_locks=$lt_need_locks
20740
20741 # Do we need the lib prefix for modules?
20742 need_lib_prefix=$need_lib_prefix
20743
20744 # Do we need a version for libraries?
20745 need_version=$need_version
20746
20747 # Whether dlopen is supported.
20748 dlopen_support=$enable_dlopen
20749
20750 # Whether dlopen of programs is supported.
20751 dlopen_self=$enable_dlopen_self
20752
20753 # Whether dlopen of statically linked programs is supported.
20754 dlopen_self_static=$enable_dlopen_self_static
20755
20756 # Compiler flag to prevent dynamic linking.
20757 link_static_flag=$lt_lt_prog_compiler_static_CXX
20758
20759 # Compiler flag to turn off builtin functions.
20760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20761
20762 # Compiler flag to allow reflexive dlopens.
20763 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20764
20765 # Compiler flag to generate shared objects directly from archives.
20766 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20767
20768 # Compiler flag to generate thread-safe objects.
20769 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20770
20771 # Library versioning type.
20772 version_type=$version_type
20773
20774 # Format of library name prefix.
20775 libname_spec=$lt_libname_spec
20776
20777 # List of archive names.  First name is the real one, the rest are links.
20778 # The last name is the one that the linker finds with -lNAME.
20779 library_names_spec=$lt_library_names_spec
20780
20781 # The coded name of the library, if different from the real name.
20782 soname_spec=$lt_soname_spec
20783
20784 # Commands used to build and install an old-style archive.
20785 RANLIB=$lt_RANLIB
20786 old_archive_cmds=$lt_old_archive_cmds_CXX
20787 old_postinstall_cmds=$lt_old_postinstall_cmds
20788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20789
20790 # Create an old-style archive from a shared archive.
20791 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20792
20793 # Create a temporary old-style archive to link instead of a shared archive.
20794 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20795
20796 # Commands used to build and install a shared archive.
20797 archive_cmds=$lt_archive_cmds_CXX
20798 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20799 postinstall_cmds=$lt_postinstall_cmds
20800 postuninstall_cmds=$lt_postuninstall_cmds
20801
20802 # Commands used to build a loadable module (assumed same as above if empty)
20803 module_cmds=$lt_module_cmds_CXX
20804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20805
20806 # Commands to strip libraries.
20807 old_striplib=$lt_old_striplib
20808 striplib=$lt_striplib
20809
20810 # Dependencies to place before the objects being linked to create a
20811 # shared library.
20812 predep_objects=$lt_predep_objects_CXX
20813
20814 # Dependencies to place after the objects being linked to create a
20815 # shared library.
20816 postdep_objects=$lt_postdep_objects_CXX
20817
20818 # Dependencies to place before the objects being linked to create a
20819 # shared library.
20820 predeps=$lt_predeps_CXX
20821
20822 # Dependencies to place after the objects being linked to create a
20823 # shared library.
20824 postdeps=$lt_postdeps_CXX
20825
20826 # The library search path used internally by the compiler when linking
20827 # a shared library.
20828 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20829
20830 # Method to check whether dependent libraries are shared objects.
20831 deplibs_check_method=$lt_deplibs_check_method
20832
20833 # Command to use when deplibs_check_method == file_magic.
20834 file_magic_cmd=$lt_file_magic_cmd
20835
20836 # Flag that allows shared libraries with undefined symbols to be built.
20837 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20838
20839 # Flag that forces no undefined symbols.
20840 no_undefined_flag=$lt_no_undefined_flag_CXX
20841
20842 # Commands used to finish a libtool library installation in a directory.
20843 finish_cmds=$lt_finish_cmds
20844
20845 # Same as above, but a single script fragment to be evaled but not shown.
20846 finish_eval=$lt_finish_eval
20847
20848 # Take the output of nm and produce a listing of raw symbols and C names.
20849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20850
20851 # Transform the output of nm in a proper C declaration
20852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20853
20854 # Transform the output of nm in a C name address pair
20855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20856
20857 # This is the shared library runtime path variable.
20858 runpath_var=$runpath_var
20859
20860 # This is the shared library path variable.
20861 shlibpath_var=$shlibpath_var
20862
20863 # Is shlibpath searched before the hard-coded library search path?
20864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20865
20866 # How to hardcode a shared library path into an executable.
20867 hardcode_action=$hardcode_action_CXX
20868
20869 # Whether we should hardcode library paths into libraries.
20870 hardcode_into_libs=$hardcode_into_libs
20871
20872 # Flag to hardcode \$libdir into a binary during linking.
20873 # This must work even if \$libdir does not exist.
20874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20875
20876 # If ld is used when linking, flag to hardcode \$libdir into
20877 # a binary during linking. This must work even if \$libdir does
20878 # not exist.
20879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20880
20881 # Whether we need a single -rpath flag with a separated argument.
20882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20883
20884 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20885 # resulting binary.
20886 hardcode_direct=$hardcode_direct_CXX
20887
20888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20889 # resulting binary.
20890 hardcode_minus_L=$hardcode_minus_L_CXX
20891
20892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20893 # the resulting binary.
20894 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20895
20896 # Set to yes if building a shared library automatically hardcodes DIR into the library
20897 # and all subsequent libraries and executables linked against it.
20898 hardcode_automatic=$hardcode_automatic_CXX
20899
20900 # Variables whose values should be saved in libtool wrapper scripts and
20901 # restored at relink time.
20902 variables_saved_for_relink="$variables_saved_for_relink"
20903
20904 # Whether libtool must link a program against all its dependency libraries.
20905 link_all_deplibs=$link_all_deplibs_CXX
20906
20907 # Compile-time system search path for libraries
20908 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20909
20910 # Run-time system search path for libraries
20911 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20912
20913 # Fix the shell variable \$srcfile for the compiler.
20914 fix_srcfile_path="$fix_srcfile_path_CXX"
20915
20916 # Set to yes if exported symbols are required.
20917 always_export_symbols=$always_export_symbols_CXX
20918
20919 # The commands to list exported symbols.
20920 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20921
20922 # The commands to extract the exported symbol list from a shared archive.
20923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20924
20925 # Symbols that should not be listed in the preloaded symbols.
20926 exclude_expsyms=$lt_exclude_expsyms_CXX
20927
20928 # Symbols that must always be exported.
20929 include_expsyms=$lt_include_expsyms_CXX
20930
20931 # ### END LIBTOOL TAG CONFIG: $tagname
20932
20933 __EOF__
20934
20935
20936 else
20937   # If there is no Makefile yet, we rely on a make rule to execute
20938   # `config.status --recheck' to rerun these tests and create the
20939   # libtool script then.
20940   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20941   if test -f "$ltmain_in"; then
20942     test -f Makefile && make "$ltmain"
20943   fi
20944 fi
20945
20946
20947 ac_ext=c
20948 ac_cpp='$CPP $CPPFLAGS'
20949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953 CC=$lt_save_CC
20954 LDCXX=$LD
20955 LD=$lt_save_LD
20956 GCC=$lt_save_GCC
20957 with_gnu_ldcxx=$with_gnu_ld
20958 with_gnu_ld=$lt_save_with_gnu_ld
20959 lt_cv_path_LDCXX=$lt_cv_path_LD
20960 lt_cv_path_LD=$lt_save_path_LD
20961 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20962 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20963
20964         else
20965           tagname=""
20966         fi
20967         ;;
20968
20969       F77)
20970         if test -n "$F77" && test "X$F77" != "Xno"; then
20971
20972 ac_ext=f
20973 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20974 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20976
20977
20978 archive_cmds_need_lc_F77=no
20979 allow_undefined_flag_F77=
20980 always_export_symbols_F77=no
20981 archive_expsym_cmds_F77=
20982 export_dynamic_flag_spec_F77=
20983 hardcode_direct_F77=no
20984 hardcode_libdir_flag_spec_F77=
20985 hardcode_libdir_flag_spec_ld_F77=
20986 hardcode_libdir_separator_F77=
20987 hardcode_minus_L_F77=no
20988 hardcode_automatic_F77=no
20989 module_cmds_F77=
20990 module_expsym_cmds_F77=
20991 link_all_deplibs_F77=unknown
20992 old_archive_cmds_F77=$old_archive_cmds
20993 no_undefined_flag_F77=
20994 whole_archive_flag_spec_F77=
20995 enable_shared_with_static_runtimes_F77=no
20996
20997 # Source file extension for f77 test sources.
20998 ac_ext=f
20999
21000 # Object file extension for compiled f77 test sources.
21001 objext=o
21002 objext_F77=$objext
21003
21004 # Code to be used in simple compile tests
21005 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21006
21007 # Code to be used in simple link tests
21008 lt_simple_link_test_code="      program t\n      end\n"
21009
21010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21011
21012 # If no C compiler was specified, use CC.
21013 LTCC=${LTCC-"$CC"}
21014
21015 # If no C compiler flags were specified, use CFLAGS.
21016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21017
21018 # Allow CC to be a program name with arguments.
21019 compiler=$CC
21020
21021
21022 # save warnings/boilerplate of simple test code
21023 ac_outfile=conftest.$ac_objext
21024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21026 _lt_compiler_boilerplate=`cat conftest.err`
21027 $rm conftest*
21028
21029 ac_outfile=conftest.$ac_objext
21030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21032 _lt_linker_boilerplate=`cat conftest.err`
21033 $rm conftest*
21034
21035
21036 # Allow CC to be a program name with arguments.
21037 lt_save_CC="$CC"
21038 CC=${F77-"f77"}
21039 compiler=$CC
21040 compiler_F77=$CC
21041 for cc_temp in $compiler""; do
21042   case $cc_temp in
21043     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21044     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21045     \-*) ;;
21046     *) break;;
21047   esac
21048 done
21049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21050
21051
21052 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21053 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21054 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21055 echo "${ECHO_T}$can_build_shared" >&6; }
21056
21057 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21058 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21059 test "$can_build_shared" = "no" && enable_shared=no
21060
21061 # On AIX, shared libraries and static libraries use the same namespace, and
21062 # are all built from PIC.
21063 case $host_os in
21064 aix3*)
21065   test "$enable_shared" = yes && enable_static=no
21066   if test -n "$RANLIB"; then
21067     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21068     postinstall_cmds='$RANLIB $lib'
21069   fi
21070   ;;
21071 aix4* | aix5*)
21072   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21073     test "$enable_shared" = yes && enable_static=no
21074   fi
21075   ;;
21076 esac
21077 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21078 echo "${ECHO_T}$enable_shared" >&6; }
21079
21080 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21082 # Make sure either enable_shared or enable_static is yes.
21083 test "$enable_shared" = yes || enable_static=yes
21084 { echo "$as_me:$LINENO: result: $enable_static" >&5
21085 echo "${ECHO_T}$enable_static" >&6; }
21086
21087 GCC_F77="$G77"
21088 LD_F77="$LD"
21089
21090 lt_prog_compiler_wl_F77=
21091 lt_prog_compiler_pic_F77=
21092 lt_prog_compiler_static_F77=
21093
21094 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21096
21097   if test "$GCC" = yes; then
21098     lt_prog_compiler_wl_F77='-Wl,'
21099     lt_prog_compiler_static_F77='-static'
21100
21101     case $host_os in
21102       aix*)
21103       # All AIX code is PIC.
21104       if test "$host_cpu" = ia64; then
21105         # AIX 5 now supports IA64 processor
21106         lt_prog_compiler_static_F77='-Bstatic'
21107       fi
21108       ;;
21109
21110     amigaos*)
21111       # FIXME: we need at least 68020 code to build shared libraries, but
21112       # adding the `-m68020' flag to GCC prevents building anything better,
21113       # like `-m68040'.
21114       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21115       ;;
21116
21117     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21118       # PIC is the default for these OSes.
21119       ;;
21120
21121     mingw* | pw32* | os2*)
21122       # This hack is so that the source file can tell whether it is being
21123       # built for inclusion in a dll (and should export symbols for example).
21124       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21125       ;;
21126
21127     darwin* | rhapsody*)
21128       # PIC is the default on this platform
21129       # Common symbols not allowed in MH_DYLIB files
21130       lt_prog_compiler_pic_F77='-fno-common'
21131       ;;
21132
21133     interix3*)
21134       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21135       # Instead, we relocate shared libraries at runtime.
21136       ;;
21137
21138     msdosdjgpp*)
21139       # Just because we use GCC doesn't mean we suddenly get shared libraries
21140       # on systems that don't support them.
21141       lt_prog_compiler_can_build_shared_F77=no
21142       enable_shared=no
21143       ;;
21144
21145     sysv4*MP*)
21146       if test -d /usr/nec; then
21147         lt_prog_compiler_pic_F77=-Kconform_pic
21148       fi
21149       ;;
21150
21151     hpux*)
21152       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21153       # not for PA HP-UX.
21154       case $host_cpu in
21155       hppa*64*|ia64*)
21156         # +Z the default
21157         ;;
21158       *)
21159         lt_prog_compiler_pic_F77='-fPIC'
21160         ;;
21161       esac
21162       ;;
21163
21164     *)
21165       lt_prog_compiler_pic_F77='-fPIC'
21166       ;;
21167     esac
21168   else
21169     # PORTME Check for flag to pass linker flags through the system compiler.
21170     case $host_os in
21171     aix*)
21172       lt_prog_compiler_wl_F77='-Wl,'
21173       if test "$host_cpu" = ia64; then
21174         # AIX 5 now supports IA64 processor
21175         lt_prog_compiler_static_F77='-Bstatic'
21176       else
21177         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21178       fi
21179       ;;
21180       darwin*)
21181         # PIC is the default on this platform
21182         # Common symbols not allowed in MH_DYLIB files
21183        case $cc_basename in
21184          xlc*)
21185          lt_prog_compiler_pic_F77='-qnocommon'
21186          lt_prog_compiler_wl_F77='-Wl,'
21187          ;;
21188        esac
21189        ;;
21190
21191     mingw* | pw32* | os2*)
21192       # This hack is so that the source file can tell whether it is being
21193       # built for inclusion in a dll (and should export symbols for example).
21194       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21195       ;;
21196
21197     hpux9* | hpux10* | hpux11*)
21198       lt_prog_compiler_wl_F77='-Wl,'
21199       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21200       # not for PA HP-UX.
21201       case $host_cpu in
21202       hppa*64*|ia64*)
21203         # +Z the default
21204         ;;
21205       *)
21206         lt_prog_compiler_pic_F77='+Z'
21207         ;;
21208       esac
21209       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21210       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21211       ;;
21212
21213     irix5* | irix6* | nonstopux*)
21214       lt_prog_compiler_wl_F77='-Wl,'
21215       # PIC (with -KPIC) is the default.
21216       lt_prog_compiler_static_F77='-non_shared'
21217       ;;
21218
21219     newsos6)
21220       lt_prog_compiler_pic_F77='-KPIC'
21221       lt_prog_compiler_static_F77='-Bstatic'
21222       ;;
21223
21224     linux*)
21225       case $cc_basename in
21226       icc* | ecc*)
21227         lt_prog_compiler_wl_F77='-Wl,'
21228         lt_prog_compiler_pic_F77='-KPIC'
21229         lt_prog_compiler_static_F77='-static'
21230         ;;
21231       pgcc* | pgf77* | pgf90* | pgf95*)
21232         # Portland Group compilers (*not* the Pentium gcc compiler,
21233         # which looks to be a dead project)
21234         lt_prog_compiler_wl_F77='-Wl,'
21235         lt_prog_compiler_pic_F77='-fpic'
21236         lt_prog_compiler_static_F77='-Bstatic'
21237         ;;
21238       ccc*)
21239         lt_prog_compiler_wl_F77='-Wl,'
21240         # All Alpha code is PIC.
21241         lt_prog_compiler_static_F77='-non_shared'
21242         ;;
21243       esac
21244       ;;
21245
21246     osf3* | osf4* | osf5*)
21247       lt_prog_compiler_wl_F77='-Wl,'
21248       # All OSF/1 code is PIC.
21249       lt_prog_compiler_static_F77='-non_shared'
21250       ;;
21251
21252     solaris*)
21253       lt_prog_compiler_pic_F77='-KPIC'
21254       lt_prog_compiler_static_F77='-Bstatic'
21255       case $cc_basename in
21256       f77* | f90* | f95*)
21257         lt_prog_compiler_wl_F77='-Qoption ld ';;
21258       *)
21259         lt_prog_compiler_wl_F77='-Wl,';;
21260       esac
21261       ;;
21262
21263     sunos4*)
21264       lt_prog_compiler_wl_F77='-Qoption ld '
21265       lt_prog_compiler_pic_F77='-PIC'
21266       lt_prog_compiler_static_F77='-Bstatic'
21267       ;;
21268
21269     sysv4 | sysv4.2uw2* | sysv4.3*)
21270       lt_prog_compiler_wl_F77='-Wl,'
21271       lt_prog_compiler_pic_F77='-KPIC'
21272       lt_prog_compiler_static_F77='-Bstatic'
21273       ;;
21274
21275     sysv4*MP*)
21276       if test -d /usr/nec ;then
21277         lt_prog_compiler_pic_F77='-Kconform_pic'
21278         lt_prog_compiler_static_F77='-Bstatic'
21279       fi
21280       ;;
21281
21282     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21283       lt_prog_compiler_wl_F77='-Wl,'
21284       lt_prog_compiler_pic_F77='-KPIC'
21285       lt_prog_compiler_static_F77='-Bstatic'
21286       ;;
21287
21288     unicos*)
21289       lt_prog_compiler_wl_F77='-Wl,'
21290       lt_prog_compiler_can_build_shared_F77=no
21291       ;;
21292
21293     uts4*)
21294       lt_prog_compiler_pic_F77='-pic'
21295       lt_prog_compiler_static_F77='-Bstatic'
21296       ;;
21297
21298     *)
21299       lt_prog_compiler_can_build_shared_F77=no
21300       ;;
21301     esac
21302   fi
21303
21304 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21305 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21306
21307 #
21308 # Check to make sure the PIC flag actually works.
21309 #
21310 if test -n "$lt_prog_compiler_pic_F77"; then
21311
21312 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21313 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21314 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21315   echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317   lt_prog_compiler_pic_works_F77=no
21318   ac_outfile=conftest.$ac_objext
21319    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21320    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21321    # Insert the option either (1) after the last *FLAGS variable, or
21322    # (2) before a word containing "conftest.", or (3) at the end.
21323    # Note that $ac_compile itself does not contain backslashes and begins
21324    # with a dollar sign (not a hyphen), so the echo should work correctly.
21325    # The option is referenced via a variable to avoid confusing sed.
21326    lt_compile=`echo "$ac_compile" | $SED \
21327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21329    -e 's:$: $lt_compiler_flag:'`
21330    (eval echo "\"\$as_me:21330: $lt_compile\"" >&5)
21331    (eval "$lt_compile" 2>conftest.err)
21332    ac_status=$?
21333    cat conftest.err >&5
21334    echo "$as_me:21334: \$? = $ac_status" >&5
21335    if (exit $ac_status) && test -s "$ac_outfile"; then
21336      # The compiler can only warn and ignore the option if not recognized
21337      # So say no if there are warnings other than the usual output.
21338      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21339      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21340      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21341        lt_prog_compiler_pic_works_F77=yes
21342      fi
21343    fi
21344    $rm conftest*
21345
21346 fi
21347 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21348 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21349
21350 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21351     case $lt_prog_compiler_pic_F77 in
21352      "" | " "*) ;;
21353      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21354      esac
21355 else
21356     lt_prog_compiler_pic_F77=
21357      lt_prog_compiler_can_build_shared_F77=no
21358 fi
21359
21360 fi
21361 case $host_os in
21362   # For platforms which do not support PIC, -DPIC is meaningless:
21363   *djgpp*)
21364     lt_prog_compiler_pic_F77=
21365     ;;
21366   *)
21367     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21368     ;;
21369 esac
21370
21371 #
21372 # Check to make sure the static flag actually works.
21373 #
21374 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21375 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21376 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21377 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   lt_prog_compiler_static_works_F77=no
21381    save_LDFLAGS="$LDFLAGS"
21382    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21383    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21384    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21385      # The linker can only warn and ignore the option if not recognized
21386      # So say no if there are warnings
21387      if test -s conftest.err; then
21388        # Append any errors to the config.log.
21389        cat conftest.err 1>&5
21390        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21391        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21392        if diff conftest.exp conftest.er2 >/dev/null; then
21393          lt_prog_compiler_static_works_F77=yes
21394        fi
21395      else
21396        lt_prog_compiler_static_works_F77=yes
21397      fi
21398    fi
21399    $rm conftest*
21400    LDFLAGS="$save_LDFLAGS"
21401
21402 fi
21403 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21404 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21405
21406 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21407     :
21408 else
21409     lt_prog_compiler_static_F77=
21410 fi
21411
21412
21413 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21414 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21416   echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418   lt_cv_prog_compiler_c_o_F77=no
21419    $rm -r conftest 2>/dev/null
21420    mkdir conftest
21421    cd conftest
21422    mkdir out
21423    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21424
21425    lt_compiler_flag="-o out/conftest2.$ac_objext"
21426    # Insert the option either (1) after the last *FLAGS variable, or
21427    # (2) before a word containing "conftest.", or (3) at the end.
21428    # Note that $ac_compile itself does not contain backslashes and begins
21429    # with a dollar sign (not a hyphen), so the echo should work correctly.
21430    lt_compile=`echo "$ac_compile" | $SED \
21431    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21433    -e 's:$: $lt_compiler_flag:'`
21434    (eval echo "\"\$as_me:21434: $lt_compile\"" >&5)
21435    (eval "$lt_compile" 2>out/conftest.err)
21436    ac_status=$?
21437    cat out/conftest.err >&5
21438    echo "$as_me:21438: \$? = $ac_status" >&5
21439    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21440    then
21441      # The compiler can only warn and ignore the option if not recognized
21442      # So say no if there are warnings
21443      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21444      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21445      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21446        lt_cv_prog_compiler_c_o_F77=yes
21447      fi
21448    fi
21449    chmod u+w . 2>&5
21450    $rm conftest*
21451    # SGI C++ compiler will create directory out/ii_files/ for
21452    # template instantiation
21453    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21454    $rm out/* && rmdir out
21455    cd ..
21456    rmdir conftest
21457    $rm conftest*
21458
21459 fi
21460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21461 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21462
21463
21464 hard_links="nottested"
21465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21466   # do not overwrite the value of need_locks provided by the user
21467   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21468 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21469   hard_links=yes
21470   $rm conftest*
21471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21472   touch conftest.a
21473   ln conftest.a conftest.b 2>&5 || hard_links=no
21474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21475   { echo "$as_me:$LINENO: result: $hard_links" >&5
21476 echo "${ECHO_T}$hard_links" >&6; }
21477   if test "$hard_links" = no; then
21478     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21479 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21480     need_locks=warn
21481   fi
21482 else
21483   need_locks=no
21484 fi
21485
21486 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21487 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21488
21489   runpath_var=
21490   allow_undefined_flag_F77=
21491   enable_shared_with_static_runtimes_F77=no
21492   archive_cmds_F77=
21493   archive_expsym_cmds_F77=
21494   old_archive_From_new_cmds_F77=
21495   old_archive_from_expsyms_cmds_F77=
21496   export_dynamic_flag_spec_F77=
21497   whole_archive_flag_spec_F77=
21498   thread_safe_flag_spec_F77=
21499   hardcode_libdir_flag_spec_F77=
21500   hardcode_libdir_flag_spec_ld_F77=
21501   hardcode_libdir_separator_F77=
21502   hardcode_direct_F77=no
21503   hardcode_minus_L_F77=no
21504   hardcode_shlibpath_var_F77=unsupported
21505   link_all_deplibs_F77=unknown
21506   hardcode_automatic_F77=no
21507   module_cmds_F77=
21508   module_expsym_cmds_F77=
21509   always_export_symbols_F77=no
21510   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21511   # include_expsyms should be a list of space-separated symbols to be *always*
21512   # included in the symbol list
21513   include_expsyms_F77=
21514   # exclude_expsyms can be an extended regexp of symbols to exclude
21515   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21516   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21517   # as well as any symbol that contains `d'.
21518   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21519   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21520   # platforms (ab)use it in PIC code, but their linkers get confused if
21521   # the symbol is explicitly referenced.  Since portable code cannot
21522   # rely on this symbol name, it's probably fine to never include it in
21523   # preloaded symbol tables.
21524   extract_expsyms_cmds=
21525   # Just being paranoid about ensuring that cc_basename is set.
21526   for cc_temp in $compiler""; do
21527   case $cc_temp in
21528     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21529     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21530     \-*) ;;
21531     *) break;;
21532   esac
21533 done
21534 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21535
21536   case $host_os in
21537   cygwin* | mingw* | pw32*)
21538     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21539     # When not using gcc, we currently assume that we are using
21540     # Microsoft Visual C++.
21541     if test "$GCC" != yes; then
21542       with_gnu_ld=no
21543     fi
21544     ;;
21545   interix*)
21546     # we just hope/assume this is gcc and not c89 (= MSVC++)
21547     with_gnu_ld=yes
21548     ;;
21549   openbsd*)
21550     with_gnu_ld=no
21551     ;;
21552   esac
21553
21554   ld_shlibs_F77=yes
21555   if test "$with_gnu_ld" = yes; then
21556     # If archive_cmds runs LD, not CC, wlarc should be empty
21557     wlarc='${wl}'
21558
21559     # Set some defaults for GNU ld with shared library support. These
21560     # are reset later if shared libraries are not supported. Putting them
21561     # here allows them to be overridden if necessary.
21562     runpath_var=LD_RUN_PATH
21563     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21564     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21565     # ancient GNU ld didn't support --whole-archive et. al.
21566     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21567         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21568       else
21569         whole_archive_flag_spec_F77=
21570     fi
21571     supports_anon_versioning=no
21572     case `$LD -v 2>/dev/null` in
21573       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21574       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21575       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21576       *\ 2.11.*) ;; # other 2.11 versions
21577       *) supports_anon_versioning=yes ;;
21578     esac
21579
21580     # See if GNU ld supports shared libraries.
21581     case $host_os in
21582     aix3* | aix4* | aix5*)
21583       # On AIX/PPC, the GNU linker is very broken
21584       if test "$host_cpu" != ia64; then
21585         ld_shlibs_F77=no
21586         cat <<EOF 1>&2
21587
21588 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21589 *** to be unable to reliably create shared libraries on AIX.
21590 *** Therefore, libtool is disabling shared libraries support.  If you
21591 *** really care for shared libraries, you may want to modify your PATH
21592 *** so that a non-GNU linker is found, and then restart.
21593
21594 EOF
21595       fi
21596       ;;
21597
21598     amigaos*)
21599       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)'
21600       hardcode_libdir_flag_spec_F77='-L$libdir'
21601       hardcode_minus_L_F77=yes
21602
21603       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21604       # that the semantics of dynamic libraries on AmigaOS, at least up
21605       # to version 4, is to share data among multiple programs linked
21606       # with the same dynamic library.  Since this doesn't match the
21607       # behavior of shared libraries on other platforms, we can't use
21608       # them.
21609       ld_shlibs_F77=no
21610       ;;
21611
21612     beos*)
21613       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21614         allow_undefined_flag_F77=unsupported
21615         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21616         # support --undefined.  This deserves some investigation.  FIXME
21617         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21618       else
21619         ld_shlibs_F77=no
21620       fi
21621       ;;
21622
21623     cygwin* | mingw* | pw32*)
21624       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21625       # as there is no search path for DLLs.
21626       hardcode_libdir_flag_spec_F77='-L$libdir'
21627       allow_undefined_flag_F77=unsupported
21628       always_export_symbols_F77=no
21629       enable_shared_with_static_runtimes_F77=yes
21630       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21631
21632       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21633         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21634         # If the export-symbols file already is a .def file (1st line
21635         # is EXPORTS), use it as is; otherwise, prepend...
21636         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21637           cp $export_symbols $output_objdir/$soname.def;
21638         else
21639           echo EXPORTS > $output_objdir/$soname.def;
21640           cat $export_symbols >> $output_objdir/$soname.def;
21641         fi~
21642         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21643       else
21644         ld_shlibs_F77=no
21645       fi
21646       ;;
21647
21648     interix3*)
21649       hardcode_direct_F77=no
21650       hardcode_shlibpath_var_F77=no
21651       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21652       export_dynamic_flag_spec_F77='${wl}-E'
21653       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21654       # Instead, shared libraries are loaded at an image base (0x10000000 by
21655       # default) and relocated if they conflict, which is a slow very memory
21656       # consuming and fragmenting process.  To avoid this, we pick a random,
21657       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21658       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21659       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'
21660       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'
21661       ;;
21662
21663     linux*)
21664       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21665         tmp_addflag=
21666         case $cc_basename,$host_cpu in
21667         pgcc*)                          # Portland Group C compiler
21668           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'
21669           tmp_addflag=' $pic_flag'
21670           ;;
21671         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21672           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'
21673           tmp_addflag=' $pic_flag -Mnomain' ;;
21674         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21675           tmp_addflag=' -i_dynamic' ;;
21676         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21677           tmp_addflag=' -i_dynamic -nofor_main' ;;
21678         ifc* | ifort*)                  # Intel Fortran compiler
21679           tmp_addflag=' -nofor_main' ;;
21680         esac
21681         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21682
21683         if test $supports_anon_versioning = yes; then
21684           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21685   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21686   $echo "local: *; };" >> $output_objdir/$libname.ver~
21687           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21688         fi
21689       else
21690         ld_shlibs_F77=no
21691       fi
21692       ;;
21693
21694     netbsd*)
21695       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21696         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21697         wlarc=
21698       else
21699         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21700         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21701       fi
21702       ;;
21703
21704     solaris*)
21705       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21706         ld_shlibs_F77=no
21707         cat <<EOF 1>&2
21708
21709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21710 *** create shared libraries on Solaris systems.  Therefore, libtool
21711 *** is disabling shared libraries support.  We urge you to upgrade GNU
21712 *** binutils to release 2.9.1 or newer.  Another option is to modify
21713 *** your PATH or compiler configuration so that the native linker is
21714 *** used, and then restart.
21715
21716 EOF
21717       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21718         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21719         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21720       else
21721         ld_shlibs_F77=no
21722       fi
21723       ;;
21724
21725     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21726       case `$LD -v 2>&1` in
21727         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21728         ld_shlibs_F77=no
21729         cat <<_LT_EOF 1>&2
21730
21731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21732 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21733 *** is disabling shared libraries support.  We urge you to upgrade GNU
21734 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21735 *** your PATH or compiler configuration so that the native linker is
21736 *** used, and then restart.
21737
21738 _LT_EOF
21739         ;;
21740         *)
21741           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21743             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21744             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21745           else
21746             ld_shlibs_F77=no
21747           fi
21748         ;;
21749       esac
21750       ;;
21751
21752     sunos4*)
21753       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21754       wlarc=
21755       hardcode_direct_F77=yes
21756       hardcode_shlibpath_var_F77=no
21757       ;;
21758
21759     *)
21760       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21762         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21763       else
21764         ld_shlibs_F77=no
21765       fi
21766       ;;
21767     esac
21768
21769     if test "$ld_shlibs_F77" = no; then
21770       runpath_var=
21771       hardcode_libdir_flag_spec_F77=
21772       export_dynamic_flag_spec_F77=
21773       whole_archive_flag_spec_F77=
21774     fi
21775   else
21776     # PORTME fill in a description of your system's linker (not GNU ld)
21777     case $host_os in
21778     aix3*)
21779       allow_undefined_flag_F77=unsupported
21780       always_export_symbols_F77=yes
21781       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'
21782       # Note: this linker hardcodes the directories in LIBPATH if there
21783       # are no directories specified by -L.
21784       hardcode_minus_L_F77=yes
21785       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21786         # Neither direct hardcoding nor static linking is supported with a
21787         # broken collect2.
21788         hardcode_direct_F77=unsupported
21789       fi
21790       ;;
21791
21792     aix4* | aix5*)
21793       if test "$host_cpu" = ia64; then
21794         # On IA64, the linker does run time linking by default, so we don't
21795         # have to do anything special.
21796         aix_use_runtimelinking=no
21797         exp_sym_flag='-Bexport'
21798         no_entry_flag=""
21799       else
21800         # If we're using GNU nm, then we don't want the "-C" option.
21801         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21802         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21803           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'
21804         else
21805           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'
21806         fi
21807         aix_use_runtimelinking=no
21808
21809         # Test if we are trying to use run time linking or normal
21810         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21811         # need to do runtime linking.
21812         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21813           for ld_flag in $LDFLAGS; do
21814           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21815             aix_use_runtimelinking=yes
21816             break
21817           fi
21818           done
21819           ;;
21820         esac
21821
21822         exp_sym_flag='-bexport'
21823         no_entry_flag='-bnoentry'
21824       fi
21825
21826       # When large executables or shared objects are built, AIX ld can
21827       # have problems creating the table of contents.  If linking a library
21828       # or program results in "error TOC overflow" add -mminimal-toc to
21829       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21830       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21831
21832       archive_cmds_F77=''
21833       hardcode_direct_F77=yes
21834       hardcode_libdir_separator_F77=':'
21835       link_all_deplibs_F77=yes
21836
21837       if test "$GCC" = yes; then
21838         case $host_os in aix4.[012]|aix4.[012].*)
21839         # We only want to do this on AIX 4.2 and lower, the check
21840         # below for broken collect2 doesn't work under 4.3+
21841           collect2name=`${CC} -print-prog-name=collect2`
21842           if test -f "$collect2name" && \
21843            strings "$collect2name" | grep resolve_lib_name >/dev/null
21844           then
21845           # We have reworked collect2
21846           hardcode_direct_F77=yes
21847           else
21848           # We have old collect2
21849           hardcode_direct_F77=unsupported
21850           # It fails to find uninstalled libraries when the uninstalled
21851           # path is not listed in the libpath.  Setting hardcode_minus_L
21852           # to unsupported forces relinking
21853           hardcode_minus_L_F77=yes
21854           hardcode_libdir_flag_spec_F77='-L$libdir'
21855           hardcode_libdir_separator_F77=
21856           fi
21857           ;;
21858         esac
21859         shared_flag='-shared'
21860         if test "$aix_use_runtimelinking" = yes; then
21861           shared_flag="$shared_flag "'${wl}-G'
21862         fi
21863       else
21864         # not using gcc
21865         if test "$host_cpu" = ia64; then
21866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21867         # chokes on -Wl,-G. The following line is correct:
21868           shared_flag='-G'
21869         else
21870           if test "$aix_use_runtimelinking" = yes; then
21871             shared_flag='${wl}-G'
21872           else
21873             shared_flag='${wl}-bM:SRE'
21874           fi
21875         fi
21876       fi
21877
21878       # It seems that -bexpall does not export symbols beginning with
21879       # underscore (_), so it is better to generate a list of symbols to export.
21880       always_export_symbols_F77=yes
21881       if test "$aix_use_runtimelinking" = yes; then
21882         # Warning - without using the other runtime loading flags (-brtl),
21883         # -berok will link without error, but may produce a broken library.
21884         allow_undefined_flag_F77='-berok'
21885        # Determine the default libpath from the value encoded in an empty executable.
21886        cat >conftest.$ac_ext <<_ACEOF
21887       program main
21888
21889       end
21890 _ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895   *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898   (eval "$ac_link") 2>conftest.er1
21899   ac_status=$?
21900   grep -v '^ *+' conftest.er1 >conftest.err
21901   rm -f conftest.er1
21902   cat conftest.err >&5
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); } &&
21905          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21906   { (case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_try") 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; } &&
21915          { ac_try='test -s conftest$ac_exeext'
21916   { (case "(($ac_try" in
21917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918   *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921   (eval "$ac_try") 2>&5
21922   ac_status=$?
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); }; }; then
21925
21926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21927 }'`
21928 # Check for a 64-bit object if we didn't find anything.
21929 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; }
21930 }'`; fi
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935
21936 fi
21937
21938 rm -f core conftest.err conftest.$ac_objext \
21939       conftest$ac_exeext conftest.$ac_ext
21940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21941
21942        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21943         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"
21944        else
21945         if test "$host_cpu" = ia64; then
21946           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21947           allow_undefined_flag_F77="-z nodefs"
21948           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"
21949         else
21950          # Determine the default libpath from the value encoded in an empty executable.
21951          cat >conftest.$ac_ext <<_ACEOF
21952       program main
21953
21954       end
21955 _ACEOF
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (ac_try="$ac_link"
21958 case "(($ac_try" in
21959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960   *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963   (eval "$ac_link") 2>conftest.er1
21964   ac_status=$?
21965   grep -v '^ *+' conftest.er1 >conftest.err
21966   rm -f conftest.er1
21967   cat conftest.err >&5
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } &&
21970          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21971   { (case "(($ac_try" in
21972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973   *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976   (eval "$ac_try") 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; } &&
21980          { ac_try='test -s conftest$ac_exeext'
21981   { (case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_try") 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; }; then
21990
21991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21992 }'`
21993 # Check for a 64-bit object if we didn't find anything.
21994 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; }
21995 }'`; fi
21996 else
21997   echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999
22000
22001 fi
22002
22003 rm -f core conftest.err conftest.$ac_objext \
22004       conftest$ac_exeext conftest.$ac_ext
22005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22006
22007          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22008           # Warning - without using the other run time loading flags,
22009           # -berok will link without error, but may produce a broken library.
22010           no_undefined_flag_F77=' ${wl}-bernotok'
22011           allow_undefined_flag_F77=' ${wl}-berok'
22012           # Exported symbols can be pulled into shared objects from archives
22013           whole_archive_flag_spec_F77='$convenience'
22014           archive_cmds_need_lc_F77=yes
22015           # This is similar to how AIX traditionally builds its shared libraries.
22016           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'
22017         fi
22018       fi
22019       ;;
22020
22021     amigaos*)
22022       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)'
22023       hardcode_libdir_flag_spec_F77='-L$libdir'
22024       hardcode_minus_L_F77=yes
22025       # see comment about different semantics on the GNU ld section
22026       ld_shlibs_F77=no
22027       ;;
22028
22029     bsdi[45]*)
22030       export_dynamic_flag_spec_F77=-rdynamic
22031       ;;
22032
22033     cygwin* | mingw* | pw32*)
22034       # When not using gcc, we currently assume that we are using
22035       # Microsoft Visual C++.
22036       # hardcode_libdir_flag_spec is actually meaningless, as there is
22037       # no search path for DLLs.
22038       hardcode_libdir_flag_spec_F77=' '
22039       allow_undefined_flag_F77=unsupported
22040       # Tell ltmain to make .lib files, not .a files.
22041       libext=lib
22042       # Tell ltmain to make .dll files, not .so files.
22043       shrext_cmds=".dll"
22044       # FIXME: Setting linknames here is a bad hack.
22045       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22046       # The linker will automatically build a .lib file if we build a DLL.
22047       old_archive_From_new_cmds_F77='true'
22048       # FIXME: Should let the user specify the lib program.
22049       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22050       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22051       enable_shared_with_static_runtimes_F77=yes
22052       ;;
22053
22054     darwin* | rhapsody*)
22055       case $host_os in
22056         rhapsody* | darwin1.[012])
22057          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22058          ;;
22059        *) # Darwin 1.3 on
22060          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22061            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22062          else
22063            case ${MACOSX_DEPLOYMENT_TARGET} in
22064              10.[012])
22065                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22066                ;;
22067              10.*)
22068                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22069                ;;
22070            esac
22071          fi
22072          ;;
22073       esac
22074       archive_cmds_need_lc_F77=no
22075       hardcode_direct_F77=no
22076       hardcode_automatic_F77=yes
22077       hardcode_shlibpath_var_F77=unsupported
22078       whole_archive_flag_spec_F77=''
22079       link_all_deplibs_F77=yes
22080     if test "$GCC" = yes ; then
22081         output_verbose_link_cmd='echo'
22082         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22083       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22084       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22085       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}'
22086       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}'
22087     else
22088       case $cc_basename in
22089         xlc*)
22090          output_verbose_link_cmd='echo'
22091          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22092          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22093           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22094          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}'
22095           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}'
22096           ;;
22097        *)
22098          ld_shlibs_F77=no
22099           ;;
22100       esac
22101     fi
22102       ;;
22103
22104     dgux*)
22105       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22106       hardcode_libdir_flag_spec_F77='-L$libdir'
22107       hardcode_shlibpath_var_F77=no
22108       ;;
22109
22110     freebsd1*)
22111       ld_shlibs_F77=no
22112       ;;
22113
22114     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22115     # support.  Future versions do this automatically, but an explicit c++rt0.o
22116     # does not break anything, and helps significantly (at the cost of a little
22117     # extra space).
22118     freebsd2.2*)
22119       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22120       hardcode_libdir_flag_spec_F77='-R$libdir'
22121       hardcode_direct_F77=yes
22122       hardcode_shlibpath_var_F77=no
22123       ;;
22124
22125     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22126     freebsd2*)
22127       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22128       hardcode_direct_F77=yes
22129       hardcode_minus_L_F77=yes
22130       hardcode_shlibpath_var_F77=no
22131       ;;
22132
22133     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22134     freebsd* | kfreebsd*-gnu | dragonfly*)
22135       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22136       hardcode_libdir_flag_spec_F77='-R$libdir'
22137       hardcode_direct_F77=yes
22138       hardcode_shlibpath_var_F77=no
22139       ;;
22140
22141     hpux9*)
22142       if test "$GCC" = yes; then
22143         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'
22144       else
22145         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'
22146       fi
22147       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22148       hardcode_libdir_separator_F77=:
22149       hardcode_direct_F77=yes
22150
22151       # hardcode_minus_L: Not really in the search PATH,
22152       # but as the default location of the library.
22153       hardcode_minus_L_F77=yes
22154       export_dynamic_flag_spec_F77='${wl}-E'
22155       ;;
22156
22157     hpux10*)
22158       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22159         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22160       else
22161         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22162       fi
22163       if test "$with_gnu_ld" = no; then
22164         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22165         hardcode_libdir_separator_F77=:
22166
22167         hardcode_direct_F77=yes
22168         export_dynamic_flag_spec_F77='${wl}-E'
22169
22170         # hardcode_minus_L: Not really in the search PATH,
22171         # but as the default location of the library.
22172         hardcode_minus_L_F77=yes
22173       fi
22174       ;;
22175
22176     hpux11*)
22177       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22178         case $host_cpu in
22179         hppa*64*)
22180           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22181           ;;
22182         ia64*)
22183           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22184           ;;
22185         *)
22186           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22187           ;;
22188         esac
22189       else
22190         case $host_cpu in
22191         hppa*64*)
22192           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22193           ;;
22194         ia64*)
22195           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22196           ;;
22197         *)
22198           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22199           ;;
22200         esac
22201       fi
22202       if test "$with_gnu_ld" = no; then
22203         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22204         hardcode_libdir_separator_F77=:
22205
22206         case $host_cpu in
22207         hppa*64*|ia64*)
22208           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22209           hardcode_direct_F77=no
22210           hardcode_shlibpath_var_F77=no
22211           ;;
22212         *)
22213           hardcode_direct_F77=yes
22214           export_dynamic_flag_spec_F77='${wl}-E'
22215
22216           # hardcode_minus_L: Not really in the search PATH,
22217           # but as the default location of the library.
22218           hardcode_minus_L_F77=yes
22219           ;;
22220         esac
22221       fi
22222       ;;
22223
22224     irix5* | irix6* | nonstopux*)
22225       if test "$GCC" = yes; then
22226         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'
22227       else
22228         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'
22229         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22230       fi
22231       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22232       hardcode_libdir_separator_F77=:
22233       link_all_deplibs_F77=yes
22234       ;;
22235
22236     netbsd*)
22237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22238         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22239       else
22240         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22241       fi
22242       hardcode_libdir_flag_spec_F77='-R$libdir'
22243       hardcode_direct_F77=yes
22244       hardcode_shlibpath_var_F77=no
22245       ;;
22246
22247     newsos6)
22248       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22249       hardcode_direct_F77=yes
22250       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22251       hardcode_libdir_separator_F77=:
22252       hardcode_shlibpath_var_F77=no
22253       ;;
22254
22255     openbsd*)
22256       hardcode_direct_F77=yes
22257       hardcode_shlibpath_var_F77=no
22258       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22259         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22260         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22261         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22262         export_dynamic_flag_spec_F77='${wl}-E'
22263       else
22264        case $host_os in
22265          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22266            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22267            hardcode_libdir_flag_spec_F77='-R$libdir'
22268            ;;
22269          *)
22270            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22271            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22272            ;;
22273        esac
22274       fi
22275       ;;
22276
22277     os2*)
22278       hardcode_libdir_flag_spec_F77='-L$libdir'
22279       hardcode_minus_L_F77=yes
22280       allow_undefined_flag_F77=unsupported
22281       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'
22282       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22283       ;;
22284
22285     osf3*)
22286       if test "$GCC" = yes; then
22287         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22288         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'
22289       else
22290         allow_undefined_flag_F77=' -expect_unresolved \*'
22291         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'
22292       fi
22293       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22294       hardcode_libdir_separator_F77=:
22295       ;;
22296
22297     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22298       if test "$GCC" = yes; then
22299         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22300         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'
22301         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22302       else
22303         allow_undefined_flag_F77=' -expect_unresolved \*'
22304         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'
22305         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~
22306         $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'
22307
22308         # Both c and cxx compiler support -rpath directly
22309         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22310       fi
22311       hardcode_libdir_separator_F77=:
22312       ;;
22313
22314     solaris*)
22315       no_undefined_flag_F77=' -z text'
22316       if test "$GCC" = yes; then
22317         wlarc='${wl}'
22318         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22320           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22321       else
22322         wlarc=''
22323         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22326       fi
22327       hardcode_libdir_flag_spec_F77='-R$libdir'
22328       hardcode_shlibpath_var_F77=no
22329       case $host_os in
22330       solaris2.[0-5] | solaris2.[0-5].*) ;;
22331       *)
22332         # The compiler driver will combine linker options so we
22333         # cannot just pass the convience library names through
22334         # without $wl, iff we do not link with $LD.
22335         # Luckily, gcc supports the same syntax we need for Sun Studio.
22336         # Supported since Solaris 2.6 (maybe 2.5.1?)
22337         case $wlarc in
22338         '')
22339           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22340         *)
22341           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' ;;
22342         esac ;;
22343       esac
22344       link_all_deplibs_F77=yes
22345       ;;
22346
22347     sunos4*)
22348       if test "x$host_vendor" = xsequent; then
22349         # Use $CC to link under sequent, because it throws in some extra .o
22350         # files that make .init and .fini sections work.
22351         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22352       else
22353         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22354       fi
22355       hardcode_libdir_flag_spec_F77='-L$libdir'
22356       hardcode_direct_F77=yes
22357       hardcode_minus_L_F77=yes
22358       hardcode_shlibpath_var_F77=no
22359       ;;
22360
22361     sysv4)
22362       case $host_vendor in
22363         sni)
22364           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22365           hardcode_direct_F77=yes # is this really true???
22366         ;;
22367         siemens)
22368           ## LD is ld it makes a PLAMLIB
22369           ## CC just makes a GrossModule.
22370           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22371           reload_cmds_F77='$CC -r -o $output$reload_objs'
22372           hardcode_direct_F77=no
22373         ;;
22374         motorola)
22375           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22376           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22377         ;;
22378       esac
22379       runpath_var='LD_RUN_PATH'
22380       hardcode_shlibpath_var_F77=no
22381       ;;
22382
22383     sysv4.3*)
22384       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22385       hardcode_shlibpath_var_F77=no
22386       export_dynamic_flag_spec_F77='-Bexport'
22387       ;;
22388
22389     sysv4*MP*)
22390       if test -d /usr/nec; then
22391         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392         hardcode_shlibpath_var_F77=no
22393         runpath_var=LD_RUN_PATH
22394         hardcode_runpath_var=yes
22395         ld_shlibs_F77=yes
22396       fi
22397       ;;
22398
22399     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22400       no_undefined_flag_F77='${wl}-z,text'
22401       archive_cmds_need_lc_F77=no
22402       hardcode_shlibpath_var_F77=no
22403       runpath_var='LD_RUN_PATH'
22404
22405       if test "$GCC" = yes; then
22406         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22407         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22408       else
22409         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22410         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22411       fi
22412       ;;
22413
22414     sysv5* | sco3.2v5* | sco5v6*)
22415       # Note: We can NOT use -z defs as we might desire, because we do not
22416       # link with -lc, and that would cause any symbols used from libc to
22417       # always be unresolved, which means just about no library would
22418       # ever link correctly.  If we're not using GNU ld we use -z text
22419       # though, which does catch some bad symbols but isn't as heavy-handed
22420       # as -z defs.
22421       no_undefined_flag_F77='${wl}-z,text'
22422       allow_undefined_flag_F77='${wl}-z,nodefs'
22423       archive_cmds_need_lc_F77=no
22424       hardcode_shlibpath_var_F77=no
22425       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22426       hardcode_libdir_separator_F77=':'
22427       link_all_deplibs_F77=yes
22428       export_dynamic_flag_spec_F77='${wl}-Bexport'
22429       runpath_var='LD_RUN_PATH'
22430
22431       if test "$GCC" = yes; then
22432         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22433         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22434       else
22435         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22436         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22437       fi
22438       ;;
22439
22440     uts4*)
22441       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442       hardcode_libdir_flag_spec_F77='-L$libdir'
22443       hardcode_shlibpath_var_F77=no
22444       ;;
22445
22446     *)
22447       ld_shlibs_F77=no
22448       ;;
22449     esac
22450   fi
22451
22452 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22453 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22454 test "$ld_shlibs_F77" = no && can_build_shared=no
22455
22456 #
22457 # Do we need to explicitly link libc?
22458 #
22459 case "x$archive_cmds_need_lc_F77" in
22460 x|xyes)
22461   # Assume -lc should be added
22462   archive_cmds_need_lc_F77=yes
22463
22464   if test "$enable_shared" = yes && test "$GCC" = yes; then
22465     case $archive_cmds_F77 in
22466     *'~'*)
22467       # FIXME: we may have to deal with multi-command sequences.
22468       ;;
22469     '$CC '*)
22470       # Test whether the compiler implicitly links with -lc since on some
22471       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22472       # to ld, don't add -lc before -lgcc.
22473       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22474 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22475       $rm conftest*
22476       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22477
22478       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479   (eval $ac_compile) 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); } 2>conftest.err; then
22483         soname=conftest
22484         lib=conftest
22485         libobjs=conftest.$ac_objext
22486         deplibs=
22487         wl=$lt_prog_compiler_wl_F77
22488         pic_flag=$lt_prog_compiler_pic_F77
22489         compiler_flags=-v
22490         linker_flags=-v
22491         verstring=
22492         output_objdir=.
22493         libname=conftest
22494         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22495         allow_undefined_flag_F77=
22496         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22497   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); }
22501         then
22502           archive_cmds_need_lc_F77=no
22503         else
22504           archive_cmds_need_lc_F77=yes
22505         fi
22506         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22507       else
22508         cat conftest.err 1>&5
22509       fi
22510       $rm conftest*
22511       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22512 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22513       ;;
22514     esac
22515   fi
22516   ;;
22517 esac
22518
22519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22521 library_names_spec=
22522 libname_spec='lib$name'
22523 soname_spec=
22524 shrext_cmds=".so"
22525 postinstall_cmds=
22526 postuninstall_cmds=
22527 finish_cmds=
22528 finish_eval=
22529 shlibpath_var=
22530 shlibpath_overrides_runpath=unknown
22531 version_type=none
22532 dynamic_linker="$host_os ld.so"
22533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22534 if test "$GCC" = yes; then
22535   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22536   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22537     # if the path contains ";" then we assume it to be the separator
22538     # otherwise default to the standard path separator (i.e. ":") - it is
22539     # assumed that no part of a normal pathname contains ";" but that should
22540     # okay in the real world where ";" in dirpaths is itself problematic.
22541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22542   else
22543     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22544   fi
22545 else
22546   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22547 fi
22548 need_lib_prefix=unknown
22549 hardcode_into_libs=no
22550
22551 # when you set need_version to no, make sure it does not cause -set_version
22552 # flags to be left without arguments
22553 need_version=unknown
22554
22555 case $host_os in
22556 aix3*)
22557   version_type=linux
22558   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22559   shlibpath_var=LIBPATH
22560
22561   # AIX 3 has no versioning support, so we append a major version to the name.
22562   soname_spec='${libname}${release}${shared_ext}$major'
22563   ;;
22564
22565 aix4* | aix5*)
22566   version_type=linux
22567   need_lib_prefix=no
22568   need_version=no
22569   hardcode_into_libs=yes
22570   if test "$host_cpu" = ia64; then
22571     # AIX 5 supports IA64
22572     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22573     shlibpath_var=LD_LIBRARY_PATH
22574   else
22575     # With GCC up to 2.95.x, collect2 would create an import file
22576     # for dependence libraries.  The import file would start with
22577     # the line `#! .'.  This would cause the generated library to
22578     # depend on `.', always an invalid library.  This was fixed in
22579     # development snapshots of GCC prior to 3.0.
22580     case $host_os in
22581       aix4 | aix4.[01] | aix4.[01].*)
22582       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22583            echo ' yes '
22584            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22585         :
22586       else
22587         can_build_shared=no
22588       fi
22589       ;;
22590     esac
22591     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22592     # soname into executable. Probably we can add versioning support to
22593     # collect2, so additional links can be useful in future.
22594     if test "$aix_use_runtimelinking" = yes; then
22595       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22596       # instead of lib<name>.a to let people know that these are not
22597       # typical AIX shared libraries.
22598       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22599     else
22600       # We preserve .a as extension for shared libraries through AIX4.2
22601       # and later when we are not doing run time linking.
22602       library_names_spec='${libname}${release}.a $libname.a'
22603       soname_spec='${libname}${release}${shared_ext}$major'
22604     fi
22605     shlibpath_var=LIBPATH
22606   fi
22607   ;;
22608
22609 amigaos*)
22610   library_names_spec='$libname.ixlibrary $libname.a'
22611   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22612   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'
22613   ;;
22614
22615 beos*)
22616   library_names_spec='${libname}${shared_ext}'
22617   dynamic_linker="$host_os ld.so"
22618   shlibpath_var=LIBRARY_PATH
22619   ;;
22620
22621 bsdi[45]*)
22622   version_type=linux
22623   need_version=no
22624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22625   soname_spec='${libname}${release}${shared_ext}$major'
22626   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22627   shlibpath_var=LD_LIBRARY_PATH
22628   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22629   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22630   # the default ld.so.conf also contains /usr/contrib/lib and
22631   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22632   # libtool to hard-code these into programs
22633   ;;
22634
22635 cygwin* | mingw* | pw32*)
22636   version_type=windows
22637   shrext_cmds=".dll"
22638   need_version=no
22639   need_lib_prefix=no
22640
22641   case $GCC,$host_os in
22642   yes,cygwin* | yes,mingw* | yes,pw32*)
22643     library_names_spec='$libname.dll.a'
22644     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22645     postinstall_cmds='base_file=`basename \${file}`~
22646       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22647       dldir=$destdir/`dirname \$dlpath`~
22648       test -d \$dldir || mkdir -p \$dldir~
22649       $install_prog $dir/$dlname \$dldir/$dlname~
22650       chmod a+x \$dldir/$dlname'
22651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22652       dlpath=$dir/\$dldll~
22653        $rm \$dlpath'
22654     shlibpath_overrides_runpath=yes
22655
22656     case $host_os in
22657     cygwin*)
22658       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22659       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22660       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22661       ;;
22662     mingw*)
22663       # MinGW DLLs use traditional 'lib' prefix
22664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22665       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22666       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22667         # It is most probably a Windows format PATH printed by
22668         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22669         # path with ; separators, and with drive letters. We can handle the
22670         # drive letters (cygwin fileutils understands them), so leave them,
22671         # especially as we might pass files found there to a mingw objdump,
22672         # which wouldn't understand a cygwinified path. Ahh.
22673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22674       else
22675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22676       fi
22677       ;;
22678     pw32*)
22679       # pw32 DLLs use 'pw' prefix rather than 'lib'
22680       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22681       ;;
22682     esac
22683     ;;
22684
22685   *)
22686     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22687     ;;
22688   esac
22689   dynamic_linker='Win32 ld.exe'
22690   # FIXME: first we should search . and the directory the executable is in
22691   shlibpath_var=PATH
22692   ;;
22693
22694 darwin* | rhapsody*)
22695   dynamic_linker="$host_os dyld"
22696   version_type=darwin
22697   need_lib_prefix=no
22698   need_version=no
22699   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22700   soname_spec='${libname}${release}${major}$shared_ext'
22701   shlibpath_overrides_runpath=yes
22702   shlibpath_var=DYLD_LIBRARY_PATH
22703   shrext_cmds='.dylib'
22704   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22705   if test "$GCC" = yes; then
22706     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"`
22707   else
22708     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22709   fi
22710   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22711   ;;
22712
22713 dgux*)
22714   version_type=linux
22715   need_lib_prefix=no
22716   need_version=no
22717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22718   soname_spec='${libname}${release}${shared_ext}$major'
22719   shlibpath_var=LD_LIBRARY_PATH
22720   ;;
22721
22722 freebsd1*)
22723   dynamic_linker=no
22724   ;;
22725
22726 kfreebsd*-gnu)
22727   version_type=linux
22728   need_lib_prefix=no
22729   need_version=no
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22731   soname_spec='${libname}${release}${shared_ext}$major'
22732   shlibpath_var=LD_LIBRARY_PATH
22733   shlibpath_overrides_runpath=no
22734   hardcode_into_libs=yes
22735   dynamic_linker='GNU ld.so'
22736   ;;
22737
22738 freebsd* | dragonfly*)
22739   # DragonFly does not have aout.  When/if they implement a new
22740   # versioning mechanism, adjust this.
22741   if test -x /usr/bin/objformat; then
22742     objformat=`/usr/bin/objformat`
22743   else
22744     case $host_os in
22745     freebsd[123]*) objformat=aout ;;
22746     *) objformat=elf ;;
22747     esac
22748   fi
22749   version_type=freebsd-$objformat
22750   case $version_type in
22751     freebsd-elf*)
22752       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22753       need_version=no
22754       need_lib_prefix=no
22755       ;;
22756     freebsd-*)
22757       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22758       need_version=yes
22759       ;;
22760   esac
22761   shlibpath_var=LD_LIBRARY_PATH
22762   case $host_os in
22763   freebsd2*)
22764     shlibpath_overrides_runpath=yes
22765     ;;
22766   freebsd3.[01]* | freebsdelf3.[01]*)
22767     shlibpath_overrides_runpath=yes
22768     hardcode_into_libs=yes
22769     ;;
22770   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22771   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22772     shlibpath_overrides_runpath=no
22773     hardcode_into_libs=yes
22774     ;;
22775   freebsd*) # from 4.6 on
22776     shlibpath_overrides_runpath=yes
22777     hardcode_into_libs=yes
22778     ;;
22779   esac
22780   ;;
22781
22782 gnu*)
22783   version_type=linux
22784   need_lib_prefix=no
22785   need_version=no
22786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22787   soname_spec='${libname}${release}${shared_ext}$major'
22788   shlibpath_var=LD_LIBRARY_PATH
22789   hardcode_into_libs=yes
22790   ;;
22791
22792 hpux9* | hpux10* | hpux11*)
22793   # Give a soname corresponding to the major version so that dld.sl refuses to
22794   # link against other versions.
22795   version_type=sunos
22796   need_lib_prefix=no
22797   need_version=no
22798   case $host_cpu in
22799   ia64*)
22800     shrext_cmds='.so'
22801     hardcode_into_libs=yes
22802     dynamic_linker="$host_os dld.so"
22803     shlibpath_var=LD_LIBRARY_PATH
22804     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22806     soname_spec='${libname}${release}${shared_ext}$major'
22807     if test "X$HPUX_IA64_MODE" = X32; then
22808       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22809     else
22810       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22811     fi
22812     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22813     ;;
22814    hppa*64*)
22815      shrext_cmds='.sl'
22816      hardcode_into_libs=yes
22817      dynamic_linker="$host_os dld.sl"
22818      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22819      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22820      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22821      soname_spec='${libname}${release}${shared_ext}$major'
22822      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22823      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22824      ;;
22825    *)
22826     shrext_cmds='.sl'
22827     dynamic_linker="$host_os dld.sl"
22828     shlibpath_var=SHLIB_PATH
22829     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831     soname_spec='${libname}${release}${shared_ext}$major'
22832     ;;
22833   esac
22834   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22835   postinstall_cmds='chmod 555 $lib'
22836   ;;
22837
22838 interix3*)
22839   version_type=linux
22840   need_lib_prefix=no
22841   need_version=no
22842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22843   soname_spec='${libname}${release}${shared_ext}$major'
22844   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22845   shlibpath_var=LD_LIBRARY_PATH
22846   shlibpath_overrides_runpath=no
22847   hardcode_into_libs=yes
22848   ;;
22849
22850 irix5* | irix6* | nonstopux*)
22851   case $host_os in
22852     nonstopux*) version_type=nonstopux ;;
22853     *)
22854         if test "$lt_cv_prog_gnu_ld" = yes; then
22855                 version_type=linux
22856         else
22857                 version_type=irix
22858         fi ;;
22859   esac
22860   need_lib_prefix=no
22861   need_version=no
22862   soname_spec='${libname}${release}${shared_ext}$major'
22863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22864   case $host_os in
22865   irix5* | nonstopux*)
22866     libsuff= shlibsuff=
22867     ;;
22868   *)
22869     case $LD in # libtool.m4 will add one of these switches to LD
22870     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22871       libsuff= shlibsuff= libmagic=32-bit;;
22872     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22873       libsuff=32 shlibsuff=N32 libmagic=N32;;
22874     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22875       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22876     *) libsuff= shlibsuff= libmagic=never-match;;
22877     esac
22878     ;;
22879   esac
22880   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22881   shlibpath_overrides_runpath=no
22882   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22883   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22884   hardcode_into_libs=yes
22885   ;;
22886
22887 # No shared lib support for Linux oldld, aout, or coff.
22888 linux*oldld* | linux*aout* | linux*coff*)
22889   dynamic_linker=no
22890   ;;
22891
22892 # This must be Linux ELF.
22893 linux*)
22894   version_type=linux
22895   need_lib_prefix=no
22896   need_version=no
22897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898   soname_spec='${libname}${release}${shared_ext}$major'
22899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22900   shlibpath_var=LD_LIBRARY_PATH
22901   shlibpath_overrides_runpath=no
22902   # This implies no fast_install, which is unacceptable.
22903   # Some rework will be needed to allow for fast_install
22904   # before this can be enabled.
22905   hardcode_into_libs=yes
22906
22907   # Append ld.so.conf contents to the search path
22908   if test -f /etc/ld.so.conf; then
22909     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' ' '`
22910     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22911   fi
22912
22913   # We used to test for /lib/ld.so.1 and disable shared libraries on
22914   # powerpc, because MkLinux only supported shared libraries with the
22915   # GNU dynamic linker.  Since this was broken with cross compilers,
22916   # most powerpc-linux boxes support dynamic linking these days and
22917   # people can always --disable-shared, the test was removed, and we
22918   # assume the GNU/Linux dynamic linker is in use.
22919   dynamic_linker='GNU/Linux ld.so'
22920   ;;
22921
22922 knetbsd*-gnu)
22923   version_type=linux
22924   need_lib_prefix=no
22925   need_version=no
22926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22927   soname_spec='${libname}${release}${shared_ext}$major'
22928   shlibpath_var=LD_LIBRARY_PATH
22929   shlibpath_overrides_runpath=no
22930   hardcode_into_libs=yes
22931   dynamic_linker='GNU ld.so'
22932   ;;
22933
22934 netbsd*)
22935   version_type=sunos
22936   need_lib_prefix=no
22937   need_version=no
22938   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22940     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22941     dynamic_linker='NetBSD (a.out) ld.so'
22942   else
22943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22944     soname_spec='${libname}${release}${shared_ext}$major'
22945     dynamic_linker='NetBSD ld.elf_so'
22946   fi
22947   shlibpath_var=LD_LIBRARY_PATH
22948   shlibpath_overrides_runpath=yes
22949   hardcode_into_libs=yes
22950   ;;
22951
22952 newsos6)
22953   version_type=linux
22954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955   shlibpath_var=LD_LIBRARY_PATH
22956   shlibpath_overrides_runpath=yes
22957   ;;
22958
22959 nto-qnx*)
22960   version_type=linux
22961   need_lib_prefix=no
22962   need_version=no
22963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22964   soname_spec='${libname}${release}${shared_ext}$major'
22965   shlibpath_var=LD_LIBRARY_PATH
22966   shlibpath_overrides_runpath=yes
22967   ;;
22968
22969 openbsd*)
22970   version_type=sunos
22971   sys_lib_dlsearch_path_spec="/usr/lib"
22972   need_lib_prefix=no
22973   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22974   case $host_os in
22975     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22976     *)                         need_version=no  ;;
22977   esac
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22980   shlibpath_var=LD_LIBRARY_PATH
22981   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22982     case $host_os in
22983       openbsd2.[89] | openbsd2.[89].*)
22984         shlibpath_overrides_runpath=no
22985         ;;
22986       *)
22987         shlibpath_overrides_runpath=yes
22988         ;;
22989       esac
22990   else
22991     shlibpath_overrides_runpath=yes
22992   fi
22993   ;;
22994
22995 os2*)
22996   libname_spec='$name'
22997   shrext_cmds=".dll"
22998   need_lib_prefix=no
22999   library_names_spec='$libname${shared_ext} $libname.a'
23000   dynamic_linker='OS/2 ld.exe'
23001   shlibpath_var=LIBPATH
23002   ;;
23003
23004 osf3* | osf4* | osf5*)
23005   version_type=osf
23006   need_lib_prefix=no
23007   need_version=no
23008   soname_spec='${libname}${release}${shared_ext}$major'
23009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010   shlibpath_var=LD_LIBRARY_PATH
23011   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23012   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23013   ;;
23014
23015 solaris*)
23016   version_type=linux
23017   need_lib_prefix=no
23018   need_version=no
23019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23020   soname_spec='${libname}${release}${shared_ext}$major'
23021   shlibpath_var=LD_LIBRARY_PATH
23022   shlibpath_overrides_runpath=yes
23023   hardcode_into_libs=yes
23024   # ldd complains unless libraries are executable
23025   postinstall_cmds='chmod +x $lib'
23026   ;;
23027
23028 sunos4*)
23029   version_type=sunos
23030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23031   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23032   shlibpath_var=LD_LIBRARY_PATH
23033   shlibpath_overrides_runpath=yes
23034   if test "$with_gnu_ld" = yes; then
23035     need_lib_prefix=no
23036   fi
23037   need_version=yes
23038   ;;
23039
23040 sysv4 | sysv4.3*)
23041   version_type=linux
23042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043   soname_spec='${libname}${release}${shared_ext}$major'
23044   shlibpath_var=LD_LIBRARY_PATH
23045   case $host_vendor in
23046     sni)
23047       shlibpath_overrides_runpath=no
23048       need_lib_prefix=no
23049       export_dynamic_flag_spec='${wl}-Blargedynsym'
23050       runpath_var=LD_RUN_PATH
23051       ;;
23052     siemens)
23053       need_lib_prefix=no
23054       ;;
23055     motorola)
23056       need_lib_prefix=no
23057       need_version=no
23058       shlibpath_overrides_runpath=no
23059       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23060       ;;
23061   esac
23062   ;;
23063
23064 sysv4*MP*)
23065   if test -d /usr/nec ;then
23066     version_type=linux
23067     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23068     soname_spec='$libname${shared_ext}.$major'
23069     shlibpath_var=LD_LIBRARY_PATH
23070   fi
23071   ;;
23072
23073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23074   version_type=freebsd-elf
23075   need_lib_prefix=no
23076   need_version=no
23077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23078   soname_spec='${libname}${release}${shared_ext}$major'
23079   shlibpath_var=LD_LIBRARY_PATH
23080   hardcode_into_libs=yes
23081   if test "$with_gnu_ld" = yes; then
23082     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23083     shlibpath_overrides_runpath=no
23084   else
23085     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23086     shlibpath_overrides_runpath=yes
23087     case $host_os in
23088       sco3.2v5*)
23089         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23090         ;;
23091     esac
23092   fi
23093   sys_lib_dlsearch_path_spec='/usr/lib'
23094   ;;
23095
23096 uts4*)
23097   version_type=linux
23098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099   soname_spec='${libname}${release}${shared_ext}$major'
23100   shlibpath_var=LD_LIBRARY_PATH
23101   ;;
23102
23103 *)
23104   dynamic_linker=no
23105   ;;
23106 esac
23107 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23108 echo "${ECHO_T}$dynamic_linker" >&6; }
23109 test "$dynamic_linker" = no && can_build_shared=no
23110
23111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23112 if test "$GCC" = yes; then
23113   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23114 fi
23115
23116 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23118 hardcode_action_F77=
23119 if test -n "$hardcode_libdir_flag_spec_F77" || \
23120    test -n "$runpath_var_F77" || \
23121    test "X$hardcode_automatic_F77" = "Xyes" ; then
23122
23123   # We can hardcode non-existant directories.
23124   if test "$hardcode_direct_F77" != no &&
23125      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23126      # have to relink, otherwise we might link with an installed library
23127      # when we should be linking with a yet-to-be-installed one
23128      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23129      test "$hardcode_minus_L_F77" != no; then
23130     # Linking always hardcodes the temporary library directory.
23131     hardcode_action_F77=relink
23132   else
23133     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23134     hardcode_action_F77=immediate
23135   fi
23136 else
23137   # We cannot hardcode anything, or else we can only hardcode existing
23138   # directories.
23139   hardcode_action_F77=unsupported
23140 fi
23141 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23142 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23143
23144 if test "$hardcode_action_F77" = relink; then
23145   # Fast installation is not supported
23146   enable_fast_install=no
23147 elif test "$shlibpath_overrides_runpath" = yes ||
23148      test "$enable_shared" = no; then
23149   # Fast installation is not necessary
23150   enable_fast_install=needless
23151 fi
23152
23153
23154 # The else clause should only fire when bootstrapping the
23155 # libtool distribution, otherwise you forgot to ship ltmain.sh
23156 # with your package, and you will get complaints that there are
23157 # no rules to generate ltmain.sh.
23158 if test -f "$ltmain"; then
23159   # See if we are running on zsh, and set the options which allow our commands through
23160   # without removal of \ escapes.
23161   if test -n "${ZSH_VERSION+set}" ; then
23162     setopt NO_GLOB_SUBST
23163   fi
23164   # Now quote all the things that may contain metacharacters while being
23165   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23166   # variables and quote the copies for generation of the libtool script.
23167   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23168     SED SHELL STRIP \
23169     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23170     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23171     deplibs_check_method reload_flag reload_cmds need_locks \
23172     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23173     lt_cv_sys_global_symbol_to_c_name_address \
23174     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23175     old_postinstall_cmds old_postuninstall_cmds \
23176     compiler_F77 \
23177     CC_F77 \
23178     LD_F77 \
23179     lt_prog_compiler_wl_F77 \
23180     lt_prog_compiler_pic_F77 \
23181     lt_prog_compiler_static_F77 \
23182     lt_prog_compiler_no_builtin_flag_F77 \
23183     export_dynamic_flag_spec_F77 \
23184     thread_safe_flag_spec_F77 \
23185     whole_archive_flag_spec_F77 \
23186     enable_shared_with_static_runtimes_F77 \
23187     old_archive_cmds_F77 \
23188     old_archive_from_new_cmds_F77 \
23189     predep_objects_F77 \
23190     postdep_objects_F77 \
23191     predeps_F77 \
23192     postdeps_F77 \
23193     compiler_lib_search_path_F77 \
23194     archive_cmds_F77 \
23195     archive_expsym_cmds_F77 \
23196     postinstall_cmds_F77 \
23197     postuninstall_cmds_F77 \
23198     old_archive_from_expsyms_cmds_F77 \
23199     allow_undefined_flag_F77 \
23200     no_undefined_flag_F77 \
23201     export_symbols_cmds_F77 \
23202     hardcode_libdir_flag_spec_F77 \
23203     hardcode_libdir_flag_spec_ld_F77 \
23204     hardcode_libdir_separator_F77 \
23205     hardcode_automatic_F77 \
23206     module_cmds_F77 \
23207     module_expsym_cmds_F77 \
23208     lt_cv_prog_compiler_c_o_F77 \
23209     exclude_expsyms_F77 \
23210     include_expsyms_F77; do
23211
23212     case $var in
23213     old_archive_cmds_F77 | \
23214     old_archive_from_new_cmds_F77 | \
23215     archive_cmds_F77 | \
23216     archive_expsym_cmds_F77 | \
23217     module_cmds_F77 | \
23218     module_expsym_cmds_F77 | \
23219     old_archive_from_expsyms_cmds_F77 | \
23220     export_symbols_cmds_F77 | \
23221     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23222     postinstall_cmds | postuninstall_cmds | \
23223     old_postinstall_cmds | old_postuninstall_cmds | \
23224     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23225       # Double-quote double-evaled strings.
23226       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23227       ;;
23228     *)
23229       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23230       ;;
23231     esac
23232   done
23233
23234   case $lt_echo in
23235   *'\$0 --fallback-echo"')
23236     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23237     ;;
23238   esac
23239
23240 cfgfile="$ofile"
23241
23242   cat <<__EOF__ >> "$cfgfile"
23243 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23244
23245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23246
23247 # Shell to use when invoking shell scripts.
23248 SHELL=$lt_SHELL
23249
23250 # Whether or not to build shared libraries.
23251 build_libtool_libs=$enable_shared
23252
23253 # Whether or not to build static libraries.
23254 build_old_libs=$enable_static
23255
23256 # Whether or not to add -lc for building shared libraries.
23257 build_libtool_need_lc=$archive_cmds_need_lc_F77
23258
23259 # Whether or not to disallow shared libs when runtime libs are static
23260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23261
23262 # Whether or not to optimize for fast installation.
23263 fast_install=$enable_fast_install
23264
23265 # The host system.
23266 host_alias=$host_alias
23267 host=$host
23268 host_os=$host_os
23269
23270 # The build system.
23271 build_alias=$build_alias
23272 build=$build
23273 build_os=$build_os
23274
23275 # An echo program that does not interpret backslashes.
23276 echo=$lt_echo
23277
23278 # The archiver.
23279 AR=$lt_AR
23280 AR_FLAGS=$lt_AR_FLAGS
23281
23282 # A C compiler.
23283 LTCC=$lt_LTCC
23284
23285 # LTCC compiler flags.
23286 LTCFLAGS=$lt_LTCFLAGS
23287
23288 # A language-specific compiler.
23289 CC=$lt_compiler_F77
23290
23291 # Is the compiler the GNU C compiler?
23292 with_gcc=$GCC_F77
23293
23294 # An ERE matcher.
23295 EGREP=$lt_EGREP
23296
23297 # The linker used to build libraries.
23298 LD=$lt_LD_F77
23299
23300 # Whether we need hard or soft links.
23301 LN_S=$lt_LN_S
23302
23303 # A BSD-compatible nm program.
23304 NM=$lt_NM
23305
23306 # A symbol stripping program
23307 STRIP=$lt_STRIP
23308
23309 # Used to examine libraries when file_magic_cmd begins "file"
23310 MAGIC_CMD=$MAGIC_CMD
23311
23312 # Used on cygwin: DLL creation program.
23313 DLLTOOL="$DLLTOOL"
23314
23315 # Used on cygwin: object dumper.
23316 OBJDUMP="$OBJDUMP"
23317
23318 # Used on cygwin: assembler.
23319 AS="$AS"
23320
23321 # The name of the directory that contains temporary libtool files.
23322 objdir=$objdir
23323
23324 # How to create reloadable object files.
23325 reload_flag=$lt_reload_flag
23326 reload_cmds=$lt_reload_cmds
23327
23328 # How to pass a linker flag through the compiler.
23329 wl=$lt_lt_prog_compiler_wl_F77
23330
23331 # Object file suffix (normally "o").
23332 objext="$ac_objext"
23333
23334 # Old archive suffix (normally "a").
23335 libext="$libext"
23336
23337 # Shared library suffix (normally ".so").
23338 shrext_cmds='$shrext_cmds'
23339
23340 # Executable file suffix (normally "").
23341 exeext="$exeext"
23342
23343 # Additional compiler flags for building library objects.
23344 pic_flag=$lt_lt_prog_compiler_pic_F77
23345 pic_mode=$pic_mode
23346
23347 # What is the maximum length of a command?
23348 max_cmd_len=$lt_cv_sys_max_cmd_len
23349
23350 # Does compiler simultaneously support -c and -o options?
23351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23352
23353 # Must we lock files when doing compilation?
23354 need_locks=$lt_need_locks
23355
23356 # Do we need the lib prefix for modules?
23357 need_lib_prefix=$need_lib_prefix
23358
23359 # Do we need a version for libraries?
23360 need_version=$need_version
23361
23362 # Whether dlopen is supported.
23363 dlopen_support=$enable_dlopen
23364
23365 # Whether dlopen of programs is supported.
23366 dlopen_self=$enable_dlopen_self
23367
23368 # Whether dlopen of statically linked programs is supported.
23369 dlopen_self_static=$enable_dlopen_self_static
23370
23371 # Compiler flag to prevent dynamic linking.
23372 link_static_flag=$lt_lt_prog_compiler_static_F77
23373
23374 # Compiler flag to turn off builtin functions.
23375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23376
23377 # Compiler flag to allow reflexive dlopens.
23378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23379
23380 # Compiler flag to generate shared objects directly from archives.
23381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23382
23383 # Compiler flag to generate thread-safe objects.
23384 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23385
23386 # Library versioning type.
23387 version_type=$version_type
23388
23389 # Format of library name prefix.
23390 libname_spec=$lt_libname_spec
23391
23392 # List of archive names.  First name is the real one, the rest are links.
23393 # The last name is the one that the linker finds with -lNAME.
23394 library_names_spec=$lt_library_names_spec
23395
23396 # The coded name of the library, if different from the real name.
23397 soname_spec=$lt_soname_spec
23398
23399 # Commands used to build and install an old-style archive.
23400 RANLIB=$lt_RANLIB
23401 old_archive_cmds=$lt_old_archive_cmds_F77
23402 old_postinstall_cmds=$lt_old_postinstall_cmds
23403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23404
23405 # Create an old-style archive from a shared archive.
23406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23407
23408 # Create a temporary old-style archive to link instead of a shared archive.
23409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23410
23411 # Commands used to build and install a shared archive.
23412 archive_cmds=$lt_archive_cmds_F77
23413 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23414 postinstall_cmds=$lt_postinstall_cmds
23415 postuninstall_cmds=$lt_postuninstall_cmds
23416
23417 # Commands used to build a loadable module (assumed same as above if empty)
23418 module_cmds=$lt_module_cmds_F77
23419 module_expsym_cmds=$lt_module_expsym_cmds_F77
23420
23421 # Commands to strip libraries.
23422 old_striplib=$lt_old_striplib
23423 striplib=$lt_striplib
23424
23425 # Dependencies to place before the objects being linked to create a
23426 # shared library.
23427 predep_objects=$lt_predep_objects_F77
23428
23429 # Dependencies to place after the objects being linked to create a
23430 # shared library.
23431 postdep_objects=$lt_postdep_objects_F77
23432
23433 # Dependencies to place before the objects being linked to create a
23434 # shared library.
23435 predeps=$lt_predeps_F77
23436
23437 # Dependencies to place after the objects being linked to create a
23438 # shared library.
23439 postdeps=$lt_postdeps_F77
23440
23441 # The library search path used internally by the compiler when linking
23442 # a shared library.
23443 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23444
23445 # Method to check whether dependent libraries are shared objects.
23446 deplibs_check_method=$lt_deplibs_check_method
23447
23448 # Command to use when deplibs_check_method == file_magic.
23449 file_magic_cmd=$lt_file_magic_cmd
23450
23451 # Flag that allows shared libraries with undefined symbols to be built.
23452 allow_undefined_flag=$lt_allow_undefined_flag_F77
23453
23454 # Flag that forces no undefined symbols.
23455 no_undefined_flag=$lt_no_undefined_flag_F77
23456
23457 # Commands used to finish a libtool library installation in a directory.
23458 finish_cmds=$lt_finish_cmds
23459
23460 # Same as above, but a single script fragment to be evaled but not shown.
23461 finish_eval=$lt_finish_eval
23462
23463 # Take the output of nm and produce a listing of raw symbols and C names.
23464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23465
23466 # Transform the output of nm in a proper C declaration
23467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23468
23469 # Transform the output of nm in a C name address pair
23470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23471
23472 # This is the shared library runtime path variable.
23473 runpath_var=$runpath_var
23474
23475 # This is the shared library path variable.
23476 shlibpath_var=$shlibpath_var
23477
23478 # Is shlibpath searched before the hard-coded library search path?
23479 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23480
23481 # How to hardcode a shared library path into an executable.
23482 hardcode_action=$hardcode_action_F77
23483
23484 # Whether we should hardcode library paths into libraries.
23485 hardcode_into_libs=$hardcode_into_libs
23486
23487 # Flag to hardcode \$libdir into a binary during linking.
23488 # This must work even if \$libdir does not exist.
23489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23490
23491 # If ld is used when linking, flag to hardcode \$libdir into
23492 # a binary during linking. This must work even if \$libdir does
23493 # not exist.
23494 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23495
23496 # Whether we need a single -rpath flag with a separated argument.
23497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23498
23499 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23500 # resulting binary.
23501 hardcode_direct=$hardcode_direct_F77
23502
23503 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23504 # resulting binary.
23505 hardcode_minus_L=$hardcode_minus_L_F77
23506
23507 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23508 # the resulting binary.
23509 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23510
23511 # Set to yes if building a shared library automatically hardcodes DIR into the library
23512 # and all subsequent libraries and executables linked against it.
23513 hardcode_automatic=$hardcode_automatic_F77
23514
23515 # Variables whose values should be saved in libtool wrapper scripts and
23516 # restored at relink time.
23517 variables_saved_for_relink="$variables_saved_for_relink"
23518
23519 # Whether libtool must link a program against all its dependency libraries.
23520 link_all_deplibs=$link_all_deplibs_F77
23521
23522 # Compile-time system search path for libraries
23523 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23524
23525 # Run-time system search path for libraries
23526 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23527
23528 # Fix the shell variable \$srcfile for the compiler.
23529 fix_srcfile_path="$fix_srcfile_path_F77"
23530
23531 # Set to yes if exported symbols are required.
23532 always_export_symbols=$always_export_symbols_F77
23533
23534 # The commands to list exported symbols.
23535 export_symbols_cmds=$lt_export_symbols_cmds_F77
23536
23537 # The commands to extract the exported symbol list from a shared archive.
23538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23539
23540 # Symbols that should not be listed in the preloaded symbols.
23541 exclude_expsyms=$lt_exclude_expsyms_F77
23542
23543 # Symbols that must always be exported.
23544 include_expsyms=$lt_include_expsyms_F77
23545
23546 # ### END LIBTOOL TAG CONFIG: $tagname
23547
23548 __EOF__
23549
23550
23551 else
23552   # If there is no Makefile yet, we rely on a make rule to execute
23553   # `config.status --recheck' to rerun these tests and create the
23554   # libtool script then.
23555   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23556   if test -f "$ltmain_in"; then
23557     test -f Makefile && make "$ltmain"
23558   fi
23559 fi
23560
23561
23562 ac_ext=c
23563 ac_cpp='$CPP $CPPFLAGS'
23564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23567
23568 CC="$lt_save_CC"
23569
23570         else
23571           tagname=""
23572         fi
23573         ;;
23574
23575       GCJ)
23576         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23577           ac_ext=c
23578 ac_cpp='$CPP $CPPFLAGS'
23579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23582
23583
23584 # Source file extension for Java test sources.
23585 ac_ext=java
23586
23587 # Object file extension for compiled Java test sources.
23588 objext=o
23589 objext_GCJ=$objext
23590
23591 # Code to be used in simple compile tests
23592 lt_simple_compile_test_code="class foo {}\n"
23593
23594 # Code to be used in simple link tests
23595 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23596
23597 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23598
23599 # If no C compiler was specified, use CC.
23600 LTCC=${LTCC-"$CC"}
23601
23602 # If no C compiler flags were specified, use CFLAGS.
23603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23604
23605 # Allow CC to be a program name with arguments.
23606 compiler=$CC
23607
23608
23609 # save warnings/boilerplate of simple test code
23610 ac_outfile=conftest.$ac_objext
23611 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23612 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23613 _lt_compiler_boilerplate=`cat conftest.err`
23614 $rm conftest*
23615
23616 ac_outfile=conftest.$ac_objext
23617 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23618 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23619 _lt_linker_boilerplate=`cat conftest.err`
23620 $rm conftest*
23621
23622
23623 # Allow CC to be a program name with arguments.
23624 lt_save_CC="$CC"
23625 CC=${GCJ-"gcj"}
23626 compiler=$CC
23627 compiler_GCJ=$CC
23628 for cc_temp in $compiler""; do
23629   case $cc_temp in
23630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23632     \-*) ;;
23633     *) break;;
23634   esac
23635 done
23636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23637
23638
23639 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23640 archive_cmds_need_lc_GCJ=no
23641
23642 old_archive_cmds_GCJ=$old_archive_cmds
23643
23644
23645 lt_prog_compiler_no_builtin_flag_GCJ=
23646
23647 if test "$GCC" = yes; then
23648   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23649
23650
23651 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23654   echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656   lt_cv_prog_compiler_rtti_exceptions=no
23657   ac_outfile=conftest.$ac_objext
23658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23659    lt_compiler_flag="-fno-rtti -fno-exceptions"
23660    # Insert the option either (1) after the last *FLAGS variable, or
23661    # (2) before a word containing "conftest.", or (3) at the end.
23662    # Note that $ac_compile itself does not contain backslashes and begins
23663    # with a dollar sign (not a hyphen), so the echo should work correctly.
23664    # The option is referenced via a variable to avoid confusing sed.
23665    lt_compile=`echo "$ac_compile" | $SED \
23666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23668    -e 's:$: $lt_compiler_flag:'`
23669    (eval echo "\"\$as_me:23669: $lt_compile\"" >&5)
23670    (eval "$lt_compile" 2>conftest.err)
23671    ac_status=$?
23672    cat conftest.err >&5
23673    echo "$as_me:23673: \$? = $ac_status" >&5
23674    if (exit $ac_status) && test -s "$ac_outfile"; then
23675      # The compiler can only warn and ignore the option if not recognized
23676      # So say no if there are warnings other than the usual output.
23677      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23678      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23679      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23680        lt_cv_prog_compiler_rtti_exceptions=yes
23681      fi
23682    fi
23683    $rm conftest*
23684
23685 fi
23686 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23688
23689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23690     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23691 else
23692     :
23693 fi
23694
23695 fi
23696
23697 lt_prog_compiler_wl_GCJ=
23698 lt_prog_compiler_pic_GCJ=
23699 lt_prog_compiler_static_GCJ=
23700
23701 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23703
23704   if test "$GCC" = yes; then
23705     lt_prog_compiler_wl_GCJ='-Wl,'
23706     lt_prog_compiler_static_GCJ='-static'
23707
23708     case $host_os in
23709       aix*)
23710       # All AIX code is PIC.
23711       if test "$host_cpu" = ia64; then
23712         # AIX 5 now supports IA64 processor
23713         lt_prog_compiler_static_GCJ='-Bstatic'
23714       fi
23715       ;;
23716
23717     amigaos*)
23718       # FIXME: we need at least 68020 code to build shared libraries, but
23719       # adding the `-m68020' flag to GCC prevents building anything better,
23720       # like `-m68040'.
23721       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23722       ;;
23723
23724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23725       # PIC is the default for these OSes.
23726       ;;
23727
23728     mingw* | pw32* | os2*)
23729       # This hack is so that the source file can tell whether it is being
23730       # built for inclusion in a dll (and should export symbols for example).
23731       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23732       ;;
23733
23734     darwin* | rhapsody*)
23735       # PIC is the default on this platform
23736       # Common symbols not allowed in MH_DYLIB files
23737       lt_prog_compiler_pic_GCJ='-fno-common'
23738       ;;
23739
23740     interix3*)
23741       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23742       # Instead, we relocate shared libraries at runtime.
23743       ;;
23744
23745     msdosdjgpp*)
23746       # Just because we use GCC doesn't mean we suddenly get shared libraries
23747       # on systems that don't support them.
23748       lt_prog_compiler_can_build_shared_GCJ=no
23749       enable_shared=no
23750       ;;
23751
23752     sysv4*MP*)
23753       if test -d /usr/nec; then
23754         lt_prog_compiler_pic_GCJ=-Kconform_pic
23755       fi
23756       ;;
23757
23758     hpux*)
23759       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23760       # not for PA HP-UX.
23761       case $host_cpu in
23762       hppa*64*|ia64*)
23763         # +Z the default
23764         ;;
23765       *)
23766         lt_prog_compiler_pic_GCJ='-fPIC'
23767         ;;
23768       esac
23769       ;;
23770
23771     *)
23772       lt_prog_compiler_pic_GCJ='-fPIC'
23773       ;;
23774     esac
23775   else
23776     # PORTME Check for flag to pass linker flags through the system compiler.
23777     case $host_os in
23778     aix*)
23779       lt_prog_compiler_wl_GCJ='-Wl,'
23780       if test "$host_cpu" = ia64; then
23781         # AIX 5 now supports IA64 processor
23782         lt_prog_compiler_static_GCJ='-Bstatic'
23783       else
23784         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23785       fi
23786       ;;
23787       darwin*)
23788         # PIC is the default on this platform
23789         # Common symbols not allowed in MH_DYLIB files
23790        case $cc_basename in
23791          xlc*)
23792          lt_prog_compiler_pic_GCJ='-qnocommon'
23793          lt_prog_compiler_wl_GCJ='-Wl,'
23794          ;;
23795        esac
23796        ;;
23797
23798     mingw* | pw32* | os2*)
23799       # This hack is so that the source file can tell whether it is being
23800       # built for inclusion in a dll (and should export symbols for example).
23801       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23802       ;;
23803
23804     hpux9* | hpux10* | hpux11*)
23805       lt_prog_compiler_wl_GCJ='-Wl,'
23806       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23807       # not for PA HP-UX.
23808       case $host_cpu in
23809       hppa*64*|ia64*)
23810         # +Z the default
23811         ;;
23812       *)
23813         lt_prog_compiler_pic_GCJ='+Z'
23814         ;;
23815       esac
23816       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23817       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23818       ;;
23819
23820     irix5* | irix6* | nonstopux*)
23821       lt_prog_compiler_wl_GCJ='-Wl,'
23822       # PIC (with -KPIC) is the default.
23823       lt_prog_compiler_static_GCJ='-non_shared'
23824       ;;
23825
23826     newsos6)
23827       lt_prog_compiler_pic_GCJ='-KPIC'
23828       lt_prog_compiler_static_GCJ='-Bstatic'
23829       ;;
23830
23831     linux*)
23832       case $cc_basename in
23833       icc* | ecc*)
23834         lt_prog_compiler_wl_GCJ='-Wl,'
23835         lt_prog_compiler_pic_GCJ='-KPIC'
23836         lt_prog_compiler_static_GCJ='-static'
23837         ;;
23838       pgcc* | pgf77* | pgf90* | pgf95*)
23839         # Portland Group compilers (*not* the Pentium gcc compiler,
23840         # which looks to be a dead project)
23841         lt_prog_compiler_wl_GCJ='-Wl,'
23842         lt_prog_compiler_pic_GCJ='-fpic'
23843         lt_prog_compiler_static_GCJ='-Bstatic'
23844         ;;
23845       ccc*)
23846         lt_prog_compiler_wl_GCJ='-Wl,'
23847         # All Alpha code is PIC.
23848         lt_prog_compiler_static_GCJ='-non_shared'
23849         ;;
23850       esac
23851       ;;
23852
23853     osf3* | osf4* | osf5*)
23854       lt_prog_compiler_wl_GCJ='-Wl,'
23855       # All OSF/1 code is PIC.
23856       lt_prog_compiler_static_GCJ='-non_shared'
23857       ;;
23858
23859     solaris*)
23860       lt_prog_compiler_pic_GCJ='-KPIC'
23861       lt_prog_compiler_static_GCJ='-Bstatic'
23862       case $cc_basename in
23863       f77* | f90* | f95*)
23864         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23865       *)
23866         lt_prog_compiler_wl_GCJ='-Wl,';;
23867       esac
23868       ;;
23869
23870     sunos4*)
23871       lt_prog_compiler_wl_GCJ='-Qoption ld '
23872       lt_prog_compiler_pic_GCJ='-PIC'
23873       lt_prog_compiler_static_GCJ='-Bstatic'
23874       ;;
23875
23876     sysv4 | sysv4.2uw2* | sysv4.3*)
23877       lt_prog_compiler_wl_GCJ='-Wl,'
23878       lt_prog_compiler_pic_GCJ='-KPIC'
23879       lt_prog_compiler_static_GCJ='-Bstatic'
23880       ;;
23881
23882     sysv4*MP*)
23883       if test -d /usr/nec ;then
23884         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23885         lt_prog_compiler_static_GCJ='-Bstatic'
23886       fi
23887       ;;
23888
23889     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23890       lt_prog_compiler_wl_GCJ='-Wl,'
23891       lt_prog_compiler_pic_GCJ='-KPIC'
23892       lt_prog_compiler_static_GCJ='-Bstatic'
23893       ;;
23894
23895     unicos*)
23896       lt_prog_compiler_wl_GCJ='-Wl,'
23897       lt_prog_compiler_can_build_shared_GCJ=no
23898       ;;
23899
23900     uts4*)
23901       lt_prog_compiler_pic_GCJ='-pic'
23902       lt_prog_compiler_static_GCJ='-Bstatic'
23903       ;;
23904
23905     *)
23906       lt_prog_compiler_can_build_shared_GCJ=no
23907       ;;
23908     esac
23909   fi
23910
23911 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23912 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23913
23914 #
23915 # Check to make sure the PIC flag actually works.
23916 #
23917 if test -n "$lt_prog_compiler_pic_GCJ"; then
23918
23919 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23920 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23921 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23922   echo $ECHO_N "(cached) $ECHO_C" >&6
23923 else
23924   lt_prog_compiler_pic_works_GCJ=no
23925   ac_outfile=conftest.$ac_objext
23926    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23927    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23928    # Insert the option either (1) after the last *FLAGS variable, or
23929    # (2) before a word containing "conftest.", or (3) at the end.
23930    # Note that $ac_compile itself does not contain backslashes and begins
23931    # with a dollar sign (not a hyphen), so the echo should work correctly.
23932    # The option is referenced via a variable to avoid confusing sed.
23933    lt_compile=`echo "$ac_compile" | $SED \
23934    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23936    -e 's:$: $lt_compiler_flag:'`
23937    (eval echo "\"\$as_me:23937: $lt_compile\"" >&5)
23938    (eval "$lt_compile" 2>conftest.err)
23939    ac_status=$?
23940    cat conftest.err >&5
23941    echo "$as_me:23941: \$? = $ac_status" >&5
23942    if (exit $ac_status) && test -s "$ac_outfile"; then
23943      # The compiler can only warn and ignore the option if not recognized
23944      # So say no if there are warnings other than the usual output.
23945      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23946      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23947      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23948        lt_prog_compiler_pic_works_GCJ=yes
23949      fi
23950    fi
23951    $rm conftest*
23952
23953 fi
23954 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23955 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23956
23957 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23958     case $lt_prog_compiler_pic_GCJ in
23959      "" | " "*) ;;
23960      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23961      esac
23962 else
23963     lt_prog_compiler_pic_GCJ=
23964      lt_prog_compiler_can_build_shared_GCJ=no
23965 fi
23966
23967 fi
23968 case $host_os in
23969   # For platforms which do not support PIC, -DPIC is meaningless:
23970   *djgpp*)
23971     lt_prog_compiler_pic_GCJ=
23972     ;;
23973   *)
23974     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23975     ;;
23976 esac
23977
23978 #
23979 # Check to make sure the static flag actually works.
23980 #
23981 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23982 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23983 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23984 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23985   echo $ECHO_N "(cached) $ECHO_C" >&6
23986 else
23987   lt_prog_compiler_static_works_GCJ=no
23988    save_LDFLAGS="$LDFLAGS"
23989    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23990    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23991    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23992      # The linker can only warn and ignore the option if not recognized
23993      # So say no if there are warnings
23994      if test -s conftest.err; then
23995        # Append any errors to the config.log.
23996        cat conftest.err 1>&5
23997        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23998        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23999        if diff conftest.exp conftest.er2 >/dev/null; then
24000          lt_prog_compiler_static_works_GCJ=yes
24001        fi
24002      else
24003        lt_prog_compiler_static_works_GCJ=yes
24004      fi
24005    fi
24006    $rm conftest*
24007    LDFLAGS="$save_LDFLAGS"
24008
24009 fi
24010 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24011 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24012
24013 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24014     :
24015 else
24016     lt_prog_compiler_static_GCJ=
24017 fi
24018
24019
24020 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24022 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24023   echo $ECHO_N "(cached) $ECHO_C" >&6
24024 else
24025   lt_cv_prog_compiler_c_o_GCJ=no
24026    $rm -r conftest 2>/dev/null
24027    mkdir conftest
24028    cd conftest
24029    mkdir out
24030    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24031
24032    lt_compiler_flag="-o out/conftest2.$ac_objext"
24033    # Insert the option either (1) after the last *FLAGS variable, or
24034    # (2) before a word containing "conftest.", or (3) at the end.
24035    # Note that $ac_compile itself does not contain backslashes and begins
24036    # with a dollar sign (not a hyphen), so the echo should work correctly.
24037    lt_compile=`echo "$ac_compile" | $SED \
24038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24040    -e 's:$: $lt_compiler_flag:'`
24041    (eval echo "\"\$as_me:24041: $lt_compile\"" >&5)
24042    (eval "$lt_compile" 2>out/conftest.err)
24043    ac_status=$?
24044    cat out/conftest.err >&5
24045    echo "$as_me:24045: \$? = $ac_status" >&5
24046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24047    then
24048      # The compiler can only warn and ignore the option if not recognized
24049      # So say no if there are warnings
24050      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24053        lt_cv_prog_compiler_c_o_GCJ=yes
24054      fi
24055    fi
24056    chmod u+w . 2>&5
24057    $rm conftest*
24058    # SGI C++ compiler will create directory out/ii_files/ for
24059    # template instantiation
24060    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24061    $rm out/* && rmdir out
24062    cd ..
24063    rmdir conftest
24064    $rm conftest*
24065
24066 fi
24067 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24068 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24069
24070
24071 hard_links="nottested"
24072 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24073   # do not overwrite the value of need_locks provided by the user
24074   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24075 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24076   hard_links=yes
24077   $rm conftest*
24078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24079   touch conftest.a
24080   ln conftest.a conftest.b 2>&5 || hard_links=no
24081   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24082   { echo "$as_me:$LINENO: result: $hard_links" >&5
24083 echo "${ECHO_T}$hard_links" >&6; }
24084   if test "$hard_links" = no; then
24085     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24086 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24087     need_locks=warn
24088   fi
24089 else
24090   need_locks=no
24091 fi
24092
24093 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24095
24096   runpath_var=
24097   allow_undefined_flag_GCJ=
24098   enable_shared_with_static_runtimes_GCJ=no
24099   archive_cmds_GCJ=
24100   archive_expsym_cmds_GCJ=
24101   old_archive_From_new_cmds_GCJ=
24102   old_archive_from_expsyms_cmds_GCJ=
24103   export_dynamic_flag_spec_GCJ=
24104   whole_archive_flag_spec_GCJ=
24105   thread_safe_flag_spec_GCJ=
24106   hardcode_libdir_flag_spec_GCJ=
24107   hardcode_libdir_flag_spec_ld_GCJ=
24108   hardcode_libdir_separator_GCJ=
24109   hardcode_direct_GCJ=no
24110   hardcode_minus_L_GCJ=no
24111   hardcode_shlibpath_var_GCJ=unsupported
24112   link_all_deplibs_GCJ=unknown
24113   hardcode_automatic_GCJ=no
24114   module_cmds_GCJ=
24115   module_expsym_cmds_GCJ=
24116   always_export_symbols_GCJ=no
24117   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24118   # include_expsyms should be a list of space-separated symbols to be *always*
24119   # included in the symbol list
24120   include_expsyms_GCJ=
24121   # exclude_expsyms can be an extended regexp of symbols to exclude
24122   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24123   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24124   # as well as any symbol that contains `d'.
24125   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24126   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24127   # platforms (ab)use it in PIC code, but their linkers get confused if
24128   # the symbol is explicitly referenced.  Since portable code cannot
24129   # rely on this symbol name, it's probably fine to never include it in
24130   # preloaded symbol tables.
24131   extract_expsyms_cmds=
24132   # Just being paranoid about ensuring that cc_basename is set.
24133   for cc_temp in $compiler""; do
24134   case $cc_temp in
24135     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24136     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24137     \-*) ;;
24138     *) break;;
24139   esac
24140 done
24141 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24142
24143   case $host_os in
24144   cygwin* | mingw* | pw32*)
24145     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24146     # When not using gcc, we currently assume that we are using
24147     # Microsoft Visual C++.
24148     if test "$GCC" != yes; then
24149       with_gnu_ld=no
24150     fi
24151     ;;
24152   interix*)
24153     # we just hope/assume this is gcc and not c89 (= MSVC++)
24154     with_gnu_ld=yes
24155     ;;
24156   openbsd*)
24157     with_gnu_ld=no
24158     ;;
24159   esac
24160
24161   ld_shlibs_GCJ=yes
24162   if test "$with_gnu_ld" = yes; then
24163     # If archive_cmds runs LD, not CC, wlarc should be empty
24164     wlarc='${wl}'
24165
24166     # Set some defaults for GNU ld with shared library support. These
24167     # are reset later if shared libraries are not supported. Putting them
24168     # here allows them to be overridden if necessary.
24169     runpath_var=LD_RUN_PATH
24170     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24171     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24172     # ancient GNU ld didn't support --whole-archive et. al.
24173     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24174         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24175       else
24176         whole_archive_flag_spec_GCJ=
24177     fi
24178     supports_anon_versioning=no
24179     case `$LD -v 2>/dev/null` in
24180       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24181       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24182       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24183       *\ 2.11.*) ;; # other 2.11 versions
24184       *) supports_anon_versioning=yes ;;
24185     esac
24186
24187     # See if GNU ld supports shared libraries.
24188     case $host_os in
24189     aix3* | aix4* | aix5*)
24190       # On AIX/PPC, the GNU linker is very broken
24191       if test "$host_cpu" != ia64; then
24192         ld_shlibs_GCJ=no
24193         cat <<EOF 1>&2
24194
24195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24196 *** to be unable to reliably create shared libraries on AIX.
24197 *** Therefore, libtool is disabling shared libraries support.  If you
24198 *** really care for shared libraries, you may want to modify your PATH
24199 *** so that a non-GNU linker is found, and then restart.
24200
24201 EOF
24202       fi
24203       ;;
24204
24205     amigaos*)
24206       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)'
24207       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24208       hardcode_minus_L_GCJ=yes
24209
24210       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24211       # that the semantics of dynamic libraries on AmigaOS, at least up
24212       # to version 4, is to share data among multiple programs linked
24213       # with the same dynamic library.  Since this doesn't match the
24214       # behavior of shared libraries on other platforms, we can't use
24215       # them.
24216       ld_shlibs_GCJ=no
24217       ;;
24218
24219     beos*)
24220       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24221         allow_undefined_flag_GCJ=unsupported
24222         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24223         # support --undefined.  This deserves some investigation.  FIXME
24224         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24225       else
24226         ld_shlibs_GCJ=no
24227       fi
24228       ;;
24229
24230     cygwin* | mingw* | pw32*)
24231       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24232       # as there is no search path for DLLs.
24233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24234       allow_undefined_flag_GCJ=unsupported
24235       always_export_symbols_GCJ=no
24236       enable_shared_with_static_runtimes_GCJ=yes
24237       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24238
24239       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24240         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24241         # If the export-symbols file already is a .def file (1st line
24242         # is EXPORTS), use it as is; otherwise, prepend...
24243         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24244           cp $export_symbols $output_objdir/$soname.def;
24245         else
24246           echo EXPORTS > $output_objdir/$soname.def;
24247           cat $export_symbols >> $output_objdir/$soname.def;
24248         fi~
24249         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24250       else
24251         ld_shlibs_GCJ=no
24252       fi
24253       ;;
24254
24255     interix3*)
24256       hardcode_direct_GCJ=no
24257       hardcode_shlibpath_var_GCJ=no
24258       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24259       export_dynamic_flag_spec_GCJ='${wl}-E'
24260       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24261       # Instead, shared libraries are loaded at an image base (0x10000000 by
24262       # default) and relocated if they conflict, which is a slow very memory
24263       # consuming and fragmenting process.  To avoid this, we pick a random,
24264       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24265       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24266       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'
24267       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'
24268       ;;
24269
24270     linux*)
24271       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24272         tmp_addflag=
24273         case $cc_basename,$host_cpu in
24274         pgcc*)                          # Portland Group C compiler
24275           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'
24276           tmp_addflag=' $pic_flag'
24277           ;;
24278         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24279           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'
24280           tmp_addflag=' $pic_flag -Mnomain' ;;
24281         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24282           tmp_addflag=' -i_dynamic' ;;
24283         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24284           tmp_addflag=' -i_dynamic -nofor_main' ;;
24285         ifc* | ifort*)                  # Intel Fortran compiler
24286           tmp_addflag=' -nofor_main' ;;
24287         esac
24288         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24289
24290         if test $supports_anon_versioning = yes; then
24291           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24292   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24293   $echo "local: *; };" >> $output_objdir/$libname.ver~
24294           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24295         fi
24296       else
24297         ld_shlibs_GCJ=no
24298       fi
24299       ;;
24300
24301     netbsd*)
24302       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24303         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24304         wlarc=
24305       else
24306         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24307         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24308       fi
24309       ;;
24310
24311     solaris*)
24312       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24313         ld_shlibs_GCJ=no
24314         cat <<EOF 1>&2
24315
24316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24317 *** create shared libraries on Solaris systems.  Therefore, libtool
24318 *** is disabling shared libraries support.  We urge you to upgrade GNU
24319 *** binutils to release 2.9.1 or newer.  Another option is to modify
24320 *** your PATH or compiler configuration so that the native linker is
24321 *** used, and then restart.
24322
24323 EOF
24324       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24325         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24326         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24327       else
24328         ld_shlibs_GCJ=no
24329       fi
24330       ;;
24331
24332     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24333       case `$LD -v 2>&1` in
24334         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24335         ld_shlibs_GCJ=no
24336         cat <<_LT_EOF 1>&2
24337
24338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24339 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24340 *** is disabling shared libraries support.  We urge you to upgrade GNU
24341 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24342 *** your PATH or compiler configuration so that the native linker is
24343 *** used, and then restart.
24344
24345 _LT_EOF
24346         ;;
24347         *)
24348           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24349             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24350             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24351             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24352           else
24353             ld_shlibs_GCJ=no
24354           fi
24355         ;;
24356       esac
24357       ;;
24358
24359     sunos4*)
24360       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24361       wlarc=
24362       hardcode_direct_GCJ=yes
24363       hardcode_shlibpath_var_GCJ=no
24364       ;;
24365
24366     *)
24367       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24369         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24370       else
24371         ld_shlibs_GCJ=no
24372       fi
24373       ;;
24374     esac
24375
24376     if test "$ld_shlibs_GCJ" = no; then
24377       runpath_var=
24378       hardcode_libdir_flag_spec_GCJ=
24379       export_dynamic_flag_spec_GCJ=
24380       whole_archive_flag_spec_GCJ=
24381     fi
24382   else
24383     # PORTME fill in a description of your system's linker (not GNU ld)
24384     case $host_os in
24385     aix3*)
24386       allow_undefined_flag_GCJ=unsupported
24387       always_export_symbols_GCJ=yes
24388       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'
24389       # Note: this linker hardcodes the directories in LIBPATH if there
24390       # are no directories specified by -L.
24391       hardcode_minus_L_GCJ=yes
24392       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24393         # Neither direct hardcoding nor static linking is supported with a
24394         # broken collect2.
24395         hardcode_direct_GCJ=unsupported
24396       fi
24397       ;;
24398
24399     aix4* | aix5*)
24400       if test "$host_cpu" = ia64; then
24401         # On IA64, the linker does run time linking by default, so we don't
24402         # have to do anything special.
24403         aix_use_runtimelinking=no
24404         exp_sym_flag='-Bexport'
24405         no_entry_flag=""
24406       else
24407         # If we're using GNU nm, then we don't want the "-C" option.
24408         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24409         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24410           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'
24411         else
24412           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'
24413         fi
24414         aix_use_runtimelinking=no
24415
24416         # Test if we are trying to use run time linking or normal
24417         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24418         # need to do runtime linking.
24419         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24420           for ld_flag in $LDFLAGS; do
24421           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24422             aix_use_runtimelinking=yes
24423             break
24424           fi
24425           done
24426           ;;
24427         esac
24428
24429         exp_sym_flag='-bexport'
24430         no_entry_flag='-bnoentry'
24431       fi
24432
24433       # When large executables or shared objects are built, AIX ld can
24434       # have problems creating the table of contents.  If linking a library
24435       # or program results in "error TOC overflow" add -mminimal-toc to
24436       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24437       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24438
24439       archive_cmds_GCJ=''
24440       hardcode_direct_GCJ=yes
24441       hardcode_libdir_separator_GCJ=':'
24442       link_all_deplibs_GCJ=yes
24443
24444       if test "$GCC" = yes; then
24445         case $host_os in aix4.[012]|aix4.[012].*)
24446         # We only want to do this on AIX 4.2 and lower, the check
24447         # below for broken collect2 doesn't work under 4.3+
24448           collect2name=`${CC} -print-prog-name=collect2`
24449           if test -f "$collect2name" && \
24450            strings "$collect2name" | grep resolve_lib_name >/dev/null
24451           then
24452           # We have reworked collect2
24453           hardcode_direct_GCJ=yes
24454           else
24455           # We have old collect2
24456           hardcode_direct_GCJ=unsupported
24457           # It fails to find uninstalled libraries when the uninstalled
24458           # path is not listed in the libpath.  Setting hardcode_minus_L
24459           # to unsupported forces relinking
24460           hardcode_minus_L_GCJ=yes
24461           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24462           hardcode_libdir_separator_GCJ=
24463           fi
24464           ;;
24465         esac
24466         shared_flag='-shared'
24467         if test "$aix_use_runtimelinking" = yes; then
24468           shared_flag="$shared_flag "'${wl}-G'
24469         fi
24470       else
24471         # not using gcc
24472         if test "$host_cpu" = ia64; then
24473         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24474         # chokes on -Wl,-G. The following line is correct:
24475           shared_flag='-G'
24476         else
24477           if test "$aix_use_runtimelinking" = yes; then
24478             shared_flag='${wl}-G'
24479           else
24480             shared_flag='${wl}-bM:SRE'
24481           fi
24482         fi
24483       fi
24484
24485       # It seems that -bexpall does not export symbols beginning with
24486       # underscore (_), so it is better to generate a list of symbols to export.
24487       always_export_symbols_GCJ=yes
24488       if test "$aix_use_runtimelinking" = yes; then
24489         # Warning - without using the other runtime loading flags (-brtl),
24490         # -berok will link without error, but may produce a broken library.
24491         allow_undefined_flag_GCJ='-berok'
24492        # Determine the default libpath from the value encoded in an empty executable.
24493        cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h.  */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h.  */
24499
24500 int
24501 main ()
24502 {
24503
24504   ;
24505   return 0;
24506 }
24507 _ACEOF
24508 rm -f conftest.$ac_objext conftest$ac_exeext
24509 if { (ac_try="$ac_link"
24510 case "(($ac_try" in
24511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512   *) ac_try_echo=$ac_try;;
24513 esac
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515   (eval "$ac_link") 2>conftest.er1
24516   ac_status=$?
24517   grep -v '^ *+' conftest.er1 >conftest.err
24518   rm -f conftest.er1
24519   cat conftest.err >&5
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } &&
24522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24523   { (case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_try") 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; } &&
24532          { ac_try='test -s conftest$ac_exeext'
24533   { (case "(($ac_try" in
24534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535   *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538   (eval "$ac_try") 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; }; then
24542
24543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24544 }'`
24545 # Check for a 64-bit object if we didn't find anything.
24546 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; }
24547 }'`; fi
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552
24553 fi
24554
24555 rm -f core conftest.err conftest.$ac_objext \
24556       conftest$ac_exeext conftest.$ac_ext
24557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24558
24559        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24560         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"
24561        else
24562         if test "$host_cpu" = ia64; then
24563           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24564           allow_undefined_flag_GCJ="-z nodefs"
24565           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"
24566         else
24567          # Determine the default libpath from the value encoded in an empty executable.
24568          cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h.  */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h.  */
24574
24575 int
24576 main ()
24577 {
24578
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (ac_try="$ac_link"
24585 case "(($ac_try" in
24586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587   *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590   (eval "$ac_link") 2>conftest.er1
24591   ac_status=$?
24592   grep -v '^ *+' conftest.er1 >conftest.err
24593   rm -f conftest.er1
24594   cat conftest.err >&5
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } &&
24597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24598   { (case "(($ac_try" in
24599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600   *) ac_try_echo=$ac_try;;
24601 esac
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603   (eval "$ac_try") 2>&5
24604   ac_status=$?
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); }; } &&
24607          { ac_try='test -s conftest$ac_exeext'
24608   { (case "(($ac_try" in
24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610   *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613   (eval "$ac_try") 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; }; then
24617
24618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24619 }'`
24620 # Check for a 64-bit object if we didn't find anything.
24621 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; }
24622 }'`; fi
24623 else
24624   echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24626
24627
24628 fi
24629
24630 rm -f core conftest.err conftest.$ac_objext \
24631       conftest$ac_exeext conftest.$ac_ext
24632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24633
24634          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24635           # Warning - without using the other run time loading flags,
24636           # -berok will link without error, but may produce a broken library.
24637           no_undefined_flag_GCJ=' ${wl}-bernotok'
24638           allow_undefined_flag_GCJ=' ${wl}-berok'
24639           # Exported symbols can be pulled into shared objects from archives
24640           whole_archive_flag_spec_GCJ='$convenience'
24641           archive_cmds_need_lc_GCJ=yes
24642           # This is similar to how AIX traditionally builds its shared libraries.
24643           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'
24644         fi
24645       fi
24646       ;;
24647
24648     amigaos*)
24649       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)'
24650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24651       hardcode_minus_L_GCJ=yes
24652       # see comment about different semantics on the GNU ld section
24653       ld_shlibs_GCJ=no
24654       ;;
24655
24656     bsdi[45]*)
24657       export_dynamic_flag_spec_GCJ=-rdynamic
24658       ;;
24659
24660     cygwin* | mingw* | pw32*)
24661       # When not using gcc, we currently assume that we are using
24662       # Microsoft Visual C++.
24663       # hardcode_libdir_flag_spec is actually meaningless, as there is
24664       # no search path for DLLs.
24665       hardcode_libdir_flag_spec_GCJ=' '
24666       allow_undefined_flag_GCJ=unsupported
24667       # Tell ltmain to make .lib files, not .a files.
24668       libext=lib
24669       # Tell ltmain to make .dll files, not .so files.
24670       shrext_cmds=".dll"
24671       # FIXME: Setting linknames here is a bad hack.
24672       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24673       # The linker will automatically build a .lib file if we build a DLL.
24674       old_archive_From_new_cmds_GCJ='true'
24675       # FIXME: Should let the user specify the lib program.
24676       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24677       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24678       enable_shared_with_static_runtimes_GCJ=yes
24679       ;;
24680
24681     darwin* | rhapsody*)
24682       case $host_os in
24683         rhapsody* | darwin1.[012])
24684          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24685          ;;
24686        *) # Darwin 1.3 on
24687          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24688            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24689          else
24690            case ${MACOSX_DEPLOYMENT_TARGET} in
24691              10.[012])
24692                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24693                ;;
24694              10.*)
24695                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24696                ;;
24697            esac
24698          fi
24699          ;;
24700       esac
24701       archive_cmds_need_lc_GCJ=no
24702       hardcode_direct_GCJ=no
24703       hardcode_automatic_GCJ=yes
24704       hardcode_shlibpath_var_GCJ=unsupported
24705       whole_archive_flag_spec_GCJ=''
24706       link_all_deplibs_GCJ=yes
24707     if test "$GCC" = yes ; then
24708         output_verbose_link_cmd='echo'
24709         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24710       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24711       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24712       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}'
24713       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}'
24714     else
24715       case $cc_basename in
24716         xlc*)
24717          output_verbose_link_cmd='echo'
24718          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24719          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24720           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24721          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}'
24722           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}'
24723           ;;
24724        *)
24725          ld_shlibs_GCJ=no
24726           ;;
24727       esac
24728     fi
24729       ;;
24730
24731     dgux*)
24732       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734       hardcode_shlibpath_var_GCJ=no
24735       ;;
24736
24737     freebsd1*)
24738       ld_shlibs_GCJ=no
24739       ;;
24740
24741     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24742     # support.  Future versions do this automatically, but an explicit c++rt0.o
24743     # does not break anything, and helps significantly (at the cost of a little
24744     # extra space).
24745     freebsd2.2*)
24746       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24747       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24748       hardcode_direct_GCJ=yes
24749       hardcode_shlibpath_var_GCJ=no
24750       ;;
24751
24752     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24753     freebsd2*)
24754       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24755       hardcode_direct_GCJ=yes
24756       hardcode_minus_L_GCJ=yes
24757       hardcode_shlibpath_var_GCJ=no
24758       ;;
24759
24760     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24761     freebsd* | kfreebsd*-gnu | dragonfly*)
24762       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24763       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24764       hardcode_direct_GCJ=yes
24765       hardcode_shlibpath_var_GCJ=no
24766       ;;
24767
24768     hpux9*)
24769       if test "$GCC" = yes; then
24770         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'
24771       else
24772         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'
24773       fi
24774       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24775       hardcode_libdir_separator_GCJ=:
24776       hardcode_direct_GCJ=yes
24777
24778       # hardcode_minus_L: Not really in the search PATH,
24779       # but as the default location of the library.
24780       hardcode_minus_L_GCJ=yes
24781       export_dynamic_flag_spec_GCJ='${wl}-E'
24782       ;;
24783
24784     hpux10*)
24785       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24786         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24787       else
24788         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24789       fi
24790       if test "$with_gnu_ld" = no; then
24791         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24792         hardcode_libdir_separator_GCJ=:
24793
24794         hardcode_direct_GCJ=yes
24795         export_dynamic_flag_spec_GCJ='${wl}-E'
24796
24797         # hardcode_minus_L: Not really in the search PATH,
24798         # but as the default location of the library.
24799         hardcode_minus_L_GCJ=yes
24800       fi
24801       ;;
24802
24803     hpux11*)
24804       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24805         case $host_cpu in
24806         hppa*64*)
24807           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24808           ;;
24809         ia64*)
24810           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24811           ;;
24812         *)
24813           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24814           ;;
24815         esac
24816       else
24817         case $host_cpu in
24818         hppa*64*)
24819           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24820           ;;
24821         ia64*)
24822           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24823           ;;
24824         *)
24825           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24826           ;;
24827         esac
24828       fi
24829       if test "$with_gnu_ld" = no; then
24830         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24831         hardcode_libdir_separator_GCJ=:
24832
24833         case $host_cpu in
24834         hppa*64*|ia64*)
24835           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24836           hardcode_direct_GCJ=no
24837           hardcode_shlibpath_var_GCJ=no
24838           ;;
24839         *)
24840           hardcode_direct_GCJ=yes
24841           export_dynamic_flag_spec_GCJ='${wl}-E'
24842
24843           # hardcode_minus_L: Not really in the search PATH,
24844           # but as the default location of the library.
24845           hardcode_minus_L_GCJ=yes
24846           ;;
24847         esac
24848       fi
24849       ;;
24850
24851     irix5* | irix6* | nonstopux*)
24852       if test "$GCC" = yes; then
24853         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'
24854       else
24855         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'
24856         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24857       fi
24858       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24859       hardcode_libdir_separator_GCJ=:
24860       link_all_deplibs_GCJ=yes
24861       ;;
24862
24863     netbsd*)
24864       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24865         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24866       else
24867         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24868       fi
24869       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24870       hardcode_direct_GCJ=yes
24871       hardcode_shlibpath_var_GCJ=no
24872       ;;
24873
24874     newsos6)
24875       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24876       hardcode_direct_GCJ=yes
24877       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24878       hardcode_libdir_separator_GCJ=:
24879       hardcode_shlibpath_var_GCJ=no
24880       ;;
24881
24882     openbsd*)
24883       hardcode_direct_GCJ=yes
24884       hardcode_shlibpath_var_GCJ=no
24885       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24886         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24887         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24888         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24889         export_dynamic_flag_spec_GCJ='${wl}-E'
24890       else
24891        case $host_os in
24892          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24893            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24894            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895            ;;
24896          *)
24897            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24898            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24899            ;;
24900        esac
24901       fi
24902       ;;
24903
24904     os2*)
24905       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906       hardcode_minus_L_GCJ=yes
24907       allow_undefined_flag_GCJ=unsupported
24908       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'
24909       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24910       ;;
24911
24912     osf3*)
24913       if test "$GCC" = yes; then
24914         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24915         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'
24916       else
24917         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24918         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'
24919       fi
24920       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24921       hardcode_libdir_separator_GCJ=:
24922       ;;
24923
24924     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24925       if test "$GCC" = yes; then
24926         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24927         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'
24928         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24929       else
24930         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24931         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'
24932         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~
24933         $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'
24934
24935         # Both c and cxx compiler support -rpath directly
24936         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24937       fi
24938       hardcode_libdir_separator_GCJ=:
24939       ;;
24940
24941     solaris*)
24942       no_undefined_flag_GCJ=' -z text'
24943       if test "$GCC" = yes; then
24944         wlarc='${wl}'
24945         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24946         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24947           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24948       else
24949         wlarc=''
24950         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24952         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24953       fi
24954       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955       hardcode_shlibpath_var_GCJ=no
24956       case $host_os in
24957       solaris2.[0-5] | solaris2.[0-5].*) ;;
24958       *)
24959         # The compiler driver will combine linker options so we
24960         # cannot just pass the convience library names through
24961         # without $wl, iff we do not link with $LD.
24962         # Luckily, gcc supports the same syntax we need for Sun Studio.
24963         # Supported since Solaris 2.6 (maybe 2.5.1?)
24964         case $wlarc in
24965         '')
24966           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24967         *)
24968           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' ;;
24969         esac ;;
24970       esac
24971       link_all_deplibs_GCJ=yes
24972       ;;
24973
24974     sunos4*)
24975       if test "x$host_vendor" = xsequent; then
24976         # Use $CC to link under sequent, because it throws in some extra .o
24977         # files that make .init and .fini sections work.
24978         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24979       else
24980         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24981       fi
24982       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24983       hardcode_direct_GCJ=yes
24984       hardcode_minus_L_GCJ=yes
24985       hardcode_shlibpath_var_GCJ=no
24986       ;;
24987
24988     sysv4)
24989       case $host_vendor in
24990         sni)
24991           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24992           hardcode_direct_GCJ=yes # is this really true???
24993         ;;
24994         siemens)
24995           ## LD is ld it makes a PLAMLIB
24996           ## CC just makes a GrossModule.
24997           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24998           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24999           hardcode_direct_GCJ=no
25000         ;;
25001         motorola)
25002           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25003           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25004         ;;
25005       esac
25006       runpath_var='LD_RUN_PATH'
25007       hardcode_shlibpath_var_GCJ=no
25008       ;;
25009
25010     sysv4.3*)
25011       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25012       hardcode_shlibpath_var_GCJ=no
25013       export_dynamic_flag_spec_GCJ='-Bexport'
25014       ;;
25015
25016     sysv4*MP*)
25017       if test -d /usr/nec; then
25018         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019         hardcode_shlibpath_var_GCJ=no
25020         runpath_var=LD_RUN_PATH
25021         hardcode_runpath_var=yes
25022         ld_shlibs_GCJ=yes
25023       fi
25024       ;;
25025
25026     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25027       no_undefined_flag_GCJ='${wl}-z,text'
25028       archive_cmds_need_lc_GCJ=no
25029       hardcode_shlibpath_var_GCJ=no
25030       runpath_var='LD_RUN_PATH'
25031
25032       if test "$GCC" = yes; then
25033         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25034         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25035       else
25036         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25037         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25038       fi
25039       ;;
25040
25041     sysv5* | sco3.2v5* | sco5v6*)
25042       # Note: We can NOT use -z defs as we might desire, because we do not
25043       # link with -lc, and that would cause any symbols used from libc to
25044       # always be unresolved, which means just about no library would
25045       # ever link correctly.  If we're not using GNU ld we use -z text
25046       # though, which does catch some bad symbols but isn't as heavy-handed
25047       # as -z defs.
25048       no_undefined_flag_GCJ='${wl}-z,text'
25049       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25050       archive_cmds_need_lc_GCJ=no
25051       hardcode_shlibpath_var_GCJ=no
25052       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25053       hardcode_libdir_separator_GCJ=':'
25054       link_all_deplibs_GCJ=yes
25055       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25056       runpath_var='LD_RUN_PATH'
25057
25058       if test "$GCC" = yes; then
25059         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25060         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25061       else
25062         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25063         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25064       fi
25065       ;;
25066
25067     uts4*)
25068       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25070       hardcode_shlibpath_var_GCJ=no
25071       ;;
25072
25073     *)
25074       ld_shlibs_GCJ=no
25075       ;;
25076     esac
25077   fi
25078
25079 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25080 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25081 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25082
25083 #
25084 # Do we need to explicitly link libc?
25085 #
25086 case "x$archive_cmds_need_lc_GCJ" in
25087 x|xyes)
25088   # Assume -lc should be added
25089   archive_cmds_need_lc_GCJ=yes
25090
25091   if test "$enable_shared" = yes && test "$GCC" = yes; then
25092     case $archive_cmds_GCJ in
25093     *'~'*)
25094       # FIXME: we may have to deal with multi-command sequences.
25095       ;;
25096     '$CC '*)
25097       # Test whether the compiler implicitly links with -lc since on some
25098       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25099       # to ld, don't add -lc before -lgcc.
25100       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25102       $rm conftest*
25103       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25104
25105       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25106   (eval $ac_compile) 2>&5
25107   ac_status=$?
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } 2>conftest.err; then
25110         soname=conftest
25111         lib=conftest
25112         libobjs=conftest.$ac_objext
25113         deplibs=
25114         wl=$lt_prog_compiler_wl_GCJ
25115         pic_flag=$lt_prog_compiler_pic_GCJ
25116         compiler_flags=-v
25117         linker_flags=-v
25118         verstring=
25119         output_objdir=.
25120         libname=conftest
25121         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25122         allow_undefined_flag_GCJ=
25123         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25124   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25125   ac_status=$?
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); }
25128         then
25129           archive_cmds_need_lc_GCJ=no
25130         else
25131           archive_cmds_need_lc_GCJ=yes
25132         fi
25133         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25134       else
25135         cat conftest.err 1>&5
25136       fi
25137       $rm conftest*
25138       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25139 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25140       ;;
25141     esac
25142   fi
25143   ;;
25144 esac
25145
25146 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25147 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25148 library_names_spec=
25149 libname_spec='lib$name'
25150 soname_spec=
25151 shrext_cmds=".so"
25152 postinstall_cmds=
25153 postuninstall_cmds=
25154 finish_cmds=
25155 finish_eval=
25156 shlibpath_var=
25157 shlibpath_overrides_runpath=unknown
25158 version_type=none
25159 dynamic_linker="$host_os ld.so"
25160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25161 if test "$GCC" = yes; then
25162   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25163   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25164     # if the path contains ";" then we assume it to be the separator
25165     # otherwise default to the standard path separator (i.e. ":") - it is
25166     # assumed that no part of a normal pathname contains ";" but that should
25167     # okay in the real world where ";" in dirpaths is itself problematic.
25168     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25169   else
25170     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25171   fi
25172 else
25173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25174 fi
25175 need_lib_prefix=unknown
25176 hardcode_into_libs=no
25177
25178 # when you set need_version to no, make sure it does not cause -set_version
25179 # flags to be left without arguments
25180 need_version=unknown
25181
25182 case $host_os in
25183 aix3*)
25184   version_type=linux
25185   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25186   shlibpath_var=LIBPATH
25187
25188   # AIX 3 has no versioning support, so we append a major version to the name.
25189   soname_spec='${libname}${release}${shared_ext}$major'
25190   ;;
25191
25192 aix4* | aix5*)
25193   version_type=linux
25194   need_lib_prefix=no
25195   need_version=no
25196   hardcode_into_libs=yes
25197   if test "$host_cpu" = ia64; then
25198     # AIX 5 supports IA64
25199     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25200     shlibpath_var=LD_LIBRARY_PATH
25201   else
25202     # With GCC up to 2.95.x, collect2 would create an import file
25203     # for dependence libraries.  The import file would start with
25204     # the line `#! .'.  This would cause the generated library to
25205     # depend on `.', always an invalid library.  This was fixed in
25206     # development snapshots of GCC prior to 3.0.
25207     case $host_os in
25208       aix4 | aix4.[01] | aix4.[01].*)
25209       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25210            echo ' yes '
25211            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25212         :
25213       else
25214         can_build_shared=no
25215       fi
25216       ;;
25217     esac
25218     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25219     # soname into executable. Probably we can add versioning support to
25220     # collect2, so additional links can be useful in future.
25221     if test "$aix_use_runtimelinking" = yes; then
25222       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25223       # instead of lib<name>.a to let people know that these are not
25224       # typical AIX shared libraries.
25225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25226     else
25227       # We preserve .a as extension for shared libraries through AIX4.2
25228       # and later when we are not doing run time linking.
25229       library_names_spec='${libname}${release}.a $libname.a'
25230       soname_spec='${libname}${release}${shared_ext}$major'
25231     fi
25232     shlibpath_var=LIBPATH
25233   fi
25234   ;;
25235
25236 amigaos*)
25237   library_names_spec='$libname.ixlibrary $libname.a'
25238   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25239   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'
25240   ;;
25241
25242 beos*)
25243   library_names_spec='${libname}${shared_ext}'
25244   dynamic_linker="$host_os ld.so"
25245   shlibpath_var=LIBRARY_PATH
25246   ;;
25247
25248 bsdi[45]*)
25249   version_type=linux
25250   need_version=no
25251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25252   soname_spec='${libname}${release}${shared_ext}$major'
25253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25254   shlibpath_var=LD_LIBRARY_PATH
25255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25257   # the default ld.so.conf also contains /usr/contrib/lib and
25258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25259   # libtool to hard-code these into programs
25260   ;;
25261
25262 cygwin* | mingw* | pw32*)
25263   version_type=windows
25264   shrext_cmds=".dll"
25265   need_version=no
25266   need_lib_prefix=no
25267
25268   case $GCC,$host_os in
25269   yes,cygwin* | yes,mingw* | yes,pw32*)
25270     library_names_spec='$libname.dll.a'
25271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25272     postinstall_cmds='base_file=`basename \${file}`~
25273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25274       dldir=$destdir/`dirname \$dlpath`~
25275       test -d \$dldir || mkdir -p \$dldir~
25276       $install_prog $dir/$dlname \$dldir/$dlname~
25277       chmod a+x \$dldir/$dlname'
25278     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25279       dlpath=$dir/\$dldll~
25280        $rm \$dlpath'
25281     shlibpath_overrides_runpath=yes
25282
25283     case $host_os in
25284     cygwin*)
25285       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25286       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25287       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25288       ;;
25289     mingw*)
25290       # MinGW DLLs use traditional 'lib' prefix
25291       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25292       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25293       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25294         # It is most probably a Windows format PATH printed by
25295         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25296         # path with ; separators, and with drive letters. We can handle the
25297         # drive letters (cygwin fileutils understands them), so leave them,
25298         # especially as we might pass files found there to a mingw objdump,
25299         # which wouldn't understand a cygwinified path. Ahh.
25300         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25301       else
25302         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25303       fi
25304       ;;
25305     pw32*)
25306       # pw32 DLLs use 'pw' prefix rather than 'lib'
25307       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25308       ;;
25309     esac
25310     ;;
25311
25312   *)
25313     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25314     ;;
25315   esac
25316   dynamic_linker='Win32 ld.exe'
25317   # FIXME: first we should search . and the directory the executable is in
25318   shlibpath_var=PATH
25319   ;;
25320
25321 darwin* | rhapsody*)
25322   dynamic_linker="$host_os dyld"
25323   version_type=darwin
25324   need_lib_prefix=no
25325   need_version=no
25326   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25327   soname_spec='${libname}${release}${major}$shared_ext'
25328   shlibpath_overrides_runpath=yes
25329   shlibpath_var=DYLD_LIBRARY_PATH
25330   shrext_cmds='.dylib'
25331   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25332   if test "$GCC" = yes; then
25333     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"`
25334   else
25335     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25336   fi
25337   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25338   ;;
25339
25340 dgux*)
25341   version_type=linux
25342   need_lib_prefix=no
25343   need_version=no
25344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25345   soname_spec='${libname}${release}${shared_ext}$major'
25346   shlibpath_var=LD_LIBRARY_PATH
25347   ;;
25348
25349 freebsd1*)
25350   dynamic_linker=no
25351   ;;
25352
25353 kfreebsd*-gnu)
25354   version_type=linux
25355   need_lib_prefix=no
25356   need_version=no
25357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25358   soname_spec='${libname}${release}${shared_ext}$major'
25359   shlibpath_var=LD_LIBRARY_PATH
25360   shlibpath_overrides_runpath=no
25361   hardcode_into_libs=yes
25362   dynamic_linker='GNU ld.so'
25363   ;;
25364
25365 freebsd* | dragonfly*)
25366   # DragonFly does not have aout.  When/if they implement a new
25367   # versioning mechanism, adjust this.
25368   if test -x /usr/bin/objformat; then
25369     objformat=`/usr/bin/objformat`
25370   else
25371     case $host_os in
25372     freebsd[123]*) objformat=aout ;;
25373     *) objformat=elf ;;
25374     esac
25375   fi
25376   version_type=freebsd-$objformat
25377   case $version_type in
25378     freebsd-elf*)
25379       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25380       need_version=no
25381       need_lib_prefix=no
25382       ;;
25383     freebsd-*)
25384       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25385       need_version=yes
25386       ;;
25387   esac
25388   shlibpath_var=LD_LIBRARY_PATH
25389   case $host_os in
25390   freebsd2*)
25391     shlibpath_overrides_runpath=yes
25392     ;;
25393   freebsd3.[01]* | freebsdelf3.[01]*)
25394     shlibpath_overrides_runpath=yes
25395     hardcode_into_libs=yes
25396     ;;
25397   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25398   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25399     shlibpath_overrides_runpath=no
25400     hardcode_into_libs=yes
25401     ;;
25402   freebsd*) # from 4.6 on
25403     shlibpath_overrides_runpath=yes
25404     hardcode_into_libs=yes
25405     ;;
25406   esac
25407   ;;
25408
25409 gnu*)
25410   version_type=linux
25411   need_lib_prefix=no
25412   need_version=no
25413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25414   soname_spec='${libname}${release}${shared_ext}$major'
25415   shlibpath_var=LD_LIBRARY_PATH
25416   hardcode_into_libs=yes
25417   ;;
25418
25419 hpux9* | hpux10* | hpux11*)
25420   # Give a soname corresponding to the major version so that dld.sl refuses to
25421   # link against other versions.
25422   version_type=sunos
25423   need_lib_prefix=no
25424   need_version=no
25425   case $host_cpu in
25426   ia64*)
25427     shrext_cmds='.so'
25428     hardcode_into_libs=yes
25429     dynamic_linker="$host_os dld.so"
25430     shlibpath_var=LD_LIBRARY_PATH
25431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25433     soname_spec='${libname}${release}${shared_ext}$major'
25434     if test "X$HPUX_IA64_MODE" = X32; then
25435       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25436     else
25437       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25438     fi
25439     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25440     ;;
25441    hppa*64*)
25442      shrext_cmds='.sl'
25443      hardcode_into_libs=yes
25444      dynamic_linker="$host_os dld.sl"
25445      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25446      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25447      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25448      soname_spec='${libname}${release}${shared_ext}$major'
25449      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25450      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25451      ;;
25452    *)
25453     shrext_cmds='.sl'
25454     dynamic_linker="$host_os dld.sl"
25455     shlibpath_var=SHLIB_PATH
25456     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458     soname_spec='${libname}${release}${shared_ext}$major'
25459     ;;
25460   esac
25461   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25462   postinstall_cmds='chmod 555 $lib'
25463   ;;
25464
25465 interix3*)
25466   version_type=linux
25467   need_lib_prefix=no
25468   need_version=no
25469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25470   soname_spec='${libname}${release}${shared_ext}$major'
25471   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25472   shlibpath_var=LD_LIBRARY_PATH
25473   shlibpath_overrides_runpath=no
25474   hardcode_into_libs=yes
25475   ;;
25476
25477 irix5* | irix6* | nonstopux*)
25478   case $host_os in
25479     nonstopux*) version_type=nonstopux ;;
25480     *)
25481         if test "$lt_cv_prog_gnu_ld" = yes; then
25482                 version_type=linux
25483         else
25484                 version_type=irix
25485         fi ;;
25486   esac
25487   need_lib_prefix=no
25488   need_version=no
25489   soname_spec='${libname}${release}${shared_ext}$major'
25490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25491   case $host_os in
25492   irix5* | nonstopux*)
25493     libsuff= shlibsuff=
25494     ;;
25495   *)
25496     case $LD in # libtool.m4 will add one of these switches to LD
25497     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25498       libsuff= shlibsuff= libmagic=32-bit;;
25499     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25500       libsuff=32 shlibsuff=N32 libmagic=N32;;
25501     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25502       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25503     *) libsuff= shlibsuff= libmagic=never-match;;
25504     esac
25505     ;;
25506   esac
25507   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25508   shlibpath_overrides_runpath=no
25509   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25510   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25511   hardcode_into_libs=yes
25512   ;;
25513
25514 # No shared lib support for Linux oldld, aout, or coff.
25515 linux*oldld* | linux*aout* | linux*coff*)
25516   dynamic_linker=no
25517   ;;
25518
25519 # This must be Linux ELF.
25520 linux*)
25521   version_type=linux
25522   need_lib_prefix=no
25523   need_version=no
25524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525   soname_spec='${libname}${release}${shared_ext}$major'
25526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25527   shlibpath_var=LD_LIBRARY_PATH
25528   shlibpath_overrides_runpath=no
25529   # This implies no fast_install, which is unacceptable.
25530   # Some rework will be needed to allow for fast_install
25531   # before this can be enabled.
25532   hardcode_into_libs=yes
25533
25534   # Append ld.so.conf contents to the search path
25535   if test -f /etc/ld.so.conf; then
25536     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' ' '`
25537     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25538   fi
25539
25540   # We used to test for /lib/ld.so.1 and disable shared libraries on
25541   # powerpc, because MkLinux only supported shared libraries with the
25542   # GNU dynamic linker.  Since this was broken with cross compilers,
25543   # most powerpc-linux boxes support dynamic linking these days and
25544   # people can always --disable-shared, the test was removed, and we
25545   # assume the GNU/Linux dynamic linker is in use.
25546   dynamic_linker='GNU/Linux ld.so'
25547   ;;
25548
25549 knetbsd*-gnu)
25550   version_type=linux
25551   need_lib_prefix=no
25552   need_version=no
25553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25554   soname_spec='${libname}${release}${shared_ext}$major'
25555   shlibpath_var=LD_LIBRARY_PATH
25556   shlibpath_overrides_runpath=no
25557   hardcode_into_libs=yes
25558   dynamic_linker='GNU ld.so'
25559   ;;
25560
25561 netbsd*)
25562   version_type=sunos
25563   need_lib_prefix=no
25564   need_version=no
25565   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25567     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25568     dynamic_linker='NetBSD (a.out) ld.so'
25569   else
25570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25571     soname_spec='${libname}${release}${shared_ext}$major'
25572     dynamic_linker='NetBSD ld.elf_so'
25573   fi
25574   shlibpath_var=LD_LIBRARY_PATH
25575   shlibpath_overrides_runpath=yes
25576   hardcode_into_libs=yes
25577   ;;
25578
25579 newsos6)
25580   version_type=linux
25581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582   shlibpath_var=LD_LIBRARY_PATH
25583   shlibpath_overrides_runpath=yes
25584   ;;
25585
25586 nto-qnx*)
25587   version_type=linux
25588   need_lib_prefix=no
25589   need_version=no
25590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25591   soname_spec='${libname}${release}${shared_ext}$major'
25592   shlibpath_var=LD_LIBRARY_PATH
25593   shlibpath_overrides_runpath=yes
25594   ;;
25595
25596 openbsd*)
25597   version_type=sunos
25598   sys_lib_dlsearch_path_spec="/usr/lib"
25599   need_lib_prefix=no
25600   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25601   case $host_os in
25602     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25603     *)                         need_version=no  ;;
25604   esac
25605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25607   shlibpath_var=LD_LIBRARY_PATH
25608   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25609     case $host_os in
25610       openbsd2.[89] | openbsd2.[89].*)
25611         shlibpath_overrides_runpath=no
25612         ;;
25613       *)
25614         shlibpath_overrides_runpath=yes
25615         ;;
25616       esac
25617   else
25618     shlibpath_overrides_runpath=yes
25619   fi
25620   ;;
25621
25622 os2*)
25623   libname_spec='$name'
25624   shrext_cmds=".dll"
25625   need_lib_prefix=no
25626   library_names_spec='$libname${shared_ext} $libname.a'
25627   dynamic_linker='OS/2 ld.exe'
25628   shlibpath_var=LIBPATH
25629   ;;
25630
25631 osf3* | osf4* | osf5*)
25632   version_type=osf
25633   need_lib_prefix=no
25634   need_version=no
25635   soname_spec='${libname}${release}${shared_ext}$major'
25636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637   shlibpath_var=LD_LIBRARY_PATH
25638   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25639   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25640   ;;
25641
25642 solaris*)
25643   version_type=linux
25644   need_lib_prefix=no
25645   need_version=no
25646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25647   soname_spec='${libname}${release}${shared_ext}$major'
25648   shlibpath_var=LD_LIBRARY_PATH
25649   shlibpath_overrides_runpath=yes
25650   hardcode_into_libs=yes
25651   # ldd complains unless libraries are executable
25652   postinstall_cmds='chmod +x $lib'
25653   ;;
25654
25655 sunos4*)
25656   version_type=sunos
25657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25658   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25659   shlibpath_var=LD_LIBRARY_PATH
25660   shlibpath_overrides_runpath=yes
25661   if test "$with_gnu_ld" = yes; then
25662     need_lib_prefix=no
25663   fi
25664   need_version=yes
25665   ;;
25666
25667 sysv4 | sysv4.3*)
25668   version_type=linux
25669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25670   soname_spec='${libname}${release}${shared_ext}$major'
25671   shlibpath_var=LD_LIBRARY_PATH
25672   case $host_vendor in
25673     sni)
25674       shlibpath_overrides_runpath=no
25675       need_lib_prefix=no
25676       export_dynamic_flag_spec='${wl}-Blargedynsym'
25677       runpath_var=LD_RUN_PATH
25678       ;;
25679     siemens)
25680       need_lib_prefix=no
25681       ;;
25682     motorola)
25683       need_lib_prefix=no
25684       need_version=no
25685       shlibpath_overrides_runpath=no
25686       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25687       ;;
25688   esac
25689   ;;
25690
25691 sysv4*MP*)
25692   if test -d /usr/nec ;then
25693     version_type=linux
25694     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25695     soname_spec='$libname${shared_ext}.$major'
25696     shlibpath_var=LD_LIBRARY_PATH
25697   fi
25698   ;;
25699
25700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25701   version_type=freebsd-elf
25702   need_lib_prefix=no
25703   need_version=no
25704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25705   soname_spec='${libname}${release}${shared_ext}$major'
25706   shlibpath_var=LD_LIBRARY_PATH
25707   hardcode_into_libs=yes
25708   if test "$with_gnu_ld" = yes; then
25709     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25710     shlibpath_overrides_runpath=no
25711   else
25712     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25713     shlibpath_overrides_runpath=yes
25714     case $host_os in
25715       sco3.2v5*)
25716         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25717         ;;
25718     esac
25719   fi
25720   sys_lib_dlsearch_path_spec='/usr/lib'
25721   ;;
25722
25723 uts4*)
25724   version_type=linux
25725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726   soname_spec='${libname}${release}${shared_ext}$major'
25727   shlibpath_var=LD_LIBRARY_PATH
25728   ;;
25729
25730 *)
25731   dynamic_linker=no
25732   ;;
25733 esac
25734 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25735 echo "${ECHO_T}$dynamic_linker" >&6; }
25736 test "$dynamic_linker" = no && can_build_shared=no
25737
25738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25739 if test "$GCC" = yes; then
25740   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25741 fi
25742
25743 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25744 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25745 hardcode_action_GCJ=
25746 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25747    test -n "$runpath_var_GCJ" || \
25748    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25749
25750   # We can hardcode non-existant directories.
25751   if test "$hardcode_direct_GCJ" != no &&
25752      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25753      # have to relink, otherwise we might link with an installed library
25754      # when we should be linking with a yet-to-be-installed one
25755      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25756      test "$hardcode_minus_L_GCJ" != no; then
25757     # Linking always hardcodes the temporary library directory.
25758     hardcode_action_GCJ=relink
25759   else
25760     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25761     hardcode_action_GCJ=immediate
25762   fi
25763 else
25764   # We cannot hardcode anything, or else we can only hardcode existing
25765   # directories.
25766   hardcode_action_GCJ=unsupported
25767 fi
25768 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25769 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25770
25771 if test "$hardcode_action_GCJ" = relink; then
25772   # Fast installation is not supported
25773   enable_fast_install=no
25774 elif test "$shlibpath_overrides_runpath" = yes ||
25775      test "$enable_shared" = no; then
25776   # Fast installation is not necessary
25777   enable_fast_install=needless
25778 fi
25779
25780
25781 # The else clause should only fire when bootstrapping the
25782 # libtool distribution, otherwise you forgot to ship ltmain.sh
25783 # with your package, and you will get complaints that there are
25784 # no rules to generate ltmain.sh.
25785 if test -f "$ltmain"; then
25786   # See if we are running on zsh, and set the options which allow our commands through
25787   # without removal of \ escapes.
25788   if test -n "${ZSH_VERSION+set}" ; then
25789     setopt NO_GLOB_SUBST
25790   fi
25791   # Now quote all the things that may contain metacharacters while being
25792   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25793   # variables and quote the copies for generation of the libtool script.
25794   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25795     SED SHELL STRIP \
25796     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25797     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25798     deplibs_check_method reload_flag reload_cmds need_locks \
25799     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25800     lt_cv_sys_global_symbol_to_c_name_address \
25801     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25802     old_postinstall_cmds old_postuninstall_cmds \
25803     compiler_GCJ \
25804     CC_GCJ \
25805     LD_GCJ \
25806     lt_prog_compiler_wl_GCJ \
25807     lt_prog_compiler_pic_GCJ \
25808     lt_prog_compiler_static_GCJ \
25809     lt_prog_compiler_no_builtin_flag_GCJ \
25810     export_dynamic_flag_spec_GCJ \
25811     thread_safe_flag_spec_GCJ \
25812     whole_archive_flag_spec_GCJ \
25813     enable_shared_with_static_runtimes_GCJ \
25814     old_archive_cmds_GCJ \
25815     old_archive_from_new_cmds_GCJ \
25816     predep_objects_GCJ \
25817     postdep_objects_GCJ \
25818     predeps_GCJ \
25819     postdeps_GCJ \
25820     compiler_lib_search_path_GCJ \
25821     archive_cmds_GCJ \
25822     archive_expsym_cmds_GCJ \
25823     postinstall_cmds_GCJ \
25824     postuninstall_cmds_GCJ \
25825     old_archive_from_expsyms_cmds_GCJ \
25826     allow_undefined_flag_GCJ \
25827     no_undefined_flag_GCJ \
25828     export_symbols_cmds_GCJ \
25829     hardcode_libdir_flag_spec_GCJ \
25830     hardcode_libdir_flag_spec_ld_GCJ \
25831     hardcode_libdir_separator_GCJ \
25832     hardcode_automatic_GCJ \
25833     module_cmds_GCJ \
25834     module_expsym_cmds_GCJ \
25835     lt_cv_prog_compiler_c_o_GCJ \
25836     exclude_expsyms_GCJ \
25837     include_expsyms_GCJ; do
25838
25839     case $var in
25840     old_archive_cmds_GCJ | \
25841     old_archive_from_new_cmds_GCJ | \
25842     archive_cmds_GCJ | \
25843     archive_expsym_cmds_GCJ | \
25844     module_cmds_GCJ | \
25845     module_expsym_cmds_GCJ | \
25846     old_archive_from_expsyms_cmds_GCJ | \
25847     export_symbols_cmds_GCJ | \
25848     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25849     postinstall_cmds | postuninstall_cmds | \
25850     old_postinstall_cmds | old_postuninstall_cmds | \
25851     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25852       # Double-quote double-evaled strings.
25853       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25854       ;;
25855     *)
25856       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25857       ;;
25858     esac
25859   done
25860
25861   case $lt_echo in
25862   *'\$0 --fallback-echo"')
25863     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25864     ;;
25865   esac
25866
25867 cfgfile="$ofile"
25868
25869   cat <<__EOF__ >> "$cfgfile"
25870 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25871
25872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25873
25874 # Shell to use when invoking shell scripts.
25875 SHELL=$lt_SHELL
25876
25877 # Whether or not to build shared libraries.
25878 build_libtool_libs=$enable_shared
25879
25880 # Whether or not to build static libraries.
25881 build_old_libs=$enable_static
25882
25883 # Whether or not to add -lc for building shared libraries.
25884 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25885
25886 # Whether or not to disallow shared libs when runtime libs are static
25887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25888
25889 # Whether or not to optimize for fast installation.
25890 fast_install=$enable_fast_install
25891
25892 # The host system.
25893 host_alias=$host_alias
25894 host=$host
25895 host_os=$host_os
25896
25897 # The build system.
25898 build_alias=$build_alias
25899 build=$build
25900 build_os=$build_os
25901
25902 # An echo program that does not interpret backslashes.
25903 echo=$lt_echo
25904
25905 # The archiver.
25906 AR=$lt_AR
25907 AR_FLAGS=$lt_AR_FLAGS
25908
25909 # A C compiler.
25910 LTCC=$lt_LTCC
25911
25912 # LTCC compiler flags.
25913 LTCFLAGS=$lt_LTCFLAGS
25914
25915 # A language-specific compiler.
25916 CC=$lt_compiler_GCJ
25917
25918 # Is the compiler the GNU C compiler?
25919 with_gcc=$GCC_GCJ
25920
25921 # An ERE matcher.
25922 EGREP=$lt_EGREP
25923
25924 # The linker used to build libraries.
25925 LD=$lt_LD_GCJ
25926
25927 # Whether we need hard or soft links.
25928 LN_S=$lt_LN_S
25929
25930 # A BSD-compatible nm program.
25931 NM=$lt_NM
25932
25933 # A symbol stripping program
25934 STRIP=$lt_STRIP
25935
25936 # Used to examine libraries when file_magic_cmd begins "file"
25937 MAGIC_CMD=$MAGIC_CMD
25938
25939 # Used on cygwin: DLL creation program.
25940 DLLTOOL="$DLLTOOL"
25941
25942 # Used on cygwin: object dumper.
25943 OBJDUMP="$OBJDUMP"
25944
25945 # Used on cygwin: assembler.
25946 AS="$AS"
25947
25948 # The name of the directory that contains temporary libtool files.
25949 objdir=$objdir
25950
25951 # How to create reloadable object files.
25952 reload_flag=$lt_reload_flag
25953 reload_cmds=$lt_reload_cmds
25954
25955 # How to pass a linker flag through the compiler.
25956 wl=$lt_lt_prog_compiler_wl_GCJ
25957
25958 # Object file suffix (normally "o").
25959 objext="$ac_objext"
25960
25961 # Old archive suffix (normally "a").
25962 libext="$libext"
25963
25964 # Shared library suffix (normally ".so").
25965 shrext_cmds='$shrext_cmds'
25966
25967 # Executable file suffix (normally "").
25968 exeext="$exeext"
25969
25970 # Additional compiler flags for building library objects.
25971 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25972 pic_mode=$pic_mode
25973
25974 # What is the maximum length of a command?
25975 max_cmd_len=$lt_cv_sys_max_cmd_len
25976
25977 # Does compiler simultaneously support -c and -o options?
25978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25979
25980 # Must we lock files when doing compilation?
25981 need_locks=$lt_need_locks
25982
25983 # Do we need the lib prefix for modules?
25984 need_lib_prefix=$need_lib_prefix
25985
25986 # Do we need a version for libraries?
25987 need_version=$need_version
25988
25989 # Whether dlopen is supported.
25990 dlopen_support=$enable_dlopen
25991
25992 # Whether dlopen of programs is supported.
25993 dlopen_self=$enable_dlopen_self
25994
25995 # Whether dlopen of statically linked programs is supported.
25996 dlopen_self_static=$enable_dlopen_self_static
25997
25998 # Compiler flag to prevent dynamic linking.
25999 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26000
26001 # Compiler flag to turn off builtin functions.
26002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26003
26004 # Compiler flag to allow reflexive dlopens.
26005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26006
26007 # Compiler flag to generate shared objects directly from archives.
26008 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26009
26010 # Compiler flag to generate thread-safe objects.
26011 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26012
26013 # Library versioning type.
26014 version_type=$version_type
26015
26016 # Format of library name prefix.
26017 libname_spec=$lt_libname_spec
26018
26019 # List of archive names.  First name is the real one, the rest are links.
26020 # The last name is the one that the linker finds with -lNAME.
26021 library_names_spec=$lt_library_names_spec
26022
26023 # The coded name of the library, if different from the real name.
26024 soname_spec=$lt_soname_spec
26025
26026 # Commands used to build and install an old-style archive.
26027 RANLIB=$lt_RANLIB
26028 old_archive_cmds=$lt_old_archive_cmds_GCJ
26029 old_postinstall_cmds=$lt_old_postinstall_cmds
26030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26031
26032 # Create an old-style archive from a shared archive.
26033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26034
26035 # Create a temporary old-style archive to link instead of a shared archive.
26036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26037
26038 # Commands used to build and install a shared archive.
26039 archive_cmds=$lt_archive_cmds_GCJ
26040 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26041 postinstall_cmds=$lt_postinstall_cmds
26042 postuninstall_cmds=$lt_postuninstall_cmds
26043
26044 # Commands used to build a loadable module (assumed same as above if empty)
26045 module_cmds=$lt_module_cmds_GCJ
26046 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26047
26048 # Commands to strip libraries.
26049 old_striplib=$lt_old_striplib
26050 striplib=$lt_striplib
26051
26052 # Dependencies to place before the objects being linked to create a
26053 # shared library.
26054 predep_objects=$lt_predep_objects_GCJ
26055
26056 # Dependencies to place after the objects being linked to create a
26057 # shared library.
26058 postdep_objects=$lt_postdep_objects_GCJ
26059
26060 # Dependencies to place before the objects being linked to create a
26061 # shared library.
26062 predeps=$lt_predeps_GCJ
26063
26064 # Dependencies to place after the objects being linked to create a
26065 # shared library.
26066 postdeps=$lt_postdeps_GCJ
26067
26068 # The library search path used internally by the compiler when linking
26069 # a shared library.
26070 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26071
26072 # Method to check whether dependent libraries are shared objects.
26073 deplibs_check_method=$lt_deplibs_check_method
26074
26075 # Command to use when deplibs_check_method == file_magic.
26076 file_magic_cmd=$lt_file_magic_cmd
26077
26078 # Flag that allows shared libraries with undefined symbols to be built.
26079 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26080
26081 # Flag that forces no undefined symbols.
26082 no_undefined_flag=$lt_no_undefined_flag_GCJ
26083
26084 # Commands used to finish a libtool library installation in a directory.
26085 finish_cmds=$lt_finish_cmds
26086
26087 # Same as above, but a single script fragment to be evaled but not shown.
26088 finish_eval=$lt_finish_eval
26089
26090 # Take the output of nm and produce a listing of raw symbols and C names.
26091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26092
26093 # Transform the output of nm in a proper C declaration
26094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26095
26096 # Transform the output of nm in a C name address pair
26097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26098
26099 # This is the shared library runtime path variable.
26100 runpath_var=$runpath_var
26101
26102 # This is the shared library path variable.
26103 shlibpath_var=$shlibpath_var
26104
26105 # Is shlibpath searched before the hard-coded library search path?
26106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26107
26108 # How to hardcode a shared library path into an executable.
26109 hardcode_action=$hardcode_action_GCJ
26110
26111 # Whether we should hardcode library paths into libraries.
26112 hardcode_into_libs=$hardcode_into_libs
26113
26114 # Flag to hardcode \$libdir into a binary during linking.
26115 # This must work even if \$libdir does not exist.
26116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26117
26118 # If ld is used when linking, flag to hardcode \$libdir into
26119 # a binary during linking. This must work even if \$libdir does
26120 # not exist.
26121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26122
26123 # Whether we need a single -rpath flag with a separated argument.
26124 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26125
26126 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26127 # resulting binary.
26128 hardcode_direct=$hardcode_direct_GCJ
26129
26130 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26131 # resulting binary.
26132 hardcode_minus_L=$hardcode_minus_L_GCJ
26133
26134 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26135 # the resulting binary.
26136 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26137
26138 # Set to yes if building a shared library automatically hardcodes DIR into the library
26139 # and all subsequent libraries and executables linked against it.
26140 hardcode_automatic=$hardcode_automatic_GCJ
26141
26142 # Variables whose values should be saved in libtool wrapper scripts and
26143 # restored at relink time.
26144 variables_saved_for_relink="$variables_saved_for_relink"
26145
26146 # Whether libtool must link a program against all its dependency libraries.
26147 link_all_deplibs=$link_all_deplibs_GCJ
26148
26149 # Compile-time system search path for libraries
26150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26151
26152 # Run-time system search path for libraries
26153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26154
26155 # Fix the shell variable \$srcfile for the compiler.
26156 fix_srcfile_path="$fix_srcfile_path_GCJ"
26157
26158 # Set to yes if exported symbols are required.
26159 always_export_symbols=$always_export_symbols_GCJ
26160
26161 # The commands to list exported symbols.
26162 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26163
26164 # The commands to extract the exported symbol list from a shared archive.
26165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26166
26167 # Symbols that should not be listed in the preloaded symbols.
26168 exclude_expsyms=$lt_exclude_expsyms_GCJ
26169
26170 # Symbols that must always be exported.
26171 include_expsyms=$lt_include_expsyms_GCJ
26172
26173 # ### END LIBTOOL TAG CONFIG: $tagname
26174
26175 __EOF__
26176
26177
26178 else
26179   # If there is no Makefile yet, we rely on a make rule to execute
26180   # `config.status --recheck' to rerun these tests and create the
26181   # libtool script then.
26182   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26183   if test -f "$ltmain_in"; then
26184     test -f Makefile && make "$ltmain"
26185   fi
26186 fi
26187
26188
26189 ac_ext=c
26190 ac_cpp='$CPP $CPPFLAGS'
26191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26194
26195 CC="$lt_save_CC"
26196
26197         else
26198           tagname=""
26199         fi
26200         ;;
26201
26202       RC)
26203         ac_ext=c
26204 ac_cpp='$CPP $CPPFLAGS'
26205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26208
26209
26210 # Source file extension for RC test sources.
26211 ac_ext=rc
26212
26213 # Object file extension for compiled RC test sources.
26214 objext=o
26215 objext_RC=$objext
26216
26217 # Code to be used in simple compile tests
26218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26219
26220 # Code to be used in simple link tests
26221 lt_simple_link_test_code="$lt_simple_compile_test_code"
26222
26223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26224
26225 # If no C compiler was specified, use CC.
26226 LTCC=${LTCC-"$CC"}
26227
26228 # If no C compiler flags were specified, use CFLAGS.
26229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26230
26231 # Allow CC to be a program name with arguments.
26232 compiler=$CC
26233
26234
26235 # save warnings/boilerplate of simple test code
26236 ac_outfile=conftest.$ac_objext
26237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26239 _lt_compiler_boilerplate=`cat conftest.err`
26240 $rm conftest*
26241
26242 ac_outfile=conftest.$ac_objext
26243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26245 _lt_linker_boilerplate=`cat conftest.err`
26246 $rm conftest*
26247
26248
26249 # Allow CC to be a program name with arguments.
26250 lt_save_CC="$CC"
26251 CC=${RC-"windres"}
26252 compiler=$CC
26253 compiler_RC=$CC
26254 for cc_temp in $compiler""; do
26255   case $cc_temp in
26256     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26257     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26258     \-*) ;;
26259     *) break;;
26260   esac
26261 done
26262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26263
26264 lt_cv_prog_compiler_c_o_RC=yes
26265
26266 # The else clause should only fire when bootstrapping the
26267 # libtool distribution, otherwise you forgot to ship ltmain.sh
26268 # with your package, and you will get complaints that there are
26269 # no rules to generate ltmain.sh.
26270 if test -f "$ltmain"; then
26271   # See if we are running on zsh, and set the options which allow our commands through
26272   # without removal of \ escapes.
26273   if test -n "${ZSH_VERSION+set}" ; then
26274     setopt NO_GLOB_SUBST
26275   fi
26276   # Now quote all the things that may contain metacharacters while being
26277   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26278   # variables and quote the copies for generation of the libtool script.
26279   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26280     SED SHELL STRIP \
26281     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26282     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26283     deplibs_check_method reload_flag reload_cmds need_locks \
26284     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26285     lt_cv_sys_global_symbol_to_c_name_address \
26286     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26287     old_postinstall_cmds old_postuninstall_cmds \
26288     compiler_RC \
26289     CC_RC \
26290     LD_RC \
26291     lt_prog_compiler_wl_RC \
26292     lt_prog_compiler_pic_RC \
26293     lt_prog_compiler_static_RC \
26294     lt_prog_compiler_no_builtin_flag_RC \
26295     export_dynamic_flag_spec_RC \
26296     thread_safe_flag_spec_RC \
26297     whole_archive_flag_spec_RC \
26298     enable_shared_with_static_runtimes_RC \
26299     old_archive_cmds_RC \
26300     old_archive_from_new_cmds_RC \
26301     predep_objects_RC \
26302     postdep_objects_RC \
26303     predeps_RC \
26304     postdeps_RC \
26305     compiler_lib_search_path_RC \
26306     archive_cmds_RC \
26307     archive_expsym_cmds_RC \
26308     postinstall_cmds_RC \
26309     postuninstall_cmds_RC \
26310     old_archive_from_expsyms_cmds_RC \
26311     allow_undefined_flag_RC \
26312     no_undefined_flag_RC \
26313     export_symbols_cmds_RC \
26314     hardcode_libdir_flag_spec_RC \
26315     hardcode_libdir_flag_spec_ld_RC \
26316     hardcode_libdir_separator_RC \
26317     hardcode_automatic_RC \
26318     module_cmds_RC \
26319     module_expsym_cmds_RC \
26320     lt_cv_prog_compiler_c_o_RC \
26321     exclude_expsyms_RC \
26322     include_expsyms_RC; do
26323
26324     case $var in
26325     old_archive_cmds_RC | \
26326     old_archive_from_new_cmds_RC | \
26327     archive_cmds_RC | \
26328     archive_expsym_cmds_RC | \
26329     module_cmds_RC | \
26330     module_expsym_cmds_RC | \
26331     old_archive_from_expsyms_cmds_RC | \
26332     export_symbols_cmds_RC | \
26333     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26334     postinstall_cmds | postuninstall_cmds | \
26335     old_postinstall_cmds | old_postuninstall_cmds | \
26336     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26337       # Double-quote double-evaled strings.
26338       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26339       ;;
26340     *)
26341       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26342       ;;
26343     esac
26344   done
26345
26346   case $lt_echo in
26347   *'\$0 --fallback-echo"')
26348     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26349     ;;
26350   esac
26351
26352 cfgfile="$ofile"
26353
26354   cat <<__EOF__ >> "$cfgfile"
26355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26356
26357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26358
26359 # Shell to use when invoking shell scripts.
26360 SHELL=$lt_SHELL
26361
26362 # Whether or not to build shared libraries.
26363 build_libtool_libs=$enable_shared
26364
26365 # Whether or not to build static libraries.
26366 build_old_libs=$enable_static
26367
26368 # Whether or not to add -lc for building shared libraries.
26369 build_libtool_need_lc=$archive_cmds_need_lc_RC
26370
26371 # Whether or not to disallow shared libs when runtime libs are static
26372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26373
26374 # Whether or not to optimize for fast installation.
26375 fast_install=$enable_fast_install
26376
26377 # The host system.
26378 host_alias=$host_alias
26379 host=$host
26380 host_os=$host_os
26381
26382 # The build system.
26383 build_alias=$build_alias
26384 build=$build
26385 build_os=$build_os
26386
26387 # An echo program that does not interpret backslashes.
26388 echo=$lt_echo
26389
26390 # The archiver.
26391 AR=$lt_AR
26392 AR_FLAGS=$lt_AR_FLAGS
26393
26394 # A C compiler.
26395 LTCC=$lt_LTCC
26396
26397 # LTCC compiler flags.
26398 LTCFLAGS=$lt_LTCFLAGS
26399
26400 # A language-specific compiler.
26401 CC=$lt_compiler_RC
26402
26403 # Is the compiler the GNU C compiler?
26404 with_gcc=$GCC_RC
26405
26406 # An ERE matcher.
26407 EGREP=$lt_EGREP
26408
26409 # The linker used to build libraries.
26410 LD=$lt_LD_RC
26411
26412 # Whether we need hard or soft links.
26413 LN_S=$lt_LN_S
26414
26415 # A BSD-compatible nm program.
26416 NM=$lt_NM
26417
26418 # A symbol stripping program
26419 STRIP=$lt_STRIP
26420
26421 # Used to examine libraries when file_magic_cmd begins "file"
26422 MAGIC_CMD=$MAGIC_CMD
26423
26424 # Used on cygwin: DLL creation program.
26425 DLLTOOL="$DLLTOOL"
26426
26427 # Used on cygwin: object dumper.
26428 OBJDUMP="$OBJDUMP"
26429
26430 # Used on cygwin: assembler.
26431 AS="$AS"
26432
26433 # The name of the directory that contains temporary libtool files.
26434 objdir=$objdir
26435
26436 # How to create reloadable object files.
26437 reload_flag=$lt_reload_flag
26438 reload_cmds=$lt_reload_cmds
26439
26440 # How to pass a linker flag through the compiler.
26441 wl=$lt_lt_prog_compiler_wl_RC
26442
26443 # Object file suffix (normally "o").
26444 objext="$ac_objext"
26445
26446 # Old archive suffix (normally "a").
26447 libext="$libext"
26448
26449 # Shared library suffix (normally ".so").
26450 shrext_cmds='$shrext_cmds'
26451
26452 # Executable file suffix (normally "").
26453 exeext="$exeext"
26454
26455 # Additional compiler flags for building library objects.
26456 pic_flag=$lt_lt_prog_compiler_pic_RC
26457 pic_mode=$pic_mode
26458
26459 # What is the maximum length of a command?
26460 max_cmd_len=$lt_cv_sys_max_cmd_len
26461
26462 # Does compiler simultaneously support -c and -o options?
26463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26464
26465 # Must we lock files when doing compilation?
26466 need_locks=$lt_need_locks
26467
26468 # Do we need the lib prefix for modules?
26469 need_lib_prefix=$need_lib_prefix
26470
26471 # Do we need a version for libraries?
26472 need_version=$need_version
26473
26474 # Whether dlopen is supported.
26475 dlopen_support=$enable_dlopen
26476
26477 # Whether dlopen of programs is supported.
26478 dlopen_self=$enable_dlopen_self
26479
26480 # Whether dlopen of statically linked programs is supported.
26481 dlopen_self_static=$enable_dlopen_self_static
26482
26483 # Compiler flag to prevent dynamic linking.
26484 link_static_flag=$lt_lt_prog_compiler_static_RC
26485
26486 # Compiler flag to turn off builtin functions.
26487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26488
26489 # Compiler flag to allow reflexive dlopens.
26490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26491
26492 # Compiler flag to generate shared objects directly from archives.
26493 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26494
26495 # Compiler flag to generate thread-safe objects.
26496 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26497
26498 # Library versioning type.
26499 version_type=$version_type
26500
26501 # Format of library name prefix.
26502 libname_spec=$lt_libname_spec
26503
26504 # List of archive names.  First name is the real one, the rest are links.
26505 # The last name is the one that the linker finds with -lNAME.
26506 library_names_spec=$lt_library_names_spec
26507
26508 # The coded name of the library, if different from the real name.
26509 soname_spec=$lt_soname_spec
26510
26511 # Commands used to build and install an old-style archive.
26512 RANLIB=$lt_RANLIB
26513 old_archive_cmds=$lt_old_archive_cmds_RC
26514 old_postinstall_cmds=$lt_old_postinstall_cmds
26515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26516
26517 # Create an old-style archive from a shared archive.
26518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26519
26520 # Create a temporary old-style archive to link instead of a shared archive.
26521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26522
26523 # Commands used to build and install a shared archive.
26524 archive_cmds=$lt_archive_cmds_RC
26525 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26526 postinstall_cmds=$lt_postinstall_cmds
26527 postuninstall_cmds=$lt_postuninstall_cmds
26528
26529 # Commands used to build a loadable module (assumed same as above if empty)
26530 module_cmds=$lt_module_cmds_RC
26531 module_expsym_cmds=$lt_module_expsym_cmds_RC
26532
26533 # Commands to strip libraries.
26534 old_striplib=$lt_old_striplib
26535 striplib=$lt_striplib
26536
26537 # Dependencies to place before the objects being linked to create a
26538 # shared library.
26539 predep_objects=$lt_predep_objects_RC
26540
26541 # Dependencies to place after the objects being linked to create a
26542 # shared library.
26543 postdep_objects=$lt_postdep_objects_RC
26544
26545 # Dependencies to place before the objects being linked to create a
26546 # shared library.
26547 predeps=$lt_predeps_RC
26548
26549 # Dependencies to place after the objects being linked to create a
26550 # shared library.
26551 postdeps=$lt_postdeps_RC
26552
26553 # The library search path used internally by the compiler when linking
26554 # a shared library.
26555 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26556
26557 # Method to check whether dependent libraries are shared objects.
26558 deplibs_check_method=$lt_deplibs_check_method
26559
26560 # Command to use when deplibs_check_method == file_magic.
26561 file_magic_cmd=$lt_file_magic_cmd
26562
26563 # Flag that allows shared libraries with undefined symbols to be built.
26564 allow_undefined_flag=$lt_allow_undefined_flag_RC
26565
26566 # Flag that forces no undefined symbols.
26567 no_undefined_flag=$lt_no_undefined_flag_RC
26568
26569 # Commands used to finish a libtool library installation in a directory.
26570 finish_cmds=$lt_finish_cmds
26571
26572 # Same as above, but a single script fragment to be evaled but not shown.
26573 finish_eval=$lt_finish_eval
26574
26575 # Take the output of nm and produce a listing of raw symbols and C names.
26576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26577
26578 # Transform the output of nm in a proper C declaration
26579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26580
26581 # Transform the output of nm in a C name address pair
26582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26583
26584 # This is the shared library runtime path variable.
26585 runpath_var=$runpath_var
26586
26587 # This is the shared library path variable.
26588 shlibpath_var=$shlibpath_var
26589
26590 # Is shlibpath searched before the hard-coded library search path?
26591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26592
26593 # How to hardcode a shared library path into an executable.
26594 hardcode_action=$hardcode_action_RC
26595
26596 # Whether we should hardcode library paths into libraries.
26597 hardcode_into_libs=$hardcode_into_libs
26598
26599 # Flag to hardcode \$libdir into a binary during linking.
26600 # This must work even if \$libdir does not exist.
26601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26602
26603 # If ld is used when linking, flag to hardcode \$libdir into
26604 # a binary during linking. This must work even if \$libdir does
26605 # not exist.
26606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26607
26608 # Whether we need a single -rpath flag with a separated argument.
26609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26610
26611 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26612 # resulting binary.
26613 hardcode_direct=$hardcode_direct_RC
26614
26615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26616 # resulting binary.
26617 hardcode_minus_L=$hardcode_minus_L_RC
26618
26619 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26620 # the resulting binary.
26621 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26622
26623 # Set to yes if building a shared library automatically hardcodes DIR into the library
26624 # and all subsequent libraries and executables linked against it.
26625 hardcode_automatic=$hardcode_automatic_RC
26626
26627 # Variables whose values should be saved in libtool wrapper scripts and
26628 # restored at relink time.
26629 variables_saved_for_relink="$variables_saved_for_relink"
26630
26631 # Whether libtool must link a program against all its dependency libraries.
26632 link_all_deplibs=$link_all_deplibs_RC
26633
26634 # Compile-time system search path for libraries
26635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26636
26637 # Run-time system search path for libraries
26638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26639
26640 # Fix the shell variable \$srcfile for the compiler.
26641 fix_srcfile_path="$fix_srcfile_path_RC"
26642
26643 # Set to yes if exported symbols are required.
26644 always_export_symbols=$always_export_symbols_RC
26645
26646 # The commands to list exported symbols.
26647 export_symbols_cmds=$lt_export_symbols_cmds_RC
26648
26649 # The commands to extract the exported symbol list from a shared archive.
26650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26651
26652 # Symbols that should not be listed in the preloaded symbols.
26653 exclude_expsyms=$lt_exclude_expsyms_RC
26654
26655 # Symbols that must always be exported.
26656 include_expsyms=$lt_include_expsyms_RC
26657
26658 # ### END LIBTOOL TAG CONFIG: $tagname
26659
26660 __EOF__
26661
26662
26663 else
26664   # If there is no Makefile yet, we rely on a make rule to execute
26665   # `config.status --recheck' to rerun these tests and create the
26666   # libtool script then.
26667   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26668   if test -f "$ltmain_in"; then
26669     test -f Makefile && make "$ltmain"
26670   fi
26671 fi
26672
26673
26674 ac_ext=c
26675 ac_cpp='$CPP $CPPFLAGS'
26676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26679
26680 CC="$lt_save_CC"
26681
26682         ;;
26683
26684       *)
26685         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26686 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26687    { (exit 1); exit 1; }; }
26688         ;;
26689       esac
26690
26691       # Append the new tag name to the list of available tags.
26692       if test -n "$tagname" ; then
26693       available_tags="$available_tags $tagname"
26694     fi
26695     fi
26696   done
26697   IFS="$lt_save_ifs"
26698
26699   # Now substitute the updated list of available tags.
26700   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26701     mv "${ofile}T" "$ofile"
26702     chmod +x "$ofile"
26703   else
26704     rm -f "${ofile}T"
26705     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26706 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26707    { (exit 1); exit 1; }; }
26708   fi
26709 fi
26710
26711
26712
26713 # This can be used to rebuild libtool when needed
26714 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26715
26716 # Always use our own libtool.
26717 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26718
26719 # Prevent multiple expansion
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741 if test "$lt_cv_dlopen_self" = "yes" ; then
26742
26743 cat >>confdefs.h <<\_ACEOF
26744 #define CAN_DLOPEN_SELF 1
26745 _ACEOF
26746
26747 fi
26748
26749 if test "$WITH_LLVMGCCDIR" = "default" ; then
26750   LLVMGCC="llvm-gcc${EXEEXT}"
26751   LLVMGXX="llvm-g++${EXEEXT}"
26752   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26753 set dummy $LLVMGCC; ac_word=$2
26754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26756 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26757   echo $ECHO_N "(cached) $ECHO_C" >&6
26758 else
26759   case $LLVMGCC in
26760   [\\/]* | ?:[\\/]*)
26761   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26762   ;;
26763   *)
26764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 for as_dir in $PATH
26766 do
26767   IFS=$as_save_IFS
26768   test -z "$as_dir" && as_dir=.
26769   for ac_exec_ext in '' $ac_executable_extensions; do
26770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26771     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26773     break 2
26774   fi
26775 done
26776 done
26777 IFS=$as_save_IFS
26778
26779   ;;
26780 esac
26781 fi
26782 LLVMGCC=$ac_cv_path_LLVMGCC
26783 if test -n "$LLVMGCC"; then
26784   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26785 echo "${ECHO_T}$LLVMGCC" >&6; }
26786 else
26787   { echo "$as_me:$LINENO: result: no" >&5
26788 echo "${ECHO_T}no" >&6; }
26789 fi
26790
26791
26792   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26793 set dummy $LLVMGXX; ac_word=$2
26794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26796 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26797   echo $ECHO_N "(cached) $ECHO_C" >&6
26798 else
26799   case $LLVMGXX in
26800   [\\/]* | ?:[\\/]*)
26801   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26802   ;;
26803   *)
26804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26805 for as_dir in $PATH
26806 do
26807   IFS=$as_save_IFS
26808   test -z "$as_dir" && as_dir=.
26809   for ac_exec_ext in '' $ac_executable_extensions; do
26810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26811     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26813     break 2
26814   fi
26815 done
26816 done
26817 IFS=$as_save_IFS
26818
26819   ;;
26820 esac
26821 fi
26822 LLVMGXX=$ac_cv_path_LLVMGXX
26823 if test -n "$LLVMGXX"; then
26824   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26825 echo "${ECHO_T}$LLVMGXX" >&6; }
26826 else
26827   { echo "$as_me:$LINENO: result: no" >&5
26828 echo "${ECHO_T}no" >&6; }
26829 fi
26830
26831
26832 else
26833   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26834   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26835   LLVMGCC=$LLVMGCC
26836
26837   LLVMGXX=$LLVMGXX
26838
26839 fi
26840
26841 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26842 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26843
26844 ICC=no
26845 IXX=no
26846 case $CC in
26847   icc*|icpc*)
26848     ICC=yes
26849     IXX=yes
26850     ;;
26851    *)
26852     ;;
26853 esac
26854
26855 if test "$GCC" != "yes" && test "$ICC" != "yes"
26856 then
26857   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26858 echo "$as_me: error: gcc|icc required but not found" >&2;}
26859    { (exit 1); exit 1; }; }
26860 fi
26861
26862 if test "$GXX" != "yes" && test "$IXX" != "yes"
26863 then
26864   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26865 echo "$as_me: error: g++|icc required but not found" >&2;}
26866    { (exit 1); exit 1; }; }
26867 fi
26868
26869 if test "$GCC" = "yes"
26870 then
26871   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26872   if test "$gccmajor" -lt "3"
26873   then
26874     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26875 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26876    { (exit 1); exit 1; }; }
26877   fi
26878 fi
26879
26880 if test -z "$llvm_cv_gnu_make_command"
26881 then
26882   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883 echo "$as_me: error: GNU Make required but not found" >&2;}
26884    { (exit 1); exit 1; }; }
26885 fi
26886
26887 { echo "$as_me:$LINENO: result: ok" >&5
26888 echo "${ECHO_T}ok" >&6; }
26889
26890
26891
26892 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26894 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895   echo $ECHO_N "(cached) $ECHO_C" >&6
26896 else
26897   ac_check_lib_save_LIBS=$LIBS
26898 LIBS="-lelf  $LIBS"
26899 cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905
26906 /* Override any GCC internal prototype to avoid an error.
26907    Use char because int might match the return type of a GCC
26908    builtin and then its argument prototype would still apply.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 char elf_begin ();
26913 int
26914 main ()
26915 {
26916 return elf_begin ();
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_link") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936   { (case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_try") 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; } &&
26945          { ac_try='test -s conftest$ac_exeext'
26946   { (case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_try") 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; }; then
26955   ac_cv_lib_elf_elf_begin=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_cv_lib_elf_elf_begin=no
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext \
26964       conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26966 fi
26967 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26969 if test $ac_cv_lib_elf_elf_begin = yes; then
26970   cat >>confdefs.h <<_ACEOF
26971 #define HAVE_LIBELF 1
26972 _ACEOF
26973
26974   LIBS="-lelf $LIBS"
26975
26976 fi
26977
26978
26979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26981 if test "${ac_cv_lib_m_sin+set}" = set; then
26982   echo $ECHO_N "(cached) $ECHO_C" >&6
26983 else
26984   ac_check_lib_save_LIBS=$LIBS
26985 LIBS="-lm  $LIBS"
26986 cat >conftest.$ac_ext <<_ACEOF
26987 /* confdefs.h.  */
26988 _ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h.  */
26992
26993 /* Override any GCC internal prototype to avoid an error.
26994    Use char because int might match the return type of a GCC
26995    builtin and then its argument prototype would still apply.  */
26996 #ifdef __cplusplus
26997 extern "C"
26998 #endif
26999 char sin ();
27000 int
27001 main ()
27002 {
27003 return sin ();
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012   *) ac_try_echo=$ac_try;;
27013 esac
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015   (eval "$ac_link") 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } &&
27022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023   { (case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_try") 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; } &&
27032          { ac_try='test -s conftest$ac_exeext'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042   ac_cv_lib_m_sin=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_cv_lib_m_sin=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext \
27051       conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27053 fi
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27056 if test $ac_cv_lib_m_sin = yes; then
27057   cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBM 1
27059 _ACEOF
27060
27061   LIBS="-lm $LIBS"
27062
27063 fi
27064
27065 if test "$llvm_cv_os_type" = "MingW" ; then
27066
27067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   ac_check_lib_save_LIBS=$LIBS
27073 LIBS="-limagehlp  $LIBS"
27074 cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080
27081
27082 int
27083 main ()
27084 {
27085 return main ();
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_link") 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } &&
27104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105   { (case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_try") 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; } &&
27114          { ac_try='test -s conftest$ac_exeext'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_cv_lib_imagehlp_main=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         ac_cv_lib_imagehlp_main=no
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext \
27133       conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27135 fi
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27138 if test $ac_cv_lib_imagehlp_main = yes; then
27139   cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBIMAGEHLP 1
27141 _ACEOF
27142
27143   LIBS="-limagehlp $LIBS"
27144
27145 fi
27146
27147
27148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27150 if test "${ac_cv_lib_psapi_main+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   ac_check_lib_save_LIBS=$LIBS
27154 LIBS="-lpsapi  $LIBS"
27155 cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161
27162
27163 int
27164 main ()
27165 {
27166 return main ();
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178   (eval "$ac_link") 2>conftest.er1
27179   ac_status=$?
27180   grep -v '^ *+' conftest.er1 >conftest.err
27181   rm -f conftest.er1
27182   cat conftest.err >&5
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); } &&
27185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186   { (case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_try") 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; } &&
27195          { ac_try='test -s conftest$ac_exeext'
27196   { (case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_try") 2>&5
27202   ac_status=$?
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; }; then
27205   ac_cv_lib_psapi_main=yes
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210         ac_cv_lib_psapi_main=no
27211 fi
27212
27213 rm -f core conftest.err conftest.$ac_objext \
27214       conftest$ac_exeext conftest.$ac_ext
27215 LIBS=$ac_check_lib_save_LIBS
27216 fi
27217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27219 if test $ac_cv_lib_psapi_main = yes; then
27220   cat >>confdefs.h <<_ACEOF
27221 #define HAVE_LIBPSAPI 1
27222 _ACEOF
27223
27224   LIBS="-lpsapi $LIBS"
27225
27226 fi
27227
27228 fi
27229
27230 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27231 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27232 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   ac_func_search_save_LIBS=$LIBS
27236 cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242
27243 /* Override any GCC internal prototype to avoid an error.
27244    Use char because int might match the return type of a GCC
27245    builtin and then its argument prototype would still apply.  */
27246 #ifdef __cplusplus
27247 extern "C"
27248 #endif
27249 char lt_dlopen ();
27250 int
27251 main ()
27252 {
27253 return lt_dlopen ();
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 for ac_lib in '' ltdl; do
27259   if test -z "$ac_lib"; then
27260     ac_res="none required"
27261   else
27262     ac_res=-l$ac_lib
27263     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27264   fi
27265   rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (ac_try="$ac_link"
27267 case "(($ac_try" in
27268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269   *) ac_try_echo=$ac_try;;
27270 esac
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272   (eval "$ac_link") 2>conftest.er1
27273   ac_status=$?
27274   grep -v '^ *+' conftest.er1 >conftest.err
27275   rm -f conftest.er1
27276   cat conftest.err >&5
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } &&
27279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280   { (case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285   (eval "$ac_try") 2>&5
27286   ac_status=$?
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); }; } &&
27289          { ac_try='test -s conftest$ac_exeext'
27290   { (case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295   (eval "$ac_try") 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; }; then
27299   ac_cv_search_lt_dlopen=$ac_res
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304
27305 fi
27306
27307 rm -f core conftest.err conftest.$ac_objext \
27308       conftest$ac_exeext
27309   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27310   break
27311 fi
27312 done
27313 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27314   :
27315 else
27316   ac_cv_search_lt_dlopen=no
27317 fi
27318 rm conftest.$ac_ext
27319 LIBS=$ac_func_search_save_LIBS
27320 fi
27321 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27322 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27323 ac_res=$ac_cv_search_lt_dlopen
27324 if test "$ac_res" != no; then
27325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27326
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_LT_DLOPEN 1
27329 _ACEOF
27330
27331 else
27332   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27333                            not be available" >&5
27334 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27335                            not be available" >&2;}
27336 fi
27337
27338
27339 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27342   echo $ECHO_N "(cached) $ECHO_C" >&6
27343 else
27344   ac_func_search_save_LIBS=$LIBS
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352 /* Override any GCC internal prototype to avoid an error.
27353    Use char because int might match the return type of a GCC
27354    builtin and then its argument prototype would still apply.  */
27355 #ifdef __cplusplus
27356 extern "C"
27357 #endif
27358 char dlopen ();
27359 int
27360 main ()
27361 {
27362 return dlopen ();
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 for ac_lib in '' dl; do
27368   if test -z "$ac_lib"; then
27369     ac_res="none required"
27370   else
27371     ac_res=-l$ac_lib
27372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27373   fi
27374   rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (ac_try="$ac_link"
27376 case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381   (eval "$ac_link") 2>conftest.er1
27382   ac_status=$?
27383   grep -v '^ *+' conftest.er1 >conftest.err
27384   rm -f conftest.er1
27385   cat conftest.err >&5
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); } &&
27388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389   { (case "(($ac_try" in
27390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391   *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394   (eval "$ac_try") 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; } &&
27398          { ac_try='test -s conftest$ac_exeext'
27399   { (case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_try") 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; }; then
27408   ac_cv_search_dlopen=$ac_res
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413
27414 fi
27415
27416 rm -f core conftest.err conftest.$ac_objext \
27417       conftest$ac_exeext
27418   if test "${ac_cv_search_dlopen+set}" = set; then
27419   break
27420 fi
27421 done
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27423   :
27424 else
27425   ac_cv_search_dlopen=no
27426 fi
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27429 fi
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27435
27436 cat >>confdefs.h <<\_ACEOF
27437 #define HAVE_DLOPEN 1
27438 _ACEOF
27439
27440 else
27441   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27443 fi
27444
27445
27446 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27447 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_mallinfo+set}" = set; then
27449   echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451   ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458
27459 /* Override any GCC internal prototype to avoid an error.
27460    Use char because int might match the return type of a GCC
27461    builtin and then its argument prototype would still apply.  */
27462 #ifdef __cplusplus
27463 extern "C"
27464 #endif
27465 char mallinfo ();
27466 int
27467 main ()
27468 {
27469 return mallinfo ();
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 for ac_lib in '' malloc; do
27475   if test -z "$ac_lib"; then
27476     ac_res="none required"
27477   else
27478     ac_res=-l$ac_lib
27479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27480   fi
27481   rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485   *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488   (eval "$ac_link") 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } &&
27495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_try") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; } &&
27505          { ac_try='test -s conftest$ac_exeext'
27506   { (case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_try") 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; }; then
27515   ac_cv_search_mallinfo=$ac_res
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext \
27524       conftest$ac_exeext
27525   if test "${ac_cv_search_mallinfo+set}" = set; then
27526   break
27527 fi
27528 done
27529 if test "${ac_cv_search_mallinfo+set}" = set; then
27530   :
27531 else
27532   ac_cv_search_mallinfo=no
27533 fi
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27536 fi
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27538 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27539 ac_res=$ac_cv_search_mallinfo
27540 if test "$ac_res" != no; then
27541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27542
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_MALLINFO 1
27545 _ACEOF
27546
27547 fi
27548
27549
27550 if test "$ENABLE_THREADS" -eq 1 ; then
27551
27552 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27553 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27554 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27555   echo $ECHO_N "(cached) $ECHO_C" >&6
27556 else
27557   ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-lpthread  $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565
27566 /* Override any GCC internal prototype to avoid an error.
27567    Use char because int might match the return type of a GCC
27568    builtin and then its argument prototype would still apply.  */
27569 #ifdef __cplusplus
27570 extern "C"
27571 #endif
27572 char pthread_mutex_init ();
27573 int
27574 main ()
27575 {
27576 return pthread_mutex_init ();
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (ac_try="$ac_link"
27583 case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588   (eval "$ac_link") 2>conftest.er1
27589   ac_status=$?
27590   grep -v '^ *+' conftest.er1 >conftest.err
27591   rm -f conftest.er1
27592   cat conftest.err >&5
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); } &&
27595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596   { (case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_try") 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; } &&
27605          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27615   ac_cv_lib_pthread_pthread_mutex_init=yes
27616 else
27617   echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27619
27620         ac_cv_lib_pthread_pthread_mutex_init=no
27621 fi
27622
27623 rm -f core conftest.err conftest.$ac_objext \
27624       conftest$ac_exeext conftest.$ac_ext
27625 LIBS=$ac_check_lib_save_LIBS
27626 fi
27627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27628 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27629 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27630   cat >>confdefs.h <<_ACEOF
27631 #define HAVE_LIBPTHREAD 1
27632 _ACEOF
27633
27634   LIBS="-lpthread $LIBS"
27635
27636 fi
27637
27638   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27639 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27640 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27641   echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643   ac_func_search_save_LIBS=$LIBS
27644 cat >conftest.$ac_ext <<_ACEOF
27645 /* confdefs.h.  */
27646 _ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h.  */
27650
27651 /* Override any GCC internal prototype to avoid an error.
27652    Use char because int might match the return type of a GCC
27653    builtin and then its argument prototype would still apply.  */
27654 #ifdef __cplusplus
27655 extern "C"
27656 #endif
27657 char pthread_mutex_lock ();
27658 int
27659 main ()
27660 {
27661 return pthread_mutex_lock ();
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 for ac_lib in '' pthread; do
27667   if test -z "$ac_lib"; then
27668     ac_res="none required"
27669   else
27670     ac_res=-l$ac_lib
27671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27672   fi
27673   rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_link") 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } &&
27687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688   { (case "(($ac_try" in
27689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690   *) ac_try_echo=$ac_try;;
27691 esac
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693   (eval "$ac_try") 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; } &&
27697          { ac_try='test -s conftest$ac_exeext'
27698   { (case "(($ac_try" in
27699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700   *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703   (eval "$ac_try") 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); }; }; then
27707   ac_cv_search_pthread_mutex_lock=$ac_res
27708 else
27709   echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27711
27712
27713 fi
27714
27715 rm -f core conftest.err conftest.$ac_objext \
27716       conftest$ac_exeext
27717   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27718   break
27719 fi
27720 done
27721 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27722   :
27723 else
27724   ac_cv_search_pthread_mutex_lock=no
27725 fi
27726 rm conftest.$ac_ext
27727 LIBS=$ac_func_search_save_LIBS
27728 fi
27729 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27730 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27731 ac_res=$ac_cv_search_pthread_mutex_lock
27732 if test "$ac_res" != no; then
27733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27734
27735 cat >>confdefs.h <<\_ACEOF
27736 #define HAVE_PTHREAD_MUTEX_LOCK 1
27737 _ACEOF
27738
27739 fi
27740
27741 fi
27742
27743
27744 # Check whether --with-udis86 was given.
27745 if test "${with_udis86+set}" = set; then
27746   withval=$with_udis86;
27747       USE_UDIS86=1
27748
27749       case "$withval" in
27750         /usr/lib|yes) ;;
27751         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27752       esac
27753
27754 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27755 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27757   echo $ECHO_N "(cached) $ECHO_C" >&6
27758 else
27759   ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-ludis86  $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27762 /* confdefs.h.  */
27763 _ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h.  */
27767
27768 /* Override any GCC internal prototype to avoid an error.
27769    Use char because int might match the return type of a GCC
27770    builtin and then its argument prototype would still apply.  */
27771 #ifdef __cplusplus
27772 extern "C"
27773 #endif
27774 char ud_init ();
27775 int
27776 main ()
27777 {
27778 return ud_init ();
27779   ;
27780   return 0;
27781 }
27782 _ACEOF
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (ac_try="$ac_link"
27785 case "(($ac_try" in
27786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787   *) ac_try_echo=$ac_try;;
27788 esac
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790   (eval "$ac_link") 2>conftest.er1
27791   ac_status=$?
27792   grep -v '^ *+' conftest.er1 >conftest.err
27793   rm -f conftest.er1
27794   cat conftest.err >&5
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); } &&
27797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27798   { (case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_try") 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; } &&
27807          { ac_try='test -s conftest$ac_exeext'
27808   { (case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_try") 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); }; }; then
27817   ac_cv_lib_udis86_ud_init=yes
27818 else
27819   echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.$ac_ext >&5
27821
27822         ac_cv_lib_udis86_ud_init=no
27823 fi
27824
27825 rm -f core conftest.err conftest.$ac_objext \
27826       conftest$ac_exeext conftest.$ac_ext
27827 LIBS=$ac_check_lib_save_LIBS
27828 fi
27829 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27830 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27831 if test $ac_cv_lib_udis86_ud_init = yes; then
27832   cat >>confdefs.h <<_ACEOF
27833 #define HAVE_LIBUDIS86 1
27834 _ACEOF
27835
27836   LIBS="-ludis86 $LIBS"
27837
27838 else
27839
27840         echo "Error! You need to have libudis86 around."
27841         exit -1
27842
27843 fi
27844
27845
27846 else
27847   USE_UDIS86=0
27848
27849 fi
27850
27851
27852 cat >>confdefs.h <<_ACEOF
27853 #define USE_UDIS86 $USE_UDIS86
27854 _ACEOF
27855
27856
27857
27858
27859
27860
27861
27862
27863 ac_header_dirent=no
27864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27865   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27866 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27867 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 else
27871   cat >conftest.$ac_ext <<_ACEOF
27872 /* confdefs.h.  */
27873 _ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h.  */
27877 #include <sys/types.h>
27878 #include <$ac_hdr>
27879
27880 int
27881 main ()
27882 {
27883 if ((DIR *) 0)
27884 return 0;
27885   ;
27886   return 0;
27887 }
27888 _ACEOF
27889 rm -f conftest.$ac_objext
27890 if { (ac_try="$ac_compile"
27891 case "(($ac_try" in
27892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893   *) ac_try_echo=$ac_try;;
27894 esac
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896   (eval "$ac_compile") 2>conftest.er1
27897   ac_status=$?
27898   grep -v '^ *+' conftest.er1 >conftest.err
27899   rm -f conftest.er1
27900   cat conftest.err >&5
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); } &&
27903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27904   { (case "(($ac_try" in
27905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906   *) ac_try_echo=$ac_try;;
27907 esac
27908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27909   (eval "$ac_try") 2>&5
27910   ac_status=$?
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); }; } &&
27913          { ac_try='test -s conftest.$ac_objext'
27914   { (case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919   (eval "$ac_try") 2>&5
27920   ac_status=$?
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); }; }; then
27923   eval "$as_ac_Header=yes"
27924 else
27925   echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27927
27928         eval "$as_ac_Header=no"
27929 fi
27930
27931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932 fi
27933 ac_res=`eval echo '${'$as_ac_Header'}'`
27934                { echo "$as_me:$LINENO: result: $ac_res" >&5
27935 echo "${ECHO_T}$ac_res" >&6; }
27936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27937   cat >>confdefs.h <<_ACEOF
27938 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27939 _ACEOF
27940
27941 ac_header_dirent=$ac_hdr; break
27942 fi
27943
27944 done
27945 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27946 if test $ac_header_dirent = dirent.h; then
27947   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_opendir+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959
27960 /* Override any GCC internal prototype to avoid an error.
27961    Use char because int might match the return type of a GCC
27962    builtin and then its argument prototype would still apply.  */
27963 #ifdef __cplusplus
27964 extern "C"
27965 #endif
27966 char opendir ();
27967 int
27968 main ()
27969 {
27970 return opendir ();
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 for ac_lib in '' dir; do
27976   if test -z "$ac_lib"; then
27977     ac_res="none required"
27978   else
27979     ac_res=-l$ac_lib
27980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27981   fi
27982   rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_link") 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } &&
27996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997   { (case "(($ac_try" in
27998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999   *) ac_try_echo=$ac_try;;
28000 esac
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002   (eval "$ac_try") 2>&5
28003   ac_status=$?
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); }; } &&
28006          { ac_try='test -s conftest$ac_exeext'
28007   { (case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_try") 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016   ac_cv_search_opendir=$ac_res
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021
28022 fi
28023
28024 rm -f core conftest.err conftest.$ac_objext \
28025       conftest$ac_exeext
28026   if test "${ac_cv_search_opendir+set}" = set; then
28027   break
28028 fi
28029 done
28030 if test "${ac_cv_search_opendir+set}" = set; then
28031   :
28032 else
28033   ac_cv_search_opendir=no
28034 fi
28035 rm conftest.$ac_ext
28036 LIBS=$ac_func_search_save_LIBS
28037 fi
28038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28040 ac_res=$ac_cv_search_opendir
28041 if test "$ac_res" != no; then
28042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28043
28044 fi
28045
28046 else
28047   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28049 if test "${ac_cv_search_opendir+set}" = set; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   ac_func_search_save_LIBS=$LIBS
28053 cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059
28060 /* Override any GCC internal prototype to avoid an error.
28061    Use char because int might match the return type of a GCC
28062    builtin and then its argument prototype would still apply.  */
28063 #ifdef __cplusplus
28064 extern "C"
28065 #endif
28066 char opendir ();
28067 int
28068 main ()
28069 {
28070 return opendir ();
28071   ;
28072   return 0;
28073 }
28074 _ACEOF
28075 for ac_lib in '' x; do
28076   if test -z "$ac_lib"; then
28077     ac_res="none required"
28078   else
28079     ac_res=-l$ac_lib
28080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28081   fi
28082   rm -f conftest.$ac_objext conftest$ac_exeext
28083 if { (ac_try="$ac_link"
28084 case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_link") 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } &&
28096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097   { (case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102   (eval "$ac_try") 2>&5
28103   ac_status=$?
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); }; } &&
28106          { ac_try='test -s conftest$ac_exeext'
28107   { (case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112   (eval "$ac_try") 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; }; then
28116   ac_cv_search_opendir=$ac_res
28117 else
28118   echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28120
28121
28122 fi
28123
28124 rm -f core conftest.err conftest.$ac_objext \
28125       conftest$ac_exeext
28126   if test "${ac_cv_search_opendir+set}" = set; then
28127   break
28128 fi
28129 done
28130 if test "${ac_cv_search_opendir+set}" = set; then
28131   :
28132 else
28133   ac_cv_search_opendir=no
28134 fi
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28137 fi
28138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28140 ac_res=$ac_cv_search_opendir
28141 if test "$ac_res" != no; then
28142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143
28144 fi
28145
28146 fi
28147
28148 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28149 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28150 if test "${ac_cv_header_mmap_anon+set}" = set; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153    ac_ext=c
28154 ac_cpp='$CPP $CPPFLAGS'
28155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28158
28159   cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 #include <sys/mman.h>
28166 #include <unistd.h>
28167 #include <fcntl.h>
28168 int
28169 main ()
28170 {
28171 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28172   ;
28173   return 0;
28174 }
28175 _ACEOF
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_compile") 2>conftest.er1
28184   ac_status=$?
28185   grep -v '^ *+' conftest.er1 >conftest.err
28186   rm -f conftest.er1
28187   cat conftest.err >&5
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); } &&
28190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28191   { (case "(($ac_try" in
28192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193   *) ac_try_echo=$ac_try;;
28194 esac
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196   (eval "$ac_try") 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); }; } &&
28200          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28207   ac_status=$?
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); }; }; then
28210   ac_cv_header_mmap_anon=yes
28211 else
28212   echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28214
28215         ac_cv_header_mmap_anon=no
28216 fi
28217
28218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28219   ac_ext=c
28220 ac_cpp='$CPP $CPPFLAGS'
28221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28224
28225
28226 fi
28227 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28228 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28229 if test "$ac_cv_header_mmap_anon" = yes; then
28230
28231 cat >>confdefs.h <<\_ACEOF
28232 #define HAVE_MMAP_ANONYMOUS 1
28233 _ACEOF
28234
28235 fi
28236
28237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28239 if test "${ac_cv_header_stat_broken+set}" = set; then
28240   echo $ECHO_N "(cached) $ECHO_C" >&6
28241 else
28242   cat >conftest.$ac_ext <<_ACEOF
28243 /* confdefs.h.  */
28244 _ACEOF
28245 cat confdefs.h >>conftest.$ac_ext
28246 cat >>conftest.$ac_ext <<_ACEOF
28247 /* end confdefs.h.  */
28248 #include <sys/types.h>
28249 #include <sys/stat.h>
28250
28251 #if defined S_ISBLK && defined S_IFDIR
28252 # if S_ISBLK (S_IFDIR)
28253 You lose.
28254 # endif
28255 #endif
28256
28257 #if defined S_ISBLK && defined S_IFCHR
28258 # if S_ISBLK (S_IFCHR)
28259 You lose.
28260 # endif
28261 #endif
28262
28263 #if defined S_ISLNK && defined S_IFREG
28264 # if S_ISLNK (S_IFREG)
28265 You lose.
28266 # endif
28267 #endif
28268
28269 #if defined S_ISSOCK && defined S_IFREG
28270 # if S_ISSOCK (S_IFREG)
28271 You lose.
28272 # endif
28273 #endif
28274
28275 _ACEOF
28276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28277   $EGREP "You lose" >/dev/null 2>&1; then
28278   ac_cv_header_stat_broken=yes
28279 else
28280   ac_cv_header_stat_broken=no
28281 fi
28282 rm -f conftest*
28283
28284 fi
28285 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28286 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28287 if test $ac_cv_header_stat_broken = yes; then
28288
28289 cat >>confdefs.h <<\_ACEOF
28290 #define STAT_MACROS_BROKEN 1
28291 _ACEOF
28292
28293 fi
28294
28295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28297 if test "${ac_cv_header_stdc+set}" = set; then
28298   echo $ECHO_N "(cached) $ECHO_C" >&6
28299 else
28300   cat >conftest.$ac_ext <<_ACEOF
28301 /* confdefs.h.  */
28302 _ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h.  */
28306 #include <stdlib.h>
28307 #include <stdarg.h>
28308 #include <string.h>
28309 #include <float.h>
28310
28311 int
28312 main ()
28313 {
28314
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 rm -f conftest.$ac_objext
28320 if { (ac_try="$ac_compile"
28321 case "(($ac_try" in
28322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323   *) ac_try_echo=$ac_try;;
28324 esac
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326   (eval "$ac_compile") 2>conftest.er1
28327   ac_status=$?
28328   grep -v '^ *+' conftest.er1 >conftest.err
28329   rm -f conftest.er1
28330   cat conftest.err >&5
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); } &&
28333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28334   { (case "(($ac_try" in
28335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336   *) ac_try_echo=$ac_try;;
28337 esac
28338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339   (eval "$ac_try") 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); }; } &&
28343          { ac_try='test -s conftest.$ac_objext'
28344   { (case "(($ac_try" in
28345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346   *) ac_try_echo=$ac_try;;
28347 esac
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349   (eval "$ac_try") 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); }; }; then
28353   ac_cv_header_stdc=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358         ac_cv_header_stdc=no
28359 fi
28360
28361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28362
28363 if test $ac_cv_header_stdc = yes; then
28364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28365   cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371 #include <string.h>
28372
28373 _ACEOF
28374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28375   $EGREP "memchr" >/dev/null 2>&1; then
28376   :
28377 else
28378   ac_cv_header_stdc=no
28379 fi
28380 rm -f conftest*
28381
28382 fi
28383
28384 if test $ac_cv_header_stdc = yes; then
28385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 #include <stdlib.h>
28393
28394 _ACEOF
28395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28396   $EGREP "free" >/dev/null 2>&1; then
28397   :
28398 else
28399   ac_cv_header_stdc=no
28400 fi
28401 rm -f conftest*
28402
28403 fi
28404
28405 if test $ac_cv_header_stdc = yes; then
28406   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28407   if test "$cross_compiling" = yes; then
28408   :
28409 else
28410   cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416 #include <ctype.h>
28417 #include <stdlib.h>
28418 #if ((' ' & 0x0FF) == 0x020)
28419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28421 #else
28422 # define ISLOWER(c) \
28423                    (('a' <= (c) && (c) <= 'i') \
28424                      || ('j' <= (c) && (c) <= 'r') \
28425                      || ('s' <= (c) && (c) <= 'z'))
28426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28427 #endif
28428
28429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28430 int
28431 main ()
28432 {
28433   int i;
28434   for (i = 0; i < 256; i++)
28435     if (XOR (islower (i), ISLOWER (i))
28436         || toupper (i) != TOUPPER (i))
28437       return 2;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445   *) ac_try_echo=$ac_try;;
28446 esac
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448   (eval "$ac_link") 2>&5
28449   ac_status=$?
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28452   { (case "(($ac_try" in
28453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454   *) ac_try_echo=$ac_try;;
28455 esac
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457   (eval "$ac_try") 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); }; }; then
28461   :
28462 else
28463   echo "$as_me: program exited with status $ac_status" >&5
28464 echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28466
28467 ( exit $ac_status )
28468 ac_cv_header_stdc=no
28469 fi
28470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28471 fi
28472
28473
28474 fi
28475 fi
28476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28478 if test $ac_cv_header_stdc = yes; then
28479
28480 cat >>confdefs.h <<\_ACEOF
28481 #define STDC_HEADERS 1
28482 _ACEOF
28483
28484 fi
28485
28486 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28489   echo $ECHO_N "(cached) $ECHO_C" >&6
28490 else
28491   cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497 #include <sys/types.h>
28498 #include <sys/wait.h>
28499 #ifndef WEXITSTATUS
28500 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28501 #endif
28502 #ifndef WIFEXITED
28503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28504 #endif
28505
28506 int
28507 main ()
28508 {
28509   int s;
28510   wait (&s);
28511   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 rm -f conftest.$ac_objext
28517 if { (ac_try="$ac_compile"
28518 case "(($ac_try" in
28519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520   *) ac_try_echo=$ac_try;;
28521 esac
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523   (eval "$ac_compile") 2>conftest.er1
28524   ac_status=$?
28525   grep -v '^ *+' conftest.er1 >conftest.err
28526   rm -f conftest.er1
28527   cat conftest.err >&5
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); } &&
28530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531   { (case "(($ac_try" in
28532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533   *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536   (eval "$ac_try") 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; } &&
28540          { ac_try='test -s conftest.$ac_objext'
28541   { (case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_try") 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; }; then
28550   ac_cv_header_sys_wait_h=yes
28551 else
28552   echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28554
28555         ac_cv_header_sys_wait_h=no
28556 fi
28557
28558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559 fi
28560 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28561 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28562 if test $ac_cv_header_sys_wait_h = yes; then
28563
28564 cat >>confdefs.h <<\_ACEOF
28565 #define HAVE_SYS_WAIT_H 1
28566 _ACEOF
28567
28568 fi
28569
28570 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28571 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28572 if test "${ac_cv_header_time+set}" = set; then
28573   echo $ECHO_N "(cached) $ECHO_C" >&6
28574 else
28575   cat >conftest.$ac_ext <<_ACEOF
28576 /* confdefs.h.  */
28577 _ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h.  */
28581 #include <sys/types.h>
28582 #include <sys/time.h>
28583 #include <time.h>
28584
28585 int
28586 main ()
28587 {
28588 if ((struct tm *) 0)
28589 return 0;
28590   ;
28591   return 0;
28592 }
28593 _ACEOF
28594 rm -f conftest.$ac_objext
28595 if { (ac_try="$ac_compile"
28596 case "(($ac_try" in
28597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598   *) ac_try_echo=$ac_try;;
28599 esac
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601   (eval "$ac_compile") 2>conftest.er1
28602   ac_status=$?
28603   grep -v '^ *+' conftest.er1 >conftest.err
28604   rm -f conftest.er1
28605   cat conftest.err >&5
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } &&
28608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28609   { (case "(($ac_try" in
28610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611   *) ac_try_echo=$ac_try;;
28612 esac
28613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28614   (eval "$ac_try") 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); }; } &&
28618          { ac_try='test -s conftest.$ac_objext'
28619   { (case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_try") 2>&5
28625   ac_status=$?
28626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627   (exit $ac_status); }; }; then
28628   ac_cv_header_time=yes
28629 else
28630   echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28632
28633         ac_cv_header_time=no
28634 fi
28635
28636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28637 fi
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28639 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28640 if test $ac_cv_header_time = yes; then
28641
28642 cat >>confdefs.h <<\_ACEOF
28643 #define TIME_WITH_SYS_TIME 1
28644 _ACEOF
28645
28646 fi
28647
28648
28649
28650
28651
28652
28653
28654
28655 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28656 do
28657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28659   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28662   echo $ECHO_N "(cached) $ECHO_C" >&6
28663 fi
28664 ac_res=`eval echo '${'$as_ac_Header'}'`
28665                { echo "$as_me:$LINENO: result: $ac_res" >&5
28666 echo "${ECHO_T}$ac_res" >&6; }
28667 else
28668   # Is the header compilable?
28669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28671 cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677 $ac_includes_default
28678 #include <$ac_header>
28679 _ACEOF
28680 rm -f conftest.$ac_objext
28681 if { (ac_try="$ac_compile"
28682 case "(($ac_try" in
28683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684   *) ac_try_echo=$ac_try;;
28685 esac
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687   (eval "$ac_compile") 2>conftest.er1
28688   ac_status=$?
28689   grep -v '^ *+' conftest.er1 >conftest.err
28690   rm -f conftest.er1
28691   cat conftest.err >&5
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } &&
28694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28695   { (case "(($ac_try" in
28696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697   *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700   (eval "$ac_try") 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; } &&
28704          { ac_try='test -s conftest.$ac_objext'
28705   { (case "(($ac_try" in
28706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707   *) ac_try_echo=$ac_try;;
28708 esac
28709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710   (eval "$ac_try") 2>&5
28711   ac_status=$?
28712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713   (exit $ac_status); }; }; then
28714   ac_header_compiler=yes
28715 else
28716   echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28718
28719         ac_header_compiler=no
28720 fi
28721
28722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28724 echo "${ECHO_T}$ac_header_compiler" >&6; }
28725
28726 # Is the header present?
28727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h.  */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h.  */
28735 #include <$ac_header>
28736 _ACEOF
28737 if { (ac_try="$ac_cpp conftest.$ac_ext"
28738 case "(($ac_try" in
28739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740   *) ac_try_echo=$ac_try;;
28741 esac
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28744   ac_status=$?
28745   grep -v '^ *+' conftest.er1 >conftest.err
28746   rm -f conftest.er1
28747   cat conftest.err >&5
28748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749   (exit $ac_status); } >/dev/null; then
28750   if test -s conftest.err; then
28751     ac_cpp_err=$ac_c_preproc_warn_flag
28752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28753   else
28754     ac_cpp_err=
28755   fi
28756 else
28757   ac_cpp_err=yes
28758 fi
28759 if test -z "$ac_cpp_err"; then
28760   ac_header_preproc=yes
28761 else
28762   echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765   ac_header_preproc=no
28766 fi
28767
28768 rm -f conftest.err conftest.$ac_ext
28769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28770 echo "${ECHO_T}$ac_header_preproc" >&6; }
28771
28772 # So?  What about this header?
28773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28774   yes:no: )
28775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28779     ac_header_preproc=yes
28780     ;;
28781   no:yes:* )
28782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28794     ( cat <<\_ASBOX
28795 ## ----------------------------------- ##
28796 ## Report this to llvmbugs@cs.uiuc.edu ##
28797 ## ----------------------------------- ##
28798 _ASBOX
28799      ) | sed "s/^/$as_me: WARNING:     /" >&2
28800     ;;
28801 esac
28802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28805   echo $ECHO_N "(cached) $ECHO_C" >&6
28806 else
28807   eval "$as_ac_Header=\$ac_header_preproc"
28808 fi
28809 ac_res=`eval echo '${'$as_ac_Header'}'`
28810                { echo "$as_me:$LINENO: result: $ac_res" >&5
28811 echo "${ECHO_T}$ac_res" >&6; }
28812
28813 fi
28814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28815   cat >>confdefs.h <<_ACEOF
28816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28817 _ACEOF
28818
28819 fi
28820
28821 done
28822
28823
28824
28825
28826
28827
28828
28829 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28830 do
28831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28836   echo $ECHO_N "(cached) $ECHO_C" >&6
28837 fi
28838 ac_res=`eval echo '${'$as_ac_Header'}'`
28839                { echo "$as_me:$LINENO: result: $ac_res" >&5
28840 echo "${ECHO_T}$ac_res" >&6; }
28841 else
28842   # Is the header compilable?
28843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28845 cat >conftest.$ac_ext <<_ACEOF
28846 /* confdefs.h.  */
28847 _ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h.  */
28851 $ac_includes_default
28852 #include <$ac_header>
28853 _ACEOF
28854 rm -f conftest.$ac_objext
28855 if { (ac_try="$ac_compile"
28856 case "(($ac_try" in
28857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858   *) ac_try_echo=$ac_try;;
28859 esac
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861   (eval "$ac_compile") 2>conftest.er1
28862   ac_status=$?
28863   grep -v '^ *+' conftest.er1 >conftest.err
28864   rm -f conftest.er1
28865   cat conftest.err >&5
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } &&
28868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869   { (case "(($ac_try" in
28870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871   *) ac_try_echo=$ac_try;;
28872 esac
28873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874   (eval "$ac_try") 2>&5
28875   ac_status=$?
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; } &&
28878          { ac_try='test -s conftest.$ac_objext'
28879   { (case "(($ac_try" in
28880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881   *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884   (eval "$ac_try") 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; }; then
28888   ac_header_compiler=yes
28889 else
28890   echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28892
28893         ac_header_compiler=no
28894 fi
28895
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28898 echo "${ECHO_T}$ac_header_compiler" >&6; }
28899
28900 # Is the header present?
28901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28903 cat >conftest.$ac_ext <<_ACEOF
28904 /* confdefs.h.  */
28905 _ACEOF
28906 cat confdefs.h >>conftest.$ac_ext
28907 cat >>conftest.$ac_ext <<_ACEOF
28908 /* end confdefs.h.  */
28909 #include <$ac_header>
28910 _ACEOF
28911 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28918   ac_status=$?
28919   grep -v '^ *+' conftest.er1 >conftest.err
28920   rm -f conftest.er1
28921   cat conftest.err >&5
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); } >/dev/null; then
28924   if test -s conftest.err; then
28925     ac_cpp_err=$ac_c_preproc_warn_flag
28926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28927   else
28928     ac_cpp_err=
28929   fi
28930 else
28931   ac_cpp_err=yes
28932 fi
28933 if test -z "$ac_cpp_err"; then
28934   ac_header_preproc=yes
28935 else
28936   echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28938
28939   ac_header_preproc=no
28940 fi
28941
28942 rm -f conftest.err conftest.$ac_ext
28943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28944 echo "${ECHO_T}$ac_header_preproc" >&6; }
28945
28946 # So?  What about this header?
28947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28948   yes:no: )
28949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28953     ac_header_preproc=yes
28954     ;;
28955   no:yes:* )
28956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28968     ( cat <<\_ASBOX
28969 ## ----------------------------------- ##
28970 ## Report this to llvmbugs@cs.uiuc.edu ##
28971 ## ----------------------------------- ##
28972 _ASBOX
28973      ) | sed "s/^/$as_me: WARNING:     /" >&2
28974     ;;
28975 esac
28976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981   eval "$as_ac_Header=\$ac_header_preproc"
28982 fi
28983 ac_res=`eval echo '${'$as_ac_Header'}'`
28984                { echo "$as_me:$LINENO: result: $ac_res" >&5
28985 echo "${ECHO_T}$ac_res" >&6; }
28986
28987 fi
28988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28989   cat >>confdefs.h <<_ACEOF
28990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28991 _ACEOF
28992
28993 fi
28994
28995 done
28996
28997
28998 for ac_header in windows.h
28999 do
29000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29005   echo $ECHO_N "(cached) $ECHO_C" >&6
29006 fi
29007 ac_res=`eval echo '${'$as_ac_Header'}'`
29008                { echo "$as_me:$LINENO: result: $ac_res" >&5
29009 echo "${ECHO_T}$ac_res" >&6; }
29010 else
29011   # Is the header compilable?
29012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29014 cat >conftest.$ac_ext <<_ACEOF
29015 /* confdefs.h.  */
29016 _ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h.  */
29020 $ac_includes_default
29021 #include <$ac_header>
29022 _ACEOF
29023 rm -f conftest.$ac_objext
29024 if { (ac_try="$ac_compile"
29025 case "(($ac_try" in
29026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027   *) ac_try_echo=$ac_try;;
29028 esac
29029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030   (eval "$ac_compile") 2>conftest.er1
29031   ac_status=$?
29032   grep -v '^ *+' conftest.er1 >conftest.err
29033   rm -f conftest.er1
29034   cat conftest.err >&5
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); } &&
29037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29038   { (case "(($ac_try" in
29039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040   *) ac_try_echo=$ac_try;;
29041 esac
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043   (eval "$ac_try") 2>&5
29044   ac_status=$?
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); }; } &&
29047          { ac_try='test -s conftest.$ac_objext'
29048   { (case "(($ac_try" in
29049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050   *) ac_try_echo=$ac_try;;
29051 esac
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053   (eval "$ac_try") 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; }; then
29057   ac_header_compiler=yes
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062         ac_header_compiler=no
29063 fi
29064
29065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29067 echo "${ECHO_T}$ac_header_compiler" >&6; }
29068
29069 # Is the header present?
29070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29072 cat >conftest.$ac_ext <<_ACEOF
29073 /* confdefs.h.  */
29074 _ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h.  */
29078 #include <$ac_header>
29079 _ACEOF
29080 if { (ac_try="$ac_cpp conftest.$ac_ext"
29081 case "(($ac_try" in
29082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083   *) ac_try_echo=$ac_try;;
29084 esac
29085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29087   ac_status=$?
29088   grep -v '^ *+' conftest.er1 >conftest.err
29089   rm -f conftest.er1
29090   cat conftest.err >&5
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); } >/dev/null; then
29093   if test -s conftest.err; then
29094     ac_cpp_err=$ac_c_preproc_warn_flag
29095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29096   else
29097     ac_cpp_err=
29098   fi
29099 else
29100   ac_cpp_err=yes
29101 fi
29102 if test -z "$ac_cpp_err"; then
29103   ac_header_preproc=yes
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108   ac_header_preproc=no
29109 fi
29110
29111 rm -f conftest.err conftest.$ac_ext
29112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29113 echo "${ECHO_T}$ac_header_preproc" >&6; }
29114
29115 # So?  What about this header?
29116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29117   yes:no: )
29118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29122     ac_header_preproc=yes
29123     ;;
29124   no:yes:* )
29125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29137     ( cat <<\_ASBOX
29138 ## ----------------------------------- ##
29139 ## Report this to llvmbugs@cs.uiuc.edu ##
29140 ## ----------------------------------- ##
29141 _ASBOX
29142      ) | sed "s/^/$as_me: WARNING:     /" >&2
29143     ;;
29144 esac
29145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29148   echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150   eval "$as_ac_Header=\$ac_header_preproc"
29151 fi
29152 ac_res=`eval echo '${'$as_ac_Header'}'`
29153                { echo "$as_me:$LINENO: result: $ac_res" >&5
29154 echo "${ECHO_T}$ac_res" >&6; }
29155
29156 fi
29157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29158   cat >>confdefs.h <<_ACEOF
29159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29160 _ACEOF
29161
29162 fi
29163
29164 done
29165
29166
29167
29168
29169
29170 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29171 do
29172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 fi
29179 ac_res=`eval echo '${'$as_ac_Header'}'`
29180                { echo "$as_me:$LINENO: result: $ac_res" >&5
29181 echo "${ECHO_T}$ac_res" >&6; }
29182 else
29183   # Is the header compilable?
29184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29186 cat >conftest.$ac_ext <<_ACEOF
29187 /* confdefs.h.  */
29188 _ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h.  */
29192 $ac_includes_default
29193 #include <$ac_header>
29194 _ACEOF
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202   (eval "$ac_compile") 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } &&
29209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29210   { (case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_try") 2>&5
29216   ac_status=$?
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); }; } &&
29219          { ac_try='test -s conftest.$ac_objext'
29220   { (case "(($ac_try" in
29221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222   *) ac_try_echo=$ac_try;;
29223 esac
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225   (eval "$ac_try") 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; }; then
29229   ac_header_compiler=yes
29230 else
29231   echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29233
29234         ac_header_compiler=no
29235 fi
29236
29237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29239 echo "${ECHO_T}$ac_header_compiler" >&6; }
29240
29241 # Is the header present?
29242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29244 cat >conftest.$ac_ext <<_ACEOF
29245 /* confdefs.h.  */
29246 _ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h.  */
29250 #include <$ac_header>
29251 _ACEOF
29252 if { (ac_try="$ac_cpp conftest.$ac_ext"
29253 case "(($ac_try" in
29254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255   *) ac_try_echo=$ac_try;;
29256 esac
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29259   ac_status=$?
29260   grep -v '^ *+' conftest.er1 >conftest.err
29261   rm -f conftest.er1
29262   cat conftest.err >&5
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } >/dev/null; then
29265   if test -s conftest.err; then
29266     ac_cpp_err=$ac_c_preproc_warn_flag
29267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29268   else
29269     ac_cpp_err=
29270   fi
29271 else
29272   ac_cpp_err=yes
29273 fi
29274 if test -z "$ac_cpp_err"; then
29275   ac_header_preproc=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280   ac_header_preproc=no
29281 fi
29282
29283 rm -f conftest.err conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29285 echo "${ECHO_T}$ac_header_preproc" >&6; }
29286
29287 # So?  What about this header?
29288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29289   yes:no: )
29290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29294     ac_header_preproc=yes
29295     ;;
29296   no:yes:* )
29297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29309     ( cat <<\_ASBOX
29310 ## ----------------------------------- ##
29311 ## Report this to llvmbugs@cs.uiuc.edu ##
29312 ## ----------------------------------- ##
29313 _ASBOX
29314      ) | sed "s/^/$as_me: WARNING:     /" >&2
29315     ;;
29316 esac
29317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320   echo $ECHO_N "(cached) $ECHO_C" >&6
29321 else
29322   eval "$as_ac_Header=\$ac_header_preproc"
29323 fi
29324 ac_res=`eval echo '${'$as_ac_Header'}'`
29325                { echo "$as_me:$LINENO: result: $ac_res" >&5
29326 echo "${ECHO_T}$ac_res" >&6; }
29327
29328 fi
29329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330   cat >>confdefs.h <<_ACEOF
29331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332 _ACEOF
29333
29334 fi
29335
29336 done
29337
29338
29339
29340
29341 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29342 do
29343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29348   echo $ECHO_N "(cached) $ECHO_C" >&6
29349 fi
29350 ac_res=`eval echo '${'$as_ac_Header'}'`
29351                { echo "$as_me:$LINENO: result: $ac_res" >&5
29352 echo "${ECHO_T}$ac_res" >&6; }
29353 else
29354   # Is the header compilable?
29355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29357 cat >conftest.$ac_ext <<_ACEOF
29358 /* confdefs.h.  */
29359 _ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h.  */
29363 $ac_includes_default
29364 #include <$ac_header>
29365 _ACEOF
29366 rm -f conftest.$ac_objext
29367 if { (ac_try="$ac_compile"
29368 case "(($ac_try" in
29369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370   *) ac_try_echo=$ac_try;;
29371 esac
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373   (eval "$ac_compile") 2>conftest.er1
29374   ac_status=$?
29375   grep -v '^ *+' conftest.er1 >conftest.err
29376   rm -f conftest.er1
29377   cat conftest.err >&5
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); } &&
29380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29381   { (case "(($ac_try" in
29382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383   *) ac_try_echo=$ac_try;;
29384 esac
29385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386   (eval "$ac_try") 2>&5
29387   ac_status=$?
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); }; } &&
29390          { ac_try='test -s conftest.$ac_objext'
29391   { (case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396   (eval "$ac_try") 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; }; then
29400   ac_header_compiler=yes
29401 else
29402   echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29404
29405         ac_header_compiler=no
29406 fi
29407
29408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29410 echo "${ECHO_T}$ac_header_compiler" >&6; }
29411
29412 # Is the header present?
29413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29415 cat >conftest.$ac_ext <<_ACEOF
29416 /* confdefs.h.  */
29417 _ACEOF
29418 cat confdefs.h >>conftest.$ac_ext
29419 cat >>conftest.$ac_ext <<_ACEOF
29420 /* end confdefs.h.  */
29421 #include <$ac_header>
29422 _ACEOF
29423 if { (ac_try="$ac_cpp conftest.$ac_ext"
29424 case "(($ac_try" in
29425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426   *) ac_try_echo=$ac_try;;
29427 esac
29428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29430   ac_status=$?
29431   grep -v '^ *+' conftest.er1 >conftest.err
29432   rm -f conftest.er1
29433   cat conftest.err >&5
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); } >/dev/null; then
29436   if test -s conftest.err; then
29437     ac_cpp_err=$ac_c_preproc_warn_flag
29438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29439   else
29440     ac_cpp_err=
29441   fi
29442 else
29443   ac_cpp_err=yes
29444 fi
29445 if test -z "$ac_cpp_err"; then
29446   ac_header_preproc=yes
29447 else
29448   echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451   ac_header_preproc=no
29452 fi
29453
29454 rm -f conftest.err conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29456 echo "${ECHO_T}$ac_header_preproc" >&6; }
29457
29458 # So?  What about this header?
29459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29460   yes:no: )
29461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29465     ac_header_preproc=yes
29466     ;;
29467   no:yes:* )
29468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29480     ( cat <<\_ASBOX
29481 ## ----------------------------------- ##
29482 ## Report this to llvmbugs@cs.uiuc.edu ##
29483 ## ----------------------------------- ##
29484 _ASBOX
29485      ) | sed "s/^/$as_me: WARNING:     /" >&2
29486     ;;
29487 esac
29488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491   echo $ECHO_N "(cached) $ECHO_C" >&6
29492 else
29493   eval "$as_ac_Header=\$ac_header_preproc"
29494 fi
29495 ac_res=`eval echo '${'$as_ac_Header'}'`
29496                { echo "$as_me:$LINENO: result: $ac_res" >&5
29497 echo "${ECHO_T}$ac_res" >&6; }
29498
29499 fi
29500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29501   cat >>confdefs.h <<_ACEOF
29502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29503 _ACEOF
29504
29505 fi
29506
29507 done
29508
29509 if test "$ENABLE_THREADS" -eq 1 ; then
29510
29511 for ac_header in pthread.h
29512 do
29513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29518   echo $ECHO_N "(cached) $ECHO_C" >&6
29519 fi
29520 ac_res=`eval echo '${'$as_ac_Header'}'`
29521                { echo "$as_me:$LINENO: result: $ac_res" >&5
29522 echo "${ECHO_T}$ac_res" >&6; }
29523 else
29524   # Is the header compilable?
29525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29527 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533 $ac_includes_default
29534 #include <$ac_header>
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (ac_try="$ac_compile"
29538 case "(($ac_try" in
29539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540   *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543   (eval "$ac_compile") 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } &&
29550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29551   { (case "(($ac_try" in
29552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553   *) ac_try_echo=$ac_try;;
29554 esac
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556   (eval "$ac_try") 2>&5
29557   ac_status=$?
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); }; } &&
29560          { ac_try='test -s conftest.$ac_objext'
29561   { (case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_try") 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; }; then
29570   ac_header_compiler=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575         ac_header_compiler=no
29576 fi
29577
29578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29580 echo "${ECHO_T}$ac_header_compiler" >&6; }
29581
29582 # Is the header present?
29583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29585 cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591 #include <$ac_header>
29592 _ACEOF
29593 if { (ac_try="$ac_cpp conftest.$ac_ext"
29594 case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29600   ac_status=$?
29601   grep -v '^ *+' conftest.er1 >conftest.err
29602   rm -f conftest.er1
29603   cat conftest.err >&5
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); } >/dev/null; then
29606   if test -s conftest.err; then
29607     ac_cpp_err=$ac_c_preproc_warn_flag
29608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29609   else
29610     ac_cpp_err=
29611   fi
29612 else
29613   ac_cpp_err=yes
29614 fi
29615 if test -z "$ac_cpp_err"; then
29616   ac_header_preproc=yes
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621   ac_header_preproc=no
29622 fi
29623
29624 rm -f conftest.err conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29626 echo "${ECHO_T}$ac_header_preproc" >&6; }
29627
29628 # So?  What about this header?
29629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29630   yes:no: )
29631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29635     ac_header_preproc=yes
29636     ;;
29637   no:yes:* )
29638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29650     ( cat <<\_ASBOX
29651 ## ----------------------------------- ##
29652 ## Report this to llvmbugs@cs.uiuc.edu ##
29653 ## ----------------------------------- ##
29654 _ASBOX
29655      ) | sed "s/^/$as_me: WARNING:     /" >&2
29656     ;;
29657 esac
29658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29661   echo $ECHO_N "(cached) $ECHO_C" >&6
29662 else
29663   eval "$as_ac_Header=\$ac_header_preproc"
29664 fi
29665 ac_res=`eval echo '${'$as_ac_Header'}'`
29666                { echo "$as_me:$LINENO: result: $ac_res" >&5
29667 echo "${ECHO_T}$ac_res" >&6; }
29668
29669 fi
29670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29671   cat >>confdefs.h <<_ACEOF
29672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29673 _ACEOF
29674  HAVE_PTHREAD=1
29675
29676 else
29677   HAVE_PTHREAD=0
29678
29679 fi
29680
29681 done
29682
29683 else
29684   HAVE_PTHREAD=0
29685
29686 fi
29687
29688
29689
29690   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29691 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29692 if test "${ac_cv_huge_val_sanity+set}" = set; then
29693   echo $ECHO_N "(cached) $ECHO_C" >&6
29694 else
29695
29696     ac_ext=cpp
29697 ac_cpp='$CXXCPP $CPPFLAGS'
29698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29701
29702     CXXFLAGS=-pedantic
29703     if test "$cross_compiling" = yes; then
29704   ac_cv_huge_val_sanity=yes
29705 else
29706   cat >conftest.$ac_ext <<_ACEOF
29707 /* confdefs.h.  */
29708 _ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h.  */
29712 #include <math.h>
29713 int
29714 main ()
29715 {
29716 double x = HUGE_VAL; return x != x;
29717   ;
29718   return 0;
29719 }
29720 _ACEOF
29721 rm -f conftest$ac_exeext
29722 if { (ac_try="$ac_link"
29723 case "(($ac_try" in
29724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725   *) ac_try_echo=$ac_try;;
29726 esac
29727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728   (eval "$ac_link") 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29732   { (case "(($ac_try" in
29733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734   *) ac_try_echo=$ac_try;;
29735 esac
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737   (eval "$ac_try") 2>&5
29738   ac_status=$?
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); }; }; then
29741   ac_cv_huge_val_sanity=yes
29742 else
29743   echo "$as_me: program exited with status $ac_status" >&5
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29746
29747 ( exit $ac_status )
29748 ac_cv_huge_val_sanity=no
29749 fi
29750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29751 fi
29752
29753
29754     ac_ext=c
29755 ac_cpp='$CPP $CPPFLAGS'
29756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29759
29760
29761 fi
29762 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29763 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29764   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29765
29766
29767 { echo "$as_me:$LINENO: checking for pid_t" >&5
29768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29769 if test "${ac_cv_type_pid_t+set}" = set; then
29770   echo $ECHO_N "(cached) $ECHO_C" >&6
29771 else
29772   cat >conftest.$ac_ext <<_ACEOF
29773 /* confdefs.h.  */
29774 _ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h.  */
29778 $ac_includes_default
29779 typedef pid_t ac__type_new_;
29780 int
29781 main ()
29782 {
29783 if ((ac__type_new_ *) 0)
29784   return 0;
29785 if (sizeof (ac__type_new_))
29786   return 0;
29787   ;
29788   return 0;
29789 }
29790 _ACEOF
29791 rm -f conftest.$ac_objext
29792 if { (ac_try="$ac_compile"
29793 case "(($ac_try" in
29794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795   *) ac_try_echo=$ac_try;;
29796 esac
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798   (eval "$ac_compile") 2>conftest.er1
29799   ac_status=$?
29800   grep -v '^ *+' conftest.er1 >conftest.err
29801   rm -f conftest.er1
29802   cat conftest.err >&5
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); } &&
29805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29806   { (case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_try") 2>&5
29812   ac_status=$?
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); }; } &&
29815          { ac_try='test -s conftest.$ac_objext'
29816   { (case "(($ac_try" in
29817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818   *) ac_try_echo=$ac_try;;
29819 esac
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821   (eval "$ac_try") 2>&5
29822   ac_status=$?
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); }; }; then
29825   ac_cv_type_pid_t=yes
29826 else
29827   echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29829
29830         ac_cv_type_pid_t=no
29831 fi
29832
29833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834 fi
29835 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29836 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29837 if test $ac_cv_type_pid_t = yes; then
29838   :
29839 else
29840
29841 cat >>confdefs.h <<_ACEOF
29842 #define pid_t int
29843 _ACEOF
29844
29845 fi
29846
29847 { echo "$as_me:$LINENO: checking for size_t" >&5
29848 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29849 if test "${ac_cv_type_size_t+set}" = set; then
29850   echo $ECHO_N "(cached) $ECHO_C" >&6
29851 else
29852   cat >conftest.$ac_ext <<_ACEOF
29853 /* confdefs.h.  */
29854 _ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h.  */
29858 $ac_includes_default
29859 typedef size_t ac__type_new_;
29860 int
29861 main ()
29862 {
29863 if ((ac__type_new_ *) 0)
29864   return 0;
29865 if (sizeof (ac__type_new_))
29866   return 0;
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext
29872 if { (ac_try="$ac_compile"
29873 case "(($ac_try" in
29874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875   *) ac_try_echo=$ac_try;;
29876 esac
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878   (eval "$ac_compile") 2>conftest.er1
29879   ac_status=$?
29880   grep -v '^ *+' conftest.er1 >conftest.err
29881   rm -f conftest.er1
29882   cat conftest.err >&5
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29886   { (case "(($ac_try" in
29887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888   *) ac_try_echo=$ac_try;;
29889 esac
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891   (eval "$ac_try") 2>&5
29892   ac_status=$?
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); }; } &&
29895          { ac_try='test -s conftest.$ac_objext'
29896   { (case "(($ac_try" in
29897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898   *) ac_try_echo=$ac_try;;
29899 esac
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901   (eval "$ac_try") 2>&5
29902   ac_status=$?
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); }; }; then
29905   ac_cv_type_size_t=yes
29906 else
29907   echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29909
29910         ac_cv_type_size_t=no
29911 fi
29912
29913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914 fi
29915 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29916 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29917 if test $ac_cv_type_size_t = yes; then
29918   :
29919 else
29920
29921 cat >>confdefs.h <<_ACEOF
29922 #define size_t unsigned int
29923 _ACEOF
29924
29925 fi
29926
29927 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29928 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29929 if test "${ac_cv_type_signal+set}" = set; then
29930   echo $ECHO_N "(cached) $ECHO_C" >&6
29931 else
29932   cat >conftest.$ac_ext <<_ACEOF
29933 /* confdefs.h.  */
29934 _ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h.  */
29938 #include <sys/types.h>
29939 #include <signal.h>
29940
29941 int
29942 main ()
29943 {
29944 return *(signal (0, 0)) (0) == 1;
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext
29950 if { (ac_try="$ac_compile"
29951 case "(($ac_try" in
29952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953   *) ac_try_echo=$ac_try;;
29954 esac
29955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956   (eval "$ac_compile") 2>conftest.er1
29957   ac_status=$?
29958   grep -v '^ *+' conftest.er1 >conftest.err
29959   rm -f conftest.er1
29960   cat conftest.err >&5
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); } &&
29963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29964   { (case "(($ac_try" in
29965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966   *) ac_try_echo=$ac_try;;
29967 esac
29968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29969   (eval "$ac_try") 2>&5
29970   ac_status=$?
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); }; } &&
29973          { ac_try='test -s conftest.$ac_objext'
29974   { (case "(($ac_try" in
29975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976   *) ac_try_echo=$ac_try;;
29977 esac
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979   (eval "$ac_try") 2>&5
29980   ac_status=$?
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); }; }; then
29983   ac_cv_type_signal=int
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_type_signal=void
29989 fi
29990
29991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29992 fi
29993 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29994 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29995
29996 cat >>confdefs.h <<_ACEOF
29997 #define RETSIGTYPE $ac_cv_type_signal
29998 _ACEOF
29999
30000
30001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30003 if test "${ac_cv_struct_tm+set}" = set; then
30004   echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006   cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012 #include <sys/types.h>
30013 #include <time.h>
30014
30015 int
30016 main ()
30017 {
30018 struct tm *tp; tp->tm_sec;
30019   ;
30020   return 0;
30021 }
30022 _ACEOF
30023 rm -f conftest.$ac_objext
30024 if { (ac_try="$ac_compile"
30025 case "(($ac_try" in
30026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027   *) ac_try_echo=$ac_try;;
30028 esac
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030   (eval "$ac_compile") 2>conftest.er1
30031   ac_status=$?
30032   grep -v '^ *+' conftest.er1 >conftest.err
30033   rm -f conftest.er1
30034   cat conftest.err >&5
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); } &&
30037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30038   { (case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_try") 2>&5
30044   ac_status=$?
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); }; } &&
30047          { ac_try='test -s conftest.$ac_objext'
30048   { (case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_try") 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; }; then
30057   ac_cv_struct_tm=time.h
30058 else
30059   echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30061
30062         ac_cv_struct_tm=sys/time.h
30063 fi
30064
30065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30066 fi
30067 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30068 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30069 if test $ac_cv_struct_tm = sys/time.h; then
30070
30071 cat >>confdefs.h <<\_ACEOF
30072 #define TM_IN_SYS_TIME 1
30073 _ACEOF
30074
30075 fi
30076
30077 { echo "$as_me:$LINENO: checking for int64_t" >&5
30078 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30079 if test "${ac_cv_type_int64_t+set}" = set; then
30080   echo $ECHO_N "(cached) $ECHO_C" >&6
30081 else
30082   cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088 $ac_includes_default
30089 typedef int64_t ac__type_new_;
30090 int
30091 main ()
30092 {
30093 if ((ac__type_new_ *) 0)
30094   return 0;
30095 if (sizeof (ac__type_new_))
30096   return 0;
30097   ;
30098   return 0;
30099 }
30100 _ACEOF
30101 rm -f conftest.$ac_objext
30102 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30109   ac_status=$?
30110   grep -v '^ *+' conftest.er1 >conftest.err
30111   rm -f conftest.er1
30112   cat conftest.err >&5
30113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114   (exit $ac_status); } &&
30115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30116   { (case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_try") 2>&5
30122   ac_status=$?
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); }; } &&
30125          { ac_try='test -s conftest.$ac_objext'
30126   { (case "(($ac_try" in
30127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128   *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131   (eval "$ac_try") 2>&5
30132   ac_status=$?
30133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134   (exit $ac_status); }; }; then
30135   ac_cv_type_int64_t=yes
30136 else
30137   echo "$as_me: failed program was:" >&5
30138 sed 's/^/| /' conftest.$ac_ext >&5
30139
30140         ac_cv_type_int64_t=no
30141 fi
30142
30143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30144 fi
30145 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30146 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30147 if test $ac_cv_type_int64_t = yes; then
30148
30149 cat >>confdefs.h <<_ACEOF
30150 #define HAVE_INT64_T 1
30151 _ACEOF
30152
30153
30154 else
30155   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30156 echo "$as_me: error: Type int64_t required but not found" >&2;}
30157    { (exit 1); exit 1; }; }
30158 fi
30159
30160 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30161 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30162 if test "${ac_cv_type_uint64_t+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165   cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171 $ac_includes_default
30172 typedef uint64_t ac__type_new_;
30173 int
30174 main ()
30175 {
30176 if ((ac__type_new_ *) 0)
30177   return 0;
30178 if (sizeof (ac__type_new_))
30179   return 0;
30180   ;
30181   return 0;
30182 }
30183 _ACEOF
30184 rm -f conftest.$ac_objext
30185 if { (ac_try="$ac_compile"
30186 case "(($ac_try" in
30187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188   *) ac_try_echo=$ac_try;;
30189 esac
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191   (eval "$ac_compile") 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30199   { (case "(($ac_try" in
30200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201   *) ac_try_echo=$ac_try;;
30202 esac
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204   (eval "$ac_try") 2>&5
30205   ac_status=$?
30206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207   (exit $ac_status); }; } &&
30208          { ac_try='test -s conftest.$ac_objext'
30209   { (case "(($ac_try" in
30210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211   *) ac_try_echo=$ac_try;;
30212 esac
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214   (eval "$ac_try") 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; }; then
30218   ac_cv_type_uint64_t=yes
30219 else
30220   echo "$as_me: failed program was:" >&5
30221 sed 's/^/| /' conftest.$ac_ext >&5
30222
30223         ac_cv_type_uint64_t=no
30224 fi
30225
30226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30227 fi
30228 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30229 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30230 if test $ac_cv_type_uint64_t = yes; then
30231
30232 cat >>confdefs.h <<_ACEOF
30233 #define HAVE_UINT64_T 1
30234 _ACEOF
30235
30236
30237 else
30238   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30239 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30240 if test "${ac_cv_type_u_int64_t+set}" = set; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 else
30243   cat >conftest.$ac_ext <<_ACEOF
30244 /* confdefs.h.  */
30245 _ACEOF
30246 cat confdefs.h >>conftest.$ac_ext
30247 cat >>conftest.$ac_ext <<_ACEOF
30248 /* end confdefs.h.  */
30249 $ac_includes_default
30250 typedef u_int64_t ac__type_new_;
30251 int
30252 main ()
30253 {
30254 if ((ac__type_new_ *) 0)
30255   return 0;
30256 if (sizeof (ac__type_new_))
30257   return 0;
30258   ;
30259   return 0;
30260 }
30261 _ACEOF
30262 rm -f conftest.$ac_objext
30263 if { (ac_try="$ac_compile"
30264 case "(($ac_try" in
30265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30266   *) ac_try_echo=$ac_try;;
30267 esac
30268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30269   (eval "$ac_compile") 2>conftest.er1
30270   ac_status=$?
30271   grep -v '^ *+' conftest.er1 >conftest.err
30272   rm -f conftest.er1
30273   cat conftest.err >&5
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30277   { (case "(($ac_try" in
30278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30279   *) ac_try_echo=$ac_try;;
30280 esac
30281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30282   (eval "$ac_try") 2>&5
30283   ac_status=$?
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); }; } &&
30286          { ac_try='test -s conftest.$ac_objext'
30287   { (case "(($ac_try" in
30288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289   *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292   (eval "$ac_try") 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; }; then
30296   ac_cv_type_u_int64_t=yes
30297 else
30298   echo "$as_me: failed program was:" >&5
30299 sed 's/^/| /' conftest.$ac_ext >&5
30300
30301         ac_cv_type_u_int64_t=no
30302 fi
30303
30304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305 fi
30306 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30307 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30308 if test $ac_cv_type_u_int64_t = yes; then
30309
30310 cat >>confdefs.h <<_ACEOF
30311 #define HAVE_U_INT64_T 1
30312 _ACEOF
30313
30314
30315 else
30316   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30317 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30318    { (exit 1); exit 1; }; }
30319 fi
30320
30321 fi
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30333 do
30334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30338   echo $ECHO_N "(cached) $ECHO_C" >&6
30339 else
30340   cat >conftest.$ac_ext <<_ACEOF
30341 /* confdefs.h.  */
30342 _ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h.  */
30346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30348 #define $ac_func innocuous_$ac_func
30349
30350 /* System header to define __stub macros and hopefully few prototypes,
30351     which can conflict with char $ac_func (); below.
30352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30353     <limits.h> exists even on freestanding compilers.  */
30354
30355 #ifdef __STDC__
30356 # include <limits.h>
30357 #else
30358 # include <assert.h>
30359 #endif
30360
30361 #undef $ac_func
30362
30363 /* Override any GCC internal prototype to avoid an error.
30364    Use char because int might match the return type of a GCC
30365    builtin and then its argument prototype would still apply.  */
30366 #ifdef __cplusplus
30367 extern "C"
30368 #endif
30369 char $ac_func ();
30370 /* The GNU C library defines this for functions which it implements
30371     to always fail with ENOSYS.  Some functions are actually named
30372     something starting with __ and the normal name is an alias.  */
30373 #if defined __stub_$ac_func || defined __stub___$ac_func
30374 choke me
30375 #endif
30376
30377 int
30378 main ()
30379 {
30380 return $ac_func ();
30381   ;
30382   return 0;
30383 }
30384 _ACEOF
30385 rm -f conftest.$ac_objext conftest$ac_exeext
30386 if { (ac_try="$ac_link"
30387 case "(($ac_try" in
30388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389   *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392   (eval "$ac_link") 2>conftest.er1
30393   ac_status=$?
30394   grep -v '^ *+' conftest.er1 >conftest.err
30395   rm -f conftest.er1
30396   cat conftest.err >&5
30397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398   (exit $ac_status); } &&
30399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400   { (case "(($ac_try" in
30401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402   *) ac_try_echo=$ac_try;;
30403 esac
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405   (eval "$ac_try") 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; } &&
30409          { ac_try='test -s conftest$ac_exeext'
30410   { (case "(($ac_try" in
30411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412   *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415   (eval "$ac_try") 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; }; then
30419   eval "$as_ac_var=yes"
30420 else
30421   echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30423
30424         eval "$as_ac_var=no"
30425 fi
30426
30427 rm -f core conftest.err conftest.$ac_objext \
30428       conftest$ac_exeext conftest.$ac_ext
30429 fi
30430 ac_res=`eval echo '${'$as_ac_var'}'`
30431                { echo "$as_me:$LINENO: result: $ac_res" >&5
30432 echo "${ECHO_T}$ac_res" >&6; }
30433 if test `eval echo '${'$as_ac_var'}'` = yes; then
30434   cat >>confdefs.h <<_ACEOF
30435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30436 _ACEOF
30437
30438 fi
30439 done
30440
30441
30442
30443
30444
30445 for ac_func in powf fmodf strtof round
30446 do
30447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30451   echo $ECHO_N "(cached) $ECHO_C" >&6
30452 else
30453   cat >conftest.$ac_ext <<_ACEOF
30454 /* confdefs.h.  */
30455 _ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h.  */
30459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30461 #define $ac_func innocuous_$ac_func
30462
30463 /* System header to define __stub macros and hopefully few prototypes,
30464     which can conflict with char $ac_func (); below.
30465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30466     <limits.h> exists even on freestanding compilers.  */
30467
30468 #ifdef __STDC__
30469 # include <limits.h>
30470 #else
30471 # include <assert.h>
30472 #endif
30473
30474 #undef $ac_func
30475
30476 /* Override any GCC internal prototype to avoid an error.
30477    Use char because int might match the return type of a GCC
30478    builtin and then its argument prototype would still apply.  */
30479 #ifdef __cplusplus
30480 extern "C"
30481 #endif
30482 char $ac_func ();
30483 /* The GNU C library defines this for functions which it implements
30484     to always fail with ENOSYS.  Some functions are actually named
30485     something starting with __ and the normal name is an alias.  */
30486 #if defined __stub_$ac_func || defined __stub___$ac_func
30487 choke me
30488 #endif
30489
30490 int
30491 main ()
30492 {
30493 return $ac_func ();
30494   ;
30495   return 0;
30496 }
30497 _ACEOF
30498 rm -f conftest.$ac_objext conftest$ac_exeext
30499 if { (ac_try="$ac_link"
30500 case "(($ac_try" in
30501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502   *) ac_try_echo=$ac_try;;
30503 esac
30504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505   (eval "$ac_link") 2>conftest.er1
30506   ac_status=$?
30507   grep -v '^ *+' conftest.er1 >conftest.err
30508   rm -f conftest.er1
30509   cat conftest.err >&5
30510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511   (exit $ac_status); } &&
30512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30513   { (case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_try") 2>&5
30519   ac_status=$?
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); }; } &&
30522          { ac_try='test -s conftest$ac_exeext'
30523   { (case "(($ac_try" in
30524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525   *) ac_try_echo=$ac_try;;
30526 esac
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528   (eval "$ac_try") 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; }; then
30532   eval "$as_ac_var=yes"
30533 else
30534   echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30536
30537         eval "$as_ac_var=no"
30538 fi
30539
30540 rm -f core conftest.err conftest.$ac_objext \
30541       conftest$ac_exeext conftest.$ac_ext
30542 fi
30543 ac_res=`eval echo '${'$as_ac_var'}'`
30544                { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30546 if test `eval echo '${'$as_ac_var'}'` = yes; then
30547   cat >>confdefs.h <<_ACEOF
30548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30549 _ACEOF
30550
30551 fi
30552 done
30553
30554
30555
30556
30557
30558
30559 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30560 do
30561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30565   echo $ECHO_N "(cached) $ECHO_C" >&6
30566 else
30567   cat >conftest.$ac_ext <<_ACEOF
30568 /* confdefs.h.  */
30569 _ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h.  */
30573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30575 #define $ac_func innocuous_$ac_func
30576
30577 /* System header to define __stub macros and hopefully few prototypes,
30578     which can conflict with char $ac_func (); below.
30579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580     <limits.h> exists even on freestanding compilers.  */
30581
30582 #ifdef __STDC__
30583 # include <limits.h>
30584 #else
30585 # include <assert.h>
30586 #endif
30587
30588 #undef $ac_func
30589
30590 /* Override any GCC internal prototype to avoid an error.
30591    Use char because int might match the return type of a GCC
30592    builtin and then its argument prototype would still apply.  */
30593 #ifdef __cplusplus
30594 extern "C"
30595 #endif
30596 char $ac_func ();
30597 /* The GNU C library defines this for functions which it implements
30598     to always fail with ENOSYS.  Some functions are actually named
30599     something starting with __ and the normal name is an alias.  */
30600 #if defined __stub_$ac_func || defined __stub___$ac_func
30601 choke me
30602 #endif
30603
30604 int
30605 main ()
30606 {
30607 return $ac_func ();
30608   ;
30609   return 0;
30610 }
30611 _ACEOF
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (ac_try="$ac_link"
30614 case "(($ac_try" in
30615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616   *) ac_try_echo=$ac_try;;
30617 esac
30618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30619   (eval "$ac_link") 2>conftest.er1
30620   ac_status=$?
30621   grep -v '^ *+' conftest.er1 >conftest.err
30622   rm -f conftest.er1
30623   cat conftest.err >&5
30624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625   (exit $ac_status); } &&
30626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30636          { ac_try='test -s conftest$ac_exeext'
30637   { (case "(($ac_try" in
30638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639   *) ac_try_echo=$ac_try;;
30640 esac
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642   (eval "$ac_try") 2>&5
30643   ac_status=$?
30644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645   (exit $ac_status); }; }; then
30646   eval "$as_ac_var=yes"
30647 else
30648   echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30650
30651         eval "$as_ac_var=no"
30652 fi
30653
30654 rm -f core conftest.err conftest.$ac_objext \
30655       conftest$ac_exeext conftest.$ac_ext
30656 fi
30657 ac_res=`eval echo '${'$as_ac_var'}'`
30658                { echo "$as_me:$LINENO: result: $ac_res" >&5
30659 echo "${ECHO_T}$ac_res" >&6; }
30660 if test `eval echo '${'$as_ac_var'}'` = yes; then
30661   cat >>confdefs.h <<_ACEOF
30662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30663 _ACEOF
30664
30665 fi
30666 done
30667
30668
30669
30670
30671 for ac_func in isatty mkdtemp mkstemp
30672 do
30673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679   cat >conftest.$ac_ext <<_ACEOF
30680 /* confdefs.h.  */
30681 _ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h.  */
30685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30687 #define $ac_func innocuous_$ac_func
30688
30689 /* System header to define __stub macros and hopefully few prototypes,
30690     which can conflict with char $ac_func (); below.
30691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30692     <limits.h> exists even on freestanding compilers.  */
30693
30694 #ifdef __STDC__
30695 # include <limits.h>
30696 #else
30697 # include <assert.h>
30698 #endif
30699
30700 #undef $ac_func
30701
30702 /* Override any GCC internal prototype to avoid an error.
30703    Use char because int might match the return type of a GCC
30704    builtin and then its argument prototype would still apply.  */
30705 #ifdef __cplusplus
30706 extern "C"
30707 #endif
30708 char $ac_func ();
30709 /* The GNU C library defines this for functions which it implements
30710     to always fail with ENOSYS.  Some functions are actually named
30711     something starting with __ and the normal name is an alias.  */
30712 #if defined __stub_$ac_func || defined __stub___$ac_func
30713 choke me
30714 #endif
30715
30716 int
30717 main ()
30718 {
30719 return $ac_func ();
30720   ;
30721   return 0;
30722 }
30723 _ACEOF
30724 rm -f conftest.$ac_objext conftest$ac_exeext
30725 if { (ac_try="$ac_link"
30726 case "(($ac_try" in
30727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728   *) ac_try_echo=$ac_try;;
30729 esac
30730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731   (eval "$ac_link") 2>conftest.er1
30732   ac_status=$?
30733   grep -v '^ *+' conftest.er1 >conftest.err
30734   rm -f conftest.er1
30735   cat conftest.err >&5
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); } &&
30738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30739   { (case "(($ac_try" in
30740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741   *) ac_try_echo=$ac_try;;
30742 esac
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744   (eval "$ac_try") 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); }; } &&
30748          { ac_try='test -s conftest$ac_exeext'
30749   { (case "(($ac_try" in
30750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751   *) ac_try_echo=$ac_try;;
30752 esac
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754   (eval "$ac_try") 2>&5
30755   ac_status=$?
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); }; }; then
30758   eval "$as_ac_var=yes"
30759 else
30760   echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30762
30763         eval "$as_ac_var=no"
30764 fi
30765
30766 rm -f core conftest.err conftest.$ac_objext \
30767       conftest$ac_exeext conftest.$ac_ext
30768 fi
30769 ac_res=`eval echo '${'$as_ac_var'}'`
30770                { echo "$as_me:$LINENO: result: $ac_res" >&5
30771 echo "${ECHO_T}$ac_res" >&6; }
30772 if test `eval echo '${'$as_ac_var'}'` = yes; then
30773   cat >>confdefs.h <<_ACEOF
30774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30775 _ACEOF
30776
30777 fi
30778 done
30779
30780
30781
30782
30783
30784
30785
30786
30787 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30788 do
30789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795   cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30803 #define $ac_func innocuous_$ac_func
30804
30805 /* System header to define __stub macros and hopefully few prototypes,
30806     which can conflict with char $ac_func (); below.
30807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808     <limits.h> exists even on freestanding compilers.  */
30809
30810 #ifdef __STDC__
30811 # include <limits.h>
30812 #else
30813 # include <assert.h>
30814 #endif
30815
30816 #undef $ac_func
30817
30818 /* Override any GCC internal prototype to avoid an error.
30819    Use char because int might match the return type of a GCC
30820    builtin and then its argument prototype would still apply.  */
30821 #ifdef __cplusplus
30822 extern "C"
30823 #endif
30824 char $ac_func ();
30825 /* The GNU C library defines this for functions which it implements
30826     to always fail with ENOSYS.  Some functions are actually named
30827     something starting with __ and the normal name is an alias.  */
30828 #if defined __stub_$ac_func || defined __stub___$ac_func
30829 choke me
30830 #endif
30831
30832 int
30833 main ()
30834 {
30835 return $ac_func ();
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844   *) ac_try_echo=$ac_try;;
30845 esac
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847   (eval "$ac_link") 2>conftest.er1
30848   ac_status=$?
30849   grep -v '^ *+' conftest.er1 >conftest.err
30850   rm -f conftest.er1
30851   cat conftest.err >&5
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); } &&
30854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855   { (case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860   (eval "$ac_try") 2>&5
30861   ac_status=$?
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); }; } &&
30864          { ac_try='test -s conftest$ac_exeext'
30865   { (case "(($ac_try" in
30866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867   *) ac_try_echo=$ac_try;;
30868 esac
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870   (eval "$ac_try") 2>&5
30871   ac_status=$?
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); }; }; then
30874   eval "$as_ac_var=yes"
30875 else
30876   echo "$as_me: failed program was:" >&5
30877 sed 's/^/| /' conftest.$ac_ext >&5
30878
30879         eval "$as_ac_var=no"
30880 fi
30881
30882 rm -f core conftest.err conftest.$ac_objext \
30883       conftest$ac_exeext conftest.$ac_ext
30884 fi
30885 ac_res=`eval echo '${'$as_ac_var'}'`
30886                { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30888 if test `eval echo '${'$as_ac_var'}'` = yes; then
30889   cat >>confdefs.h <<_ACEOF
30890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30891 _ACEOF
30892
30893 fi
30894 done
30895
30896
30897
30898
30899
30900 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30901 do
30902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30906   echo $ECHO_N "(cached) $ECHO_C" >&6
30907 else
30908   cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h.  */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h.  */
30914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30916 #define $ac_func innocuous_$ac_func
30917
30918 /* System header to define __stub macros and hopefully few prototypes,
30919     which can conflict with char $ac_func (); below.
30920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30921     <limits.h> exists even on freestanding compilers.  */
30922
30923 #ifdef __STDC__
30924 # include <limits.h>
30925 #else
30926 # include <assert.h>
30927 #endif
30928
30929 #undef $ac_func
30930
30931 /* Override any GCC internal prototype to avoid an error.
30932    Use char because int might match the return type of a GCC
30933    builtin and then its argument prototype would still apply.  */
30934 #ifdef __cplusplus
30935 extern "C"
30936 #endif
30937 char $ac_func ();
30938 /* The GNU C library defines this for functions which it implements
30939     to always fail with ENOSYS.  Some functions are actually named
30940     something starting with __ and the normal name is an alias.  */
30941 #if defined __stub_$ac_func || defined __stub___$ac_func
30942 choke me
30943 #endif
30944
30945 int
30946 main ()
30947 {
30948 return $ac_func ();
30949   ;
30950   return 0;
30951 }
30952 _ACEOF
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_link") 2>conftest.er1
30961   ac_status=$?
30962   grep -v '^ *+' conftest.er1 >conftest.err
30963   rm -f conftest.er1
30964   cat conftest.err >&5
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } &&
30967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968   { (case "(($ac_try" in
30969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970   *) ac_try_echo=$ac_try;;
30971 esac
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973   (eval "$ac_try") 2>&5
30974   ac_status=$?
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); }; } &&
30977          { ac_try='test -s conftest$ac_exeext'
30978   { (case "(($ac_try" in
30979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980   *) ac_try_echo=$ac_try;;
30981 esac
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983   (eval "$ac_try") 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; }; then
30987   eval "$as_ac_var=yes"
30988 else
30989   echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992         eval "$as_ac_var=no"
30993 fi
30994
30995 rm -f core conftest.err conftest.$ac_objext \
30996       conftest$ac_exeext conftest.$ac_ext
30997 fi
30998 ac_res=`eval echo '${'$as_ac_var'}'`
30999                { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31001 if test `eval echo '${'$as_ac_var'}'` = yes; then
31002   cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31004 _ACEOF
31005
31006 fi
31007 done
31008
31009
31010
31011
31012
31013 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31014 do
31015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31019   echo $ECHO_N "(cached) $ECHO_C" >&6
31020 else
31021   cat >conftest.$ac_ext <<_ACEOF
31022 /* confdefs.h.  */
31023 _ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h.  */
31027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31029 #define $ac_func innocuous_$ac_func
31030
31031 /* System header to define __stub macros and hopefully few prototypes,
31032     which can conflict with char $ac_func (); below.
31033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31034     <limits.h> exists even on freestanding compilers.  */
31035
31036 #ifdef __STDC__
31037 # include <limits.h>
31038 #else
31039 # include <assert.h>
31040 #endif
31041
31042 #undef $ac_func
31043
31044 /* Override any GCC internal prototype to avoid an error.
31045    Use char because int might match the return type of a GCC
31046    builtin and then its argument prototype would still apply.  */
31047 #ifdef __cplusplus
31048 extern "C"
31049 #endif
31050 char $ac_func ();
31051 /* The GNU C library defines this for functions which it implements
31052     to always fail with ENOSYS.  Some functions are actually named
31053     something starting with __ and the normal name is an alias.  */
31054 #if defined __stub_$ac_func || defined __stub___$ac_func
31055 choke me
31056 #endif
31057
31058 int
31059 main ()
31060 {
31061 return $ac_func ();
31062   ;
31063   return 0;
31064 }
31065 _ACEOF
31066 rm -f conftest.$ac_objext conftest$ac_exeext
31067 if { (ac_try="$ac_link"
31068 case "(($ac_try" in
31069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070   *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073   (eval "$ac_link") 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } &&
31080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081   { (case "(($ac_try" in
31082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083   *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086   (eval "$ac_try") 2>&5
31087   ac_status=$?
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); }; } &&
31090          { ac_try='test -s conftest$ac_exeext'
31091   { (case "(($ac_try" in
31092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093   *) ac_try_echo=$ac_try;;
31094 esac
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096   (eval "$ac_try") 2>&5
31097   ac_status=$?
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); }; }; then
31100   eval "$as_ac_var=yes"
31101 else
31102   echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31104
31105         eval "$as_ac_var=no"
31106 fi
31107
31108 rm -f core conftest.err conftest.$ac_objext \
31109       conftest$ac_exeext conftest.$ac_ext
31110 fi
31111 ac_res=`eval echo '${'$as_ac_var'}'`
31112                { echo "$as_me:$LINENO: result: $ac_res" >&5
31113 echo "${ECHO_T}$ac_res" >&6; }
31114 if test `eval echo '${'$as_ac_var'}'` = yes; then
31115   cat >>confdefs.h <<_ACEOF
31116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31117 _ACEOF
31118
31119 fi
31120 done
31121
31122 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31123 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31124 if test "${llvm_cv_c_printf_a+set}" = set; then
31125   echo $ECHO_N "(cached) $ECHO_C" >&6
31126 else
31127   ac_ext=c
31128 ac_cpp='$CPP $CPPFLAGS'
31129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31132
31133  if test "$cross_compiling" = yes; then
31134   llvmac_cv_c_printf_a=no
31135 else
31136   cat >conftest.$ac_ext <<_ACEOF
31137
31138   /* confdefs.h.  */
31139 _ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h.  */
31143
31144 #include <stdio.h>
31145 #include <stdlib.h>
31146
31147 int
31148 main ()
31149 {
31150
31151 volatile double A, B;
31152 char Buffer[100];
31153 A = 1;
31154 A /= 10.0;
31155 sprintf(Buffer, "%a", A);
31156 B = atof(Buffer);
31157 if (A != B)
31158   return (1);
31159 if (A != 0x1.999999999999ap-4)
31160   return (1);
31161 return (0);
31162   ;
31163   return 0;
31164 }
31165 _ACEOF
31166 rm -f conftest$ac_exeext
31167 if { (ac_try="$ac_link"
31168 case "(($ac_try" in
31169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170   *) ac_try_echo=$ac_try;;
31171 esac
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173   (eval "$ac_link") 2>&5
31174   ac_status=$?
31175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31177   { (case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_try") 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); }; }; then
31186   llvm_cv_c_printf_a=yes
31187 else
31188   echo "$as_me: program exited with status $ac_status" >&5
31189 echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31191
31192 ( exit $ac_status )
31193 llvmac_cv_c_printf_a=no
31194 fi
31195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31196 fi
31197
31198
31199  ac_ext=c
31200 ac_cpp='$CPP $CPPFLAGS'
31201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31204
31205 fi
31206 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31207 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31208  if test "$llvm_cv_c_printf_a" = "yes"; then
31209
31210 cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_PRINTF_A 1
31212 _ACEOF
31213
31214  fi
31215
31216 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31217 # for constant arguments.  Useless!
31218 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31219 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31220 if test "${ac_cv_working_alloca_h+set}" = set; then
31221   echo $ECHO_N "(cached) $ECHO_C" >&6
31222 else
31223   cat >conftest.$ac_ext <<_ACEOF
31224 /* confdefs.h.  */
31225 _ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h.  */
31229 #include <alloca.h>
31230 int
31231 main ()
31232 {
31233 char *p = (char *) alloca (2 * sizeof (int));
31234                           if (p) return 0;
31235   ;
31236   return 0;
31237 }
31238 _ACEOF
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (ac_try="$ac_link"
31241 case "(($ac_try" in
31242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243   *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246   (eval "$ac_link") 2>conftest.er1
31247   ac_status=$?
31248   grep -v '^ *+' conftest.er1 >conftest.err
31249   rm -f conftest.er1
31250   cat conftest.err >&5
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); } &&
31253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31254   { (case "(($ac_try" in
31255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256   *) ac_try_echo=$ac_try;;
31257 esac
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259   (eval "$ac_try") 2>&5
31260   ac_status=$?
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); }; } &&
31263          { ac_try='test -s conftest$ac_exeext'
31264   { (case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_try") 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; }; then
31273   ac_cv_working_alloca_h=yes
31274 else
31275   echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31277
31278         ac_cv_working_alloca_h=no
31279 fi
31280
31281 rm -f core conftest.err conftest.$ac_objext \
31282       conftest$ac_exeext conftest.$ac_ext
31283 fi
31284 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31285 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31286 if test $ac_cv_working_alloca_h = yes; then
31287
31288 cat >>confdefs.h <<\_ACEOF
31289 #define HAVE_ALLOCA_H 1
31290 _ACEOF
31291
31292 fi
31293
31294 { echo "$as_me:$LINENO: checking for alloca" >&5
31295 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31296 if test "${ac_cv_func_alloca_works+set}" = set; then
31297   echo $ECHO_N "(cached) $ECHO_C" >&6
31298 else
31299   cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 #ifdef __GNUC__
31306 # define alloca __builtin_alloca
31307 #else
31308 # ifdef _MSC_VER
31309 #  include <malloc.h>
31310 #  define alloca _alloca
31311 # else
31312 #  if HAVE_ALLOCA_H
31313 #   include <alloca.h>
31314 #  else
31315 #   ifdef _AIX
31316  #pragma alloca
31317 #   else
31318 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31319 char *alloca ();
31320 #    endif
31321 #   endif
31322 #  endif
31323 # endif
31324 #endif
31325
31326 int
31327 main ()
31328 {
31329 char *p = (char *) alloca (1);
31330                                     if (p) return 0;
31331   ;
31332   return 0;
31333 }
31334 _ACEOF
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339   *) ac_try_echo=$ac_try;;
31340 esac
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342   (eval "$ac_link") 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } &&
31349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31350   { (case "(($ac_try" in
31351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352   *) ac_try_echo=$ac_try;;
31353 esac
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355   (eval "$ac_try") 2>&5
31356   ac_status=$?
31357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358   (exit $ac_status); }; } &&
31359          { ac_try='test -s conftest$ac_exeext'
31360   { (case "(($ac_try" in
31361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362   *) ac_try_echo=$ac_try;;
31363 esac
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365   (eval "$ac_try") 2>&5
31366   ac_status=$?
31367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368   (exit $ac_status); }; }; then
31369   ac_cv_func_alloca_works=yes
31370 else
31371   echo "$as_me: failed program was:" >&5
31372 sed 's/^/| /' conftest.$ac_ext >&5
31373
31374         ac_cv_func_alloca_works=no
31375 fi
31376
31377 rm -f core conftest.err conftest.$ac_objext \
31378       conftest$ac_exeext conftest.$ac_ext
31379 fi
31380 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31381 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31382
31383 if test $ac_cv_func_alloca_works = yes; then
31384
31385 cat >>confdefs.h <<\_ACEOF
31386 #define HAVE_ALLOCA 1
31387 _ACEOF
31388
31389 else
31390   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31391 # that cause trouble.  Some versions do not even contain alloca or
31392 # contain a buggy version.  If you still want to use their alloca,
31393 # use ar to extract alloca.o from them instead of compiling alloca.c.
31394
31395 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31396
31397 cat >>confdefs.h <<\_ACEOF
31398 #define C_ALLOCA 1
31399 _ACEOF
31400
31401
31402 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31403 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31404 if test "${ac_cv_os_cray+set}" = set; then
31405   echo $ECHO_N "(cached) $ECHO_C" >&6
31406 else
31407   cat >conftest.$ac_ext <<_ACEOF
31408 /* confdefs.h.  */
31409 _ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h.  */
31413 #if defined CRAY && ! defined CRAY2
31414 webecray
31415 #else
31416 wenotbecray
31417 #endif
31418
31419 _ACEOF
31420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31421   $EGREP "webecray" >/dev/null 2>&1; then
31422   ac_cv_os_cray=yes
31423 else
31424   ac_cv_os_cray=no
31425 fi
31426 rm -f conftest*
31427
31428 fi
31429 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31430 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31431 if test $ac_cv_os_cray = yes; then
31432   for ac_func in _getb67 GETB67 getb67; do
31433     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31437   echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439   cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h.  */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h.  */
31445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31447 #define $ac_func innocuous_$ac_func
31448
31449 /* System header to define __stub macros and hopefully few prototypes,
31450     which can conflict with char $ac_func (); below.
31451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31452     <limits.h> exists even on freestanding compilers.  */
31453
31454 #ifdef __STDC__
31455 # include <limits.h>
31456 #else
31457 # include <assert.h>
31458 #endif
31459
31460 #undef $ac_func
31461
31462 /* Override any GCC internal prototype to avoid an error.
31463    Use char because int might match the return type of a GCC
31464    builtin and then its argument prototype would still apply.  */
31465 #ifdef __cplusplus
31466 extern "C"
31467 #endif
31468 char $ac_func ();
31469 /* The GNU C library defines this for functions which it implements
31470     to always fail with ENOSYS.  Some functions are actually named
31471     something starting with __ and the normal name is an alias.  */
31472 #if defined __stub_$ac_func || defined __stub___$ac_func
31473 choke me
31474 #endif
31475
31476 int
31477 main ()
31478 {
31479 return $ac_func ();
31480   ;
31481   return 0;
31482 }
31483 _ACEOF
31484 rm -f conftest.$ac_objext conftest$ac_exeext
31485 if { (ac_try="$ac_link"
31486 case "(($ac_try" in
31487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488   *) ac_try_echo=$ac_try;;
31489 esac
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491   (eval "$ac_link") 2>conftest.er1
31492   ac_status=$?
31493   grep -v '^ *+' conftest.er1 >conftest.err
31494   rm -f conftest.er1
31495   cat conftest.err >&5
31496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497   (exit $ac_status); } &&
31498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499   { (case "(($ac_try" in
31500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501   *) ac_try_echo=$ac_try;;
31502 esac
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504   (eval "$ac_try") 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); }; } &&
31508          { ac_try='test -s conftest$ac_exeext'
31509   { (case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_try") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; }; then
31518   eval "$as_ac_var=yes"
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523         eval "$as_ac_var=no"
31524 fi
31525
31526 rm -f core conftest.err conftest.$ac_objext \
31527       conftest$ac_exeext conftest.$ac_ext
31528 fi
31529 ac_res=`eval echo '${'$as_ac_var'}'`
31530                { echo "$as_me:$LINENO: result: $ac_res" >&5
31531 echo "${ECHO_T}$ac_res" >&6; }
31532 if test `eval echo '${'$as_ac_var'}'` = yes; then
31533
31534 cat >>confdefs.h <<_ACEOF
31535 #define CRAY_STACKSEG_END $ac_func
31536 _ACEOF
31537
31538     break
31539 fi
31540
31541   done
31542 fi
31543
31544 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31545 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31546 if test "${ac_cv_c_stack_direction+set}" = set; then
31547   echo $ECHO_N "(cached) $ECHO_C" >&6
31548 else
31549   if test "$cross_compiling" = yes; then
31550   ac_cv_c_stack_direction=0
31551 else
31552   cat >conftest.$ac_ext <<_ACEOF
31553 /* confdefs.h.  */
31554 _ACEOF
31555 cat confdefs.h >>conftest.$ac_ext
31556 cat >>conftest.$ac_ext <<_ACEOF
31557 /* end confdefs.h.  */
31558 $ac_includes_default
31559 int
31560 find_stack_direction ()
31561 {
31562   static char *addr = 0;
31563   auto char dummy;
31564   if (addr == 0)
31565     {
31566       addr = &dummy;
31567       return find_stack_direction ();
31568     }
31569   else
31570     return (&dummy > addr) ? 1 : -1;
31571 }
31572
31573 int
31574 main ()
31575 {
31576   return find_stack_direction () < 0;
31577 }
31578 _ACEOF
31579 rm -f conftest$ac_exeext
31580 if { (ac_try="$ac_link"
31581 case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_link") 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31590   { (case "(($ac_try" in
31591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592   *) ac_try_echo=$ac_try;;
31593 esac
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595   (eval "$ac_try") 2>&5
31596   ac_status=$?
31597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598   (exit $ac_status); }; }; then
31599   ac_cv_c_stack_direction=1
31600 else
31601   echo "$as_me: program exited with status $ac_status" >&5
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605 ( exit $ac_status )
31606 ac_cv_c_stack_direction=-1
31607 fi
31608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31609 fi
31610
31611
31612 fi
31613 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31614 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31615
31616 cat >>confdefs.h <<_ACEOF
31617 #define STACK_DIRECTION $ac_cv_c_stack_direction
31618 _ACEOF
31619
31620
31621 fi
31622
31623
31624 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31625 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31626 if test "${ac_cv_func_rand48+set}" = set; then
31627   echo $ECHO_N "(cached) $ECHO_C" >&6
31628 else
31629   ac_ext=cpp
31630 ac_cpp='$CXXCPP $CPPFLAGS'
31631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31634
31635    cat >conftest.$ac_ext <<_ACEOF
31636 /* confdefs.h.  */
31637 _ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h.  */
31641 #include <stdlib.h>
31642 int
31643 main ()
31644 {
31645 srand48(0);lrand48();drand48();
31646   ;
31647   return 0;
31648 }
31649 _ACEOF
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_compile") 2>conftest.er1
31658   ac_status=$?
31659   grep -v '^ *+' conftest.er1 >conftest.err
31660   rm -f conftest.er1
31661   cat conftest.err >&5
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); } &&
31664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31665   { (case "(($ac_try" in
31666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667   *) ac_try_echo=$ac_try;;
31668 esac
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670   (eval "$ac_try") 2>&5
31671   ac_status=$?
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); }; } &&
31674          { ac_try='test -s conftest.$ac_objext'
31675   { (case "(($ac_try" in
31676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677   *) ac_try_echo=$ac_try;;
31678 esac
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680   (eval "$ac_try") 2>&5
31681   ac_status=$?
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); }; }; then
31684   ac_cv_func_rand48=yes
31685 else
31686   echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31688
31689         ac_cv_func_rand48=no
31690 fi
31691
31692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31693   ac_ext=c
31694 ac_cpp='$CPP $CPPFLAGS'
31695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31698
31699 fi
31700 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31701 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31702
31703 if test "$ac_cv_func_rand48" = "yes" ; then
31704
31705 cat >>confdefs.h <<\_ACEOF
31706 #define HAVE_RAND48 1
31707 _ACEOF
31708
31709 fi
31710
31711
31712 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31713 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31714 if test "${ac_cv_cxx_namespaces+set}" = set; then
31715   echo $ECHO_N "(cached) $ECHO_C" >&6
31716 else
31717   ac_ext=cpp
31718 ac_cpp='$CXXCPP $CPPFLAGS'
31719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31722
31723  cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729 namespace Outer { namespace Inner { int i = 0; }}
31730 int
31731 main ()
31732 {
31733 using namespace Outer::Inner; return i;
31734   ;
31735   return 0;
31736 }
31737 _ACEOF
31738 rm -f conftest.$ac_objext
31739 if { (ac_try="$ac_compile"
31740 case "(($ac_try" in
31741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742   *) ac_try_echo=$ac_try;;
31743 esac
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745   (eval "$ac_compile") 2>conftest.er1
31746   ac_status=$?
31747   grep -v '^ *+' conftest.er1 >conftest.err
31748   rm -f conftest.er1
31749   cat conftest.err >&5
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); } &&
31752          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31753   { (case "(($ac_try" in
31754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755   *) ac_try_echo=$ac_try;;
31756 esac
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758   (eval "$ac_try") 2>&5
31759   ac_status=$?
31760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761   (exit $ac_status); }; } &&
31762          { ac_try='test -s conftest.$ac_objext'
31763   { (case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_try") 2>&5
31769   ac_status=$?
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); }; }; then
31772   ac_cv_cxx_namespaces=yes
31773 else
31774   echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31776
31777         ac_cv_cxx_namespaces=no
31778 fi
31779
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781  ac_ext=c
31782 ac_cpp='$CPP $CPPFLAGS'
31783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31786
31787
31788 fi
31789 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31790 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31791 if test "$ac_cv_cxx_namespaces" = yes; then
31792
31793 cat >>confdefs.h <<\_ACEOF
31794 #define HAVE_NAMESPACES
31795 _ACEOF
31796
31797 fi
31798
31799 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31800 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31801 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31802   echo $ECHO_N "(cached) $ECHO_C" >&6
31803 else
31804
31805   ac_ext=cpp
31806 ac_cpp='$CXXCPP $CPPFLAGS'
31807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31810
31811   cat >conftest.$ac_ext <<_ACEOF
31812 /* confdefs.h.  */
31813 _ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h.  */
31817 #include <ext/hash_map>
31818 #ifdef HAVE_NAMESPACES
31819 using namespace std;
31820 #endif
31821 int
31822 main ()
31823 {
31824 hash_map<int, int> t;
31825   ;
31826   return 0;
31827 }
31828 _ACEOF
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833   *) ac_try_echo=$ac_try;;
31834 esac
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836   (eval "$ac_compile") 2>conftest.er1
31837   ac_status=$?
31838   grep -v '^ *+' conftest.er1 >conftest.err
31839   rm -f conftest.er1
31840   cat conftest.err >&5
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); } &&
31843          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31844   { (case "(($ac_try" in
31845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846   *) ac_try_echo=$ac_try;;
31847 esac
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849   (eval "$ac_try") 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; } &&
31853          { ac_try='test -s conftest.$ac_objext'
31854   { (case "(($ac_try" in
31855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856   *) ac_try_echo=$ac_try;;
31857 esac
31858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859   (eval "$ac_try") 2>&5
31860   ac_status=$?
31861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862   (exit $ac_status); }; }; then
31863   ac_cv_cxx_have_std_ext_hash_map=yes
31864 else
31865   echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31867
31868         ac_cv_cxx_have_std_ext_hash_map=no
31869 fi
31870
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872   ac_ext=c
31873 ac_cpp='$CPP $CPPFLAGS'
31874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31877
31878 fi
31879 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31880 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31881  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31882  then
31883
31884 cat >>confdefs.h <<\_ACEOF
31885 #define HAVE_STD_EXT_HASH_MAP 1
31886 _ACEOF
31887
31888  else
31889
31890 cat >>confdefs.h <<\_ACEOF
31891 #define HAVE_STD_EXT_HASH_MAP 0
31892 _ACEOF
31893
31894  fi
31895
31896  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31897 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31898 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31899   echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31901
31902   ac_ext=cpp
31903 ac_cpp='$CXXCPP $CPPFLAGS'
31904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31907
31908   cat >conftest.$ac_ext <<_ACEOF
31909 /* confdefs.h.  */
31910 _ACEOF
31911 cat confdefs.h >>conftest.$ac_ext
31912 cat >>conftest.$ac_ext <<_ACEOF
31913 /* end confdefs.h.  */
31914 #include <ext/hash_map>
31915 #ifdef HAVE_NAMESPACES
31916 using namespace __gnu_cxx;
31917 #endif
31918 int
31919 main ()
31920 {
31921 hash_map<int,int> t;
31922   ;
31923   return 0;
31924 }
31925 _ACEOF
31926 rm -f conftest.$ac_objext
31927 if { (ac_try="$ac_compile"
31928 case "(($ac_try" in
31929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930   *) ac_try_echo=$ac_try;;
31931 esac
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933   (eval "$ac_compile") 2>conftest.er1
31934   ac_status=$?
31935   grep -v '^ *+' conftest.er1 >conftest.err
31936   rm -f conftest.er1
31937   cat conftest.err >&5
31938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939   (exit $ac_status); } &&
31940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31941   { (case "(($ac_try" in
31942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943   *) ac_try_echo=$ac_try;;
31944 esac
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946   (eval "$ac_try") 2>&5
31947   ac_status=$?
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); }; } &&
31950          { ac_try='test -s conftest.$ac_objext'
31951   { (case "(($ac_try" in
31952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953   *) ac_try_echo=$ac_try;;
31954 esac
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956   (eval "$ac_try") 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; }; then
31960   ac_cv_cxx_have_gnu_ext_hash_map=yes
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965         ac_cv_cxx_have_gnu_ext_hash_map=no
31966 fi
31967
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969   ac_ext=c
31970 ac_cpp='$CPP $CPPFLAGS'
31971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31974
31975 fi
31976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31977 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31978  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31979  then
31980
31981 cat >>confdefs.h <<\_ACEOF
31982 #define HAVE_GNU_EXT_HASH_MAP 1
31983 _ACEOF
31984
31985  else
31986
31987 cat >>confdefs.h <<\_ACEOF
31988 #define HAVE_GNU_EXT_HASH_MAP 0
31989 _ACEOF
31990
31991  fi
31992
31993  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31994 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31995 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31996   echo $ECHO_N "(cached) $ECHO_C" >&6
31997 else
31998
31999   ac_ext=cpp
32000 ac_cpp='$CXXCPP $CPPFLAGS'
32001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32004
32005   cat >conftest.$ac_ext <<_ACEOF
32006 /* confdefs.h.  */
32007 _ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h.  */
32011 #include <hash_map>
32012 int
32013 main ()
32014 {
32015 hash_map<int,int> t;
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext
32021 if { (ac_try="$ac_compile"
32022 case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_compile") 2>conftest.er1
32028   ac_status=$?
32029   grep -v '^ *+' conftest.er1 >conftest.err
32030   rm -f conftest.er1
32031   cat conftest.err >&5
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); } &&
32034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32035   { (case "(($ac_try" in
32036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037   *) ac_try_echo=$ac_try;;
32038 esac
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040   (eval "$ac_try") 2>&5
32041   ac_status=$?
32042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043   (exit $ac_status); }; } &&
32044          { ac_try='test -s conftest.$ac_objext'
32045   { (case "(($ac_try" in
32046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047   *) ac_try_echo=$ac_try;;
32048 esac
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050   (eval "$ac_try") 2>&5
32051   ac_status=$?
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); }; }; then
32054   ac_cv_cxx_have_global_hash_map=yes
32055 else
32056   echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32058
32059         ac_cv_cxx_have_global_hash_map=no
32060 fi
32061
32062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32063   ac_ext=c
32064 ac_cpp='$CPP $CPPFLAGS'
32065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32068
32069 fi
32070 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32071 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32072  if test "$ac_cv_cxx_have_global_hash_map" = yes
32073  then
32074
32075 cat >>confdefs.h <<\_ACEOF
32076 #define HAVE_GLOBAL_HASH_MAP 1
32077 _ACEOF
32078
32079  else
32080
32081 cat >>confdefs.h <<\_ACEOF
32082 #define HAVE_GLOBAL_HASH_MAP 0
32083 _ACEOF
32084
32085  fi
32086
32087 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32088 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32089 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32090   echo $ECHO_N "(cached) $ECHO_C" >&6
32091 else
32092
32093   ac_ext=cpp
32094 ac_cpp='$CXXCPP $CPPFLAGS'
32095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32098
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 #include <ext/hash_set>
32106 #ifdef HAVE_NAMESPACES
32107 using namespace std;
32108 #endif
32109 int
32110 main ()
32111 {
32112 hash_set<int> t;
32113   ;
32114   return 0;
32115 }
32116 _ACEOF
32117 rm -f conftest.$ac_objext
32118 if { (ac_try="$ac_compile"
32119 case "(($ac_try" in
32120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121   *) ac_try_echo=$ac_try;;
32122 esac
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124   (eval "$ac_compile") 2>conftest.er1
32125   ac_status=$?
32126   grep -v '^ *+' conftest.er1 >conftest.err
32127   rm -f conftest.er1
32128   cat conftest.err >&5
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); } &&
32131          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32132   { (case "(($ac_try" in
32133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134   *) ac_try_echo=$ac_try;;
32135 esac
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137   (eval "$ac_try") 2>&5
32138   ac_status=$?
32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140   (exit $ac_status); }; } &&
32141          { ac_try='test -s conftest.$ac_objext'
32142   { (case "(($ac_try" in
32143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144   *) ac_try_echo=$ac_try;;
32145 esac
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147   (eval "$ac_try") 2>&5
32148   ac_status=$?
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); }; }; then
32151   ac_cv_cxx_have_std_ext_hash_set=yes
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156         ac_cv_cxx_have_std_ext_hash_set=no
32157 fi
32158
32159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32160   ac_ext=c
32161 ac_cpp='$CPP $CPPFLAGS'
32162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32165
32166 fi
32167 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32168 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32169  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32170  then
32171
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_STD_EXT_HASH_SET 1
32174 _ACEOF
32175
32176  else
32177
32178 cat >>confdefs.h <<\_ACEOF
32179 #define HAVE_STD_EXT_HASH_SET 0
32180 _ACEOF
32181
32182  fi
32183
32184  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32185 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32186 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32187   echo $ECHO_N "(cached) $ECHO_C" >&6
32188 else
32189
32190   ac_ext=cpp
32191 ac_cpp='$CXXCPP $CPPFLAGS'
32192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32195
32196   cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h.  */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h.  */
32202 #include <ext/hash_set>
32203 #ifdef HAVE_NAMESPACES
32204 using namespace __gnu_cxx;
32205 #endif
32206 int
32207 main ()
32208 {
32209 hash_set<int> t;
32210   ;
32211   return 0;
32212 }
32213 _ACEOF
32214 rm -f conftest.$ac_objext
32215 if { (ac_try="$ac_compile"
32216 case "(($ac_try" in
32217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218   *) ac_try_echo=$ac_try;;
32219 esac
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221   (eval "$ac_compile") 2>conftest.er1
32222   ac_status=$?
32223   grep -v '^ *+' conftest.er1 >conftest.err
32224   rm -f conftest.er1
32225   cat conftest.err >&5
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); } &&
32228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32229   { (case "(($ac_try" in
32230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231   *) ac_try_echo=$ac_try;;
32232 esac
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234   (eval "$ac_try") 2>&5
32235   ac_status=$?
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); }; } &&
32238          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32245   ac_status=$?
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); }; }; then
32248   ac_cv_cxx_have_gnu_ext_hash_set=yes
32249 else
32250   echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32252
32253         ac_cv_cxx_have_gnu_ext_hash_set=no
32254 fi
32255
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257   ac_ext=c
32258 ac_cpp='$CPP $CPPFLAGS'
32259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32262
32263 fi
32264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32265 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32266  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32267  then
32268
32269 cat >>confdefs.h <<\_ACEOF
32270 #define HAVE_GNU_EXT_HASH_SET 1
32271 _ACEOF
32272
32273  else
32274
32275 cat >>confdefs.h <<\_ACEOF
32276 #define HAVE_GNU_EXT_HASH_SET 0
32277 _ACEOF
32278
32279  fi
32280
32281  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32282 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32283 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32284   echo $ECHO_N "(cached) $ECHO_C" >&6
32285 else
32286
32287   ac_ext=cpp
32288 ac_cpp='$CXXCPP $CPPFLAGS'
32289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32292
32293   cat >conftest.$ac_ext <<_ACEOF
32294 /* confdefs.h.  */
32295 _ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h.  */
32299 #include <hash_set>
32300 int
32301 main ()
32302 {
32303 hash_set<int> t; return 0;
32304   ;
32305   return 0;
32306 }
32307 _ACEOF
32308 rm -f conftest.$ac_objext
32309 if { (ac_try="$ac_compile"
32310 case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315   (eval "$ac_compile") 2>conftest.er1
32316   ac_status=$?
32317   grep -v '^ *+' conftest.er1 >conftest.err
32318   rm -f conftest.er1
32319   cat conftest.err >&5
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); } &&
32322          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32323   { (case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328   (eval "$ac_try") 2>&5
32329   ac_status=$?
32330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331   (exit $ac_status); }; } &&
32332          { ac_try='test -s conftest.$ac_objext'
32333   { (case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338   (eval "$ac_try") 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; }; then
32342   ac_cv_cxx_have_global_hash_set=yes
32343 else
32344   echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32346
32347         ac_cv_cxx_have_global_hash_set=no
32348 fi
32349
32350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32351   ac_ext=c
32352 ac_cpp='$CPP $CPPFLAGS'
32353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32356
32357 fi
32358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32359 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32360  if test "$ac_cv_cxx_have_global_hash_set" = yes
32361  then
32362
32363 cat >>confdefs.h <<\_ACEOF
32364 #define HAVE_GLOBAL_HASH_SET 1
32365 _ACEOF
32366
32367  else
32368
32369 cat >>confdefs.h <<\_ACEOF
32370 #define HAVE_GLOBAL_HASH_SET 0
32371 _ACEOF
32372
32373  fi
32374
32375 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32376 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32377 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32378   echo $ECHO_N "(cached) $ECHO_C" >&6
32379 else
32380
32381   ac_ext=cpp
32382 ac_cpp='$CXXCPP $CPPFLAGS'
32383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32386
32387   cat >conftest.$ac_ext <<_ACEOF
32388 /* confdefs.h.  */
32389 _ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h.  */
32393 #include <iterator>
32394 #ifdef HAVE_NAMESPACES
32395 using namespace std;
32396 #endif
32397 int
32398 main ()
32399 {
32400 iterator<int,int,int> t; return 0;
32401   ;
32402   return 0;
32403 }
32404 _ACEOF
32405 rm -f conftest.$ac_objext
32406 if { (ac_try="$ac_compile"
32407 case "(($ac_try" in
32408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409   *) ac_try_echo=$ac_try;;
32410 esac
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412   (eval "$ac_compile") 2>conftest.er1
32413   ac_status=$?
32414   grep -v '^ *+' conftest.er1 >conftest.err
32415   rm -f conftest.er1
32416   cat conftest.err >&5
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); } &&
32419          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32420   { (case "(($ac_try" in
32421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422   *) ac_try_echo=$ac_try;;
32423 esac
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425   (eval "$ac_try") 2>&5
32426   ac_status=$?
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); }; } &&
32429          { ac_try='test -s conftest.$ac_objext'
32430   { (case "(($ac_try" in
32431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432   *) ac_try_echo=$ac_try;;
32433 esac
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435   (eval "$ac_try") 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); }; }; then
32439   ac_cv_cxx_have_std_iterator=yes
32440 else
32441   echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32443
32444         ac_cv_cxx_have_std_iterator=no
32445 fi
32446
32447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448   ac_ext=c
32449 ac_cpp='$CPP $CPPFLAGS'
32450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32453
32454
32455 fi
32456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32457 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32458 if test "$ac_cv_cxx_have_std_iterator" = yes
32459 then
32460
32461 cat >>confdefs.h <<\_ACEOF
32462 #define HAVE_STD_ITERATOR 1
32463 _ACEOF
32464
32465 else
32466
32467 cat >>confdefs.h <<\_ACEOF
32468 #define HAVE_STD_ITERATOR 0
32469 _ACEOF
32470
32471 fi
32472
32473 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32474 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32475 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32476   echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478
32479   ac_ext=cpp
32480 ac_cpp='$CXXCPP $CPPFLAGS'
32481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32484
32485   cat >conftest.$ac_ext <<_ACEOF
32486 /* confdefs.h.  */
32487 _ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h.  */
32491 #include <iterator>
32492 #ifdef HAVE_NAMESPACES
32493 using namespace std;
32494 #endif
32495 int
32496 main ()
32497 {
32498 bidirectional_iterator<int,int> t; return 0;
32499   ;
32500   return 0;
32501 }
32502 _ACEOF
32503 rm -f conftest.$ac_objext
32504 if { (ac_try="$ac_compile"
32505 case "(($ac_try" in
32506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507   *) ac_try_echo=$ac_try;;
32508 esac
32509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510   (eval "$ac_compile") 2>conftest.er1
32511   ac_status=$?
32512   grep -v '^ *+' conftest.er1 >conftest.err
32513   rm -f conftest.er1
32514   cat conftest.err >&5
32515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516   (exit $ac_status); } &&
32517          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32518   { (case "(($ac_try" in
32519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520   *) ac_try_echo=$ac_try;;
32521 esac
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523   (eval "$ac_try") 2>&5
32524   ac_status=$?
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); }; } &&
32527          { ac_try='test -s conftest.$ac_objext'
32528   { (case "(($ac_try" in
32529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530   *) ac_try_echo=$ac_try;;
32531 esac
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533   (eval "$ac_try") 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; }; then
32537   ac_cv_cxx_have_bi_iterator=yes
32538 else
32539   echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32541
32542         ac_cv_cxx_have_bi_iterator=no
32543 fi
32544
32545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32546   ac_ext=c
32547 ac_cpp='$CPP $CPPFLAGS'
32548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32551
32552
32553 fi
32554 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32555 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32556 if test "$ac_cv_cxx_have_bi_iterator" = yes
32557 then
32558
32559 cat >>confdefs.h <<\_ACEOF
32560 #define HAVE_BI_ITERATOR 1
32561 _ACEOF
32562
32563 else
32564
32565 cat >>confdefs.h <<\_ACEOF
32566 #define HAVE_BI_ITERATOR 0
32567 _ACEOF
32568
32569 fi
32570
32571 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32572 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32573 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32574   echo $ECHO_N "(cached) $ECHO_C" >&6
32575 else
32576
32577   ac_ext=cpp
32578 ac_cpp='$CXXCPP $CPPFLAGS'
32579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32582
32583   cat >conftest.$ac_ext <<_ACEOF
32584 /* confdefs.h.  */
32585 _ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h.  */
32589 #include <iterator>
32590 #ifdef HAVE_NAMESPACES
32591 using namespace std;
32592 #endif
32593 int
32594 main ()
32595 {
32596 forward_iterator<int,int> t; return 0;
32597   ;
32598   return 0;
32599 }
32600 _ACEOF
32601 rm -f conftest.$ac_objext
32602 if { (ac_try="$ac_compile"
32603 case "(($ac_try" in
32604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32605   *) ac_try_echo=$ac_try;;
32606 esac
32607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32608   (eval "$ac_compile") 2>conftest.er1
32609   ac_status=$?
32610   grep -v '^ *+' conftest.er1 >conftest.err
32611   rm -f conftest.er1
32612   cat conftest.err >&5
32613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614   (exit $ac_status); } &&
32615          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32616   { (case "(($ac_try" in
32617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618   *) ac_try_echo=$ac_try;;
32619 esac
32620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621   (eval "$ac_try") 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); }; } &&
32625          { ac_try='test -s conftest.$ac_objext'
32626   { (case "(($ac_try" in
32627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628   *) ac_try_echo=$ac_try;;
32629 esac
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631   (eval "$ac_try") 2>&5
32632   ac_status=$?
32633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634   (exit $ac_status); }; }; then
32635   ac_cv_cxx_have_fwd_iterator=yes
32636 else
32637   echo "$as_me: failed program was:" >&5
32638 sed 's/^/| /' conftest.$ac_ext >&5
32639
32640         ac_cv_cxx_have_fwd_iterator=no
32641 fi
32642
32643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32644   ac_ext=c
32645 ac_cpp='$CPP $CPPFLAGS'
32646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32649
32650
32651 fi
32652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32653 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32654 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32655 then
32656
32657 cat >>confdefs.h <<\_ACEOF
32658 #define HAVE_FWD_ITERATOR 1
32659 _ACEOF
32660
32661 else
32662
32663 cat >>confdefs.h <<\_ACEOF
32664 #define HAVE_FWD_ITERATOR 0
32665 _ACEOF
32666
32667 fi
32668
32669
32670 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32671 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32672 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32673   echo $ECHO_N "(cached) $ECHO_C" >&6
32674 else
32675   ac_ext=cpp
32676 ac_cpp='$CXXCPP $CPPFLAGS'
32677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32680
32681    cat >conftest.$ac_ext <<_ACEOF
32682 /* confdefs.h.  */
32683 _ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h.  */
32687 #include <math.h>
32688 int
32689 main ()
32690 {
32691 float f; isnan(f);
32692   ;
32693   return 0;
32694 }
32695 _ACEOF
32696 rm -f conftest.$ac_objext
32697 if { (ac_try="$ac_compile"
32698 case "(($ac_try" in
32699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700   *) ac_try_echo=$ac_try;;
32701 esac
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703   (eval "$ac_compile") 2>conftest.er1
32704   ac_status=$?
32705   grep -v '^ *+' conftest.er1 >conftest.err
32706   rm -f conftest.er1
32707   cat conftest.err >&5
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); } &&
32710          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32711   { (case "(($ac_try" in
32712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713   *) ac_try_echo=$ac_try;;
32714 esac
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716   (eval "$ac_try") 2>&5
32717   ac_status=$?
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); }; } &&
32720          { ac_try='test -s conftest.$ac_objext'
32721   { (case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_try") 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; }; then
32730   ac_cv_func_isnan_in_math_h=yes
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735         ac_cv_func_isnan_in_math_h=no
32736 fi
32737
32738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32739   ac_ext=c
32740 ac_cpp='$CPP $CPPFLAGS'
32741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32744
32745 fi
32746 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32747 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32748
32749
32750 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32751
32752 cat >>confdefs.h <<\_ACEOF
32753 #define HAVE_ISNAN_IN_MATH_H 1
32754 _ACEOF
32755
32756 fi
32757
32758 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32759 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32760 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32761   echo $ECHO_N "(cached) $ECHO_C" >&6
32762 else
32763   ac_ext=cpp
32764 ac_cpp='$CXXCPP $CPPFLAGS'
32765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768
32769    cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h.  */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h.  */
32775 #include <cmath>
32776 int
32777 main ()
32778 {
32779 float f; isnan(f);
32780   ;
32781   return 0;
32782 }
32783 _ACEOF
32784 rm -f conftest.$ac_objext
32785 if { (ac_try="$ac_compile"
32786 case "(($ac_try" in
32787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788   *) ac_try_echo=$ac_try;;
32789 esac
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791   (eval "$ac_compile") 2>conftest.er1
32792   ac_status=$?
32793   grep -v '^ *+' conftest.er1 >conftest.err
32794   rm -f conftest.er1
32795   cat conftest.err >&5
32796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797   (exit $ac_status); } &&
32798          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32799   { (case "(($ac_try" in
32800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801   *) ac_try_echo=$ac_try;;
32802 esac
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804   (eval "$ac_try") 2>&5
32805   ac_status=$?
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); }; } &&
32808          { ac_try='test -s conftest.$ac_objext'
32809   { (case "(($ac_try" in
32810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811   *) ac_try_echo=$ac_try;;
32812 esac
32813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814   (eval "$ac_try") 2>&5
32815   ac_status=$?
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); }; }; then
32818   ac_cv_func_isnan_in_cmath=yes
32819 else
32820   echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32822
32823         ac_cv_func_isnan_in_cmath=no
32824 fi
32825
32826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827   ac_ext=c
32828 ac_cpp='$CPP $CPPFLAGS'
32829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32832
32833 fi
32834 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32835 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32836
32837 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32838
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_ISNAN_IN_CMATH 1
32841 _ACEOF
32842
32843 fi
32844
32845 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32846 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32847 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32848   echo $ECHO_N "(cached) $ECHO_C" >&6
32849 else
32850   ac_ext=cpp
32851 ac_cpp='$CXXCPP $CPPFLAGS'
32852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855
32856    cat >conftest.$ac_ext <<_ACEOF
32857 /* confdefs.h.  */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h.  */
32862 #include <cmath>
32863 int
32864 main ()
32865 {
32866 float f; std::isnan(f);
32867   ;
32868   return 0;
32869 }
32870 _ACEOF
32871 rm -f conftest.$ac_objext
32872 if { (ac_try="$ac_compile"
32873 case "(($ac_try" in
32874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875   *) ac_try_echo=$ac_try;;
32876 esac
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878   (eval "$ac_compile") 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } &&
32885          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886   { (case "(($ac_try" in
32887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888   *) ac_try_echo=$ac_try;;
32889 esac
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891   (eval "$ac_try") 2>&5
32892   ac_status=$?
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); }; } &&
32895          { ac_try='test -s conftest.$ac_objext'
32896   { (case "(($ac_try" in
32897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898   *) ac_try_echo=$ac_try;;
32899 esac
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901   (eval "$ac_try") 2>&5
32902   ac_status=$?
32903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904   (exit $ac_status); }; }; then
32905   ac_cv_func_std_isnan_in_cmath=yes
32906 else
32907   echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32909
32910         ac_cv_func_std_isnan_in_cmath=no
32911 fi
32912
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32914   ac_ext=c
32915 ac_cpp='$CPP $CPPFLAGS'
32916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32919
32920 fi
32921 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32922 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32923
32924 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32925
32926 cat >>confdefs.h <<\_ACEOF
32927 #define HAVE_STD_ISNAN_IN_CMATH 1
32928 _ACEOF
32929
32930 fi
32931
32932
32933 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32934 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32935 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32936   echo $ECHO_N "(cached) $ECHO_C" >&6
32937 else
32938   ac_ext=cpp
32939 ac_cpp='$CXXCPP $CPPFLAGS'
32940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32943
32944    cat >conftest.$ac_ext <<_ACEOF
32945 /* confdefs.h.  */
32946 _ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h.  */
32950 #include <math.h>
32951 int
32952 main ()
32953 {
32954 float f; isinf(f);
32955   ;
32956   return 0;
32957 }
32958 _ACEOF
32959 rm -f conftest.$ac_objext
32960 if { (ac_try="$ac_compile"
32961 case "(($ac_try" in
32962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963   *) ac_try_echo=$ac_try;;
32964 esac
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966   (eval "$ac_compile") 2>conftest.er1
32967   ac_status=$?
32968   grep -v '^ *+' conftest.er1 >conftest.err
32969   rm -f conftest.er1
32970   cat conftest.err >&5
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); } &&
32973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32974   { (case "(($ac_try" in
32975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976   *) ac_try_echo=$ac_try;;
32977 esac
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979   (eval "$ac_try") 2>&5
32980   ac_status=$?
32981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982   (exit $ac_status); }; } &&
32983          { ac_try='test -s conftest.$ac_objext'
32984   { (case "(($ac_try" in
32985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986   *) ac_try_echo=$ac_try;;
32987 esac
32988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989   (eval "$ac_try") 2>&5
32990   ac_status=$?
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); }; }; then
32993   ac_cv_func_isinf_in_math_h=yes
32994 else
32995   echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32997
32998         ac_cv_func_isinf_in_math_h=no
32999 fi
33000
33001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33002   ac_ext=c
33003 ac_cpp='$CPP $CPPFLAGS'
33004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33007
33008 fi
33009 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33010 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33011
33012 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33013
33014 cat >>confdefs.h <<\_ACEOF
33015 #define HAVE_ISINF_IN_MATH_H 1
33016 _ACEOF
33017
33018 fi
33019
33020 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33021 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33022 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33023   echo $ECHO_N "(cached) $ECHO_C" >&6
33024 else
33025   ac_ext=cpp
33026 ac_cpp='$CXXCPP $CPPFLAGS'
33027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33030
33031    cat >conftest.$ac_ext <<_ACEOF
33032 /* confdefs.h.  */
33033 _ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h.  */
33037 #include <cmath>
33038 int
33039 main ()
33040 {
33041 float f; isinf(f);
33042   ;
33043   return 0;
33044 }
33045 _ACEOF
33046 rm -f conftest.$ac_objext
33047 if { (ac_try="$ac_compile"
33048 case "(($ac_try" in
33049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050   *) ac_try_echo=$ac_try;;
33051 esac
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053   (eval "$ac_compile") 2>conftest.er1
33054   ac_status=$?
33055   grep -v '^ *+' conftest.er1 >conftest.err
33056   rm -f conftest.er1
33057   cat conftest.err >&5
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); } &&
33060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061   { (case "(($ac_try" in
33062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063   *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066   (eval "$ac_try") 2>&5
33067   ac_status=$?
33068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069   (exit $ac_status); }; } &&
33070          { ac_try='test -s conftest.$ac_objext'
33071   { (case "(($ac_try" in
33072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073   *) ac_try_echo=$ac_try;;
33074 esac
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076   (eval "$ac_try") 2>&5
33077   ac_status=$?
33078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); }; }; then
33080   ac_cv_func_isinf_in_cmath=yes
33081 else
33082   echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33084
33085         ac_cv_func_isinf_in_cmath=no
33086 fi
33087
33088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089   ac_ext=c
33090 ac_cpp='$CPP $CPPFLAGS'
33091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33094
33095 fi
33096 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33097 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33098
33099 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33100
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ISINF_IN_CMATH 1
33103 _ACEOF
33104
33105 fi
33106
33107 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33108 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33109 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33110   echo $ECHO_N "(cached) $ECHO_C" >&6
33111 else
33112   ac_ext=cpp
33113 ac_cpp='$CXXCPP $CPPFLAGS'
33114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33117
33118    cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h.  */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h.  */
33124 #include <cmath>
33125 int
33126 main ()
33127 {
33128 float f; std::isinf(f)}
33129   ;
33130   return 0;
33131 }
33132 _ACEOF
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137   *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140   (eval "$ac_compile") 2>conftest.er1
33141   ac_status=$?
33142   grep -v '^ *+' conftest.er1 >conftest.err
33143   rm -f conftest.er1
33144   cat conftest.err >&5
33145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146   (exit $ac_status); } &&
33147          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148   { (case "(($ac_try" in
33149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150   *) ac_try_echo=$ac_try;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153   (eval "$ac_try") 2>&5
33154   ac_status=$?
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); }; } &&
33157          { ac_try='test -s conftest.$ac_objext'
33158   { (case "(($ac_try" in
33159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160   *) ac_try_echo=$ac_try;;
33161 esac
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163   (eval "$ac_try") 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; }; then
33167   ac_cv_func_std_isinf_in_cmath=yes
33168 else
33169   echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33171
33172         ac_cv_func_std_isinf_in_cmath=no
33173 fi
33174
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176   ac_ext=c
33177 ac_cpp='$CPP $CPPFLAGS'
33178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33181
33182 fi
33183 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33184 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33185
33186 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33187
33188 cat >>confdefs.h <<\_ACEOF
33189 #define HAVE_STD_ISINF_IN_CMATH 1
33190 _ACEOF
33191
33192 fi
33193
33194 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33195 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33196 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33197   echo $ECHO_N "(cached) $ECHO_C" >&6
33198 else
33199   ac_ext=cpp
33200 ac_cpp='$CXXCPP $CPPFLAGS'
33201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33204
33205    cat >conftest.$ac_ext <<_ACEOF
33206 /* confdefs.h.  */
33207 _ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h.  */
33211 #include <ieeefp.h>
33212 int
33213 main ()
33214 {
33215 float f; finite(f);
33216   ;
33217   return 0;
33218 }
33219 _ACEOF
33220 rm -f conftest.$ac_objext
33221 if { (ac_try="$ac_compile"
33222 case "(($ac_try" in
33223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224   *) ac_try_echo=$ac_try;;
33225 esac
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227   (eval "$ac_compile") 2>conftest.er1
33228   ac_status=$?
33229   grep -v '^ *+' conftest.er1 >conftest.err
33230   rm -f conftest.er1
33231   cat conftest.err >&5
33232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233   (exit $ac_status); } &&
33234          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235   { (case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_try") 2>&5
33241   ac_status=$?
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); }; } &&
33244          { ac_try='test -s conftest.$ac_objext'
33245   { (case "(($ac_try" in
33246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247   *) ac_try_echo=$ac_try;;
33248 esac
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250   (eval "$ac_try") 2>&5
33251   ac_status=$?
33252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253   (exit $ac_status); }; }; then
33254   ac_cv_func_finite_in_ieeefp_h=yes
33255 else
33256   echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33258
33259         ac_cv_func_finite_in_ieeefp_h=no
33260 fi
33261
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263   ac_ext=c
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268
33269 fi
33270 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33271 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33272
33273 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33274
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_FINITE_IN_IEEEFP_H 1
33277 _ACEOF
33278
33279 fi
33280
33281
33282
33283 if test "$llvm_cv_platform_type" = "Unix" ; then
33284
33285
33286 for ac_header in stdlib.h unistd.h
33287 do
33288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33290   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33293   echo $ECHO_N "(cached) $ECHO_C" >&6
33294 fi
33295 ac_res=`eval echo '${'$as_ac_Header'}'`
33296                { echo "$as_me:$LINENO: result: $ac_res" >&5
33297 echo "${ECHO_T}$ac_res" >&6; }
33298 else
33299   # Is the header compilable?
33300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33302 cat >conftest.$ac_ext <<_ACEOF
33303 /* confdefs.h.  */
33304 _ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h.  */
33308 $ac_includes_default
33309 #include <$ac_header>
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (ac_try="$ac_compile"
33313 case "(($ac_try" in
33314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315   *) ac_try_echo=$ac_try;;
33316 esac
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318   (eval "$ac_compile") 2>conftest.er1
33319   ac_status=$?
33320   grep -v '^ *+' conftest.er1 >conftest.err
33321   rm -f conftest.er1
33322   cat conftest.err >&5
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); } &&
33325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33326   { (case "(($ac_try" in
33327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328   *) ac_try_echo=$ac_try;;
33329 esac
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331   (eval "$ac_try") 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; } &&
33335          { ac_try='test -s conftest.$ac_objext'
33336   { (case "(($ac_try" in
33337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338   *) ac_try_echo=$ac_try;;
33339 esac
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341   (eval "$ac_try") 2>&5
33342   ac_status=$?
33343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344   (exit $ac_status); }; }; then
33345   ac_header_compiler=yes
33346 else
33347   echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33349
33350         ac_header_compiler=no
33351 fi
33352
33353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33355 echo "${ECHO_T}$ac_header_compiler" >&6; }
33356
33357 # Is the header present?
33358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33360 cat >conftest.$ac_ext <<_ACEOF
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366 #include <$ac_header>
33367 _ACEOF
33368 if { (ac_try="$ac_cpp conftest.$ac_ext"
33369 case "(($ac_try" in
33370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371   *) ac_try_echo=$ac_try;;
33372 esac
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33375   ac_status=$?
33376   grep -v '^ *+' conftest.er1 >conftest.err
33377   rm -f conftest.er1
33378   cat conftest.err >&5
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); } >/dev/null; then
33381   if test -s conftest.err; then
33382     ac_cpp_err=$ac_c_preproc_warn_flag
33383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33384   else
33385     ac_cpp_err=
33386   fi
33387 else
33388   ac_cpp_err=yes
33389 fi
33390 if test -z "$ac_cpp_err"; then
33391   ac_header_preproc=yes
33392 else
33393   echo "$as_me: failed program was:" >&5
33394 sed 's/^/| /' conftest.$ac_ext >&5
33395
33396   ac_header_preproc=no
33397 fi
33398
33399 rm -f conftest.err conftest.$ac_ext
33400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33401 echo "${ECHO_T}$ac_header_preproc" >&6; }
33402
33403 # So?  What about this header?
33404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33405   yes:no: )
33406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33410     ac_header_preproc=yes
33411     ;;
33412   no:yes:* )
33413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33425     ( cat <<\_ASBOX
33426 ## ----------------------------------- ##
33427 ## Report this to llvmbugs@cs.uiuc.edu ##
33428 ## ----------------------------------- ##
33429 _ASBOX
33430      ) | sed "s/^/$as_me: WARNING:     /" >&2
33431     ;;
33432 esac
33433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33436   echo $ECHO_N "(cached) $ECHO_C" >&6
33437 else
33438   eval "$as_ac_Header=\$ac_header_preproc"
33439 fi
33440 ac_res=`eval echo '${'$as_ac_Header'}'`
33441                { echo "$as_me:$LINENO: result: $ac_res" >&5
33442 echo "${ECHO_T}$ac_res" >&6; }
33443
33444 fi
33445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33446   cat >>confdefs.h <<_ACEOF
33447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33448 _ACEOF
33449
33450 fi
33451
33452 done
33453
33454
33455 for ac_func in getpagesize
33456 do
33457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463   cat >conftest.$ac_ext <<_ACEOF
33464 /* confdefs.h.  */
33465 _ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h.  */
33469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33471 #define $ac_func innocuous_$ac_func
33472
33473 /* System header to define __stub macros and hopefully few prototypes,
33474     which can conflict with char $ac_func (); below.
33475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476     <limits.h> exists even on freestanding compilers.  */
33477
33478 #ifdef __STDC__
33479 # include <limits.h>
33480 #else
33481 # include <assert.h>
33482 #endif
33483
33484 #undef $ac_func
33485
33486 /* Override any GCC internal prototype to avoid an error.
33487    Use char because int might match the return type of a GCC
33488    builtin and then its argument prototype would still apply.  */
33489 #ifdef __cplusplus
33490 extern "C"
33491 #endif
33492 char $ac_func ();
33493 /* The GNU C library defines this for functions which it implements
33494     to always fail with ENOSYS.  Some functions are actually named
33495     something starting with __ and the normal name is an alias.  */
33496 #if defined __stub_$ac_func || defined __stub___$ac_func
33497 choke me
33498 #endif
33499
33500 int
33501 main ()
33502 {
33503 return $ac_func ();
33504   ;
33505   return 0;
33506 }
33507 _ACEOF
33508 rm -f conftest.$ac_objext conftest$ac_exeext
33509 if { (ac_try="$ac_link"
33510 case "(($ac_try" in
33511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512   *) ac_try_echo=$ac_try;;
33513 esac
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515   (eval "$ac_link") 2>conftest.er1
33516   ac_status=$?
33517   grep -v '^ *+' conftest.er1 >conftest.err
33518   rm -f conftest.er1
33519   cat conftest.err >&5
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); } &&
33522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33523   { (case "(($ac_try" in
33524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525   *) ac_try_echo=$ac_try;;
33526 esac
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528   (eval "$ac_try") 2>&5
33529   ac_status=$?
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); }; } &&
33532          { ac_try='test -s conftest$ac_exeext'
33533   { (case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_try") 2>&5
33539   ac_status=$?
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); }; }; then
33542   eval "$as_ac_var=yes"
33543 else
33544   echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33546
33547         eval "$as_ac_var=no"
33548 fi
33549
33550 rm -f core conftest.err conftest.$ac_objext \
33551       conftest$ac_exeext conftest.$ac_ext
33552 fi
33553 ac_res=`eval echo '${'$as_ac_var'}'`
33554                { echo "$as_me:$LINENO: result: $ac_res" >&5
33555 echo "${ECHO_T}$ac_res" >&6; }
33556 if test `eval echo '${'$as_ac_var'}'` = yes; then
33557   cat >>confdefs.h <<_ACEOF
33558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33559 _ACEOF
33560
33561 fi
33562 done
33563
33564 { echo "$as_me:$LINENO: checking for working mmap" >&5
33565 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33566 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33567   echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569   if test "$cross_compiling" = yes; then
33570   ac_cv_func_mmap_fixed_mapped=no
33571 else
33572   cat >conftest.$ac_ext <<_ACEOF
33573 /* confdefs.h.  */
33574 _ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h.  */
33578 $ac_includes_default
33579 /* malloc might have been renamed as rpl_malloc. */
33580 #undef malloc
33581
33582 /* Thanks to Mike Haertel and Jim Avera for this test.
33583    Here is a matrix of mmap possibilities:
33584         mmap private not fixed
33585         mmap private fixed at somewhere currently unmapped
33586         mmap private fixed at somewhere already mapped
33587         mmap shared not fixed
33588         mmap shared fixed at somewhere currently unmapped
33589         mmap shared fixed at somewhere already mapped
33590    For private mappings, we should verify that changes cannot be read()
33591    back from the file, nor mmap's back from the file at a different
33592    address.  (There have been systems where private was not correctly
33593    implemented like the infamous i386 svr4.0, and systems where the
33594    VM page cache was not coherent with the file system buffer cache
33595    like early versions of FreeBSD and possibly contemporary NetBSD.)
33596    For shared mappings, we should conversely verify that changes get
33597    propagated back to all the places they're supposed to be.
33598
33599    Grep wants private fixed already mapped.
33600    The main things grep needs to know about mmap are:
33601    * does it exist and is it safe to write into the mmap'd area
33602    * how to use it (BSD variants)  */
33603
33604 #include <fcntl.h>
33605 #include <sys/mman.h>
33606
33607 #if !STDC_HEADERS && !HAVE_STDLIB_H
33608 char *malloc ();
33609 #endif
33610
33611 /* This mess was copied from the GNU getpagesize.h.  */
33612 #if !HAVE_GETPAGESIZE
33613 /* Assume that all systems that can run configure have sys/param.h.  */
33614 # if !HAVE_SYS_PARAM_H
33615 #  define HAVE_SYS_PARAM_H 1
33616 # endif
33617
33618 # ifdef _SC_PAGESIZE
33619 #  define getpagesize() sysconf(_SC_PAGESIZE)
33620 # else /* no _SC_PAGESIZE */
33621 #  if HAVE_SYS_PARAM_H
33622 #   include <sys/param.h>
33623 #   ifdef EXEC_PAGESIZE
33624 #    define getpagesize() EXEC_PAGESIZE
33625 #   else /* no EXEC_PAGESIZE */
33626 #    ifdef NBPG
33627 #     define getpagesize() NBPG * CLSIZE
33628 #     ifndef CLSIZE
33629 #      define CLSIZE 1
33630 #     endif /* no CLSIZE */
33631 #    else /* no NBPG */
33632 #     ifdef NBPC
33633 #      define getpagesize() NBPC
33634 #     else /* no NBPC */
33635 #      ifdef PAGESIZE
33636 #       define getpagesize() PAGESIZE
33637 #      endif /* PAGESIZE */
33638 #     endif /* no NBPC */
33639 #    endif /* no NBPG */
33640 #   endif /* no EXEC_PAGESIZE */
33641 #  else /* no HAVE_SYS_PARAM_H */
33642 #   define getpagesize() 8192   /* punt totally */
33643 #  endif /* no HAVE_SYS_PARAM_H */
33644 # endif /* no _SC_PAGESIZE */
33645
33646 #endif /* no HAVE_GETPAGESIZE */
33647
33648 int
33649 main ()
33650 {
33651   char *data, *data2, *data3;
33652   int i, pagesize;
33653   int fd;
33654
33655   pagesize = getpagesize ();
33656
33657   /* First, make a file with some known garbage in it. */
33658   data = (char *) malloc (pagesize);
33659   if (!data)
33660     return 1;
33661   for (i = 0; i < pagesize; ++i)
33662     *(data + i) = rand ();
33663   umask (0);
33664   fd = creat ("conftest.mmap", 0600);
33665   if (fd < 0)
33666     return 1;
33667   if (write (fd, data, pagesize) != pagesize)
33668     return 1;
33669   close (fd);
33670
33671   /* Next, try to mmap the file at a fixed address which already has
33672      something else allocated at it.  If we can, also make sure that
33673      we see the same garbage.  */
33674   fd = open ("conftest.mmap", O_RDWR);
33675   if (fd < 0)
33676     return 1;
33677   data2 = (char *) malloc (2 * pagesize);
33678   if (!data2)
33679     return 1;
33680   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33681   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33682                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33683     return 1;
33684   for (i = 0; i < pagesize; ++i)
33685     if (*(data + i) != *(data2 + i))
33686       return 1;
33687
33688   /* Finally, make sure that changes to the mapped area do not
33689      percolate back to the file as seen by read().  (This is a bug on
33690      some variants of i386 svr4.0.)  */
33691   for (i = 0; i < pagesize; ++i)
33692     *(data2 + i) = *(data2 + i) + 1;
33693   data3 = (char *) malloc (pagesize);
33694   if (!data3)
33695     return 1;
33696   if (read (fd, data3, pagesize) != pagesize)
33697     return 1;
33698   for (i = 0; i < pagesize; ++i)
33699     if (*(data + i) != *(data3 + i))
33700       return 1;
33701   close (fd);
33702   return 0;
33703 }
33704 _ACEOF
33705 rm -f conftest$ac_exeext
33706 if { (ac_try="$ac_link"
33707 case "(($ac_try" in
33708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33709   *) ac_try_echo=$ac_try;;
33710 esac
33711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33712   (eval "$ac_link") 2>&5
33713   ac_status=$?
33714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33716   { (case "(($ac_try" in
33717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718   *) ac_try_echo=$ac_try;;
33719 esac
33720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721   (eval "$ac_try") 2>&5
33722   ac_status=$?
33723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724   (exit $ac_status); }; }; then
33725   ac_cv_func_mmap_fixed_mapped=yes
33726 else
33727   echo "$as_me: program exited with status $ac_status" >&5
33728 echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33730
33731 ( exit $ac_status )
33732 ac_cv_func_mmap_fixed_mapped=no
33733 fi
33734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33735 fi
33736
33737
33738 fi
33739 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33740 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33742
33743 cat >>confdefs.h <<\_ACEOF
33744 #define HAVE_MMAP 1
33745 _ACEOF
33746
33747 fi
33748 rm -f conftest.mmap
33749
33750   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33751 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33752 if test "${ac_cv_func_mmap_file+set}" = set; then
33753   echo $ECHO_N "(cached) $ECHO_C" >&6
33754 else
33755    ac_ext=c
33756 ac_cpp='$CPP $CPPFLAGS'
33757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33760
33761   if test "$cross_compiling" = yes; then
33762   ac_cv_func_mmap_file=no
33763 else
33764   cat >conftest.$ac_ext <<_ACEOF
33765
33766     /* confdefs.h.  */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h.  */
33771
33772 #include <sys/types.h>
33773 #include <sys/mman.h>
33774 #include <fcntl.h>
33775
33776 int
33777 main ()
33778 {
33779
33780   int fd;
33781   fd = creat ("foo",0777);
33782   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33783   unlink ("foo");
33784   return (fd != (int) MAP_FAILED);
33785   ;
33786   return 0;
33787 }
33788 _ACEOF
33789 rm -f conftest$ac_exeext
33790 if { (ac_try="$ac_link"
33791 case "(($ac_try" in
33792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793   *) ac_try_echo=$ac_try;;
33794 esac
33795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796   (eval "$ac_link") 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33800   { (case "(($ac_try" in
33801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802   *) ac_try_echo=$ac_try;;
33803 esac
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805   (eval "$ac_try") 2>&5
33806   ac_status=$?
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); }; }; then
33809   ac_cv_func_mmap_file=yes
33810 else
33811   echo "$as_me: program exited with status $ac_status" >&5
33812 echo "$as_me: failed program was:" >&5
33813 sed 's/^/| /' conftest.$ac_ext >&5
33814
33815 ( exit $ac_status )
33816 ac_cv_func_mmap_file=no
33817 fi
33818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33819 fi
33820
33821
33822   ac_ext=c
33823 ac_cpp='$CPP $CPPFLAGS'
33824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33827
33828
33829 fi
33830 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33831 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33832 if test "$ac_cv_func_mmap_file" = yes; then
33833
33834 cat >>confdefs.h <<\_ACEOF
33835 #define HAVE_MMAP_FILE
33836 _ACEOF
33837
33838    MMAP_FILE=yes
33839
33840 fi
33841
33842   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33843 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33844 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33845   echo $ECHO_N "(cached) $ECHO_C" >&6
33846 else
33847   if test "$llvm_cv_os_type" = "Interix" ; then
33848    ac_cv_need_dev_zero_for_mmap=yes
33849  else
33850    ac_cv_need_dev_zero_for_mmap=no
33851  fi
33852
33853 fi
33854 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33855 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33856 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33857
33858 cat >>confdefs.h <<\_ACEOF
33859 #define NEED_DEV_ZERO_FOR_MMAP 1
33860 _ACEOF
33861
33862 fi
33863
33864   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33865   then
33866     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33867 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33868   fi
33869   if test "$ac_cv_func_mmap_file" = "no"
33870   then
33871     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33872 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33873   fi
33874 fi
33875
33876
33877
33878 for ac_func in __dso_handle
33879 do
33880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33884   echo $ECHO_N "(cached) $ECHO_C" >&6
33885 else
33886   cat >conftest.$ac_ext <<_ACEOF
33887 /* confdefs.h.  */
33888 _ACEOF
33889 cat confdefs.h >>conftest.$ac_ext
33890 cat >>conftest.$ac_ext <<_ACEOF
33891 /* end confdefs.h.  */
33892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33894 #define $ac_func innocuous_$ac_func
33895
33896 /* System header to define __stub macros and hopefully few prototypes,
33897     which can conflict with char $ac_func (); below.
33898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33899     <limits.h> exists even on freestanding compilers.  */
33900
33901 #ifdef __STDC__
33902 # include <limits.h>
33903 #else
33904 # include <assert.h>
33905 #endif
33906
33907 #undef $ac_func
33908
33909 /* Override any GCC internal prototype to avoid an error.
33910    Use char because int might match the return type of a GCC
33911    builtin and then its argument prototype would still apply.  */
33912 #ifdef __cplusplus
33913 extern "C"
33914 #endif
33915 char $ac_func ();
33916 /* The GNU C library defines this for functions which it implements
33917     to always fail with ENOSYS.  Some functions are actually named
33918     something starting with __ and the normal name is an alias.  */
33919 #if defined __stub_$ac_func || defined __stub___$ac_func
33920 choke me
33921 #endif
33922
33923 int
33924 main ()
33925 {
33926 return $ac_func ();
33927   ;
33928   return 0;
33929 }
33930 _ACEOF
33931 rm -f conftest.$ac_objext conftest$ac_exeext
33932 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
33939   ac_status=$?
33940   grep -v '^ *+' conftest.er1 >conftest.err
33941   rm -f conftest.er1
33942   cat conftest.err >&5
33943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944   (exit $ac_status); } &&
33945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33946   { (case "(($ac_try" in
33947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948   *) ac_try_echo=$ac_try;;
33949 esac
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951   (eval "$ac_try") 2>&5
33952   ac_status=$?
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); }; } &&
33955          { ac_try='test -s conftest$ac_exeext'
33956   { (case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_try") 2>&5
33962   ac_status=$?
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); }; }; then
33965   eval "$as_ac_var=yes"
33966 else
33967   echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33969
33970         eval "$as_ac_var=no"
33971 fi
33972
33973 rm -f core conftest.err conftest.$ac_objext \
33974       conftest$ac_exeext conftest.$ac_ext
33975 fi
33976 ac_res=`eval echo '${'$as_ac_var'}'`
33977                { echo "$as_me:$LINENO: result: $ac_res" >&5
33978 echo "${ECHO_T}$ac_res" >&6; }
33979 if test `eval echo '${'$as_ac_var'}'` = yes; then
33980   cat >>confdefs.h <<_ACEOF
33981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33982 _ACEOF
33983
33984 fi
33985 done
33986
33987
33988 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33989 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33990 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33991   echo $ECHO_N "(cached) $ECHO_C" >&6
33992 else
33993   llvm_cv_llvmgcc_sanity="no"
33994 if test -x "$LLVMGCC" ; then
33995   cp /dev/null conftest.c
33996   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33997       grep 'target datalayout =' > /dev/null 2>&1
33998   if test $? -eq 0 ; then
33999     llvm_cv_llvmgcc_sanity="yes"
34000   fi
34001   rm conftest.c
34002 fi
34003 fi
34004 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34005 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34006
34007 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34008   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34009 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34010   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34011   LLVMCC1=$llvmcc1path
34012
34013   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34014   LLVMCC1PLUS=$llvmcc1pluspath
34015
34016   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34017   LLVMGCCDIR=$llvmgccdir
34018
34019   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34020   LLVMGCCLIBEXEC=$llvmgcclibexec
34021
34022   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34023   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34024   LLVMGCC_VERSION=$llvmgccversion
34025
34026   LLVMGCC_MAJVERS=$llvmgccmajvers
34027
34028   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34029   LLVMGCC_LANGS=$llvmgcclangs
34030
34031   { echo "$as_me:$LINENO: result: ok" >&5
34032 echo "${ECHO_T}ok" >&6; }
34033 fi
34034
34035 SHLIBEXT=$libltdl_cv_shlibext
34036
34037
34038 # Translate the various configuration directories and other basic
34039 # information into substitutions that will end up in Makefile.config.in
34040 # that these configured values can be used by the makefiles
34041 if test "${prefix}" = "NONE" ; then
34042   prefix="/usr/local"
34043 fi
34044 eval LLVM_PREFIX="${prefix}";
34045 eval LLVM_BINDIR="${prefix}/bin";
34046 eval LLVM_LIBDIR="${prefix}/lib";
34047 eval LLVM_DATADIR="${prefix}/share/llvm";
34048 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34049 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34050 eval LLVM_INCLUDEDIR="${prefix}/include";
34051 eval LLVM_INFODIR="${prefix}/info";
34052 eval LLVM_MANDIR="${prefix}/man";
34053 LLVM_CONFIGTIME=`date`
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065 # Place the various directores into the config.h file as #defines so that we
34066 # can know about the installation paths within LLVM.
34067
34068 cat >>confdefs.h <<_ACEOF
34069 #define LLVM_PREFIX "$LLVM_PREFIX"
34070 _ACEOF
34071
34072
34073 cat >>confdefs.h <<_ACEOF
34074 #define LLVM_BINDIR "$LLVM_BINDIR"
34075 _ACEOF
34076
34077
34078 cat >>confdefs.h <<_ACEOF
34079 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34080 _ACEOF
34081
34082
34083 cat >>confdefs.h <<_ACEOF
34084 #define LLVM_DATADIR "$LLVM_DATADIR"
34085 _ACEOF
34086
34087
34088 cat >>confdefs.h <<_ACEOF
34089 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34090 _ACEOF
34091
34092
34093 cat >>confdefs.h <<_ACEOF
34094 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34095 _ACEOF
34096
34097
34098 cat >>confdefs.h <<_ACEOF
34099 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34100 _ACEOF
34101
34102
34103 cat >>confdefs.h <<_ACEOF
34104 #define LLVM_INFODIR "$LLVM_INFODIR"
34105 _ACEOF
34106
34107
34108 cat >>confdefs.h <<_ACEOF
34109 #define LLVM_MANDIR "$LLVM_MANDIR"
34110 _ACEOF
34111
34112
34113 cat >>confdefs.h <<_ACEOF
34114 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34115 _ACEOF
34116
34117
34118
34119 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34120
34121 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34122
34123 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34124
34125 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34126
34127 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34128
34129
34130 ac_config_files="$ac_config_files Makefile.config"
34131
34132
34133 ac_config_files="$ac_config_files llvm.spec"
34134
34135
34136 ac_config_files="$ac_config_files docs/doxygen.cfg"
34137
34138
34139 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34140
34141
34142 ac_config_commands="$ac_config_commands setup"
34143
34144 ac_config_commands="$ac_config_commands Makefile"
34145
34146
34147 ac_config_commands="$ac_config_commands Makefile.common"
34148
34149
34150 ac_config_commands="$ac_config_commands examples/Makefile"
34151
34152
34153 ac_config_commands="$ac_config_commands lib/Makefile"
34154
34155
34156 ac_config_commands="$ac_config_commands runtime/Makefile"
34157
34158
34159 ac_config_commands="$ac_config_commands test/Makefile"
34160
34161
34162 ac_config_commands="$ac_config_commands test/Makefile.tests"
34163
34164
34165 ac_config_commands="$ac_config_commands tools/Makefile"
34166
34167
34168 ac_config_commands="$ac_config_commands utils/Makefile"
34169
34170
34171 ac_config_commands="$ac_config_commands projects/Makefile"
34172
34173
34174 ac_config_commands="$ac_config_commands bindings/Makefile"
34175
34176
34177 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34178
34179
34180
34181 cat >confcache <<\_ACEOF
34182 # This file is a shell script that caches the results of configure
34183 # tests run on this system so they can be shared between configure
34184 # scripts and configure runs, see configure's option --config-cache.
34185 # It is not useful on other systems.  If it contains results you don't
34186 # want to keep, you may remove or edit it.
34187 #
34188 # config.status only pays attention to the cache file if you give it
34189 # the --recheck option to rerun configure.
34190 #
34191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34193 # following values.
34194
34195 _ACEOF
34196
34197 # The following way of writing the cache mishandles newlines in values,
34198 # but we know of no workaround that is simple, portable, and efficient.
34199 # So, we kill variables containing newlines.
34200 # Ultrix sh set writes to stderr and can't be redirected directly,
34201 # and sets the high bit in the cache file unless we assign to the vars.
34202 (
34203   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34204     eval ac_val=\$$ac_var
34205     case $ac_val in #(
34206     *${as_nl}*)
34207       case $ac_var in #(
34208       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34209 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34210       esac
34211       case $ac_var in #(
34212       _ | IFS | as_nl) ;; #(
34213       *) $as_unset $ac_var ;;
34214       esac ;;
34215     esac
34216   done
34217
34218   (set) 2>&1 |
34219     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34220     *${as_nl}ac_space=\ *)
34221       # `set' does not quote correctly, so add quotes (double-quote
34222       # substitution turns \\\\ into \\, and sed turns \\ into \).
34223       sed -n \
34224         "s/'/'\\\\''/g;
34225           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34226       ;; #(
34227     *)
34228       # `set' quotes correctly as required by POSIX, so do not add quotes.
34229       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34230       ;;
34231     esac |
34232     sort
34233 ) |
34234   sed '
34235      /^ac_cv_env_/b end
34236      t clear
34237      :clear
34238      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34239      t end
34240      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34241      :end' >>confcache
34242 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34243   if test -w "$cache_file"; then
34244     test "x$cache_file" != "x/dev/null" &&
34245       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34246 echo "$as_me: updating cache $cache_file" >&6;}
34247     cat confcache >$cache_file
34248   else
34249     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34250 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34251   fi
34252 fi
34253 rm -f confcache
34254
34255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34256 # Let make expand exec_prefix.
34257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34258
34259 DEFS=-DHAVE_CONFIG_H
34260
34261 ac_libobjs=
34262 ac_ltlibobjs=
34263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34264   # 1. Remove the extension, and $U if already installed.
34265   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34266   ac_i=`echo "$ac_i" | sed "$ac_script"`
34267   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34268   #    will be set to the directory where LIBOBJS objects are built.
34269   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34270   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34271 done
34272 LIBOBJS=$ac_libobjs
34273
34274 LTLIBOBJS=$ac_ltlibobjs
34275
34276
34277 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34278   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34279 Usually this means the macro was only invoked conditionally." >&5
34280 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34281 Usually this means the macro was only invoked conditionally." >&2;}
34282    { (exit 1); exit 1; }; }
34283 fi
34284 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34285   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34286 Usually this means the macro was only invoked conditionally." >&5
34287 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34288 Usually this means the macro was only invoked conditionally." >&2;}
34289    { (exit 1); exit 1; }; }
34290 fi
34291
34292 : ${CONFIG_STATUS=./config.status}
34293 ac_clean_files_save=$ac_clean_files
34294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34297 cat >$CONFIG_STATUS <<_ACEOF
34298 #! $SHELL
34299 # Generated by $as_me.
34300 # Run this file to recreate the current configuration.
34301 # Compiler output produced by configure, useful for debugging
34302 # configure, is in config.log if it exists.
34303
34304 debug=false
34305 ac_cs_recheck=false
34306 ac_cs_silent=false
34307 SHELL=\${CONFIG_SHELL-$SHELL}
34308 _ACEOF
34309
34310 cat >>$CONFIG_STATUS <<\_ACEOF
34311 ## --------------------- ##
34312 ## M4sh Initialization.  ##
34313 ## --------------------- ##
34314
34315 # Be Bourne compatible
34316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34317   emulate sh
34318   NULLCMD=:
34319   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34320   # is contrary to our usage.  Disable this feature.
34321   alias -g '${1+"$@"}'='"$@"'
34322   setopt NO_GLOB_SUBST
34323 else
34324   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34325 fi
34326 BIN_SH=xpg4; export BIN_SH # for Tru64
34327 DUALCASE=1; export DUALCASE # for MKS sh
34328
34329
34330 # PATH needs CR
34331 # Avoid depending upon Character Ranges.
34332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34335 as_cr_digits='0123456789'
34336 as_cr_alnum=$as_cr_Letters$as_cr_digits
34337
34338 # The user is always right.
34339 if test "${PATH_SEPARATOR+set}" != set; then
34340   echo "#! /bin/sh" >conf$$.sh
34341   echo  "exit 0"   >>conf$$.sh
34342   chmod +x conf$$.sh
34343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34344     PATH_SEPARATOR=';'
34345   else
34346     PATH_SEPARATOR=:
34347   fi
34348   rm -f conf$$.sh
34349 fi
34350
34351 # Support unset when possible.
34352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34353   as_unset=unset
34354 else
34355   as_unset=false
34356 fi
34357
34358
34359 # IFS
34360 # We need space, tab and new line, in precisely that order.  Quoting is
34361 # there to prevent editors from complaining about space-tab.
34362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34363 # splitting by setting IFS to empty value.)
34364 as_nl='
34365 '
34366 IFS=" ""        $as_nl"
34367
34368 # Find who we are.  Look in the path if we contain no directory separator.
34369 case $0 in
34370   *[\\/]* ) as_myself=$0 ;;
34371   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372 for as_dir in $PATH
34373 do
34374   IFS=$as_save_IFS
34375   test -z "$as_dir" && as_dir=.
34376   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34377 done
34378 IFS=$as_save_IFS
34379
34380      ;;
34381 esac
34382 # We did not find ourselves, most probably we were run as `sh COMMAND'
34383 # in which case we are not to be found in the path.
34384 if test "x$as_myself" = x; then
34385   as_myself=$0
34386 fi
34387 if test ! -f "$as_myself"; then
34388   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34389   { (exit 1); exit 1; }
34390 fi
34391
34392 # Work around bugs in pre-3.0 UWIN ksh.
34393 for as_var in ENV MAIL MAILPATH
34394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34395 done
34396 PS1='$ '
34397 PS2='> '
34398 PS4='+ '
34399
34400 # NLS nuisances.
34401 for as_var in \
34402   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34403   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34404   LC_TELEPHONE LC_TIME
34405 do
34406   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34407     eval $as_var=C; export $as_var
34408   else
34409     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34410   fi
34411 done
34412
34413 # Required to use basename.
34414 if expr a : '\(a\)' >/dev/null 2>&1 &&
34415    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34416   as_expr=expr
34417 else
34418   as_expr=false
34419 fi
34420
34421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34422   as_basename=basename
34423 else
34424   as_basename=false
34425 fi
34426
34427
34428 # Name of the executable.
34429 as_me=`$as_basename -- "$0" ||
34430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34431          X"$0" : 'X\(//\)$' \| \
34432          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34433 echo X/"$0" |
34434     sed '/^.*\/\([^/][^/]*\)\/*$/{
34435             s//\1/
34436             q
34437           }
34438           /^X\/\(\/\/\)$/{
34439             s//\1/
34440             q
34441           }
34442           /^X\/\(\/\).*/{
34443             s//\1/
34444             q
34445           }
34446           s/.*/./; q'`
34447
34448 # CDPATH.
34449 $as_unset CDPATH
34450
34451
34452
34453   as_lineno_1=$LINENO
34454   as_lineno_2=$LINENO
34455   test "x$as_lineno_1" != "x$as_lineno_2" &&
34456   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34457
34458   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34459   # uniformly replaced by the line number.  The first 'sed' inserts a
34460   # line-number line after each line using $LINENO; the second 'sed'
34461   # does the real work.  The second script uses 'N' to pair each
34462   # line-number line with the line containing $LINENO, and appends
34463   # trailing '-' during substitution so that $LINENO is not a special
34464   # case at line end.
34465   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34466   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34467   # E. McMahon (1931-1989) for sed's syntax.  :-)
34468   sed -n '
34469     p
34470     /[$]LINENO/=
34471   ' <$as_myself |
34472     sed '
34473       s/[$]LINENO.*/&-/
34474       t lineno
34475       b
34476       :lineno
34477       N
34478       :loop
34479       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34480       t loop
34481       s/-\n.*//
34482     ' >$as_me.lineno &&
34483   chmod +x "$as_me.lineno" ||
34484     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34485    { (exit 1); exit 1; }; }
34486
34487   # Don't try to exec as it changes $[0], causing all sort of problems
34488   # (the dirname of $[0] is not the place where we might find the
34489   # original and so on.  Autoconf is especially sensitive to this).
34490   . "./$as_me.lineno"
34491   # Exit status is that of the last command.
34492   exit
34493 }
34494
34495
34496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34497   as_dirname=dirname
34498 else
34499   as_dirname=false
34500 fi
34501
34502 ECHO_C= ECHO_N= ECHO_T=
34503 case `echo -n x` in
34504 -n*)
34505   case `echo 'x\c'` in
34506   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34507   *)   ECHO_C='\c';;
34508   esac;;
34509 *)
34510   ECHO_N='-n';;
34511 esac
34512
34513 if expr a : '\(a\)' >/dev/null 2>&1 &&
34514    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34515   as_expr=expr
34516 else
34517   as_expr=false
34518 fi
34519
34520 rm -f conf$$ conf$$.exe conf$$.file
34521 if test -d conf$$.dir; then
34522   rm -f conf$$.dir/conf$$.file
34523 else
34524   rm -f conf$$.dir
34525   mkdir conf$$.dir
34526 fi
34527 echo >conf$$.file
34528 if ln -s conf$$.file conf$$ 2>/dev/null; then
34529   as_ln_s='ln -s'
34530   # ... but there are two gotchas:
34531   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34532   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34533   # In both cases, we have to default to `cp -p'.
34534   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34535     as_ln_s='cp -p'
34536 elif ln conf$$.file conf$$ 2>/dev/null; then
34537   as_ln_s=ln
34538 else
34539   as_ln_s='cp -p'
34540 fi
34541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34542 rmdir conf$$.dir 2>/dev/null
34543
34544 if mkdir -p . 2>/dev/null; then
34545   as_mkdir_p=:
34546 else
34547   test -d ./-p && rmdir ./-p
34548   as_mkdir_p=false
34549 fi
34550
34551 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34552 # systems may use methods other than mode bits to determine executability.
34553 cat >conf$$.file <<_ASEOF
34554 #! /bin/sh
34555 exit 0
34556 _ASEOF
34557 chmod +x conf$$.file
34558 if test -x conf$$.file >/dev/null 2>&1; then
34559   as_executable_p="test -x"
34560 else
34561   as_executable_p=:
34562 fi
34563 rm -f conf$$.file
34564
34565 # Sed expression to map a string onto a valid CPP name.
34566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34567
34568 # Sed expression to map a string onto a valid variable name.
34569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34570
34571
34572 exec 6>&1
34573
34574 # Save the log message, to keep $[0] and so on meaningful, and to
34575 # report actual input values of CONFIG_FILES etc. instead of their
34576 # values after options handling.
34577 ac_log="
34578 This file was extended by llvm $as_me 2.2svn, which was
34579 generated by GNU Autoconf 2.60.  Invocation command line was
34580
34581   CONFIG_FILES    = $CONFIG_FILES
34582   CONFIG_HEADERS  = $CONFIG_HEADERS
34583   CONFIG_LINKS    = $CONFIG_LINKS
34584   CONFIG_COMMANDS = $CONFIG_COMMANDS
34585   $ $0 $@
34586
34587 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34588 "
34589
34590 _ACEOF
34591
34592 cat >>$CONFIG_STATUS <<_ACEOF
34593 # Files that config.status was made for.
34594 config_files="$ac_config_files"
34595 config_headers="$ac_config_headers"
34596 config_commands="$ac_config_commands"
34597
34598 _ACEOF
34599
34600 cat >>$CONFIG_STATUS <<\_ACEOF
34601 ac_cs_usage="\
34602 \`$as_me' instantiates files from templates according to the
34603 current configuration.
34604
34605 Usage: $0 [OPTIONS] [FILE]...
34606
34607   -h, --help       print this help, then exit
34608   -V, --version    print version number, then exit
34609   -q, --quiet      do not print progress messages
34610   -d, --debug      don't remove temporary files
34611       --recheck    update $as_me by reconfiguring in the same conditions
34612   --file=FILE[:TEMPLATE]
34613                    instantiate the configuration file FILE
34614   --header=FILE[:TEMPLATE]
34615                    instantiate the configuration header FILE
34616
34617 Configuration files:
34618 $config_files
34619
34620 Configuration headers:
34621 $config_headers
34622
34623 Configuration commands:
34624 $config_commands
34625
34626 Report bugs to <bug-autoconf@gnu.org>."
34627
34628 _ACEOF
34629 cat >>$CONFIG_STATUS <<_ACEOF
34630 ac_cs_version="\\
34631 llvm config.status 2.2svn
34632 configured by $0, generated by GNU Autoconf 2.60,
34633   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34634
34635 Copyright (C) 2006 Free Software Foundation, Inc.
34636 This config.status script is free software; the Free Software Foundation
34637 gives unlimited permission to copy, distribute and modify it."
34638
34639 ac_pwd='$ac_pwd'
34640 srcdir='$srcdir'
34641 INSTALL='$INSTALL'
34642 _ACEOF
34643
34644 cat >>$CONFIG_STATUS <<\_ACEOF
34645 # If no file are specified by the user, then we need to provide default
34646 # value.  By we need to know if files were specified by the user.
34647 ac_need_defaults=:
34648 while test $# != 0
34649 do
34650   case $1 in
34651   --*=*)
34652     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34653     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34654     ac_shift=:
34655     ;;
34656   *)
34657     ac_option=$1
34658     ac_optarg=$2
34659     ac_shift=shift
34660     ;;
34661   esac
34662
34663   case $ac_option in
34664   # Handling of the options.
34665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34666     ac_cs_recheck=: ;;
34667   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34668     echo "$ac_cs_version"; exit ;;
34669   --debug | --debu | --deb | --de | --d | -d )
34670     debug=: ;;
34671   --file | --fil | --fi | --f )
34672     $ac_shift
34673     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34674     ac_need_defaults=false;;
34675   --header | --heade | --head | --hea )
34676     $ac_shift
34677     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34678     ac_need_defaults=false;;
34679   --he | --h)
34680     # Conflict between --help and --header
34681     { echo "$as_me: error: ambiguous option: $1
34682 Try \`$0 --help' for more information." >&2
34683    { (exit 1); exit 1; }; };;
34684   --help | --hel | -h )
34685     echo "$ac_cs_usage"; exit ;;
34686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34687   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34688     ac_cs_silent=: ;;
34689
34690   # This is an error.
34691   -*) { echo "$as_me: error: unrecognized option: $1
34692 Try \`$0 --help' for more information." >&2
34693    { (exit 1); exit 1; }; } ;;
34694
34695   *) ac_config_targets="$ac_config_targets $1"
34696      ac_need_defaults=false ;;
34697
34698   esac
34699   shift
34700 done
34701
34702 ac_configure_extra_args=
34703
34704 if $ac_cs_silent; then
34705   exec 6>/dev/null
34706   ac_configure_extra_args="$ac_configure_extra_args --silent"
34707 fi
34708
34709 _ACEOF
34710 cat >>$CONFIG_STATUS <<_ACEOF
34711 if \$ac_cs_recheck; then
34712   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34713   CONFIG_SHELL=$SHELL
34714   export CONFIG_SHELL
34715   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34716 fi
34717
34718 _ACEOF
34719 cat >>$CONFIG_STATUS <<\_ACEOF
34720 exec 5>>config.log
34721 {
34722   echo
34723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34724 ## Running $as_me. ##
34725 _ASBOX
34726   echo "$ac_log"
34727 } >&5
34728
34729 _ACEOF
34730 cat >>$CONFIG_STATUS <<_ACEOF
34731 #
34732 # INIT-COMMANDS
34733 #
34734 llvm_src="${srcdir}"
34735
34736 _ACEOF
34737
34738 cat >>$CONFIG_STATUS <<\_ACEOF
34739
34740 # Handling of arguments.
34741 for ac_config_target in $ac_config_targets
34742 do
34743   case $ac_config_target in
34744     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34745     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34746     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34747     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34748     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34749     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34750     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34751     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34752     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34753     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34754     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34755     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34756     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34757     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34758     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34759     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34760     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34761     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34762     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34763     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34764     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34765     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34766
34767   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34769    { (exit 1); exit 1; }; };;
34770   esac
34771 done
34772
34773
34774 # If the user did not use the arguments to specify the items to instantiate,
34775 # then the envvar interface is used.  Set only those that are not.
34776 # We use the long form for the default assignment because of an extremely
34777 # bizarre bug on SunOS 4.1.3.
34778 if $ac_need_defaults; then
34779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34780   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34781   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34782 fi
34783
34784 # Have a temporary directory for convenience.  Make it in the build tree
34785 # simply because there is no reason against having it here, and in addition,
34786 # creating and moving files from /tmp can sometimes cause problems.
34787 # Hook for its removal unless debugging.
34788 # Note that there is a small window in which the directory will not be cleaned:
34789 # after its creation but before its name has been assigned to `$tmp'.
34790 $debug ||
34791 {
34792   tmp=
34793   trap 'exit_status=$?
34794   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34795 ' 0
34796   trap '{ (exit 1); exit 1; }' 1 2 13 15
34797 }
34798 # Create a (secure) tmp directory for tmp files.
34799
34800 {
34801   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34802   test -n "$tmp" && test -d "$tmp"
34803 }  ||
34804 {
34805   tmp=./conf$$-$RANDOM
34806   (umask 077 && mkdir "$tmp")
34807 } ||
34808 {
34809    echo "$me: cannot create a temporary directory in ." >&2
34810    { (exit 1); exit 1; }
34811 }
34812
34813 #
34814 # Set up the sed scripts for CONFIG_FILES section.
34815 #
34816
34817 # No need to generate the scripts if there are no CONFIG_FILES.
34818 # This happens for instance when ./config.status config.h
34819 if test -n "$CONFIG_FILES"; then
34820
34821 _ACEOF
34822
34823
34824
34825 ac_delim='%!_!# '
34826 for ac_last_try in false false false false false :; do
34827   cat >conf$$subs.sed <<_ACEOF
34828 SHELL!$SHELL$ac_delim
34829 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34830 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34831 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34832 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34833 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34834 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34835 exec_prefix!$exec_prefix$ac_delim
34836 prefix!$prefix$ac_delim
34837 program_transform_name!$program_transform_name$ac_delim
34838 bindir!$bindir$ac_delim
34839 sbindir!$sbindir$ac_delim
34840 libexecdir!$libexecdir$ac_delim
34841 datarootdir!$datarootdir$ac_delim
34842 datadir!$datadir$ac_delim
34843 sysconfdir!$sysconfdir$ac_delim
34844 sharedstatedir!$sharedstatedir$ac_delim
34845 localstatedir!$localstatedir$ac_delim
34846 includedir!$includedir$ac_delim
34847 oldincludedir!$oldincludedir$ac_delim
34848 docdir!$docdir$ac_delim
34849 infodir!$infodir$ac_delim
34850 htmldir!$htmldir$ac_delim
34851 dvidir!$dvidir$ac_delim
34852 pdfdir!$pdfdir$ac_delim
34853 psdir!$psdir$ac_delim
34854 libdir!$libdir$ac_delim
34855 localedir!$localedir$ac_delim
34856 mandir!$mandir$ac_delim
34857 DEFS!$DEFS$ac_delim
34858 ECHO_C!$ECHO_C$ac_delim
34859 ECHO_N!$ECHO_N$ac_delim
34860 ECHO_T!$ECHO_T$ac_delim
34861 LIBS!$LIBS$ac_delim
34862 build_alias!$build_alias$ac_delim
34863 host_alias!$host_alias$ac_delim
34864 target_alias!$target_alias$ac_delim
34865 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34866 subdirs!$subdirs$ac_delim
34867 build!$build$ac_delim
34868 build_cpu!$build_cpu$ac_delim
34869 build_vendor!$build_vendor$ac_delim
34870 build_os!$build_os$ac_delim
34871 host!$host$ac_delim
34872 host_cpu!$host_cpu$ac_delim
34873 host_vendor!$host_vendor$ac_delim
34874 host_os!$host_os$ac_delim
34875 target!$target$ac_delim
34876 target_cpu!$target_cpu$ac_delim
34877 target_vendor!$target_vendor$ac_delim
34878 target_os!$target_os$ac_delim
34879 OS!$OS$ac_delim
34880 LINKALL!$LINKALL$ac_delim
34881 NOLINKALL!$NOLINKALL$ac_delim
34882 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34883 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34884 ARCH!$ARCH$ac_delim
34885 ENDIAN!$ENDIAN$ac_delim
34886 CC!$CC$ac_delim
34887 CFLAGS!$CFLAGS$ac_delim
34888 LDFLAGS!$LDFLAGS$ac_delim
34889 CPPFLAGS!$CPPFLAGS$ac_delim
34890 ac_ct_CC!$ac_ct_CC$ac_delim
34891 EXEEXT!$EXEEXT$ac_delim
34892 OBJEXT!$OBJEXT$ac_delim
34893 CPP!$CPP$ac_delim
34894 GREP!$GREP$ac_delim
34895 EGREP!$EGREP$ac_delim
34896 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34897 BUILD_CC!$BUILD_CC$ac_delim
34898 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34899 CVSBUILD!$CVSBUILD$ac_delim
34900 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34901 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34902 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34903 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34904 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34905 JIT!$JIT$ac_delim
34906 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34907 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34908 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34909 ENABLE_PIC!$ENABLE_PIC$ac_delim
34910 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34911 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34912 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34913 CXX!$CXX$ac_delim
34914 CXXFLAGS!$CXXFLAGS$ac_delim
34915 ac_ct_CXX!$ac_ct_CXX$ac_delim
34916 LEX!$LEX$ac_delim
34917 LEXLIB!$LEXLIB$ac_delim
34918 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34919 FLEX!$FLEX$ac_delim
34920 YACC!$YACC$ac_delim
34921 YFLAGS!$YFLAGS$ac_delim
34922 BISON!$BISON$ac_delim
34923 NM!$NM$ac_delim
34924 ifGNUmake!$ifGNUmake$ac_delim
34925 _ACEOF
34926
34927   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34928     break
34929   elif $ac_last_try; then
34930     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34931 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34932    { (exit 1); exit 1; }; }
34933   else
34934     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34935   fi
34936 done
34937
34938 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34939 if test -n "$ac_eof"; then
34940   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34941   ac_eof=`expr $ac_eof + 1`
34942 fi
34943
34944 cat >>$CONFIG_STATUS <<_ACEOF
34945 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34947 _ACEOF
34948 sed '
34949 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34950 s/^/s,@/; s/!/@,|#_!!_#|/
34951 :n
34952 t n
34953 s/'"$ac_delim"'$/,g/; t
34954 s/$/\\/; p
34955 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34956 ' >>$CONFIG_STATUS <conf$$subs.sed
34957 rm -f conf$$subs.sed
34958 cat >>$CONFIG_STATUS <<_ACEOF
34959 CEOF$ac_eof
34960 _ACEOF
34961
34962
34963 ac_delim='%!_!# '
34964 for ac_last_try in false false false false false :; do
34965   cat >conf$$subs.sed <<_ACEOF
34966 LN_S!$LN_S$ac_delim
34967 CMP!$CMP$ac_delim
34968 CP!$CP$ac_delim
34969 DATE!$DATE$ac_delim
34970 FIND!$FIND$ac_delim
34971 MKDIR!$MKDIR$ac_delim
34972 MV!$MV$ac_delim
34973 RANLIB!$RANLIB$ac_delim
34974 RM!$RM$ac_delim
34975 SED!$SED$ac_delim
34976 TAR!$TAR$ac_delim
34977 BINPWD!$BINPWD$ac_delim
34978 GRAPHVIZ!$GRAPHVIZ$ac_delim
34979 DOT!$DOT$ac_delim
34980 GV!$GV$ac_delim
34981 DOTTY!$DOTTY$ac_delim
34982 PERL!$PERL$ac_delim
34983 HAVE_PERL!$HAVE_PERL$ac_delim
34984 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34985 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34986 INSTALL_DATA!$INSTALL_DATA$ac_delim
34987 BZIP2!$BZIP2$ac_delim
34988 DOXYGEN!$DOXYGEN$ac_delim
34989 GROFF!$GROFF$ac_delim
34990 GZIP!$GZIP$ac_delim
34991 POD2HTML!$POD2HTML$ac_delim
34992 POD2MAN!$POD2MAN$ac_delim
34993 RUNTEST!$RUNTEST$ac_delim
34994 TCLSH!$TCLSH$ac_delim
34995 ZIP!$ZIP$ac_delim
34996 OCAMLC!$OCAMLC$ac_delim
34997 OCAMLOPT!$OCAMLOPT$ac_delim
34998 OCAMLDEP!$OCAMLDEP$ac_delim
34999 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35000 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35001 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35002 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35003 LIBADD_DL!$LIBADD_DL$ac_delim
35004 ECHO!$ECHO$ac_delim
35005 AR!$AR$ac_delim
35006 STRIP!$STRIP$ac_delim
35007 CXXCPP!$CXXCPP$ac_delim
35008 F77!$F77$ac_delim
35009 FFLAGS!$FFLAGS$ac_delim
35010 ac_ct_F77!$ac_ct_F77$ac_delim
35011 LIBTOOL!$LIBTOOL$ac_delim
35012 LLVMGCC!$LLVMGCC$ac_delim
35013 LLVMGXX!$LLVMGXX$ac_delim
35014 USE_UDIS86!$USE_UDIS86$ac_delim
35015 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35016 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35017 ALLOCA!$ALLOCA$ac_delim
35018 MMAP_FILE!$MMAP_FILE$ac_delim
35019 LLVMCC1!$LLVMCC1$ac_delim
35020 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35021 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35022 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35023 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35024 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35025 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35026 SHLIBEXT!$SHLIBEXT$ac_delim
35027 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35028 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35029 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35030 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35031 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35032 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35033 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35034 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35035 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35036 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35037 LIBOBJS!$LIBOBJS$ac_delim
35038 LTLIBOBJS!$LTLIBOBJS$ac_delim
35039 _ACEOF
35040
35041   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
35042     break
35043   elif $ac_last_try; then
35044     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35046    { (exit 1); exit 1; }; }
35047   else
35048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35049   fi
35050 done
35051
35052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35053 if test -n "$ac_eof"; then
35054   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35055   ac_eof=`expr $ac_eof + 1`
35056 fi
35057
35058 cat >>$CONFIG_STATUS <<_ACEOF
35059 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35061 _ACEOF
35062 sed '
35063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35064 s/^/s,@/; s/!/@,|#_!!_#|/
35065 :n
35066 t n
35067 s/'"$ac_delim"'$/,g/; t
35068 s/$/\\/; p
35069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35070 ' >>$CONFIG_STATUS <conf$$subs.sed
35071 rm -f conf$$subs.sed
35072 cat >>$CONFIG_STATUS <<_ACEOF
35073 :end
35074 s/|#_!!_#|//g
35075 CEOF$ac_eof
35076 _ACEOF
35077
35078
35079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35081 # trailing colons and then remove the whole line if VPATH becomes empty
35082 # (actually we leave an empty line to preserve line numbers).
35083 if test "x$srcdir" = x.; then
35084   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35085 s/:*\$(srcdir):*/:/
35086 s/:*\${srcdir}:*/:/
35087 s/:*@srcdir@:*/:/
35088 s/^\([^=]*=[     ]*\):*/\1/
35089 s/:*$//
35090 s/^[^=]*=[       ]*$//
35091 }'
35092 fi
35093
35094 cat >>$CONFIG_STATUS <<\_ACEOF
35095 fi # test -n "$CONFIG_FILES"
35096
35097
35098 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35099 do
35100   case $ac_tag in
35101   :[FHLC]) ac_mode=$ac_tag; continue;;
35102   esac
35103   case $ac_mode$ac_tag in
35104   :[FHL]*:*);;
35105   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35106 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35107    { (exit 1); exit 1; }; };;
35108   :[FH]-) ac_tag=-:-;;
35109   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35110   esac
35111   ac_save_IFS=$IFS
35112   IFS=:
35113   set x $ac_tag
35114   IFS=$ac_save_IFS
35115   shift
35116   ac_file=$1
35117   shift
35118
35119   case $ac_mode in
35120   :L) ac_source=$1;;
35121   :[FH])
35122     ac_file_inputs=
35123     for ac_f
35124     do
35125       case $ac_f in
35126       -) ac_f="$tmp/stdin";;
35127       *) # Look for the file first in the build tree, then in the source tree
35128          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35129          # because $ac_f cannot contain `:'.
35130          test -f "$ac_f" ||
35131            case $ac_f in
35132            [\\/$]*) false;;
35133            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35134            esac ||
35135            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35136 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35137    { (exit 1); exit 1; }; };;
35138       esac
35139       ac_file_inputs="$ac_file_inputs $ac_f"
35140     done
35141
35142     # Let's still pretend it is `configure' which instantiates (i.e., don't
35143     # use $as_me), people would be surprised to read:
35144     #    /* config.h.  Generated by config.status.  */
35145     configure_input="Generated from "`IFS=:
35146           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35147     if test x"$ac_file" != x-; then
35148       configure_input="$ac_file.  $configure_input"
35149       { echo "$as_me:$LINENO: creating $ac_file" >&5
35150 echo "$as_me: creating $ac_file" >&6;}
35151     fi
35152
35153     case $ac_tag in
35154     *:-:* | *:-) cat >"$tmp/stdin";;
35155     esac
35156     ;;
35157   esac
35158
35159   ac_dir=`$as_dirname -- "$ac_file" ||
35160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35161          X"$ac_file" : 'X\(//\)[^/]' \| \
35162          X"$ac_file" : 'X\(//\)$' \| \
35163          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35164 echo X"$ac_file" |
35165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35166             s//\1/
35167             q
35168           }
35169           /^X\(\/\/\)[^/].*/{
35170             s//\1/
35171             q
35172           }
35173           /^X\(\/\/\)$/{
35174             s//\1/
35175             q
35176           }
35177           /^X\(\/\).*/{
35178             s//\1/
35179             q
35180           }
35181           s/.*/./; q'`
35182   { as_dir="$ac_dir"
35183   case $as_dir in #(
35184   -*) as_dir=./$as_dir;;
35185   esac
35186   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35187     as_dirs=
35188     while :; do
35189       case $as_dir in #(
35190       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35191       *) as_qdir=$as_dir;;
35192       esac
35193       as_dirs="'$as_qdir' $as_dirs"
35194       as_dir=`$as_dirname -- "$as_dir" ||
35195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35196          X"$as_dir" : 'X\(//\)[^/]' \| \
35197          X"$as_dir" : 'X\(//\)$' \| \
35198          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35199 echo X"$as_dir" |
35200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35201             s//\1/
35202             q
35203           }
35204           /^X\(\/\/\)[^/].*/{
35205             s//\1/
35206             q
35207           }
35208           /^X\(\/\/\)$/{
35209             s//\1/
35210             q
35211           }
35212           /^X\(\/\).*/{
35213             s//\1/
35214             q
35215           }
35216           s/.*/./; q'`
35217       test -d "$as_dir" && break
35218     done
35219     test -z "$as_dirs" || eval "mkdir $as_dirs"
35220   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35222    { (exit 1); exit 1; }; }; }
35223   ac_builddir=.
35224
35225 case "$ac_dir" in
35226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35227 *)
35228   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35229   # A ".." for each directory in $ac_dir_suffix.
35230   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35231   case $ac_top_builddir_sub in
35232   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35233   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35234   esac ;;
35235 esac
35236 ac_abs_top_builddir=$ac_pwd
35237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35238 # for backward compatibility:
35239 ac_top_builddir=$ac_top_build_prefix
35240
35241 case $srcdir in
35242   .)  # We are building in place.
35243     ac_srcdir=.
35244     ac_top_srcdir=$ac_top_builddir_sub
35245     ac_abs_top_srcdir=$ac_pwd ;;
35246   [\\/]* | ?:[\\/]* )  # Absolute name.
35247     ac_srcdir=$srcdir$ac_dir_suffix;
35248     ac_top_srcdir=$srcdir
35249     ac_abs_top_srcdir=$srcdir ;;
35250   *) # Relative name.
35251     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35252     ac_top_srcdir=$ac_top_build_prefix$srcdir
35253     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35254 esac
35255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35256
35257
35258   case $ac_mode in
35259   :F)
35260   #
35261   # CONFIG_FILE
35262   #
35263
35264   case $INSTALL in
35265   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35266   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35267   esac
35268 _ACEOF
35269
35270 cat >>$CONFIG_STATUS <<\_ACEOF
35271 # If the template does not know about datarootdir, expand it.
35272 # FIXME: This hack should be removed a few years after 2.60.
35273 ac_datarootdir_hack=; ac_datarootdir_seen=
35274
35275 case `sed -n '/datarootdir/ {
35276   p
35277   q
35278 }
35279 /@datadir@/p
35280 /@docdir@/p
35281 /@infodir@/p
35282 /@localedir@/p
35283 /@mandir@/p
35284 ' $ac_file_inputs` in
35285 *datarootdir*) ac_datarootdir_seen=yes;;
35286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35287   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35288 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35289 _ACEOF
35290 cat >>$CONFIG_STATUS <<_ACEOF
35291   ac_datarootdir_hack='
35292   s&@datadir@&$datadir&g
35293   s&@docdir@&$docdir&g
35294   s&@infodir@&$infodir&g
35295   s&@localedir@&$localedir&g
35296   s&@mandir@&$mandir&g
35297     s&\\\${datarootdir}&$datarootdir&g' ;;
35298 esac
35299 _ACEOF
35300
35301 # Neutralize VPATH when `$srcdir' = `.'.
35302 # Shell code in configure.ac might set extrasub.
35303 # FIXME: do we really want to maintain this feature?
35304 cat >>$CONFIG_STATUS <<_ACEOF
35305   sed "$ac_vpsub
35306 $extrasub
35307 _ACEOF
35308 cat >>$CONFIG_STATUS <<\_ACEOF
35309 :t
35310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35311 s&@configure_input@&$configure_input&;t t
35312 s&@top_builddir@&$ac_top_builddir_sub&;t t
35313 s&@srcdir@&$ac_srcdir&;t t
35314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35315 s&@top_srcdir@&$ac_top_srcdir&;t t
35316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35317 s&@builddir@&$ac_builddir&;t t
35318 s&@abs_builddir@&$ac_abs_builddir&;t t
35319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35320 s&@INSTALL@&$ac_INSTALL&;t t
35321 $ac_datarootdir_hack
35322 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35323
35324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35325   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35326   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35327   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35328 which seems to be undefined.  Please make sure it is defined." >&5
35329 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35330 which seems to be undefined.  Please make sure it is defined." >&2;}
35331
35332   rm -f "$tmp/stdin"
35333   case $ac_file in
35334   -) cat "$tmp/out"; rm -f "$tmp/out";;
35335   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35336   esac
35337  ;;
35338   :H)
35339   #
35340   # CONFIG_HEADER
35341   #
35342 _ACEOF
35343
35344 # Transform confdefs.h into a sed script `conftest.defines', that
35345 # substitutes the proper values into config.h.in to produce config.h.
35346 rm -f conftest.defines conftest.tail
35347 # First, append a space to every undef/define line, to ease matching.
35348 echo 's/$/ /' >conftest.defines
35349 # Then, protect against being on the right side of a sed subst, or in
35350 # an unquoted here document, in config.status.  If some macros were
35351 # called several times there might be several #defines for the same
35352 # symbol, which is useless.  But do not sort them, since the last
35353 # AC_DEFINE must be honored.
35354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35355 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35356 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35357 # PARAMS is the parameter list in the macro definition--in most cases, it's
35358 # just an empty string.
35359 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35360 ac_dB='\\)[      (].*,\\1define\\2'
35361 ac_dC=' '
35362 ac_dD=' ,'
35363
35364 uniq confdefs.h |
35365   sed -n '
35366         t rset
35367         :rset
35368         s/^[     ]*#[    ]*define[       ][      ]*//
35369         t ok
35370         d
35371         :ok
35372         s/[\\&,]/\\&/g
35373         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35374         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35375   ' >>conftest.defines
35376
35377 # Remove the space that was appended to ease matching.
35378 # Then replace #undef with comments.  This is necessary, for
35379 # example, in the case of _POSIX_SOURCE, which is predefined and required
35380 # on some systems where configure will not decide to define it.
35381 # (The regexp can be short, since the line contains either #define or #undef.)
35382 echo 's/ $//
35383 s,^[     #]*u.*,/* & */,' >>conftest.defines
35384
35385 # Break up conftest.defines:
35386 ac_max_sed_lines=50
35387
35388 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35389 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35390 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35391 # et cetera.
35392 ac_in='$ac_file_inputs'
35393 ac_out='"$tmp/out1"'
35394 ac_nxt='"$tmp/out2"'
35395
35396 while :
35397 do
35398   # Write a here document:
35399     cat >>$CONFIG_STATUS <<_ACEOF
35400     # First, check the format of the line:
35401     cat >"\$tmp/defines.sed" <<\\CEOF
35402 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35403 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35404 b
35405 :def
35406 _ACEOF
35407   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35408   echo 'CEOF
35409     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35410   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35411   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35412   grep . conftest.tail >/dev/null || break
35413   rm -f conftest.defines
35414   mv conftest.tail conftest.defines
35415 done
35416 rm -f conftest.defines conftest.tail
35417
35418 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35419 cat >>$CONFIG_STATUS <<\_ACEOF
35420   if test x"$ac_file" != x-; then
35421     echo "/* $configure_input  */" >"$tmp/config.h"
35422     cat "$ac_result" >>"$tmp/config.h"
35423     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35424       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35425 echo "$as_me: $ac_file is unchanged" >&6;}
35426     else
35427       rm -f $ac_file
35428       mv "$tmp/config.h" $ac_file
35429     fi
35430   else
35431     echo "/* $configure_input  */"
35432     cat "$ac_result"
35433   fi
35434   rm -f "$tmp/out12"
35435  ;;
35436
35437   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35438 echo "$as_me: executing $ac_file commands" >&6;}
35439  ;;
35440   esac
35441
35442
35443   case $ac_file$ac_mode in
35444     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35445    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35446     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35447    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35448     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35449    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35450     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35451    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35452     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35453    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35454     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35455    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35456     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35457    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35458     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35459    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35460     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35461    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35462     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35463    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35464     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35465    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35466     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35467    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35468
35469   esac
35470 done # for ac_tag
35471
35472
35473 { (exit 0); exit 0; }
35474 _ACEOF
35475 chmod +x $CONFIG_STATUS
35476 ac_clean_files=$ac_clean_files_save
35477
35478
35479 # configure is writing to config.log, and then calls config.status.
35480 # config.status does its own redirection, appending to config.log.
35481 # Unfortunately, on DOS this fails, as config.log is still kept open
35482 # by configure, so config.status won't be able to write to it; its
35483 # output is simply discarded.  So we exec the FD to /dev/null,
35484 # effectively closing config.log, so it can be properly (re)opened and
35485 # appended to by config.status.  When coming back to configure, we
35486 # need to make the FD available again.
35487 if test "$no_create" != yes; then
35488   ac_cs_success=:
35489   ac_config_status_args=
35490   test "$silent" = yes &&
35491     ac_config_status_args="$ac_config_status_args --quiet"
35492   exec 5>/dev/null
35493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35494   exec 5>>config.log
35495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35496   # would make configure fail if this is the last instruction.
35497   $ac_cs_success || { (exit 1); exit 1; }
35498 fi
35499
35500 #
35501 # CONFIG_SUBDIRS section.
35502 #
35503 if test "$no_recursion" != yes; then
35504
35505   # Remove --cache-file and --srcdir arguments so they do not pile up.
35506   ac_sub_configure_args=
35507   ac_prev=
35508   eval "set x $ac_configure_args"
35509   shift
35510   for ac_arg
35511   do
35512     if test -n "$ac_prev"; then
35513       ac_prev=
35514       continue
35515     fi
35516     case $ac_arg in
35517     -cache-file | --cache-file | --cache-fil | --cache-fi \
35518     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35519       ac_prev=cache_file ;;
35520     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35521     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35522     | --c=*)
35523       ;;
35524     --config-cache | -C)
35525       ;;
35526     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35527       ac_prev=srcdir ;;
35528     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35529       ;;
35530     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35531       ac_prev=prefix ;;
35532     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35533       ;;
35534     *)
35535       case $ac_arg in
35536       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35537       esac
35538       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35539     esac
35540   done
35541
35542   # Always prepend --prefix to ensure using the same prefix
35543   # in subdir configurations.
35544   ac_arg="--prefix=$prefix"
35545   case $ac_arg in
35546   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35547   esac
35548   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35549
35550   ac_popdir=`pwd`
35551   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35552
35553     # Do not complain, so a configure script can configure whichever
35554     # parts of a large source tree are present.
35555     test -d "$srcdir/$ac_dir" || continue
35556
35557     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35558     echo "$as_me:$LINENO: $ac_msg" >&5
35559     echo "$ac_msg" >&6
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     cd "$ac_dir"
35637
35638     # Check for guested configure; otherwise get Cygnus style configure.
35639     if test -f "$ac_srcdir/configure.gnu"; then
35640       ac_sub_configure=$ac_srcdir/configure.gnu
35641     elif test -f "$ac_srcdir/configure"; then
35642       ac_sub_configure=$ac_srcdir/configure
35643     elif test -f "$ac_srcdir/configure.in"; then
35644       # This should be Cygnus configure.
35645       ac_sub_configure=$ac_aux_dir/configure
35646     else
35647       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35648 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35649       ac_sub_configure=
35650     fi
35651
35652     # The recursion is here.
35653     if test -n "$ac_sub_configure"; then
35654       # Make the cache file name correct relative to the subdirectory.
35655       case $cache_file in
35656       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35657       *) # Relative name.
35658         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35659       esac
35660
35661       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35662 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35663       # The eval makes quoting arguments work.
35664       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35665            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35666         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35667 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35668    { (exit 1); exit 1; }; }
35669     fi
35670
35671     cd "$ac_popdir"
35672   done
35673 fi
35674
35675